简体   繁体   English

配置 Azure 应用代理使用图 API

[英]Config Azure application proxy using the graph API

I'm trying to automate the Application Proxy configuration.我正在尝试自动化应用程序代理配置。 I can create applications, and service principals and configure permission.我可以创建应用程序和服务主体并配置权限。 But I can't find a way to configure the app proxy.但是我找不到配置应用程序代理的方法。 I found this page https://learn.microsoft.com/en-us/graph/application-proxy-configure-api?tabs=http but it uses the beta version.我发现此页面https://learn.microsoft.com/en-us/graph/application-proxy-configure-api?tabs=http但它使用的是测试版。

Are there any endpoints in the Graph API in the release version that I can use to configure app proxy or when is MS going to release the beta version?发布版本中的图表 API 中是否有任何端点可用于配置应用程序代理或 MS 何时发布测试版?

As I can see the Azure portal uses the https://main.iam.ad.ext.azure.com/api API to configure the app proxy.如我所见,Azure 门户使用https://main.iam.ad.ext.azure.com/api API 来配置应用程序代理。 Can I use this API in my automated process?我可以在我的自动化流程中使用这个 API 吗? If so, how can I obtain a token for this API?如果是这样,我如何获得这个 API 的令牌?

I found that I can obtain a token using az account get-access-token --subscription $subscription --resource 74658136-14ec-4630-ad9b-26e160ff0fc6 but it doesn't work for me because I have to use oauth authorization-code-flow .我发现我可以使用az account get-access-token --subscription $subscription --resource 74658136-14ec-4630-ad9b-26e160ff0fc6但它对我不起作用,因为我必须使用oauth 授权码-流 Is there any chance to use this https://main.iam.ad.ext.azure.com/api API?有机会使用这个https://main.iam.ad.ext.azure.com/api API 吗?

I found following endpoint as well but still I'm not going to pass the client username and password through my APP.我也找到了以下端点,但我仍然不会通过我的应用程序传递客户端用户名和密码。 POST https://login.microsoftonline.com/{{tenatId}}/oauth2/token

resource:74658136-14ec-4630-ad9b-26e160ff0fc6
grant_type:password
username:{{username}}
password:{{password}}

Postman Request Postman 请求

Connected question 相关问题

As mentioned in the document as the Application Proxy configuration is only supported in Beta version, you could a feature for the same for this feature to be available in the V1 release as well.正如文档中提到的,因为应用程序代理配置仅在 Beta 版本中受支持,您可以在 V1 版本中也提供此功能的相同功能。

Raise a feature request here: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform在此处提出功能请求: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform

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

相关问题 未经授权的应用程序能够获得Azure中用户的访问权限图API - Unauthorised application able to get the access of users in Azure Graph API Azure 使用图形将组和设备分配给脚本 API - Azure assign group and device to script using Graph API 使用 azure 逻辑应用从共享邮箱发送 email 使用 Microsoft Graph API - Send email using Microsoft Graph API from shared mailbox using azure logic app MemberOf in Graph Me api azure AD - MemberOf in Graph Me api azure AD Azure Api 连接应用管理 - Azure Api management for connecting to application Blazor WASM 使用 Azure AD B2C 无法调用 Microsoft.Graph api - Blazor WASM using Azure AD B2C fails calling Microsoft.Graph api 使用 ssh 配置从 azure devops 克隆 - Cloning from azure devops using ssh config 使用 Azure App Config -> 想要允许本地配置覆盖开发人员 - Using Azure App Config -> Want to allow local config to override for devs 使用 Rest API 从 JavaScript 应用程序上传附件到 Azure DevOps 服务器 - Uploading an attachment to Azure DevOps Server using Rest API from a JavaScript application 在 .NET Web API 应用中集成 Azure Key Vault 使用 Secret URL - Integrate Azure Key Vault in .NET Web API application using Secret URL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM