cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AzureLearner
Frequent Visitor

Arm template trigger from Power app

Hi

I am trying to trigger aem template from Powerapp using AzureResourceManager Connector by using command -

AzureResourceManager.DeploymentsCreateOrUpdate(subscriptionid, resourcegroupname ,deploymentname,{wait:boolean,proprties:record})

I would like to know -
1)Can I create a new resource group , add tag and rbac assignment using arm template with above command?
2)What is deploymentname
3)Whar will be the proprties:record ?Could you provide more details on record.

 

Second part I want to ask is about "Create or update a template deployment"
ref. from ' https://docs.microsoft.com/en-us/connectors/arm/#create-or-update-a-template-deployment'

It has Template URI and Parameters URI mandatory but I can't see any such command with ARM connector on powerapp.
5) Can we use this as well?
6) Can I pass URI of github to deploy template?

 

Regards,
Keen Learner

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @AzureLearner ,

 

According to the documentation below:

https://www.carlosag.net/PowerApps/Connectors/Azure-Resource-Manager#_Toc6F1EEB3DDeployments_CreateO...

You use below formula to create or update a named resource group template deployment. A template and parameters are expected for the request to succeed.

AzureResourceManager.Deployments_CreateOrUpdate (string subscriptionId, string resourceGroupName, string deploymentName, Deployment parameters, [internal]string x-ms-api-version, [Optional]boolean wait)

 

Deploymentname is the name of the deployment. And you use below formula to get it:

AzureResourceManager.Deployments_List (string subscriptionId, string resourceGroupName, [advanced][Optional]string $filter, [advanced][Optional]integer $top, [internal]string x-ms-api-version)

 

Then use below formula to create or update a subscription resource tag value:

AzureResourceManager.Tags_CreateOrUpdateValue (string subscriptionId, string tagName, string tagValue, [internal]string x-ms-api-version)

Regards,

Mona

 

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @AzureLearner ,

 

According to the documentation below:

https://www.carlosag.net/PowerApps/Connectors/Azure-Resource-Manager#_Toc6F1EEB3DDeployments_CreateO...

You use below formula to create or update a named resource group template deployment. A template and parameters are expected for the request to succeed.

AzureResourceManager.Deployments_CreateOrUpdate (string subscriptionId, string resourceGroupName, string deploymentName, Deployment parameters, [internal]string x-ms-api-version, [Optional]boolean wait)

 

Deploymentname is the name of the deployment. And you use below formula to get it:

AzureResourceManager.Deployments_List (string subscriptionId, string resourceGroupName, [advanced][Optional]string $filter, [advanced][Optional]integer $top, [internal]string x-ms-api-version)

 

Then use below formula to create or update a subscription resource tag value:

AzureResourceManager.Tags_CreateOrUpdateValue (string subscriptionId, string tagName, string tagValue, [internal]string x-ms-api-version)

Regards,

Mona

 

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Mona,

 Currently I am using Powerapp free trial and I am not able to find AzureResourceManager.Deployments_CreateOrUpdate.

 

Please find the attached screenshot below, I am getting error has "Invocation of unknown or unsupported function".

shruthi_suvarna_0-1572420048151.png

 

Please let me know how to proceed with this or is there any other command to pass the arm deployment.

 

Thanks!

 

Regards,

Shruthi

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,150)