Skip to content

Commit

Permalink
Merge pull request #71 from ContainerSolutions/feat/azure-checks
Browse files Browse the repository at this point in the history
Feat/azure checks
  • Loading branch information
gusfcarvalho authored Jul 24, 2023
2 parents 395748d + b963618 commit 5fafe07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions operator/scripts/azure.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#! /bin/bash

set -euo pipefail
az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET --tenant $AZURE_TENANT_ID >> /dev/null
state=$(az policy state list --resource-group argus --query "[?policyDefinitionId=='/providers/microsoft.authorization/policydefinitions/e8eef0a8-67cf-4eb4-9386-14b0e78733d4']" | jq -r '.[].complianceState')

if [[ $state == "NonCompliant" ]]; then
Expand Down

0 comments on commit 5fafe07

Please sign in to comment.