随笔分类 -  【Azure API 管理】

Azure 中使用APIM的各种疑难杂症
摘要:如果没有关联的网络安全组,则阻止所有网络流量通过子网和网络接口。 阅读全文
posted @ 2025-01-21 20:25 路边两盏灯 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Invalid parameter: This Migration API option is not supported or is temporarily disabled due to internal issues. Please visit https://aka.ms/apim-migrate-stv2 to see other migration options. 阅读全文
posted @ 2025-01-17 20:11 路边两盏灯 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Collect data from this resource for analytics Data collection is required for detailed monitoring, custom dashboards, and more. A Log Analytics workspace is also required for the data storage. You can change the workspace destination at any time in Diagnostic settings. How do I use Log Analytics? 阅读全文
posted @ 2024-09-19 19:31 路边两盏灯 阅读(29) 评论(0) 推荐(0) 编辑
摘要:[Reason - The key used is expired.,Thumbprint of key used by client: '3D****************', Found key 'Start=04/28/2024 11:10:00, End=07/28/2024 11:10:00',Please visit the Azure Portal, Graph Explorer or directly use MS Graph to see configured keys for app Id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.Review the documentation at https://docs.microsoft.com/en-us/graph/deployments to determine the corresponding service endpoint 阅读全文
posted @ 2024-07-29 20:49 路边两盏灯 阅读(42) 评论(0) 推荐(0) 编辑
摘要:"code": "InvalidParameters", "message": "Invalid parameter: This request is not authorized to perform this operation.\r\nParameter name: backupContainerName (value: [backupcontainer])", 阅读全文
posted @ 2024-07-26 19:52 路边两盏灯 阅读(30) 评论(0) 推荐(0) 编辑
摘要:问题描述 Azure APIM服务日志中发现 java.lang.RuntimeException 错误,在进一步通过Application Insights采集的错误信息日志,发现真实的请求错误为:‘The remote name could not be resolved 'xxxx.xxx.x 阅读全文
posted @ 2024-05-21 18:04 路边两盏灯 阅读(40) 评论(0) 推荐(0) 编辑
摘要:问题描述 在为APIM服务配置了诊断日志(Diagnostic Setting),把日志收集在Log A Workspace中,需要验证日志中是否能查看到请求的错误信息。 所以想人为的来制造一些错误。经过网络搜索,参考Policy的文档介绍后,完成了以下3种错误 第一种:使用 return-resp 阅读全文
posted @ 2024-04-17 20:32 路边两盏灯 阅读(99) 评论(0) 推荐(1) 编辑
摘要:logs.applicationinsights.endpoint: “https://dc.applicationinsights.azure.cn/v2/track“ 阅读全文
posted @ 2024-03-19 20:32 路边两盏灯 阅读(26) 评论(0) 推荐(1) 编辑
摘要:问题描述 在Azure门户中,误删除API Management资源后,怎么办? 问题解答 遇见误删除的第一反应就是: 想恢复删除的内容,但是从门户上查看没有发现有可以操作的方面。 (错误,Azure APIM门户已经支持“一键恢复”功能:Recover deleted API Management 阅读全文
posted @ 2024-02-29 18:31 路边两盏灯 阅读(95) 评论(0) 推荐(1) 编辑
摘要:【Azure APIM】APIM 策略语句如何来设置多个Cookie值让浏览器保存HTTP Cookie(也叫 Web Cookie 或浏览器 Cookie)是服务器发送到用户浏览器并保存在本地的一小块数据。浏览器会存储 cookie 并在下次向同一服务器再发起请求时携带并发送到服务器上。服务器收到 HTTP 请求后,服务器可以在响应标头里面添加一个或多个 Set-Cookie 选项。浏览器收到响应后通常会保存下 Cookie,并将其放在 HTTP Cookie 标头内,向同一服务器发出请求时一起发送。 阅读全文
posted @ 2024-01-04 20:35 路边两盏灯 阅读(118) 评论(0) 推荐(1) 编辑
摘要:问题描述 需要在APIM策略中对请求所携带的Cookie中的token值进行JWT验证,如果获取Cookie中的值并且作为变量保存,然后在JWT 验证中使用呢? 问题解答 第一步:获取Cookie中的Token值 使用C#语句 @(context.Request.Headers.GetValueOr 阅读全文
posted @ 2024-01-03 22:25 路边两盏灯 阅读(41) 评论(0) 推荐(0) 编辑
摘要:问题描述 在APIM中配置JWT策略,验证JWT,如果认证失败,则跳转到 Azure Entra ID 的 Login 页面。 问题解答 要实现JWT验证失败后,跳转到 Azure Entra ID 的 Login 页面。需要使用到两种策略: validate-jwt :https://learn. 阅读全文
posted @ 2024-01-02 21:00 路边两盏灯 阅读(47) 评论(0) 推荐(0) 编辑
摘要:问题描述 在APIM Gateway 日志中, 对于发送到APIM Host的请求,只记录了一些常规的URL, Status, Time, IP等信息。关于请求Header, Body中的信息,因为隐私保护的原因,默认没有记录。 [Info] 2023-11-16T06:19:28.482 [Gat 阅读全文
posted @ 2023-11-14 19:39 路边两盏灯 阅读(44) 评论(0) 推荐(0) 编辑
摘要:APIM Self-hosted gateway : { "statusCode": 404, "message": "Resource not found" } 阅读全文
posted @ 2023-10-16 19:54 路边两盏灯 阅读(54) 评论(0) 推荐(0) 编辑
摘要:问题描述 在使用APIM提供API服务管理的场景中,遇见了客户端请求时候发送的请求Header中的Content-Type不满足后台服务器的要求,但是在客户端要求客户修改代码难度较高。 所以面对这样的情况,是否在APIM端修改为对请求的Content-Type进行覆写呢? 问题解答 可以的。 API 阅读全文
posted @ 2023-09-07 20:26 路边两盏灯 阅读(23) 评论(0) 推荐(0) 编辑
摘要:问题描述 APIM self-host(自建网关)部署在K8S中,如何在本地上传及更换证书呢? 问题解答 如果使用Self-host网关,则不支持使用上传到 APIM的 CA 根证书验证服务器和客户端证书。 若要建立信任,请配置特定的客户端证书,使其被网关作为一个自定义的证书颁发机构所信任,使用网关 阅读全文
posted @ 2023-07-27 20:22 路边两盏灯 阅读(43) 评论(0) 推荐(0) 编辑
摘要:问题描述 在Azure的同一数据中心,API Management访问启用了防火墙的Storage Account,并且把APIM的公网IP地址设置在白名单。但访问依旧是403 原因是: 存储帐户部署在同一区域中的服务使用专用的 Azure IP 地址进行通信。 因此,不能基于特定的 Azure 服 阅读全文
posted @ 2023-07-17 20:19 路边两盏灯 阅读(119) 评论(0) 推荐(1) 编辑
摘要:问题描述 使用Azure API Management, 想对一些固定的IP地址进行访问次数的限制,如被限制的IP地址一分钟可以访问10次,而不被限制的IP地址则可以无限访问? ChatGPT 解答 最近ChatGPT爆火,所以也把这个问题让ChatGPT来解答,然后人工验证它的回答正确与否? 根据 阅读全文
posted @ 2023-04-24 20:16 路边两盏灯 阅读(267) 评论(0) 推荐(1) 编辑
摘要:问题描述 使用微软API管理服务(Azure API Management),简称APIM。 因为公司策略要求只能内部网络访问,所以启用了VNET集成。集成方式见: (在内部模式下使用 Azure API 管理连接到虚拟网络:https://docs.azure.cn/zh-cn/api-manag 阅读全文
posted @ 2022-11-11 21:35 路边两盏灯 阅读(365) 评论(0) 推荐(1) 编辑
摘要:问题描述 每一年到期更新域名证书,APIM会中断服务,请问如何不中断服务? 问题解答 Azure API 管理允许在受信任的根证书和中间证书存储中的计算机上安装 CA 证书,分配证书的过程可能需要 15 分钟或更久,这取决于部署规模。 开发人员 SKU 在此过程中有停机时间。 基本 SKU 和更高级 阅读全文
posted @ 2022-10-19 19:57 路边两盏灯 阅读(68) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示