Get-AzureRmSecurityLocation
September 20, 2018 ยท View on GitHub
SYNOPSIS
Gets the location where Azure Security Center will automatically save data for the specific subscription
SYNTAX
SubscriptionScope (Default)
Get-AzureRmSecurityLocation [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
SubscriptionLevelResource
Get-AzureRmSecurityLocation -Name <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
ResourceId
Get-AzureRmSecurityLocation -ResourceId <String> [-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
DESCRIPTION
Azure Security Center will automatically decide on a location to save some of your data. Use this cmdlet to discover that location.
EXAMPLES
Example 1
PS C:\> Get-AzureRmSecurityLocation
Id Name
-- ----
/subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/locations/centralus centralus
Gets the location where Azure Security Center saves the calculated security data.
PARAMETERS
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
Resource name.
Type: String
Parameter Sets: SubscriptionLevelResource
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ResourceId
Resource ID.
Type: String
Parameter Sets: ResourceId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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 (http://go.microsoft.com/fwlink/?LinkID=113216).