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
Returns the access token for the PowerBI REST API using the client ID and a PSCredential object.
45
+
46
+
### EXAMPLE 3
47
+
```
48
+
# Using an Azure AD WebApp
49
+
```
50
+
51
+
$Credential = Get-Credential
52
+
Get-PBIAuthToken -ClientId "C0E8435C-614D-49BF-A758-3EF858F8901B" -tenantId "company.onmicrosoft.com" -clientSecret "\<Azure AD APP Secret\>"
50
53
51
54
## PARAMETERS
52
55
53
-
### -Credential
56
+
### -credential
54
57
Specifies a PSCredential object or a string username used to authenticate to PowerBI.
55
58
If only a username is specified
56
59
this will prompt for the password.
57
60
Note that this will not work with federated users.
58
61
59
62
```yaml
60
63
Type: Object
61
-
Parameter Sets: credential
64
+
Parameter Sets: (All)
62
65
Aliases:
63
66
64
-
Required: True
65
-
Position: Named
67
+
Required: False
68
+
Position: 1
66
69
Default value: None
67
70
Accept pipeline input: False
68
71
Accept wildcard characters: False
69
72
```
70
73
71
-
### -ForceAskCredentials
74
+
### -forceAskCredentials
72
75
Forces the authentication popup to always ask for the username and password
73
76
74
77
```yaml
75
78
Type: SwitchParameter
76
-
Parameter Sets: default
79
+
Parameter Sets: (All)
77
80
Aliases:
78
81
79
82
Required: False
@@ -88,11 +91,11 @@ The Client Id of the Azure AD application
88
91
89
92
```yaml
90
93
Type: String
91
-
Parameter Sets: default
94
+
Parameter Sets: (All)
92
95
Aliases:
93
96
94
97
Required: False
95
-
Position: Named
98
+
Position: 2
96
99
Default value: None
97
100
Accept pipeline input: False
98
101
Accept wildcard characters: False
@@ -103,16 +106,61 @@ The redirect URI associated with the native client application
103
106
104
107
```yaml
105
108
Type: String
106
-
Parameter Sets: default
109
+
Parameter Sets: (All)
107
110
Aliases:
108
111
109
112
Required: False
110
-
Position: Named
113
+
Position: 3
114
+
Default value: None
115
+
Accept pipeline input: False
116
+
Accept wildcard characters: False
117
+
```
118
+
119
+
### -tenantId
120
+
The Azure AD Tenant Id, optional and only needed if you are using the App Authentication Flow
121
+
122
+
```yaml
123
+
Type: String
124
+
Parameter Sets: (All)
125
+
Aliases:
126
+
127
+
Required: False
128
+
Position: 4
129
+
Default value: None
130
+
Accept pipeline input: False
131
+
Accept wildcard characters: False
132
+
```
133
+
134
+
### -clientSecret
135
+
The Azure AD client secret, optional and only needed it the ClientId is a Azure AD WebApp type
136
+
137
+
```yaml
138
+
Type: String
139
+
Parameter Sets: (All)
140
+
Aliases:
141
+
142
+
Required: False
143
+
Position: 5
111
144
Default value: None
112
145
Accept pipeline input: False
113
146
Accept wildcard characters: False
114
147
```
115
148
149
+
### -returnADALObj
150
+
{{Fill returnADALObj Description}}
151
+
152
+
```yaml
153
+
Type: SwitchParameter
154
+
Parameter Sets: (All)
155
+
Aliases:
156
+
157
+
Required: False
158
+
Position: Named
159
+
Default value: False
160
+
Accept pipeline input: False
161
+
Accept wildcard characters: False
162
+
```
163
+
116
164
### CommonParameters
117
165
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
118
166
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Gets the authentication token required to comunicate with the PowerBI API's
21
+
22
+
## EXAMPLES
23
+
24
+
### Example 1
25
+
```powershell
26
+
PS C:\> {{ Add example code here }}
27
+
```
28
+
29
+
{{ Add example description here }}
30
+
31
+
## PARAMETERS
32
+
33
+
### -tenantId
34
+
{{Fill tenantId Description}}
35
+
36
+
```yaml
37
+
Type: String
38
+
Parameter Sets: (All)
39
+
Aliases:
40
+
41
+
Required: True
42
+
Position: 1
43
+
Default value: None
44
+
Accept pipeline input: False
45
+
Accept wildcard characters: False
46
+
```
47
+
48
+
### -clientId
49
+
{{Fill clientId Description}}
50
+
51
+
```yaml
52
+
Type: String
53
+
Parameter Sets: (All)
54
+
Aliases:
55
+
56
+
Required: True
57
+
Position: 2
58
+
Default value: None
59
+
Accept pipeline input: False
60
+
Accept wildcard characters: False
61
+
```
62
+
63
+
### -clientSecret
64
+
{{Fill clientSecret Description}}
65
+
66
+
```yaml
67
+
Type: String
68
+
Parameter Sets: (All)
69
+
Aliases:
70
+
71
+
Required: False
72
+
Position: 3
73
+
Default value: None
74
+
Accept pipeline input: False
75
+
Accept wildcard characters: False
76
+
```
77
+
78
+
### CommonParameters
79
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
80
+
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
132
147
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
79
110
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments