随笔分类 -  【Azure Developer】

Azure 环境中使用 .Net/.Net Core/ Java/ Python/ PHP/ NodeJS /语言开发中的一些代码记录
摘要:问题描述 iOS Objective-C 应用,连接Azure Storage Account, 根据官网Example代码,在没有关闭Storage Account的匿名访问时,程序正常运行。 但是,只要关闭了匿名访问,上传blob到Container中,就会报错:Public access is 阅读全文
posted @ 2024-07-05 21:47 路边两盏灯 阅读(65) 评论(0) 推荐(0)
摘要:问题描述 在AKS中连接Redis,当遇到Azure Redis 升级或者Failover时,NodeJS应用中使用ioredis sdk 在很长一段时间内无法恢复和 Azure Redis服务端的连接,对于这种想象的可能性推断。 问题解答 使用 Azure Cache for Redis 时,一个 阅读全文
posted @ 2024-07-02 20:27 路边两盏灯 阅读(64) 评论(0) 推荐(0)
摘要:Access to XMLHttpRequest at 'file:///C:/Users/.../failedrequests.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome-untrusted, https, edge. reportdata/failedrequests.json:1 Failed to load resource: net::ERR_FAILED 阅读全文
posted @ 2024-06-27 20:51 路边两盏灯 阅读(153) 评论(0) 推荐(0)
摘要:To connect to a sovereign cloud, set the microsoft-sovereign-cloud.environment setting. This is new as of v0.8.0 and is a result of our migration to the built-in Microsoft authentication extension which replaces the Azure Account extension. Learn more in the release notes. 阅读全文
posted @ 2024-06-18 21:12 路边两盏灯 阅读(424) 评论(0) 推荐(0)
摘要:问题描述 如果在使用.NET代码对AAD JWT Token进行验证时候,如果遇见无法访问 Unable to obtain configuration from: 'https://login.partner.microsoftonline.cn/<common or your tenant id 阅读全文
posted @ 2024-06-14 21:02 路边两盏灯 阅读(36) 评论(0) 推荐(0)
摘要:问题描述 使用Azure Identity,根据指定的客户端凭据获取Access Token中,先后遇见了 “ValueError: "get_token" requires at least one scope” “ClientSecretCredential.get_token failed: 阅读全文
posted @ 2024-06-03 19:33 路边两盏灯 阅读(105) 评论(0) 推荐(0)
摘要:问题描述 使用.NET 8开发应用,部署到Azure App Service后,需要直接访问一些静态图片/视频文件,但是直接通过相对路径获取文件时,遇见404错误........ 问题解答 在网上搜索“.NET应用读取静态文件”关键字,找到了问题原因。在IIS部署应用时代(.NET Core之前), 阅读全文
posted @ 2024-05-29 20:31 路边两盏灯 阅读(172) 评论(0) 推荐(0)
摘要:问题描述 介绍一段Python脚本,可以在微软云中国区使用。 用于计算Azure Storage Account中Container中Blob类型文件的数量和大小,脚本中允许按照容器,层(热/冷/归档),前缀,软删除/非软删除来计算数量和容量大小, 默认使用的时间为以Blob的最后修改时间作为参考。 阅读全文
posted @ 2024-05-20 19:21 路边两盏灯 阅读(160) 评论(0) 推荐(0)
摘要:问题描述 对于Azure资源进行配置操作,门户上可以正常操作。但是想通过Python代码实现,这样可以批量处理。那么在没有SDK的情况下,是否有快速办法呢? 问题解答 当然可以,Azure Portal上操作的所有资源都是通过REST API来实现的,所以只要找到正确的API,就可以通过浏览器中抓取 阅读全文
posted @ 2024-05-15 20:33 路边两盏灯 阅读(150) 评论(0) 推荐(1)
摘要:问题描述 使用Service Bus SDK编写消费端应用时,遇见了错误信息: SDK版本 <dependency> <groupId>com.azure</groupId> <artifactId>azure-messaging-eventhubs</artifactId> <version>5. 阅读全文
posted @ 2024-04-25 20:51 路边两盏灯 阅读(42) 评论(0) 推荐(0)
摘要:问题描述 看见一个有趣的页面,可以把输入的文字信息,直接输出SVG图片,还可以实现动图模式。 示例URL: https://readme-typing-svg.demolab.com/?font=Fira+Code&pause=1000&color=F7F7F7&background=233911F 阅读全文
posted @ 2024-04-16 20:39 路边两盏灯 阅读(229) 评论(0) 推荐(3)
摘要:= "#" & Number.ToText(Number.Round(Number.RandomBetween(1000001,9999999),0),"X") 阅读全文
posted @ 2024-04-11 21:07 路边两盏灯 阅读(60) 评论(0) 推荐(0)
摘要:RedisConnectionException: Unable to init enough connections amount! only 6 of 24 were initialized. Redis server: xxxxxxxxx.redis.cache.chinacloudapi.cn/52.xxx.xxx.xxx:6380 ========= RedisConnectionException: Unable to connect to Redis server: xxxxxxxxx.redis.cache.chinacloudapi.cn/52.xxx.xxx.xxx:6380 阅读全文
posted @ 2024-03-13 20:31 路边两盏灯 阅读(339) 评论(0) 推荐(0)
摘要:准备阶段 1)准备Microsoft Entra ID的注册应用(Service Principal),如没有,需要注册它:Register an application - Microsoft Azure 由世纪互联运营 如取名“GetKeyVaultSecretVault01”,具体操作步骤,请 阅读全文
posted @ 2024-03-05 22:25 路边两盏灯 阅读(161) 评论(0) 推荐(0)
摘要:问题描述 Azure Compute Gallery 可以帮助围绕 Azure 资源(例如映像和应用程序)生成结构和组织,并且支持全局复制。 如果想通过Python代码实现 Image-Version从一个Azure Compute Gallery复制到另一个中,如何实现呢? 问题解答 示例Pyth 阅读全文
posted @ 2024-01-23 20:26 路边两盏灯 阅读(43) 评论(0) 推荐(1)
摘要:问题描述 App Serive上的应用配置了系统标识(System Identity),通过系统标识获取到访问Key Vault资源的Access Token。但这次确遇见了无法获取到正常的Access Token。 验证问题 1:查看App Service的门户中是否启用了系统标识 2:进入App 阅读全文
posted @ 2023-12-18 21:15 路边两盏灯 阅读(48) 评论(0) 推荐(0)
摘要:问题描述: 需要在Alteryx中使用Azure Key Vault, Alteryx 能将数据发布到 Tableau,需要输入账号和密码,使用Azure Key Vault来替换这个输入账号和密码的过程,是否可以在alteryx中实现呢? 问题解答 在Azure KeyVault的资料中,没有找到 阅读全文
posted @ 2023-12-13 21:30 路边两盏灯 阅读(45) 评论(0) 推荐(0)
摘要:问题描述 如何在中国区获取用户 StrongAuthenticationUserDetails 和 StrongAuthenticationMethods 信息 ? StrongAuthenticationUserDetails :包含有关用户 MFA 设置的信息,例如他们首选的身份验证方法、电话号 阅读全文
posted @ 2023-12-06 21:59 路边两盏灯 阅读(111) 评论(0) 推荐(0)
摘要:问题描述 在使用Azure Key Vault的过程中,遇见无法获取机密信息,在不方便直接写代码的情况下,快速使用Azure CLI指令来验证当前使用的认证是否可以获取到正确的机密值。 使用CLI的指令为: 第一步:设置azure 的云环境参数,指定为中国区云服务 az cloud set --na 阅读全文
posted @ 2023-11-28 21:09 路边两盏灯 阅读(82) 评论(0) 推荐(0)
摘要:问题描述 在Function的Code+Test界面进行函数触发可以成功。因为Function为Blob Trigger,当在Blob容器下上传文件后,Function可以被正常触发但是报 outofmemory java heap space的错误 通过日志打印处JVM的内存信息,发现才778MB 阅读全文
posted @ 2023-11-22 21:32 路边两盏灯 阅读(50) 评论(0) 推荐(0)