37 lines
967 B
YAML
37 lines
967 B
YAML
id: azure-env
|
|
info:
|
|
name: Azure Environment Validation
|
|
author: princechaddha
|
|
severity: info
|
|
description: |
|
|
Checks if Azure CLI is set up and all necessary tools are installed on the environment.
|
|
reference:
|
|
- https://portal.azure.com/
|
|
metadata:
|
|
max-request: 2
|
|
tags: cloud,devops,microsoft,azure,azure-cloud-config
|
|
|
|
self-contained: true
|
|
code:
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
az account show
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- '"homeTenantId":'
|
|
|
|
extractors:
|
|
- type: json
|
|
name: environmentname
|
|
json:
|
|
- '.environmentName'
|
|
internal: true
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- '"Azure CLI is properly configured for environment \"" + environmentname + "\"."'
|
|
# digest: 480a00453043021f7998d81c98cbedbcff57a1c5a0f271fb8176e4c9a157ce00e61eb3e80e570602200c7b76d9663d6014010945799cb750138b03b45f64d896118f00402e407c6fff:922c64590222798bb761d5b6d8e72950 |