azure-sdk-for-python
azure-sdk-for-python copied to clipboard
Not A Feature Request but Requesting Help with an Error When Calling Azure Python SDK
We are getting some errors when trying to pull data and are requesting some assistance.
We are trying to call azure.mgmt.security.operations.ConnectorsOperation.list but are getting this error.
The first image is related to pulling connectors from Microsoft Defender for Cloud (Azure Security Center) and we would expect it to not error out.
The second image is related to settings operations when calling: azure.mgmt.security.operations.settings_operations.. It looks as the the api_version is hard coded to 2019-01-01. Is there a difference in endpoints between commercial cloud and government clouds?
Can you please help us?
Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Security:0.10406777,Azure.Core:0.0580057,azure-spring:0.04761129'
Thanks for opening the issue @hacknorris! We will take a look and get back to you asap.
@BigCat20196 has already been assigned to dig deeper - but I will also tag the security team regarding your second question. It is definitely the case that some API versions can have varying support between the public and government clouds - and our SDKs should allow the API version to be overridden in these scenarios - so hopefully the Security team can clarify the supported API versions and then we can take a look at how this can be customized in the SDK.
Thank you for your feedback. This has been routed to the support team for assistance.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chlahav.
Issue Details
We are getting some errors when trying to pull data and are requesting some assistance.
We are trying to call azure.mgmt.security.operations.ConnectorsOperation.list but are getting this error.
The first image is related to pulling connectors from Microsoft Defender for Cloud (Azure Security Center) and we would expect it to not error out.
The second image is related to settings operations when calling: azure.mgmt.security.operations.settings_operations.. It looks as the the api_version is hard coded to 2019-01-01. Is there a difference in endpoints between commercial cloud and government clouds?
Can you please help us?
| Author: | hacknorris |
|---|---|
| Assignees: | BigCat20196 |
| Labels: |
|
| Milestone: | - |
Removing CXP attention label, This is being looked upon by the SDK and Service team.
@chlahav Could you please look into this ask when you get a chance ? Awaiting your reply.
Hi @hacknorris, sorry for late reply.
For Q1, it may be caused by the low version of msrest. Please try to update it to the latest version.
For Q2, Different types of cloud support are different. It mainly depends on whether the version of API is deployed on the cloud. This is not controllable by the SDK. the supported API versions in the cloud have been given in the error message.
sorry @BigCat20196 - missed your reply on this. Can you clarify on the update of msrest for Q1. For Q2, does someone on the Microsoft product team have to update the API for GCC High?
Hi, For Q1, please try to update msrest to 0.6.21. For Q2, you could open issue in https://github.com/Azure/azure-rest-api-specs/issues and then service team shall pick up it
Hi @hacknorris. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.
Hi @hacknorris, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.