05 2024 档案
摘要:问题描述 使用.NET 8开发应用,部署到Azure App Service后,需要直接访问一些静态图片/视频文件,但是直接通过相对路径获取文件时,遇见404错误........ 问题解答 在网上搜索“.NET应用读取静态文件”关键字,找到了问题原因。在IIS部署应用时代(.NET Core之前),
阅读全文
摘要:在使用App Service服务部署业务应用,因为有些第三方的接口需要调用者携带TLS/SSL证书(X509 Certificate),在官方文档中介绍了两种方式在代码中使用证书:
1) 直接使用证书文件路径加载证书 new X509Certificate2
2) 从系统的证书库中通过指纹加载证书 certStore.Certificates.Find
本文中,将分别通过代码来验证以上两种方式.
阅读全文
摘要:Message:Encountered error trying to discover new reference data snapshot.
Error: The job hasencountered error from Reference Data storage. Error encountered while storingreference data snapshot into the storage account.
阅读全文
摘要:The policy definition 'xxxxxxx' rule is invalid. The resource type 'storageAccounts/blobServices/containers' referenced by the 'field' property 'Microsoft.Storage/storageAccounts/blobServices/containers/publicAccess' of the policy rule doesn't exist under provider 'Microsoft.Storage'.
阅读全文
摘要:问题描述 Azure APIM服务日志中发现 java.lang.RuntimeException 错误,在进一步通过Application Insights采集的错误信息日志,发现真实的请求错误为:‘The remote name could not be resolved 'xxxx.xxx.x
阅读全文
摘要:问题描述 介绍一段Python脚本,可以在微软云中国区使用。 用于计算Azure Storage Account中Container中Blob类型文件的数量和大小,脚本中允许按照容器,层(热/冷/归档),前缀,软删除/非软删除来计算数量和容量大小, 默认使用的时间为以Blob的最后修改时间作为参考。
阅读全文
摘要:问题描述 对于Azure资源进行配置操作,门户上可以正常操作。但是想通过Python代码实现,这样可以批量处理。那么在没有SDK的情况下,是否有快速办法呢? 问题解答 当然可以,Azure Portal上操作的所有资源都是通过REST API来实现的,所以只要找到正确的API,就可以通过浏览器中抓取
阅读全文
摘要:问题描述 把应用部署到Azure Container Apps(容器应用),可以在Container App Environemnt级别设置诊断日志,把日志收集到Event Hub / Log Analystic Workspace / Storage Account中。 虽然,这样能把日志导出到目
阅读全文
摘要:> git push azure master
error: src refspec master does not match any
error: failed to push some refs to 'https://xxxxxxxxx.scm.chinacloudsites.cn:443/xxxxxxxxx.git'
阅读全文
摘要:问题描述 作为Azure资源管理人员,对每一种资源操作时,都需要考虑权限设置。否则,会遇见类似如下错误: The client '***************' with object id '********-****-****-****-************' does not have
阅读全文
摘要:问题描述 测试标准版本的Logic App应用,消费Service Bus中的消息。当Service Bus中堆积了大量消息的情况下,Workflow依旧只在一个实例上运行。 而Logic App的自动缩放设置的最大为20个,为什么没有自动缩放呢? 问题解答 因为这个Standard Logic A
阅读全文
摘要:问题描述 在Azure Function中,部署了定时触发器函数(Timer Trigger),却无法按时触发。 问题解答 登录Function的Kudu站点,查看 logfiles中 application/function/host目录下的日志文件,发现错误消息: Singleton lock
阅读全文
摘要:0)[Information] Opened local gRPC endpoint: http://localhost:4001.
1)Failed to open local port 4001. This was attempt #1 to open a local port..
2)Opened local gRPC endpoint: http://localhost:30721
阅读全文
摘要:问题描述 VS Code中,已经安装了Azure Function插件,在创建C# Function时候遇见 No .NET worker runtimes found. 如下图: 问题解答 最开始看见这个错误,还真的以为是自己的 Function runtime 没有安装,于是在 VS Code
阅读全文