Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement -VSTeamEnvironment #488

Open
mnieto opened this issue Sep 11, 2022 · 1 comment
Open

Implement -VSTeamEnvironment #488

mnieto opened this issue Sep 11, 2022 · 1 comment
Labels
enhancement Improvements that do not include new features feature request for new feature requests that do not just improve things

Comments

@mnieto
Copy link
Contributor

mnieto commented Sep 11, 2022

Proposal

I wanted to create Add, Get, Remove, Update -VSTeamEnvironment cmdlets
API documentation

I have a preview working version of Get-VSTeamEnvironment with this syntax

Get-VSTeamEnvironment [-Id] -ProjectName

Discussion

When I went to the types folder to add the Environment type, I found that already exists a type definition in vsteam_lib.Environment.ps1xml that corresponds with the Release environment type

  • Should I refactor and name current Environment as ReleaseEnvironment.
  • Or maybe I could name the new type TaskEnvironment, or AgentsEnvironment (because the area where the API endpoint is located
  • Other suggestion...?

Solved Problem

Environments are an important piece in the deploy jobs in the yaml pipelines
Implementing this cmdlets opens the opportunity to implement also getting the list of deployments into an specific environment

Additional info / code snippets?

No response

@mnieto mnieto added the feature request for new feature requests that do not just improve things label Sep 11, 2022
@SebastianSchuetze SebastianSchuetze added the enhancement Improvements that do not include new features label Sep 17, 2022
@jikuja
Copy link

jikuja commented Nov 23, 2022

I suggest also adding support for role assignments(for environment security) to circumvent some problems(1) Azure devops has:
*https://dev.azure.com/{organization}/_apis/securityroles/scopes/distributedtask.globalenvironmentreferencerole/roleassignments/resources/{something}

(1) https://developercommunity.visualstudio.com/t/Environments-Permissions-changing-not-po/872257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements that do not include new features feature request for new feature requests that do not just improve things
Projects
None yet
Development

No branches or pull requests

3 participants