Table of Contents

Class AzureResourceManagerService

Namespace
FoundationaLLM.Common.Services.Azure
Assembly
FoundationaLLM.Common.dll

Provides services to interact with the Azure Resource Manager (ARM) infrastructure.

public class AzureResourceManagerService : IAzureResourceManagerService
Inheritance
AzureResourceManagerService
Implements
Inherited Members
Extension Methods

Constructors

AzureResourceManagerService(ILogger<AzureResourceManagerService>)

Provides services to interact with the Azure Resource Manager (ARM) infrastructure.

public AzureResourceManagerService(ILogger<AzureResourceManagerService> logger)

Parameters

logger ILogger<AzureResourceManagerService>

The logger used for logging.

Methods

CreateEventGridNamespaceTopicSubscription(string, string, string, List<string>, CancellationToken)

Creates a new Azure Event Grid namespace topic subscription.

public Task<bool> CreateEventGridNamespaceTopicSubscription(string namespaceResourceId, string topicName, string topicSubscriptionName, List<string> includedEventTypes, CancellationToken cancellationToken)

Parameters

namespaceResourceId string

The Azure resource identifier of the Azure Event Grid namespace.

topicName string

The name of the topic for which the subscription should be created.

topicSubscriptionName string

The name of the subscription to be created.

includedEventTypes List<string>

The list of event types to include in the subscription as part of the filters configuration.

cancellationToken CancellationToken

The CancellationToken signaling the request to cancel the operation.

Returns

Task<bool>

True if the subscription was successfully created, false otherwise.

DeleteEventGridNamespaceTopicSubscription(string, string, string, CancellationToken)

Deletes an Azure Event Grid namespace topic subscription.

public Task DeleteEventGridNamespaceTopicSubscription(string namespaceResourceId, string topicName, string topicSubscriptionName, CancellationToken cancellationToken)

Parameters

namespaceResourceId string

The Azure resource identifier of the Azure Event Grid namespace.

topicName string

The name of the topic for which the subscription should be deleted.

topicSubscriptionName string

The name of the subscription to be deleted.

cancellationToken CancellationToken

The CancellationToken signaling the request to cancel the operation.

Returns

Task

GetOpenAIAccountProperties(string)

Retrieves the properties of an Azure OpenAI account.

public Task<AzureOpenAIAccount> GetOpenAIAccountProperties(string openAIAccountResourceId)

Parameters

openAIAccountResourceId string

The Azure resource identifier of the Azure OpenAI account.

Returns

Task<AzureOpenAIAccount>

An AzureOpenAIAccount object with the properties of the account, including model deployments.