Skip to main content

Get-Office365IPURL

SYNOPSIS

SYNTAX

Get-Office365IPURL [[-Services] <String[]>] [-OnlyRequired] [[-Types] <String[]>] [[-OutputFormat] <String>]
[[-Office365IPURL] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Retreive a list of ip and urls required for communication to and from Office 365.

EXAMPLES

EXAMPLE 1

Get-Office365IPURL -Services Exchange,Skype -OnlyRequired -Types IP4,URL -Outputformat JSON

PARAMETERS

-Services

Defines which services to retreive IP and URLs for. Valid values are Skype,Exchange,Sharepoint. Note that Teams is included in the Skype ruleset and OneDrive is included in the Sharepoint ruleset.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: @('Skype', 'Exchange', 'Sharepoint')
Accept pipeline input: False
Accept wildcard characters: False

-OnlyRequired

Defines that only rules that are required are returned. This will exclude optional optimize rules.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Types

Defines what type of rules to return. Valid values are URL,IP4,IP6

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: @('URL', 'IP4', 'IP6')
Accept pipeline input: False
Accept wildcard characters: False

-OutputFormat

Defines the output format, defaults to an array of objects. Valid values are Object and JSON as of now. If a specific format is needed for a firewall please raise a issue with the instructions for the format and it is possible to create preset for it.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: Object
Accept pipeline input: False
Accept wildcard characters: False

-Office365IPURL

Defines the URL to the Office 365 IP URL Endpoint. Defaults to 'https://endpoints.office.com/endpoints/worldwide?clientrequestid=b10c5ed1-bad1-445f-b386-b919946339a7'. Provided as parameter to allow queries to other environments than worldwide as well as keep agility if Microsoft would change URL.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: Https://endpoints.office.com/endpoints/worldwide?clientrequestid=b10c5ed1-bad1-445f-b386-b919946339a7
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

EDIT THIS DOC

This page was auto-generated from the powershell command comment based help. To edit the content of this page, update the script file comment based help on github Github