Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
The error you're encountering, ModuleNotFoundError: No module named 'azure.profiles', suggests that the azure.profiles module is not installed or not available in your Azure runbook environment. This can happen if the required Azure SDK packages are not properly installed or if there is a version compatibility issue.
In your case, you are using azure-mgmt-compute version 34.0.0, which may depend on other Azure packages that are not included in your list. It's important to ensure that all required dependencies are installed and compatible with each other.
To resolve this issue, you can try the following steps:
- Check Dependencies: Ensure that all necessary Azure SDK packages are installed. You may need to install additional packages that provide the azure.profiles module.
- Update Packages: Consider updating your Azure packages to the latest versions. This can help resolve compatibility issues. You can do this by navigating to your Automation account, selecting Modules, and then choosing Update Azure modules.
- Verify Package Installation: Azure-core, azure-identity, and other related packages are installed correctly. You can check their availability in your Azure Automation account.
- Consult Documentation: Refer to the Azure documentation for any specific requirements regarding the versions of the Azure SDK packages you are using.
If you have any cocerns, please go through this link: -
If you have any further queries, do let us know
---------------------------------------------------------------------------------------------------- If the answer is helpful, please click "Accept Answer" and "Upvote it"