Sha256: 4d5e3ef3f56fe4642f22aeb58db81786704c5bc30ce3cf6583e734328b14a3e8
Contents?: true
Size: 798 Bytes
Versions: 56
Compression:
Stored size: 798 Bytes
Contents
#!/bin/bash set -eux mkdir -p ~/.azure aws secretsmanager get-secret-value --secret-id terraspace/azure-client | jq -r '.SecretString | fromjson' > ~/.azure/app-client.json # ~/.azure/app-client.json export ARM_CLIENT_ID=$(cat ~/.azure/app-client.json | jq -r '.client_id') export ARM_CLIENT_SECRET=$(cat ~/.azure/app-client.json | jq -r '.client_secret') export ARM_SUBSCRIPTION_ID=$(cat ~/.azure/app-client.json | jq -r '.subscription_id') export ARM_TENANT_ID=$(cat ~/.azure/app-client.json | jq -r '.tenant_id') # non-interactive login with service principal az login --service-principal \ --username $ARM_CLIENT_ID \ --password $ARM_CLIENT_SECRET \ --tenant $ARM_TENANT_ID git clone https://github.com/boltops-tools/azure_check.git cd azure_check bundle install ruby azure_check.rb
Version data entries
56 entries across 56 versions & 1 rubygems