Get-AzSecurityConnectorAzureDevOpsProject
Returns a monitored Azure DevOps project resource.
Syntax
Get-AzSecurityConnectorAzureDevOpsProject
-OrgName <String>
-ResourceGroupName <String>
-SecurityConnectorName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzSecurityConnectorAzureDevOpsProject
-OrgName <String>
-ProjectName <String>
-ResourceGroupName <String>
-SecurityConnectorName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzSecurityConnectorAzureDevOpsProject
-InputObject <ISecurityIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Returns a monitored Azure DevOps project resource.
Examples
Example 1: Get discovered AzureDevOps project by organization and project name
Get-AzSecurityConnectorAzureDevOpsProject -ResourceGroupName dfdtest-sdk -SecurityConnectorName dfdsdktests-azdo-01 -OrgName dfdsdktests -ProjectName ContosoSDKDfd
ActionableRemediation : {
"state": "Enabled",
"categoryConfigurations": [
{
"minimumSeverityLevel": "High",
"category": "IaC"
}
],
"branchConfiguration": {
"branchNames": [ ],
"annotateDefaultBranch": "Enabled"
},
"inheritFromParentState": "Disabled"
}
Id : /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/resourceGroups/dfdtest-sdk/providers/Microsoft.Security/securityConnectors/dfdsdktests-azdo-01/devops/default/azureDevOpsOrgs/dfdsdktests/projects/Co
ntosoSDKDfd
Name : ContosoSDKDfd
OnboardingState : Onboarded
ParentOrgName : dfdsdktests
ProjectId : 161fb6f6-f2fe-4616-a627-293b788ff583
ProvisioningState : Succeeded
ProvisioningStatusMessage : OK
ProvisioningStatusUpdateTimeUtc : 2/23/2024 6:52:43 PM
ResourceGroupName : dfdtest-sdk
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Type : Microsoft.Security/securityConnectors/devops/azureDevOpsOrgs/projects
Example 2: List discovered AzureDevOps projects
Get-AzSecurityConnectorAzureDevOpsProject -ResourceGroupName dfdtest-sdk -SecurityConnectorName dfdsdktests-azdo-01 -OrgName dfdsdktests
Name ResourceGroupName
---- -----------------
ContosoSDKDfd dfdtest-sdk
ContosoEnterprise 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 |
-OrgName
The Azure DevOps organization name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProjectName
The project 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
Outputs
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure PowerShell