Open kiruthigavasu opened 4 years ago
@kiruthigavasu
#Installation command
Install-Module AzSK.AzureDevOps -Scope CurrentUser -AllowClobber -Force
#Import command
Import-Module AzSK.AzureDevOps
Get-AzSKAzureDevOpsSecurityStatus -OrganizationName 'eviCoreDev' -ControlsToAttest NotAttested -ResourceTypeName Organization
In order to attest organization/project control - you need to be Project Collection Administrator and Project Admin respectively. Attestation for org/project controls is not allowed using PAT.
Also, whenever you want to attest organization/project control - ensure you are using your login credentials to authenticate. If PAT is already used in the session before attestation workflow begins, please attest the control in a new session.
@kiruthigavasu please use powershell 7 or pwsh core There is a bug with converting SecureString
Hello Team, When i try to run the command, Get-AzSKAzureDevOpsSecurityStatus to ControlAttest , i am unable to do so. I see the attached error. Steps to reproduce: Open a new PS-Core session. Install-Module AzSK.AzureDevOps -Scope CurrentUser -AllowClobber Get-AzSKAzureDevOpsSecurityStatus -OrganizationName 'eviCoreDev' -ControlsToAttest NotAttested -ResourceTypeName Organization
Error: As attached.
And i even tried using PAT
Get-AzSKAzureDevOpsSecurityStatus -OrganizationName 'eviCoreDev' -ControlsToAttest NotAttested -ResourceTypeName Organization -PATToken $Secure_PAT
and this didnt work either. I get the below error.
When i run the GET command, it pops up a browser window to let me login with the AzureDevops username and password. Then the PS session resumes execution, and then i see this error. Btw, I am the Project admin and Org admin.
BUt not sure what this means from your doc:
Permissions required for attesting controls: Attestation is currently supported only for organization and project controls with admin privileges on organization and project, respectively.
Can someone plz help me out. TY