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
To create a client object to access the Azure Power BI Embedded Management API, you will need the `endpoint` of your Azure Power BI Embedded Management resource and a `credential`. The Azure Power BI Embedded Management client can use Azure Active Directory credentials to authenticate.
47
47
You can find the endpoint for your Azure Power BI Embedded Management resource in the [Azure Portal][azure_portal].
48
48
49
-
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-powerbiembedded_2.0.0/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
49
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-powerbiembedded_2.0.1/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
50
50
51
51
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
52
52
@@ -57,13 +57,22 @@ npm install @azure/identity
57
57
You will also need to **register a new AAD application and grant access to Azure Power BI Embedded Management** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
58
58
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
59
59
60
-
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
60
+
For more information about how to create an Azure AD Application check out [this guide](/azure/active-directory/develop/howto-create-service-principal-portal).
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/@azure/arm-powerbiembedded_2.0.0/sdk/core/logger).
99
+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/@azure/arm-powerbiembedded_2.0.1/sdk/core/logger).
91
100
92
101
## Next steps
93
102
94
103
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
95
104
96
105
## Contributing
97
106
98
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-powerbiembedded_2.0.0/CONTRIBUTING.md) to learn more about how to build and test the code.
107
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-powerbiembedded_2.0.1/CONTRIBUTING.md) to learn more about how to build and test the code.
99
108
100
109
## Related projects
101
110
102
111
-[Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
0 commit comments