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

Alias request: Microsoft.Network/networkInterfaces/Primary #230

klawrie opened this Issue Oct 22, 2018 · 1 comment


None yet
2 participants
Copy link

klawrie commented Oct 22, 2018

We need to be able to audit virtual machines that have secondary network interfaces attached. To do this through PowerShell, the following command achieves this and returns the virtual machine Id.

Get-AzureRmNetworkInterface | where {$_.Primary -eq $false} | select {$_.VirtualMachine.Id}

"if": {
"allOf": [
"field": "type",
"equals": "Microsoft.Network/networkInterfaces"
"field": "Microsoft.Network/networkInterfaces/Primary",
"equals": "False"
"then": {
"effect": "audit"


This comment has been minimized.

Copy link

mentat9 commented Feb 14, 2019

This alias is now deployed. Please give it a try.

@mentat9 mentat9 closed this Feb 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.