# Trigger custom powershell scripts using azure xplat-cli module

**URL:** <https://forum.ansible.com/t/trigger-custom-powershell-scripts-using-azure-xplat-cli-module/17618>\
**Category:** Ansible Project\
**Tags:** azure, windows\
**Created:** [February 25, 2015, 4:57am UTC](https://forum.ansible.com/t/trigger-custom-powershell-scripts-using-azure-xplat-cli-module/17618 "2015-02-25T04:57:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satheesh\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@satheesh\_kumar](https://forum.ansible.com/u/satheesh_kumar)\
**Post date:** [February 25, 2015, 4:57am UTC](https://forum.ansible.com/t/trigger-custom-powershell-scripts-using-azure-xplat-cli-module/17618/1 "2015-02-25T04:57:34Z")

</div>

I am using ansible hosted on linux to manage both Linux and windows VMs hosted on azure, and use azure xplat-cli commandline to create VMs. When i create windows server 2008, I need to trigger few startup scripts so that those are preconfigured while windows server is up. I was able to install CustomScript extension using below command

# azure vm extension set

I have uploaded my scripts to azure blob storage account, and i need to trigger scripts using the extension, and i don’t find any proper documentation (documentation was only for powershell). Can you please help

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [February 25, 2015, 10:36am UTC](https://forum.ansible.com/t/trigger-custom-powershell-scripts-using-azure-xplat-cli-module/17618/2 "2015-02-25T10:36:23Z")

</div>

Hi satheesh,  
Your question is outside Ansible, so I think you’ll have better luck at either the Azure forums or Serverfaul ([http://azure.microsoft.com/en-us/support/forums/](http://azure.microsoft.com/en-us/support/forums/))

-Trond

---

<div class="post-metadata">

**Author:** ![satheesh\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@satheesh\_kumar](https://forum.ansible.com/u/satheesh_kumar)\
**Post date:** [February 25, 2015, 9:57pm UTC](https://forum.ansible.com/t/trigger-custom-powershell-scripts-using-azure-xplat-cli-module/17618/3 "2015-02-25T21:57:11Z")

</div>

Thanks for pointing out! I have updated in correct forums now
