You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added billing cmdlet
* added getting all orgs and user profile cmdlet
* added tests for vsteambillingtoken
* added documentation for cmdlets
* added unit tests
corrected minor bugs
* making included parameters help to working on linux
* corrected syntax
* fixed unit test
* Apply suggestions from code review
Changed some minor docs mistakes, style and typos
* fixed url in test
* fixing docs file
* fixed unit tests and compressed json output
* added version 7.2.0 to changelog
* - renamed files to only cover pipeline billing
- fixed bugs
- removed Switch for bearer token in _callAPI again
* I changed Get-VSTeamAccounts to not use URL.
It now uses the parts to build the path.
* Formatting and typos corrected.
* - added new cmdlet for getting account billing
- simplified pipeline billing
- added a parameter to be able to call urls without account
- added unit tests and sample data
* updated documentation
* updated documentation
* updated changelog
* falsy merged duplicate line
* fixing unit tests and cmdlet for biling jobs
* Synopsis & 1st line of description were the same
* Updated Set-VSTeamPipelineBilling docs
* Formatting changes
* Added a billing version
* Removed hardcoded version for billing calls
* Throws when billing is not supported
* Updating module version
* Windows build keeps failing
* Fixed spelling error.
* Forced dotnet restore.
* trying to force restore
* This might fix the build on windows!
Co-authored-by: Donovan Brown <dbrown@microsoft.com>
<!-- #include "./synopsis/Get-VSTeamAccountBilling.md" --> This includes what subscription the organization is connected. It also shows when the organization is not connected to a subscription.
14
+
15
+
## EXAMPLES
16
+
17
+
### Example 1: Set Microsoft hosted pipeline jobs
18
+
19
+
```powershell
20
+
Get-VSTeamAccountBilling
21
+
```
22
+
23
+
Gets the current organization billing setup.
24
+
25
+
## PARAMETERS
26
+
27
+
## INPUTS
28
+
29
+
## OUTPUTS
30
+
31
+
## NOTES
32
+
33
+
Beware that these operations are potentially producing costs. This is why you need to confirm or force the command.
Copy file name to clipboardExpand all lines: .docs/Set-VSTeamPipelineBilling.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
## DESCRIPTION
12
12
13
-
<!-- #include "./synopsis/Set-VSTeamPipelineBilling.md" -->This cmdlet covers what can be bought on the billing tab on organization level. At least owner or project collection administrator permissions are needed to trigger billing actions.
13
+
<!-- #include "./synopsis/Set-VSTeamPipelineBilling.md" -->A minimum of owner or project collection administrator permissions are required to trigger billing actions.
Sets the concurrent jobs on organization `$orgs[0].accountId`and subscription `ebd42dd8-e50e-4608-aa5d-cf0c28e9aeef`for hosted pipelines to 1. This means depending on what was configured before either the number has been reduced or new concurrent jobs have been bought.
26
-
The cmdlet needs the organization id and the connected subscription for the organization. To get the id you can use `Get-VSTeamAccounts` and `Get-VSTeamUserProfile` to get the required data.
25
+
Sets the concurrent jobs on organization `$orgs[0].accountId` for hosted pipelines to 1. Depending on the original value either the number has been reduced or new concurrent jobs have been purchased.
26
+
The organization id and the connected subscription for the organization are required. To get the id you can use `Get-VSTeamAccounts` and `Get-VSTeamUserProfile`.
Sets the concurrent jobs for private agents on organization `9de24e7c-2e01-496c-bde5-71f92195ae2c` and subscription `ebd42dd8-e50e-4608-aa5d-cf0c28e9aeef` for hosted pipelines to 1. This means depending on what was configured before either the number has ben reduced of new concurrent jobs have been bought.
34
+
Sets the concurrent jobs for private agents on organization `9de24e7c-2e01-496c-bde5-71f92195ae2c` for hosted pipelines to 1. Depending on the original value either the number has been reduced or new concurrent jobs have been purchased.
35
+
36
+
### Example 3: Set private hosted pipeline jobs with current organization
Sets the concurrent jobs for private agents on the current set organization for hosted pipelines to 1. Depending on the original value either the number has been reduced or new concurrent jobs have been purchased.
35
43
36
44
## PARAMETERS
37
45
38
46
### -Type
39
47
40
-
The type of billing that is supposed to be set.
48
+
The type of billing to be set.
41
49
42
50
```yaml
43
51
Type: string
@@ -47,16 +55,7 @@ Required: true
47
55
48
56
### -OrganizationId
49
57
50
-
The organization where the billing should be set.
51
-
52
-
```yaml
53
-
Type: string
54
-
Required: true
55
-
```
56
-
57
-
### -SubscriptionId
58
-
59
-
The subscription id which the organization is using.
58
+
The organization to be billed.
60
59
61
60
```yaml
62
61
Type: string
@@ -89,3 +88,5 @@ Beware that these operations are potentially producing costs. This is why you ne
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,15 @@
2
2
3
3
## 7.2.0
4
4
5
-
Merged [Pull Request](https://github.com/DarqueWarrior/vsteam/pull/371) from [Sebastian Schütze](https://github.com/SebastianSchuetze) which included the following:
5
+
Merged [Pull Request](https://github.com/DarqueWarrior/vsteam/pull/371)and (https://github.com/DarqueWarrior/vsteam/pull/389) from [Sebastian Schütze](https://github.com/SebastianSchuetze) which included the following:
6
6
7
7
- Added Set-VSTeamPipelineBilling to buy or release Microsoft-hosted and self-hosted agents
8
8
- Added Get-VSTeamAccounts to get the organizations where the user has access. Where the given user is either a member or an owner
9
9
- Added Get-VSTeamUserProfile that gets the users profile of an account.
10
+
- Added Get-VSTeamBillingAccount to get information whether the account is connected to a subscription or not.
10
11
- fixed filenames of files to work on linux (casing)
12
+
- added the possibility to call _callApi with a custom bearer token
13
+
- added the possibility to call _callApi without the account name in the url
0 commit comments