随笔分类 -  【Azure Developer】

Azure 环境中使用 .Net/.Net Core/ Java/ Python/ PHP/ NodeJS /语言开发中的一些代码记录
摘要:问题描述 在Azure Databricks上获取Azure Key Vault中所存储的机密(secret)的两种方式? 问题解答 方式一: 在Databricks的Notebook 中,直接编写Python代码读取Key Vault的Secret 实例代码如下: import os from a 阅读全文
posted @ 2023-10-09 19:40 路边两盏灯 阅读(313) 评论(0) 推荐(2) 编辑
摘要:问题描述 通过Microsoft Graph的API如何来查看用户信息和登录记录呢? 问题解答 第一步:需要一个授权Token 比如一个拥有查看用户权限的Azure账号,通过Azure CLI 命令获取到一个Access Token az cloud set --name AzureChinaClo 阅读全文
posted @ 2023-08-23 20:54 路边两盏灯 阅读(159) 评论(0) 推荐(0) 编辑
摘要:@azure/arm-monitor ManagedIdentityCredential authentication failed.(status code 500) CredentialUnavailableError: ERROR: AADSTS500011: The resource principal name https://management.azure.com was not found in tenant name ##############. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. 阅读全文
posted @ 2023-08-22 19:36 路边两盏灯 阅读(22) 评论(0) 推荐(1) 编辑
摘要:Azure.Identity.AuthenticationFailedException: 'ClientSecretCredential authentication failed: AADSTS90002: Tenant '********-****-****-****-************' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant. 阅读全文
posted @ 2023-05-10 21:10 路边两盏灯 阅读(135) 评论(0) 推荐(2) 编辑
摘要:问题描述 在Azure Blob的官方示例中,都是对文件进行上传到Blob操作,没有实现对已创建的Blob进行追加的操作。如果想要实现对一个文件的多次追加操作,每一次写入的时候,只传入新的内容? 问题解答 Azure Storage Blob 有三种类型: Block Blob, Append Bl 阅读全文
posted @ 2023-05-09 21:42 路边两盏灯 阅读(268) 评论(0) 推荐(1) 编辑
摘要:问题描述 查看Java Storage SDK,想找一个 uploadWithResponse 的示例代码,但是通过全网搜索,结果没有任何有帮助的代码。使用最近ChatGPT来寻求答案,得到非常有格式的内容: 问:java azure storage account to use uploadWit 阅读全文
posted @ 2023-05-08 21:49 路边两盏灯 阅读(126) 评论(0) 推荐(0) 编辑
摘要:问题描述 使用 Azure AD 注册应用 Oauth2 v2.0的终结点(OAuth 2.0 token endpoint (v2): https://login.partner.microsoftonline.cn/<your tenant id>/oauth2/v2.0/token ) 获取T 阅读全文
posted @ 2023-05-04 20:31 路边两盏灯 阅读(340) 评论(0) 推荐(1) 编辑
摘要:问题描述 查看官方文档“ Get a user ” , 产生了一个操作示例的想法,在中国区Azure环境中,演示如何获取AAD User信息。 问题解答 使用Microsoft Graph API,演示如何获取AAD User信息,因参考文档是针对Global Azure,所以文档种的URL为: / 阅读全文
posted @ 2023-04-13 20:12 路边两盏灯 阅读(500) 评论(0) 推荐(2) 编辑
摘要:问题描述 如何在App Service for Windows(.NET Stack)中,如何实现反向代理呢? 正向代理:客户端想要访问一个服务器,但是它可能无法直接访问这台服务器,这时候这可找一台可以访问目标服务器的另外一台服务器,而这台服务器就被当做是代理人的角色 ,称之为代理服务器,于是客户端 阅读全文
posted @ 2023-02-14 19:42 路边两盏灯 阅读(118) 评论(0) 推荐(1) 编辑
摘要:问题描述 使用Python SDK(Confluent)相关方法获取offset或lag时, 提示SSL相关错误, 是否有更清晰的实例以便参考呢? 问题解决 执行代码,因为一直连接不成功,所以检查 confluent_kafka 的连接配置,最后定位是 sasl.password 值设置有误。此处, 阅读全文
posted @ 2023-02-10 17:36 路边两盏灯 阅读(75) 评论(0) 推荐(0) 编辑
摘要:azure.core.exceptions.ClientAuthenticationError: Authentication failed: AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope . . . / / / : a a a a a c c c d d e e e f g h h i i l l m m n n n n o p p s t t t t u u is not valid. 阅读全文
posted @ 2023-02-07 17:13 路边两盏灯 阅读(68) 评论(0) 推荐(0) 编辑
摘要:问题描述 在上一篇博文(【Azure 存储服务】.NET7.0 示例代码之上传大文件到Azure Storage Blob (一):https://www.cnblogs.com/lulight/p/17061631.html)中,介绍了第一种分片的方式上传文件。 本文章接着介绍第二种方式,使用 M 阅读全文
posted @ 2023-01-20 15:45 路边两盏灯 阅读(107) 评论(0) 推荐(1) 编辑
摘要:问题描述 使用Github Action,通过 Azure/functions-container-action@v1 插件来完成 yaml 文件的配置,并成功部署Function Image 的过程记录。 操作步骤 第一步: 准备Function的镜像文件 如在VS Code中,通过Termina 阅读全文
posted @ 2023-01-17 15:56 路边两盏灯 阅读(148) 评论(0) 推荐(1) 编辑
摘要:问题描述 在使用 Github Action - Azure/login@v1 的插件时候,登录中国区Azure遇见了问题。 Login YAML 内容: - name: 'Login via Azure CLI' uses: Azure/login@v1.4.6 with: creds: ${{ 阅读全文
posted @ 2023-01-13 16:26 路边两盏灯 阅读(83) 评论(0) 推荐(1) 编辑
摘要:问题描述 在 “使用 Azure SDK for Go 进行 Azure 身份验证” 文章中的 Go 示例代码进行登录Azure时,默认指向的是Globa Azure。当只修改AAD AZURE_CLIENT_ID , AZURE_TENANT_ID 和 AZURE_CLIENT_SECRET参数值 阅读全文
posted @ 2023-01-12 15:45 路边两盏灯 阅读(253) 评论(0) 推荐(1) 编辑
摘要:问题描述 开发模式下使用AAD账号访问Azure Blob的流程参考文件 问题解答 第一步:先在AAD中注册一个APP,步骤可参考: 将应用程序注册到 Microsoft 标识平台 :https://docs.azure.cn/zh-cn/active-directory/develop/quick 阅读全文
posted @ 2022-12-31 16:23 路边两盏灯 阅读(113) 评论(0) 推荐(0) 编辑
摘要:spring.cloud.azure.keyvault.secret.property-sources[0].profile.cloud-type=AZURE_CHINA 阅读全文
posted @ 2022-12-30 17:42 路边两盏灯 阅读(622) 评论(0) 推荐(0) 编辑
摘要:问题描述 使用China Azure,通过Azure CLI 创建AAD组报错,提示权限不足 Insufficient privileges to complete the operation # 使用这个登录: az login --service-principal --username xxx 阅读全文
posted @ 2022-12-07 21:55 路边两盏灯 阅读(132) 评论(0) 推荐(1) 编辑
摘要:问题描述 在使用Azure Media Service的官网示例 (media-services-v3-java --> AudioAnalytics --> AudioAnalyzer )代码的过程中,根据配置添加了 Event Hub 和Storage Account,使用 Event Grid 阅读全文
posted @ 2022-10-08 19:44 路边两盏灯 阅读(88) 评论(0) 推荐(0) 编辑
摘要:记录使用以下的代码获取Azure VM中的IP地址 """Create and manage virtual machines. This script expects that the following environment vars are set: AZURE_TENANT_ID: you 阅读全文
posted @ 2022-10-01 16:35 路边两盏灯 阅读(112) 评论(0) 推荐(0) 编辑

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