# Chef inspec on chef automate (Azure)

**URL:** <https://discourse.chef.io/t/chef-inspec-on-chef-automate-azure/16073>\
**Category:** Chef InSpec\
**Created:** [October 14, 2019, 9:49pm UTC](https://discourse.chef.io/t/chef-inspec-on-chef-automate-azure/16073 "2019-10-14T21:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lavanya09](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@lavanya09](https://discourse.chef.io/u/lavanya09)\
**Post date:** [October 14, 2019, 9:49pm UTC](https://discourse.chef.io/t/chef-inspec-on-chef-automate-azure/16073/1 "2019-10-14T21:49:05Z")

</div>

Hi,

I am trying to upload my inspec profile and run the scan job in chef-automate. Following is my control source code

control 'azurerm\_network\_security\_group' do  
describe azurerm\_network\_security\_group(resource\_group: resource\_group, name: nsg\_name) do  
it { should exist }  
it { should\_not allow\_ssh\_from\_internet }  
it { should\_not allow\_https\_from\_internet }  
end  
end

I am facing this error and not sure what it means:  
**undefined method `azurerm\_network\_security\_group' for #\<#Class:0x0000000004a0cf18:0x00000000049cfe60\>**

**Here is my inspec.yml**  
name: azure-nsg-test  
title: InSpec Profile  
maintainer: The Authors  
copyright: The Authors  
copyright\_email: [you@example.com](mailto:you@example.com)  
license: Apache-2.0  
summary: An InSpec Compliance Profile  
version: 0.1.0  
inspec\_version: '\>= 4.6.9'  
depends:

- name: inspec-azure  
url: [https://github.com/inspec/inspec-azure/archive/master.tar.gz](https://github.com/inspec/inspec-azure/archive/master.tar.gz)  
supports:  
platform: azure

I have tried with two version types: inspec\_version: '\>= 2.2.7' and inspec\_version: '\>= 4.6.9'  
Could i get any suggestions on where am going wrong.

_Thanks_  
_Lavanya_
