随笔分类 - 【Azure Developer】
Azure 环境中使用 .Net/.Net Core/ Java/ Python/ PHP/ NodeJS /语言开发中的一些代码记录
摘要:问题描述 本地使用Python 编写的Function App,发布到Azure Function后,出现 _cffi_backend module 无法找到的报错。 ERROR: Error: No module named '_cffi_backend', Cannot find module.
阅读全文
摘要:const logsQueryClient = new LogsQueryClient(credential , {
endpoint: "https://api.loganalytics.azure.cn/v1"
,audience: "https://api.loganalytics.azure.cn",
});
阅读全文
摘要:System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
阅读全文
摘要:问题描述 com.azure:azure-identity jar包版本从1.2.0 升级到1.12.2 版本之后报错,错误信息如下: An attempt was made to call a method that does not exist. The attempt was made fro
阅读全文
摘要:问题描述 当根据Cloud Service (Extended Support) 文档更新证书 ( https://docs.azure.cn/zh-cn/cloud-services-extended-support/certificates-and-key-vault )时,如果遇见旧的证书(如
阅读全文
摘要:问题描述 在Azure Entra ID中,需要导出一个Application 下的用户信息, 包含User的创建时间。 问题解答 可以使用PowerShell 脚本来实现, 只需要执行如下脚本: Connect-AzureAD -AzureEnvironmentName AzureChinaClo
阅读全文
摘要:问题描述 需要通过Python SDK获取Azure服务的一些通知信息,如:K8S版本需要更新到指定的版本,Azure服务的维护通知,服务处于不健康状态时的通知,及相关的操作建议等内容。 问题解答 Azure Resource Health 是 Azure 提供的一项服务,旨在帮助用户了解其资源的健
阅读全文
摘要:AI Code 时代早已开启,自己才行动。上手一试,让人惊叹。借助这感叹的情绪,把今天操作Cursor的步骤记录下来,也分享给大家。 推荐大家上手一试,让你改变! 准备阶段 下载 Cursor(https://www.cursor.com/),点击右上角“Download”下载exe安装文件。 安装
阅读全文
摘要:问题描述 是否可以在Azure上,一次性把当前账号所有能查看的资源都导出来呢?包含资源名称,类型,定价层SKU信息呢? 问题解答 是的,通过Azure Resource Graph Explorer服务可以实现。 Azure Resource Graph Explorer 是一个强大的工具,旨在提供
阅读全文
摘要:问题描述 使用Logic App服务,创建Event Hub触发的Workflow。 根据以下信息配置Event Hub连接器的Active Directory OAuth认证方式: Authentication Type 选择“Active Directory OAuth” Fully Quali
阅读全文
摘要:Azure 容器实例(Azure Container Instances,简称 ACI)是一个无服务器容器解决方案,允许用户在 Azure 云环境中运行 Docker 容器,而无需设置虚拟机、集群或编排器。ACI 适用于任何可以在隔离容器中操作的场景,包括事件驱动的应用程序、从容器开发管道快速部署、数据处理和生成作业。
阅读全文
摘要:问题描述 在查看.NET代码的时候,发现一个静态方法,第一个参数使用 this 关键字,它在这里是什么作用呢? public static XElement AquireElement(this XContainer container, string name, bool addFirst = f
阅读全文
摘要:介绍一个简单的工具,用于将Redis数据从一个redis端点复制到另一个redis端点,基于原始存储库转换为.NET 8:https://github.com/LuBu0505/redis-copy-net8
阅读全文
摘要:REST API: write EPROTO 8936192:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:..\..\third_party\boringssl\src\ssl\tls_record.cc:231. Python: urllib3.exceptions.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1000)
阅读全文
摘要:问题描述 iOS Objective-C 应用,连接Azure Storage Account, 根据官网Example代码,在没有关闭Storage Account的匿名访问时,程序正常运行。 但是,只要关闭了匿名访问,上传blob到Container中,就会报错:Public access is
阅读全文
摘要:问题描述 在AKS中连接Redis,当遇到Azure Redis 升级或者Failover时,NodeJS应用中使用ioredis sdk 在很长一段时间内无法恢复和 Azure Redis服务端的连接,对于这种想象的可能性推断。 问题解答 使用 Azure Cache for Redis 时,一个
阅读全文
摘要: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
阅读全文
摘要: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.
阅读全文
摘要:问题描述 如果在使用.NET代码对AAD JWT Token进行验证时候,如果遇见无法访问 Unable to obtain configuration from: 'https://login.partner.microsoftonline.cn/<common or your tenant id
阅读全文
摘要:问题描述 使用Azure Identity,根据指定的客户端凭据获取Access Token中,先后遇见了 “ValueError: "get_token" requires at least one scope” “ClientSecretCredential.get_token failed:
阅读全文