web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Azure Resource Manager...
Power Automate
Unanswered

Azure Resource Manager - Create or update a Template Deployment

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

We're trying to create a Flow that runs from PowerApps (by pressing a button) and calls for a Json script that deploys a resource in Azure (in our test case a VM and NIC resource). In Flow we use the "Azure Resource Manager - Create or update a Template Deployment" trigger for that.

 

If we define the Servername, IP address etc directly in the json file (all code copied directly into the "Template" field) and run the PowerApp, the VM etc is created in the defined resource group as expected.

 

Now we want to make it possible to use input from the PowerApp as a json variable. For instance: We create a TextInput object in the PowerApp to be able to define the ServerName for the VM.

 

Now the question is: how can we link that input from the text field to the json script/template? I assume we need to reference it somewhere in the json template, but we don't know the syntax I guess. When we use "PowerAppsbutton.Run(textinput.text)" as "OnSelect" value for the button, this is not excepted (we see a "!" next to the button in the App). How can we reference to it in the json template?

 

Any help is appreciated.

 

Regards,

Wim van der Heijden

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    Hi @wimvdh,

     

    The "Azure Resource Manager - Create or update a Template Deployment" is a well defined API interface, which the specified field can't be re-defined. So I don't think using the parameter inside the json is possible through this Action.

    You may consider to build your own custom API, following the guide below:

    Create a custom API using Azure Resource Manager in Microsoft Flow

    You may need to define the API used in your scenario with a swagger.

    Note: 

    The sample Swagger does not define the full set of ARM operations and currently only contains the List all subscriptions operation. You can edit this Swagger or create another Swagger file using the online Swagger editor.

    This process can be used to access any RESTful API authenticated using AAD.

     

    Regards

  • wimvdh Profile Picture
    2 on at

    Hi,

     

    thanks for the answer. I'll have a look at the custom API option.

     

    Regards,

    Wim

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard