Sha256: 4baec1bf04f013ab161b7841c31992a0ba9fccaabf2753980f2971abb8f5dd0f

Contents?: true

Size: 1.8 KB

Versions: 167

Compression:

Stored size: 1.8 KB

Contents

# Example InSpec Profile For Azure

This example shows the implementation of an InSpec profile for Azure. See [https://github.com/inspec/inspec-azure](https://github.com/inspec/inspec-azure) for details on how to configure credentials for your subscription.

##  Create a profile 

```
$ inspec init profile --platform azure my-profile

 ─────────────────────────── InSpec Code Generator ───────────────────────────

Creating new profile at /Users/spaterson/my-profile
 • Creating directory libraries
 • Creating file README.md
 • Creating directory controls
 • Creating file controls/example.rb
 • Creating file inspec.yml
 • Creating file libraries/.gitkeep
 
```

## Run the tests

```
$ cd  my-profile/
$ inspec exec . -t azure://


Profile: Azure InSpec Profile (my-profile)
Version: 0.1.0
Target:  azure://12345abc-987d-654e-fg21-abcdef23324r

  ×  azure-virtual-machines-exist-check: Check resource groups to see if any VMs exist. (4 failed)
     ×  Azure Virtual Machines should exist
     expected Azure Virtual Machines to exist
     ×  Azure Virtual Machines should exist
     expected Azure Virtual Machines to exist
     ×  Azure Virtual Machines should exist
     expected Azure Virtual Machines to exist
     ×  Azure Virtual Machines should exist
     expected Azure Virtual Machines to exist
     ✔  Azure Virtual Machines should exist
     ✔  Azure Virtual Machines should exist
     ✔  Azure Virtual Machines should exist


Profile: Azure Resource Pack (inspec-azure)
Version: 1.2.0
Target:  azure://12345abc-987d-654e-fg21-abcdef23324r

     No tests executed.

Profile Summary: 0 successful controls, 1 control failure, 0 controls skipped
Test Summary: 3 successful, 4 failures, 0 skipped

```

Version data entries

167 entries across 167 versions & 2 rubygems

Version Path
inspec-core-6.8.11 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-6.8.11 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-5.22.58 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-5.22.58 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-5.22.55 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-5.22.55 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-6.8.1 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-6.8.1 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-5.22.40 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-5.22.40 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-6.6.0 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-6.6.0 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-5.22.36 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-5.22.36 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-5.22.29 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-5.22.29 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-4.56.58 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-4.56.58 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-core-5.22.3 lib/plugins/inspec-init/templates/profiles/azure/README.md
inspec-5.22.3 lib/plugins/inspec-init/templates/profiles/azure/README.md