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

Closed
klawrie opened this Issue Oct 22, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@klawrie
Copy link

klawrie commented Oct 22, 2018

Scenario
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}

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

@mentat9

This comment has been minimized.

Copy link
Member

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.