OperationalInsightsExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.OperationalInsights.

public static class OperationalInsightsExtensions
type OperationalInsightsExtensions = class
Public Module OperationalInsightsExtensions
Inheritance
OperationalInsightsExtensions

Methods

Name Description
CreateOrUpdateWithoutNameQueryPack(ResourceGroupResource, LogAnalyticsQueryPackData, CancellationToken)

Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. <item> Mocking. To mock this method, please mock CreateOrUpdateWithoutNameQueryPack(LogAnalyticsQueryPackData, CancellationToken) instead. </item>

CreateOrUpdateWithoutNameQueryPackAsync(ResourceGroupResource, LogAnalyticsQueryPackData, CancellationToken)

Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. <item> Mocking. To mock this method, please mock CreateOrUpdateWithoutNameQueryPackAsync(LogAnalyticsQueryPackData, CancellationToken) instead. </item>

FailoverWorkspace(ResourceGroupResource, WaitUntil, AzureLocation, String, CancellationToken)

Activates failover for the specified workspace. The specified replication location must match the location of the enabled replication for this workspace. The failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response. <item> Mocking. To mock this method, please mock FailoverWorkspace(WaitUntil, AzureLocation, String, CancellationToken) instead. </item>

FailoverWorkspaceAsync(ResourceGroupResource, WaitUntil, AzureLocation, String, CancellationToken)

Activates failover for the specified workspace. The specified replication location must match the location of the enabled replication for this workspace. The failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response. <item> Mocking. To mock this method, please mock FailoverWorkspaceAsync(WaitUntil, AzureLocation, String, CancellationToken) instead. </item>

Get(SubscriptionResource, AzureLocation, String, CancellationToken)

Get the status of a long running azure asynchronous operation. <item> Mocking. To mock this method, please mock Get(AzureLocation, String, CancellationToken) instead. </item>

GetAll(SubscriptionResource, CancellationToken)

Gets recently deleted workspaces in a subscription, available for recovery. <item> Mocking. To mock this method, please mock GetAll(CancellationToken) instead. </item>

GetAllAsync(SubscriptionResource, CancellationToken)

Gets recently deleted workspaces in a subscription, available for recovery. <item> Mocking. To mock this method, please mock GetAllAsync(CancellationToken) instead. </item>

GetAsync(SubscriptionResource, AzureLocation, String, CancellationToken)

Get the status of a long running azure asynchronous operation. <item> Mocking. To mock this method, please mock GetAsync(AzureLocation, String, CancellationToken) instead. </item>

GetByResourceGroup(ResourceGroupResource, CancellationToken)

Gets recently deleted workspaces in a resource group, available for recovery. <item> Mocking. To mock this method, please mock GetByResourceGroup(CancellationToken) instead. </item>

GetByResourceGroupAsync(ResourceGroupResource, CancellationToken)

Gets recently deleted workspaces in a resource group, available for recovery. <item> Mocking. To mock this method, please mock GetByResourceGroupAsync(CancellationToken) instead. </item>

GetDeletedWorkspaces(ResourceGroupResource, CancellationToken)

Gets recently deleted workspaces in a resource group, available for recovery.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces
  • Operation Id: DeletedWorkspaces_ListByResourceGroup
  • Default Api Version: 2022-10-01
<item>MockingTo mock this method, please mock GetDeletedWorkspaces(CancellationToken) instead.</item>
GetDeletedWorkspaces(SubscriptionResource, CancellationToken)

Gets recently deleted workspaces in a subscription, available for recovery.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces
  • Operation Id: DeletedWorkspaces_List
  • Default Api Version: 2022-10-01
<item>MockingTo mock this method, please mock GetDeletedWorkspaces(CancellationToken) instead.</item>
GetDeletedWorkspacesAsync(ResourceGroupResource, CancellationToken)

Gets recently deleted workspaces in a resource group, available for recovery.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces
  • Operation Id: DeletedWorkspaces_ListByResourceGroup
  • Default Api Version: 2022-10-01
<item>MockingTo mock this method, please mock GetDeletedWorkspaces(CancellationToken) instead.</item>
GetDeletedWorkspacesAsync(SubscriptionResource, CancellationToken)

Gets recently deleted workspaces in a subscription, available for recovery.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces
  • Operation Id: DeletedWorkspaces_List
  • Default Api Version: 2022-10-01
<item>MockingTo mock this method, please mock GetDeletedWorkspaces(CancellationToken) instead.</item>
GetLogAnalyticsQueryPack(ResourceGroupResource, String, CancellationToken)

Returns a Log Analytics QueryPack. <item> Mocking. To mock this method, please mock GetLogAnalyticsQueryPack(String, CancellationToken) instead. </item>

GetLogAnalyticsQueryPackAsync(ResourceGroupResource, String, CancellationToken)

