Dela via


Get-AzureADMSNamedLocationPolicy

Hämtar en Azure Active Directory-namngiven platsprincip.

Syntax

GetQuery (Standard)

Get-AzureADMSNamedLocationPolicy
    [<CommonParameters>]

GetById

Get-AzureADMSNamedLocationPolicy
    -PolicyId <String>
    [<CommonParameters>]

Description

Med den här cmdleten kan en administratör hämta azure Active Directory-principen med namnet location. Namngivna platser är anpassade regler som definierar nätverksplatser som sedan kan användas i en princip för villkorsstyrd åtkomst.

Exempel

Exempel 1: Hämtar en lista över alla namngivna platsprinciper i Azure AD.

PS C:\> Get-AzureADMSNamedLocationPolicy

          OdataType               : #microsoft.graph.ipNamedLocation
          Id                      : 06e4ff15-ca6b-4843-9c34-3fdd1ce8f739
          DisplayName             : IPv4 named location
          CreatedDateTime         : 2019-09-26T23:12:16.0792706Z
          ModifiedDateTime        : 2019-09-27T00:12:12.5986473Z
          IsTrusted               : false
          IpRanges                : {
                                      class IpRange {
                                        CidrAddress: 6.5.4.3/32
                                      }
                                    }

Det här kommandot hämtar en lista över alla namngivna platsprinciper i Azure AD.

Exempel 2: Hämtar en namngiven platsprincip i Azure AD med angivet ID.

PS C:\> Get-AzureADMSNamedLocationPolicy -PolicyId 6b5e999b-0ba8-4186-a106-e0296c1c4358

          OdataType                           : #microsoft.graph.countryNamedLocation
          Id                                  : 6b5e999b-0ba8-4186-a106-e0296c1c4358
          DisplayName                         : Country named location
          CreatedDateTime                     : 2019-09-26T23:12:16.0792706Z
          ModifiedDateTime                    : 2019-09-27T00:12:12.5986473Z
          CountriesAndRegions                 : [
                                                  "US",
                                                  "CA"
                                                ]
          IncludeUnknownCountriesAndRegions   : false

Det här kommandot hämtar en namngiven platsprincip i Azure AD.

Parametrar

-PolicyId

Anger ID för en namngiven platsprincip i Azure Active Directory.

Parameteregenskaper

Typ:String
Standardvärde:None
Stöder jokertecken:False
DontShow:False

Parameteruppsättningar

GetById
Position:Named
Obligatorisk:True
Värde från pipeline:True
Värde från pipeline efter egenskapsnamn:True
Värde från återstående argument:False

CommonParameters

Den här cmdleten stöder vanliga parametrar: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.

Kommentarer

Se migreringsguiden för för Get-AzureADMSNamedLocationPolicy till Microsoft Graph PowerShell.