error when create a ApplicationInsightsManagementClient instance
See original GitHub issue- Package Name: @azure/arm-appinsights ; @azure/arm-botservice
- Package Version: newest in npm
- Operating system: window
- nodejs
- version:
- browser
- name/version:
- typescript
- version:
- Is the bug related to documentation in
- README.md
- source code documentation
- SDK API docs on https://docs.microsoft.com
Describe the bug I can not new a ApplicationInsightsManagementClient instance(come from @azure/arm-appinsights) and AzureBotService instance (come from @azure/arm-botservice) if I only have a accessToken.
I create a TokenCredentials instance with accessToken, which is implement the ServiceClientCredentials, and try to use this as the parameter to create ApplicationInsightsManagementClient and AzureBotService, but failed. I guess it’s because the version of @azure/ms-rest-js package which is dependency in @azure/arm-appinsights and @azure/arm-botservice is out of dated.
Could anyone can update the dependency package version of @azure/arm-appinsights and @azure/arm-botservice? Or could you tell me how to create those two types of instances just by accessToken?
To Reproduce Steps to reproduce the behavior:
- const token = new TokenCredentials(accessToken);
- new ApplicationInsightsManagementClient(token ````); // error parameter.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:15 (9 by maintainers)
Top GitHub Comments
@luhan2017 @VanyLaw @changlong-liu, sorry for the delay the release request has been filed.
Closing this issue as both the
@azure/arm-appinsights
and@azure/arm-botservice
have been updated appropriately