SUSE Support

Here When You Need Us

Azure Resource Manager Python SDK not found or not accessible

This document (000021104) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise High Availability Extensions 15 All ServicePacks in Azure evironment.

Situation

If fence agent fence_azure_arm is failing and running the fence command manually with command similar as :

Service Principal type :
fence_azure_arm -vvv --action=status --username="username-for-ServicePrincipal" --password="*whatever*is*the*correct*password*" --resourceGroup="demoGroup" --tenantId="valid-tenantId" --subscriptionId="valid-subscriptionId" -n demo01
Managed Identity type:
fence_azure_arm -vvv --action=status --msi --resourceGroup="demoGroup" --subscriptionId="valid-subscriptionId" -n demo01

And the operation fails with following type error:

ERROR: Azure Resource Manager Python SDK not found or not accessible
 

Resolution

If python3-azure* software stack is not installed :

zypper in -y -f python3-azure-mgmt-compute
zypper in -y -f python3-azure-identity


If /usr/lib/python3.6/site-packages/azure/profiles directory is missing:

zypper in -y -f python3-azure-common 

If /usr/lib/python3.6/site-packages/azure/mgmt/core directory is missing:
zypper in -y -f python3-azure-mgmt-core

If /usr/lib/python3.6/site-packages/azure/core directory is missing:
zypper in -y -f python3-azure-core


 

Cause

Chances are that either python3-azure-* packages are not installed or one of the following 3 directories is missing :
/usr/lib/python3.6/site-packages/azure/profiles
/usr/lib/python3.6/site-packages/azure/mgmt/core
/usr/lib/python3.6/site-packages/azure/core

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021104
  • Creation Date: 18-Jun-2023
  • Modified Date:31-Jul-2023
    • SUSE Linux Enterprise High Availability Extension
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.