Get-AzDependencyMapDiscoverySource
Get a DiscoverySourceResource
Syntax
List (Default)
Get-AzDependencyMapDiscoverySource
-MapName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzDependencyMapDiscoverySource
-MapName <String>
-ResourceGroupName <String>
-SourceName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentityMap
Get-AzDependencyMapDiscoverySource
-SourceName <String>
-MapInputObject <IDependencyMapIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzDependencyMapDiscoverySource
-InputObject <IDependencyMapIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Get a DiscoverySourceResource
Examples
Example 1: List all discovery sources under a dependency map.
Get-AzDependencyMapDiscoverySource -ResourceGroupName dmTestGroup -MapName testMap
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/dmTestGroup/providers/Microsoft.DependencyMap/maps/testMap/discoverySources/dmSource
Location : eastus
Name : dmSource
Property : {
"provisioningState": "Succeeded",
"sourceType": "OffAzure",
"sourceId": "testSourceId"
}
ResourceGroupName : dmTestGroup
SystemDataCreatedAt : 6/9/2025 6:20:14 AM
SystemDataCreatedBy : test@abc.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 6/9/2025 6:20:14 AM
SystemDataLastModifiedBy : test@abc.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : microsoft.dependencymap/maps/discoverysources
This command lists all discovery sources under a dependency map.
Example 2: Get a discovery source with name.
Get-AzDependencyMapDiscoverySource -ResourceGroupName dmTestGroup -MapName testMap -SourceName dmSource
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/dmTestGroup/providers/Microsoft.DependencyMap/maps/testMap/discoverySources/dmSource
Location : eastus
Name : dmSource
Property : {
"provisioningState": "Succeeded",
"sourceType": "OffAzure",
"sourceId": "testSourceId"
}
ResourceGroupName : dmTestGroup
SystemDataCreatedAt : 6/9/2025 6:20:14 AM
SystemDataCreatedBy : test@abc.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 6/9/2025 6:20:14 AM
SystemDataLastModifiedBy : test@abc.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : microsoft.dependencymap/maps/discoverysources
This command gets a discovery source with name.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentityMap
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-MapName
Maps resource name
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
The name is case insensitive.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SourceName
discovery source resource
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetViaIdentityMap
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs