Share via


Workspace Constructors

Definition

Overloads

Workspace()

Initializes a new instance of the Workspace class.

Workspace(String, String, String, String, IDictionary<String, String>, String, String, WorkspaceSku, Nullable<Int32>, WorkspaceCapping, String, String, String, String, Nullable<Boolean>, IList<PrivateLinkScopedResource>, WorkspaceFeatures, String, SystemData, String)

Initializes a new instance of the Workspace class.

Workspace()

Initializes a new instance of the Workspace class.

public Workspace ();
Public Sub New ()

Applies to

Workspace(String, String, String, String, IDictionary<String, String>, String, String, WorkspaceSku, Nullable<Int32>, WorkspaceCapping, String, String, String, String, Nullable<Boolean>, IList<PrivateLinkScopedResource>, WorkspaceFeatures, String, SystemData, String)

Initializes a new instance of the Workspace class.

public Workspace (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string provisioningState = default, string customerId = default, Microsoft.Azure.Management.OperationalInsights.Models.WorkspaceSku sku = default, int? retentionInDays = default, Microsoft.Azure.Management.OperationalInsights.Models.WorkspaceCapping workspaceCapping = default, string createdDate = default, string modifiedDate = default, string publicNetworkAccessForIngestion = default, string publicNetworkAccessForQuery = default, bool? forceCmkForQuery = default, System.Collections.Generic.IList<Microsoft.Azure.Management.OperationalInsights.Models.PrivateLinkScopedResource> privateLinkScopedResources = default, Microsoft.Azure.Management.OperationalInsights.Models.WorkspaceFeatures features = default, string defaultDataCollectionRuleResourceId = default, Microsoft.Azure.Management.OperationalInsights.Models.SystemData systemData = default, string eTag = default);
new Microsoft.Azure.Management.OperationalInsights.Models.Workspace : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * Microsoft.Azure.Management.OperationalInsights.Models.WorkspaceSku * Nullable<int> * Microsoft.Azure.Management.OperationalInsights.Models.WorkspaceCapping * string * string * string * string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.OperationalInsights.Models.PrivateLinkScopedResource> * Microsoft.Azure.Management.OperationalInsights.Models.WorkspaceFeatures * string * Microsoft.Azure.Management.OperationalInsights.Models.SystemData * string -> Microsoft.Azure.Management.OperationalInsights.Models.Workspace
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional provisioningState As String = Nothing, Optional customerId As String = Nothing, Optional sku As WorkspaceSku = Nothing, Optional retentionInDays As Nullable(Of Integer) = Nothing, Optional workspaceCapping As WorkspaceCapping = Nothing, Optional createdDate As String = Nothing, Optional modifiedDate As String = Nothing, Optional publicNetworkAccessForIngestion As String = Nothing, Optional publicNetworkAccessForQuery As String = Nothing, Optional forceCmkForQuery As Nullable(Of Boolean) = Nothing, Optional privateLinkScopedResources As IList(Of PrivateLinkScopedResource) = Nothing, Optional features As WorkspaceFeatures = Nothing, Optional defaultDataCollectionRuleResourceId As String = Nothing, Optional systemData As SystemData = Nothing, Optional eTag As String = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

tags
IDictionary<String,String>

Resource tags.

provisioningState
String

The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating'

customerId
String

This is a read-only property. Represents the ID associated with the workspace.

sku
WorkspaceSku

The SKU of the workspace.

retentionInDays
Nullable<Int32>

The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.

workspaceCapping
WorkspaceCapping

The daily volume cap for ingestion.

createdDate
String

Workspace creation date.

modifiedDate
String

Workspace modification date.

publicNetworkAccessForIngestion
String

The network access type for accessing Log Analytics ingestion. Possible values include: 'Enabled', 'Disabled'

publicNetworkAccessForQuery
String

The network access type for accessing Log Analytics query. Possible values include: 'Enabled', 'Disabled'

forceCmkForQuery
Nullable<Boolean>

Indicates whether customer managed storage is mandatory for query management.

privateLinkScopedResources
IList<PrivateLinkScopedResource>

List of linked private link scope resources.

features
WorkspaceFeatures

Workspace features.

defaultDataCollectionRuleResourceId
String

The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.

systemData
SystemData
eTag
String

The ETag of the workspace.

Applies to