Skip to content

Commit

Permalink
Skip Graph controls until MSI support is added
Browse files Browse the repository at this point in the history
Signed-off-by: Ruairi Fennell <rfennell@chef.io>
  • Loading branch information
Ruairi Fennell committed Aug 20, 2018
1 parent a731fec commit 713289d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/azurerm_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 713289d

Please sign in to comment.