如何使用 Azure SDK 在 c# .net 核心中创建类型 "Web App bot" 的资源



我尝试创建"Web App"类型的资源,这是工作,但我需要创建一个类型为"Web App Bot"的资源

var credentials = SdkContext.AzureCredentialsFactory.FromServicePrincipal(ClientId, SecretId, TenantId, AzureEnvironment.AzureGlobalCloud);
var azure = Azure
.Configure()
.WithLogLevel(HttpLoggingDelegatingHandler.Level.Basic)
.Authenticate(credentials)
.WithSubscription(subscribtionId);
var dd = azure.WebApps.Define("mrecourceName")
.WithRegion(Region.AsiaEast)
.WithExistingResourceGroup("mygroupName").
WithNewFreeAppServicePlan().Create();

根据我的研究,Azure 不提供资源类型的 Web 应用机器人。创建 Web 应用机器人时,需要创建 Azure 机器人服务和 Azure 应用服务。现在,我们不能使用 Azure .NET SDK 创建机器人服务。详情请参考

https://github.com/Azure/azure-libraries-for-net

https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services

相关内容

最新更新