title: ansible playbook error was: ModuleNotFoundError: No module named 'azure.mgmt.monitor.version' although the module is installed
body: <p>After upgrading ansible to version 2.10.5 and python3.8.10 my playbook.yml fails with this error.</p>
  <pre><code>ModuleNotFoundError: No module named 'azure.mgmt.monitor.version'
  fatal: [localhost]: FAILED! =&gt; {&quot;attempts&quot;: 1, &quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to import the required Python library (ansible[azure] (azure &gt;= 2.0.0)) on certrenewplay's Python /usr/bin/python3`
  </code></pre>
  <p>The module is there if I run <code>python3 -c  &quot;import azure.mgmt.monitor&quot;</code> and if I run <code>pip3 list</code> I see it installed as <code>azure-mgmt-monitor==2.0.0</code></p>
  <p>The exact part of the playbook code that is erroring is this:</p>
  <pre class="lang-yaml prettyprint-override"><code> - name: Create _acme-challenge record for zone &quot;{{ env_name_dot }}&quot;
     azure_rm_dnsrecordset:
      subscription_id: &quot;{{ mgmt_subscription }}&quot;
      client_id: &quot;{{ mgmt_vault_azure_client_id }}&quot;
      tenant: &quot;{{ mgmt_vault_azure_tenant_id }}&quot;
      secret: &quot;{{ mgmt_vault_azure_client_secret }}&quot;
      resource_group: &quot;{{ mgmt_rg }}&quot;
      relative_name: &quot;_acme-challenge.{{ env_name }}&quot;
      zone_name: &quot;{{ dns_zone_name }}.{{ dns_zone_domain }}&quot;
      record_type: TXT
      state: present
      records:
        - entry: &quot;{{ cn_challenge_data }}&quot;
      time_to_live: 60
    when: dns_zone_name != 'activedrop'
    register: add_record
    retries: 1
    delay: 10
  
    until: add_record is succeeded
  </code></pre>
  <p>I'm not sure what I'm doing wrong-can anyone advise please or help me on this please?
  Thanks</p>