2024-07-04 07:50:46 +00:00
|
|
|
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 + "\"."'
|
2024-09-12 05:22:06 +00:00
|
|
|
|
|
|
|
# digest: 4a0a0047304502204d8e6dcc0b3ccfcff1fe0a8ca84b7591fbed8d92509c86fedd312008f7e4199e022100c9de186a3632c52b9b96a7207a0df1c3f3289422d38e3c6ec4330001acfd3995:922c64590222798bb761d5b6d8e72950
|