Control: Recovery Services vaults should use managed identity
Description
Recovery Services vaults should use a managed identity for enhanced authentication security.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.recovery_service_vault_uses_managed_identitySnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.recovery_service_vault_uses_managed_identity --shareSQL
This control uses a named query:
select  s.id as resource,  case    when identity is null or identity ->> 'type' = 'None' then 'alarm'    else 'ok'  end as status,  case    when identity is null or identity ->> 'type' = 'None' then name || ' not uses managed identity.'    else name || ' uses managed identity.'  end as reason    , s.resource_group as resource_group  , sub.display_name as subscriptionfrom  azure_recovery_services_vault as s  left join azure_subscription as sub on sub.subscription_id = s.subscription_id;