Get-AzSecurityConnectorAzureDevOpsProject
傳回受監視的 Azure DevOps 項目資源。
語法
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
傳回受監視的 Azure DevOps 項目資源。
範例
範例 1:依組織和項目名稱探索 AzureDevOps 專案
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
範例 2:列出探索到的 AzureDevOps 專案
Get-AzSecurityConnectorAzureDevOpsProject -ResourceGroupName dfdtest-sdk -SecurityConnectorName dfdsdktests-azdo-01 -OrgName dfdsdktests
Name ResourceGroupName
---- -----------------
ContosoSDKDfd dfdtest-sdk
ContosoEnterprise dfdtest-sdk
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity 參數
類型: | ISecurityIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-OrgName
Azure DevOps 組織名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ProjectName
專案名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SecurityConnectorName
安全性連接器名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
Azure 訂用帳戶標識碼
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |