Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_network_security_group documentation #243

Closed
Sum123it opened this issue May 17, 2020 · 2 comments
Closed

azurerm_network_security_group documentation #243

Sum123it opened this issue May 17, 2020 · 2 comments

Comments

@Sum123it
Copy link

Can you please give more elaborate documentation for azure network security resources?

E.g:
for aws security groups we have detailed description for functions:

'describe aws_security_group(group_name: my_group) do
it { should allow_in(ipv4_range: ["10.1.2.0/24", "10.3.2.0/24"], protocol: 'all') }
end
describe aws_security_group(group_name: linux_servers) do
it { should allow_in(port: 22, ipv4_range: '10.5.0.0/16') }
it { should_not allow_in(port: 22, ipv4_range: '0.0.0.0/0') }
end
'
There is no inbound/outbound examples or port related check examples given for azure.
Can you please include more elaborate examples for azure inspec resources?
Or any guidance where do I find it? if any exists?

@Sum123it
Copy link
Author

Sum123it commented Jun 7, 2020

@gsreynolds -
Can we go a step ahead with these features in azure as well like we have in aws with ipv4 range for azurerm_network_security_group?

describe aws_security_group(group_name: linux_servers) do
  it { should allow_in(port: 22, ipv4_range: '10.5.0.0/16') }
  it { should_not allow_in(port: 22, ipv4_range: '0.0.0.0/0') }
end

also below features:

inbound_rules
outbound_rules

@omerdemirok
Copy link
Contributor

Please, see here for how to use helper methods of azure_network_security_group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants