简体   繁体   English

如何使用逻辑应用修改 Azure 分析服务角色?

[英]How Modifying Azure Analysis services roles using a logic app?

With Azure Data Factory I have built a pipeline to orchestrate the processing of my Azure Analysis Services model trough a dedicated Logic App as explicated in this article , and it works properly.使用 Azure 数据工厂,我构建了一个管道,通过本文所述的专用逻辑应用程序来协调我的 Azure 分析服务模型的处理,并且它可以正常工作。

Now, always using Azure Data Factory (through Logic App), I wish I could also update the list of the user in a specific roles.现在,总是使用 Azure 数据工厂(通过 Logic App),我希望我也可以更新特定角色中的用户列表。

In the article mentioned above, to process the Azure Analysis Services models, the Logic App calls a specific API that has the following format:在上面提到的文章中,为了处理 Azure 分析服务模型,逻辑应用调用具有以下格式的特定 API:

https:// <rollout>.asazure.windows.net/servers/<serverName>/models/<resource>/refreshes

but this API doesn't seem to work for update the model's roles.但是这个 API 似乎不适用于更新模型的角色。

Is there anyone who knows the correct method to be able to update model roles using a specific Logic App?有没有人知道能够使用特定逻辑应用程序更新模型角色的正确方法?

Thanks for any suggestions感谢您的任何建议

One alternative approach might be to have fixed AD groups as members of the tabular model roles and add / remove members from those AD groups.一种替代方法可能是将固定 AD 组作为表格模型角色的成员,并从这些 AD 组中添加/删除成员。 Therefore the tabular model roles would not need to be refreshed, it would simply be a matter of adding or removing members from the AD groups as part of your governance process.因此,不需要刷新表格模型角色,只需在管理流程中添加或删除 AD 组中的成员即可。

A second approach would be to use dynamic row-level security.第二种方法是使用动态行级安全性。 Adding records to a Azure SQL DB table is perfectly possible with Logic Apps and could be used to drive security, depending on your requirements.使用 Logic Apps 将记录添加到 Azure SQL DB 表是完全可能的,并且可用于提高安全性,具体取决于您的要求。 You can then refresh your security dimension with the Logic App.然后,您可以使用逻辑应用刷新您的安全维度。 See here for more details:请参阅此处了解更多详情:

https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-row-level-security-onprem-ssas-tabular https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-row-level-security-onprem-ssas-tabular

To answer your question however, the Azure Analysis Services REST API is useful but is not that fully featured, ie it does not contain all possible operations for tabular models or the service.然而,要回答您的问题,Azure 分析服务 REST API 很有用,但功能并不完整,即它不包含表格模型或服务的所有可能操作。 One other missing example I found was backups, ie although it is possible to trigger a pause or resume of the service, it is not possible to trigger a backup of a tabular model via the REST API.我发现的另一个缺失的例子是备份,即虽然可以触发服务的暂停或恢复,但不可能通过 REST API 触发表格模型的备份。 I do not believe it is possible to alter role members or at least, the operation is not listed in the REST API, although happy to be corrected if I am wrong.我不相信有可能改变角色成员,或者至少,REST API 中没有列出该操作,尽管如果我错了,很高兴得到纠正。 To be more specific, Roles is not mentioned in the list of available objects which can be passed in to the Objects array using the POST / Refreshes eg here .更具体地说,可用对象列表中没有提到Roles ,这些对象可以使用POST / Refreshes传递给 Objects 数组,例如这里 table and partition are the only ones I'm aware of. tablepartition是我唯一知道的。

There are also no examples on the MS github site: MS github站点上也没有示例:

https://github.com/microsoft/Analysis-Services https://github.com/microsoft/Analysis-Services

Finally, consider calling TMSL via Powershell in an Azure Function, which you can call from Azure Data Factory.最后,考虑通过 Azure 函数中的 Powershell 调用 TMSL,您可以从 Azure 数据工厂调用该函数。

HTH HTH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 逻辑应用暂停和启动 Azure Analysis Services - Logic app to pause and start Azure Analysis Services 逻辑应用是 Azure 中应用服务的一部分吗? - Is Logic App part of App services in Azure? 如何使用 Azure 数据工厂将来自 Azure 分析服务的数据存储到 Azure Datalake 中? - How to store data from Azure Analysis services into Azure Datalake using Azure Data Factory? 如何将 azure api 连接链接到 azure 逻辑应用程序使用 Z2F2D399F0EA3844859BFE54734 - How to link azure api connections to an azure logic app using powershell 为什么 Azure 逻辑应用 HTTP 模块会修改响应负载? - Why is the Azure Logic app HTTP module modifying the response payload? 仅允许天蓝色服务调用天蓝色逻辑应用程序? - Allow only azure services to call azure logic app? Azure 逻辑应用:如何在不使用 ISE(集成服务环境)的情况下扩展 azure 逻辑应用 - Azure Logic App : how to scale azure logic app without using ISE (Integrated Service Environment) 如何使用 Azure 管道将 Ruby 部署到 Azure 应用服务? - How to Deploy Ruby using Azure Pipelines to Azure App Services? 将 Consul 与 Azure 应用服务结合使用 - Using Consul with Azure App Services Azure MSI使用应用服务 - Azure MSI using app services
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM