Add a Host Group to a Firewall policy
-Id
: The Firewall Policy ID
-Group
: The Host Group ID
PS> Add-CsFirewallGroup -Id <string> -Group <string>
Disable Firewall policies
-Id
: An array of one or more Firewall policy IDs
PS> Disable-CsFirewallPolicy -Id @(<string>, <string>)
Update Firewall Policies by specifying the ID of the policy and details to update
-Resources
: An array of Firewall policy properties
PS> Edit-CsFirewallPolicy -Resources @(@{ id = <string>; name = <string>; description = <string> })
Enable Firewall policies
-Id
: An array of one or more Firewall policy IDs
PS> Enable-CsFirewallPolicy -Id @(<string>, <string>)
Search for members of a Firewall policy in your environment
-Id
: The ID of the Firewall policy to search for members of
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 5000]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsFirewallMemberId -Id <string>
Search for details about members of a Firewall policy in your environment
-Id
: The ID of the Firewall policy to search for members of
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 5000]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsFirewallMemberInfo -Id <string>
Search for Firewall policies in your environment
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 500]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsFirewallPolicyId
Search for info about Firewall policies
-Id
: The IDs of specific Firewall policies to return
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 500]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsFirewallPolicyInfo
Create Firewall policies by specifying details about the policy to create
-Resources
: An array of Firewall policy properties
PS> New-CsFirewallPolicy -Resources @(@{ name = <string>; platform_name = <string> })
Remove a Host Group from a Firewall policy
-Id
: The Firewall policy ID
-Group
: The Host Group ID
PS> Remove-CsFirewallGroup -Id <string> -Group <string>
Delete a set of Firewall policies by specifying their IDs
-Id
: The IDs of the Firewall policies to delete
PS> Remove-CsFirewallPolicy -Id @(<string>, <string>)
Sets the precedence of Firewall policies based on the order of IDs specified in the request
-Id
: An array of one or more Firewall policy IDs
-Platform
: Target operating system [default: 'Windows']
PS> Set-CsFirewallPrecedence -Id @(<string>, <string>)