Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.38k stars 2.72k forks source link

outdated #20939

Closed gfranxman closed 2 years ago

gfranxman commented 2 years ago

It looks like the example no longer works because the DataFactoryManagementClient libraries have changed over to use the azure.identity package.

Rather than

import from azure.common.credentials import ServicePrincipalCredentials
...
credentials = ServicePrincipalCredentials(client_id=APPLICATION_CLIENT_ID, secret=CLIENT_SECRET, tenant=TENANT_ID)

try

from azure.identity import ClientSecretCredential
...
credentials = ClientSecretCredential(tenant_id=TENANT_ID, client_id=APPLICATION_CLIENT_ID, client_secret=CLIENT_SECRET )

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shawnxzq, @lmy269, @Jingshu923.

Issue Details
It looks like the example no longer works because the DataFactoryManagementClient libraries have changed over to use the azure.identity package. Rather than ``` import from azure.common.credentials import ServicePrincipalCredentials ... credentials = ServicePrincipalCredentials(client_id=APPLICATION_CLIENT_ID, secret=CLIENT_SECRET, tenant=TENANT_ID) ``` try ``` from azure.identity import ClientSecretCredential ... credentials = ClientSecretCredential(tenant_id=TENANT_ID, client_id=APPLICATION_CLIENT_ID, client_secret=CLIENT_SECRET ) ``` --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: e5dd478f-5bb1-3b90-27f3-d1b04db40e3f * Version Independent ID: 60658b32-abc1-3787-ec6d-24ef3bfade4c * Content: [Azure Data Factory libraries for Python](https://docs.microsoft.com/en-us/python/api/overview/azure/datafactory?view=azure-python) * Content Source: [docs-ref-services/latest/datafactory.md](https://github.com/MicrosoftDocs/azure-docs-sdk-python/blob/master/docs-ref-services/latest/datafactory.md) * Service: **multiple** * Product: **azure** * Technology: **azure** * GitHub Login: @rloutlaw * Microsoft Alias: **routlaw**
Author: gfranxman
Assignees: -
Labels: `bug`, `Docs`, `Data Factory`, `Service Attention`, `Client`, `customer-reported`
Milestone: -
xiangyan99 commented 2 years ago

Thanks for the feedback, we’ll investigate asap.

shawnxzq commented 2 years ago

@gfranxman which document do you follow and see the issues? Thanks!

shawnxzq commented 2 years ago

@gfranxman Could you please share the doc link you are refer to? Thanks a lot!

ghost commented 2 years ago

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!