Get-AzSecurityConnectorGitHubRepo

Returns a monitored GitHub repository.

Syntax

Get-AzSecurityConnectorGitHubRepo
   -OwnerName <String>
   -ResourceGroupName <String>
   -SecurityConnectorName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzSecurityConnectorGitHubRepo
   -OwnerName <String>
   -RepoName <String>
   -ResourceGroupName <String>
   -SecurityConnectorName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzSecurityConnectorGitHubRepo
   -InputObject <ISecurityIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Returns a monitored GitHub repository.

Examples

Example 1: Get discovered GitHub repository by name

Get-AzSecurityConnectorGitHubRepo -ResourceGroupName dfdtest-sdk -SecurityConnectorName dfdsdktests-gh-01 -OwnerName dfdsdktests -RepoName TestApp0

Id                              : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/resourceGroups/dfdtest-sdk/providers/Microsoft.Security/securityConnectors/dfdsdktests-gh-01/devops/default/gitHubOwners/dfdsdktests/repos/TestApp0
Name                            : TestApp0
OnboardingState                 : Onboarded
ParentOwnerName                 : dfdsdktests
ProvisioningState               : 
ProvisioningStatusMessage       : 
ProvisioningStatusUpdateTimeUtc : 2/23/2024 8:46:23 PM
RepoFullName                    : 
RepoId                          : 728418798
RepoName                        : TestApp0
RepoUrl                         : https://github.com/dfdsdktests/TestApp0
ResourceGroupName               : dfdtest-sdk
SystemDataCreatedAt             : 
SystemDataCreatedBy             : 
SystemDataCreatedByType         : 
SystemDataLastModifiedAt        : 
SystemDataLastModifiedBy        : 
SystemDataLastModifiedByType    : 
Type                            : Microsoft.Security/securityConnectors/devops/gitHubOwners/repos

Example 2: List discovered GitHub repositories

Get-AzSecurityConnectorGitHubRepo -ResourceGroupName dfdtest-sdk -SecurityConnectorName dfdsdktests-gh-01 -OwnerName dfdsdktests

Name      ResourceGroupName
----      -----------------
TestApp0  dfdtest-sdk
TestApp1  dfdtest-sdk

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter

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

-OwnerName

The GitHub owner name.

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

-RepoName

The repository name.

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

-ResourceGroupName

The name of the resource group. The name is case insensitive.

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

-SecurityConnectorName

The security connector name.

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

-SubscriptionId

Azure subscription ID

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ISecurityIdentity

Outputs

IGitHubRepository