Returns a Log Analytics QueryPack. <item> Mocking. To mock this method, please mock GetLogAnalyticsQueryPackAsync(String, CancellationToken) instead. </item>

GetLogAnalyticsQueryPackResource(ArmClient, ResourceIdentifier)

Gets an object representing a LogAnalyticsQueryPackResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetLogAnalyticsQueryPackResource(ResourceIdentifier) instead. </item>

GetLogAnalyticsQueryPacks(ResourceGroupResource)

Gets a collection of LogAnalyticsQueryPacks in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetLogAnalyticsQueryPacks() instead. </item>

GetLogAnalyticsQueryPacks(SubscriptionResource, CancellationToken)

Gets a list of all Log Analytics QueryPacks within a subscription. <item> Mocking. To mock this method, please mock GetLogAnalyticsQueryPacks(CancellationToken) instead. </item>

GetLogAnalyticsQueryPacksAsync(SubscriptionResource, CancellationToken)

Gets a list of all Log Analytics QueryPacks within a subscription. <item> Mocking. To mock this method, please mock GetLogAnalyticsQueryPacksAsync(CancellationToken) instead. </item>

GetLogAnalyticsQueryResource(ArmClient, ResourceIdentifier)

Gets an object representing a LogAnalyticsQueryResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetLogAnalyticsQueryResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsCluster(ResourceGroupResource, String, CancellationToken)

Gets a Log Analytics cluster instance. <item> Mocking. To mock this method, please mock GetOperationalInsightsCluster(String, CancellationToken) instead. </item>

GetOperationalInsightsClusterAsync(ResourceGroupResource, String, CancellationToken)

Gets a Log Analytics cluster instance. <item> Mocking. To mock this method, please mock GetOperationalInsightsClusterAsync(String, CancellationToken) instead. </item>

GetOperationalInsightsClusterResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsClusterResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsClusterResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsClusters(ResourceGroupResource)

Gets a collection of OperationalInsightsClusters in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetOperationalInsightsClusters() instead. </item>

GetOperationalInsightsClusters(SubscriptionResource, CancellationToken)

Gets the Log Analytics clusters in a subscription. <item> Mocking. To mock this method, please mock GetOperationalInsightsClusters(CancellationToken) instead. </item>

GetOperationalInsightsClustersAsync(SubscriptionResource, CancellationToken)

Gets the Log Analytics clusters in a subscription. <item> Mocking. To mock this method, please mock GetOperationalInsightsClustersAsync(CancellationToken) instead. </item>

GetOperationalInsightsDataExportResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsDataExportResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsDataExportResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsDataSourceResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsDataSourceResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsDataSourceResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsLinkedServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsLinkedServiceResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsLinkedServiceResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsLinkedStorageAccountsResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsLinkedStorageAccountsResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsLinkedStorageAccountsResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsSavedSearchResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsSavedSearchResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsSavedSearchResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsSummaryLogsResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsSummaryLogsResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsSummaryLogsResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsTableResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsTableResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsTableResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsWorkspace(ResourceGroupResource, String, CancellationToken)

Gets a workspace instance. <item> Mocking. To mock this method, please mock GetOperationalInsightsWorkspace(String, CancellationToken) instead. </item>

GetOperationalInsightsWorkspaceAsync(ResourceGroupResource, String, CancellationToken)

Gets a workspace instance. <item> Mocking. To mock this method, please mock GetOperationalInsightsWorkspaceAsync(String, CancellationToken) instead. </item>

GetOperationalInsightsWorkspaceResource(ArmClient, ResourceIdentifier)

Gets an object representing a OperationalInsightsWorkspaceResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetOperationalInsightsWorkspaceResource(ResourceIdentifier) instead. </item>

GetOperationalInsightsWorkspaces(ResourceGroupResource)

Gets a collection of OperationalInsightsWorkspaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetOperationalInsightsWorkspaces() instead. </item>

GetOperationalInsightsWorkspaces(SubscriptionResource, CancellationToken)

Gets the workspaces in a subscription. <item> Mocking. To mock this method, please mock GetOperationalInsightsWorkspaces(CancellationToken) instead. </item>

GetOperationalInsightsWorkspacesAsync(SubscriptionResource, CancellationToken)

Gets the workspaces in a subscription. <item> Mocking. To mock this method, please mock GetOperationalInsightsWorkspacesAsync(CancellationToken) instead. </item>

GetStorageInsightResource(ArmClient, ResourceIdentifier)

Gets an object representing a StorageInsightResource along with the instance operations that can be performed on it but with no data. <item> Mocking. To mock this method, please mock GetStorageInsightResource(ResourceIdentifier) instead. </item>

Applies to