# Installing Ubuntu 18.04 on Azure via ansible

**URL:** <https://forum.ansible.com/t/installing-ubuntu-18-04-on-azure-via-ansible/27699>\
**Category:** Ansible Project\
**Tags:** azure, ubuntu\
**Created:** [June 4, 2018, 11:23am UTC](https://forum.ansible.com/t/installing-ubuntu-18-04-on-azure-via-ansible/27699 "2018-06-04T11:23:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VS1](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@VS1](https://forum.ansible.com/u/VS1)\
**Post date:** [June 4, 2018, 11:23am UTC](https://forum.ansible.com/t/installing-ubuntu-18-04-on-azure-via-ansible/27699/1 "2018-06-04T11:23:13Z")

</div>

Hello guys i have the following lines:

offer: UbuntuServer  
publisher: Canonical  
sku: ‘18.04-LTS’  
version: latest

But i get the following error:

“tenant”: null,  
“virtual\_network\_name”: null,  
“virtual\_network\_resource\_group”: null,  
“vm\_size”: “Standard\_B1s”  
}  
},  
**“msg”: “Error fetching image Canonical UbuntuServer 18.04 LTS - Azure Error: NotFound\nMessage: Artifact: VMImage was not found.”**  
}

Do you know were i am mistaken ?

---

<div class="post-metadata">

**Author:** ![VS1](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@VS1](https://forum.ansible.com/u/VS1)\
**Post date:** [June 5, 2018, 1:11pm UTC](https://forum.ansible.com/t/installing-ubuntu-18-04-on-azure-via-ansible/27699/2 "2018-06-05T13:11:34Z")

</div>

Hello Guys, any help?

---

<div class="post-metadata">

**Author:** ![An\_Michel\_R](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@An\_Michel\_R](https://forum.ansible.com/u/An_Michel_R)\
**Post date:** [June 6, 2018, 12:00am UTC](https://forum.ansible.com/t/installing-ubuntu-18-04-on-azure-via-ansible/27699/3 "2018-06-06T00:00:11Z")

</div>

I would like to be able to chip in, but your question is not very clear. Could you post a complete playbook?

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [June 18, 2018, 1:58pm UTC](https://forum.ansible.com/t/installing-ubuntu-18-04-on-azure-via-ansible/27699/4 "2018-06-18T13:58:32Z")

</div>

I guess you need to set up a virtual network and some storage to associate with your vm first. There’s an example here in the documentation [https://docs.ansible.com/ansible/devel/scenario\_guides/guide\_azure.html#creating-individual-components](https://docs.ansible.com/ansible/devel/scenario_guides/guide_azure.html#creating-individual-components)

You likely need to get your tennant id, subscription id (azure credentials) set up and made available - have a read of [https://docs.ansible.com/ansible/devel/scenario\_guides/guide\_azure.html#providing-credentials-to-azure-modules](https://docs.ansible.com/ansible/devel/scenario_guides/guide_azure.html#providing-credentials-to-azure-modules)

Hope this helps,

Jon
