Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@
"words": [
"alexa",
"cmek",
"omnichannel"
"omnichannel",
"AZPROVISION"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Solution>
<Project Path="src/Azure.Provisioning.BotService.csproj" />
<Project Path="tests/Azure.Provisioning.BotService.Tests.csproj" />
</Solution>
13 changes: 13 additions & 0 deletions sdk/botservice/Azure.Provisioning.BotService/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Release History

## 1.0.0-beta.1 (Unreleased)

### Features Added

- Initial beta release of new Azure.Provisioning.BotService.

### Breaking Changes

### Bugs Fixed

### Other Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" />

<!-- Feature flag to enable/disable experimental features end-to-end -->
<PropertyGroup>
<ExperimentalProvisioning Condition="'$(ExperimentalProvisioning)' == ''">false</ExperimentalProvisioning>
<DefineConstants Condition="'$(ExperimentalProvisioning)' == 'true'">EXPERIMENTAL_PROVISIONING;$(DefineConstants)</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
<IsMgmtLibrary>true</IsMgmtLibrary>
<IncludeOperationsSharedSource>true</IncludeOperationsSharedSource>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Compile Include="$(AzureCoreSharedSources)ExperimentalAttribute.cs" LinkBase="Shared\Core" />
</ItemGroup>
<ItemGroup>
<!--
Azure.Core isn't being found on builds with
dotnet build .\Azure.Provisioning.sln /p:UseProjectReferenceToAzureClients=true
for some reason. Temporarily adding an explicit Azure.Core reference so
it's correctly replaced in all projects for those build targets.
-->
<PackageReference Include="Azure.Core" Condition="$(UseProjectReferenceToAzureClients) == 'true'" />
</ItemGroup>

</Project>
83 changes: 83 additions & 0 deletions sdk/botservice/Azure.Provisioning.BotService/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Azure Provisioning BotService client library for .NET

Azure.Provisioning.BotService simplifies declarative resource provisioning for Azure Bot Service in .NET.

## Getting started

### Install the package

Install the client library for .NET with [NuGet](https://www.nuget.org/):

```dotnetcli
dotnet add package Azure.Provisioning.BotService --prerelease
```

### Prerequisites

> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/).

### Authenticate the Client

## Key concepts

This library allows you to specify your infrastructure in a declarative style using dotnet. You can then use azd to deploy your infrastructure to Azure directly without needing to write or maintain bicep or arm templates.

## Examples

### Create a Bot Service

This example demonstrates how to create an Azure Bot Service resource.

```C# Snippet:BotServiceBasic
Infrastructure infra = new();

BotResource bot =
new(nameof(bot), BotResource.ResourceVersions.V2023_09_15_PREVIEW)
{
Kind = BotServiceKind.Bot,
Sku = new BotServiceSku
{
Name = BotServiceSkuName.F0,
},
Tags = { ["environment"] = "test" },
Properties = new BotProperties
{
DisplayName = "sample-bot",
Endpoint = new Uri("https://example.com/api/messages"),
MsaAppId = "00000000-0000-0000-0000-000000000000",
},
};
infra.Add(bot);
```

## Troubleshooting

- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.

## Next steps

## Contributing

For details on contributing to this repository, see the [contributing
guide][cg].

This project welcomes contributions and suggestions. Most contributions
require you to agree to a Contributor License Agreement (CLA) declaring
that you have the right to, and actually do, grant us the rights to use
your contribution. For details, visit <https://cla.microsoft.com>.

When you submit a pull request, a CLA-bot will automatically determine
whether you need to provide a CLA and decorate the PR appropriately
(for example, label, comment). Follow the instructions provided by the
bot. You'll only need to do this action once across all repositories
using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
more information, see the [Code of Conduct FAQ][coc_faq] or contact
<opencode@microsoft.com> with any other questions or comments.

<!-- LINKS -->
[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
Loading
Loading