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
stringThe Azure resource identifier of the Azure Event Grid namespace.
topicName
stringThe name of the topic for which the subscription should be created.
topicSubscriptionName
stringThe 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
CancellationTokenThe CancellationToken signaling the request to cancel the operation.
Returns
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
stringThe Azure resource identifier of the Azure Event Grid namespace.
topicName
stringThe name of the topic for which the subscription should be deleted.
topicSubscriptionName
stringThe name of the subscription to be deleted.
cancellationToken
CancellationTokenThe CancellationToken signaling the request to cancel the operation.
Returns
GetOpenAIAccountProperties(string)
Retrieves the properties of an Azure OpenAI account.
public Task<AzureOpenAIAccount> GetOpenAIAccountProperties(string openAIAccountResourceId)
Parameters
openAIAccountResourceId
stringThe Azure resource identifier of the Azure OpenAI account.
Returns
- Task<AzureOpenAIAccount>
An AzureOpenAIAccount object with the properties of the account, including model deployments.