From 713289d379d783ae8d71d09dbf38a0a4f022a017 Mon Sep 17 00:00:00 2001 From: Ruairi Fennell Date: Mon, 20 Aug 2018 13:44:48 +0100 Subject: [PATCH] Skip Graph controls until MSI support is added Signed-off-by: Ruairi Fennell --- libraries/azurerm_resource.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/azurerm_resource.rb b/libraries/azurerm_resource.rb index 8d9d4dc0e..cbc231a52 100644 --- a/libraries/azurerm_resource.rb +++ b/libraries/azurerm_resource.rb @@ -12,6 +12,8 @@ def management end def graph + raise Inspec::Exceptions::ResourceSkipped, 'MSI Authentication is currently unsupported '\ + 'for Graph RBAC API, control skipped.' if inspec.backend.msi_auth? Azure::Graph.instance .with_client(graph_client) .for_tenant(tenant_id)