Documentation ¶
Index ¶
- type AnalyticsSolution
- func (*AnalyticsSolution) ElementType() reflect.Type
- func (i *AnalyticsSolution) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
- func (i *AnalyticsSolution) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
- func (i *AnalyticsSolution) ToAnalyticsSolutionPtrOutput() AnalyticsSolutionPtrOutput
- func (i *AnalyticsSolution) ToAnalyticsSolutionPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPtrOutput
- type AnalyticsSolutionArgs
- type AnalyticsSolutionArray
- type AnalyticsSolutionArrayInput
- type AnalyticsSolutionArrayOutput
- func (AnalyticsSolutionArrayOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionArrayOutput) Index(i pulumi.IntInput) AnalyticsSolutionOutput
- func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput
- func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutputWithContext(ctx context.Context) AnalyticsSolutionArrayOutput
- type AnalyticsSolutionInput
- type AnalyticsSolutionMap
- type AnalyticsSolutionMapInput
- type AnalyticsSolutionMapOutput
- func (AnalyticsSolutionMapOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionMapOutput) MapIndex(k pulumi.StringInput) AnalyticsSolutionOutput
- func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput
- func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutputWithContext(ctx context.Context) AnalyticsSolutionMapOutput
- type AnalyticsSolutionOutput
- func (AnalyticsSolutionOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
- func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
- func (o AnalyticsSolutionOutput) ToAnalyticsSolutionPtrOutput() AnalyticsSolutionPtrOutput
- func (o AnalyticsSolutionOutput) ToAnalyticsSolutionPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPtrOutput
- type AnalyticsSolutionPlan
- type AnalyticsSolutionPlanArgs
- func (AnalyticsSolutionPlanArgs) ElementType() reflect.Type
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
- type AnalyticsSolutionPlanInput
- type AnalyticsSolutionPlanOutput
- func (AnalyticsSolutionPlanOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionPlanOutput) Name() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanOutput) Product() pulumi.StringOutput
- func (o AnalyticsSolutionPlanOutput) PromotionCode() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanOutput) Publisher() pulumi.StringOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
- type AnalyticsSolutionPlanPtrInput
- type AnalyticsSolutionPlanPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) Elem() AnalyticsSolutionPlanOutput
- func (AnalyticsSolutionPlanPtrOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionPlanPtrOutput) Name() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) Product() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) Publisher() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
- type AnalyticsSolutionPtrInput
- type AnalyticsSolutionPtrOutput
- type AnalyticsSolutionState
- type AnalyticsWorkspace
- func (*AnalyticsWorkspace) ElementType() reflect.Type
- func (i *AnalyticsWorkspace) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
- func (i *AnalyticsWorkspace) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
- func (i *AnalyticsWorkspace) ToAnalyticsWorkspacePtrOutput() AnalyticsWorkspacePtrOutput
- func (i *AnalyticsWorkspace) ToAnalyticsWorkspacePtrOutputWithContext(ctx context.Context) AnalyticsWorkspacePtrOutput
- type AnalyticsWorkspaceArgs
- type AnalyticsWorkspaceArray
- type AnalyticsWorkspaceArrayInput
- type AnalyticsWorkspaceArrayOutput
- func (AnalyticsWorkspaceArrayOutput) ElementType() reflect.Type
- func (o AnalyticsWorkspaceArrayOutput) Index(i pulumi.IntInput) AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput
- func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutputWithContext(ctx context.Context) AnalyticsWorkspaceArrayOutput
- type AnalyticsWorkspaceInput
- type AnalyticsWorkspaceMap
- type AnalyticsWorkspaceMapInput
- type AnalyticsWorkspaceMapOutput
- func (AnalyticsWorkspaceMapOutput) ElementType() reflect.Type
- func (o AnalyticsWorkspaceMapOutput) MapIndex(k pulumi.StringInput) AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput
- func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutputWithContext(ctx context.Context) AnalyticsWorkspaceMapOutput
- type AnalyticsWorkspaceOutput
- func (AnalyticsWorkspaceOutput) ElementType() reflect.Type
- func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspacePtrOutput() AnalyticsWorkspacePtrOutput
- func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspacePtrOutputWithContext(ctx context.Context) AnalyticsWorkspacePtrOutput
- type AnalyticsWorkspacePtrInput
- type AnalyticsWorkspacePtrOutput
- type AnalyticsWorkspaceState
- type LookupAnalyticsWorkspaceArgs
- type LookupAnalyticsWorkspaceResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsSolution ¶
type AnalyticsSolution struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `plan` block as documented below. Plan AnalyticsSolutionPlanOutput `pulumi:"plan"` // The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created. SolutionName pulumi.StringOutput `pulumi:"solutionName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceName pulumi.StringOutput `pulumi:"workspaceName"` // The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceResourceId pulumi.StringOutput `pulumi:"workspaceResourceId"` }
Manages a Log Analytics (formally Operational Insights) Solution.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/operationalinsights" "github.com/pulumi/pulumi-random/sdk/v4/go/random" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = random.NewRandomId(ctx, "workspace", &random.RandomIdArgs{ Keepers: pulumi.AnyMap{ "group_name": exampleResourceGroup.Name, }, ByteLength: pulumi.Int(8), }) if err != nil { return err } exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("PerGB2018"), }) if err != nil { return err } _, err = operationalinsights.NewAnalyticsSolution(ctx, "exampleAnalyticsSolution", &operationalinsights.AnalyticsSolutionArgs{ SolutionName: pulumi.String("ContainerInsights"), Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, WorkspaceResourceId: exampleAnalyticsWorkspace.ID(), WorkspaceName: exampleAnalyticsWorkspace.Name, Plan: &operationalinsights.AnalyticsSolutionPlanArgs{ Publisher: pulumi.String("Microsoft"), Product: pulumi.String("OMSGallery/ContainerInsights"), }, }) if err != nil { return err } return nil }) }
```
## Import
Log Analytics Solutions can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:operationalinsights/analyticsSolution:AnalyticsSolution solution1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationsManagement/solutions/solution1
```
func GetAnalyticsSolution ¶
func GetAnalyticsSolution(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnalyticsSolutionState, opts ...pulumi.ResourceOption) (*AnalyticsSolution, error)
GetAnalyticsSolution gets an existing AnalyticsSolution resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAnalyticsSolution ¶
func NewAnalyticsSolution(ctx *pulumi.Context, name string, args *AnalyticsSolutionArgs, opts ...pulumi.ResourceOption) (*AnalyticsSolution, error)
NewAnalyticsSolution registers a new resource with the given unique name, arguments, and options.
func (*AnalyticsSolution) ElementType ¶
func (*AnalyticsSolution) ElementType() reflect.Type
func (*AnalyticsSolution) ToAnalyticsSolutionOutput ¶
func (i *AnalyticsSolution) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
func (*AnalyticsSolution) ToAnalyticsSolutionOutputWithContext ¶
func (i *AnalyticsSolution) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
func (*AnalyticsSolution) ToAnalyticsSolutionPtrOutput ¶
func (i *AnalyticsSolution) ToAnalyticsSolutionPtrOutput() AnalyticsSolutionPtrOutput
func (*AnalyticsSolution) ToAnalyticsSolutionPtrOutputWithContext ¶
func (i *AnalyticsSolution) ToAnalyticsSolutionPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPtrOutput
type AnalyticsSolutionArgs ¶
type AnalyticsSolutionArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `plan` block as documented below. Plan AnalyticsSolutionPlanInput // The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group. ResourceGroupName pulumi.StringInput // Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created. SolutionName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceName pulumi.StringInput // The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceResourceId pulumi.StringInput }
The set of arguments for constructing a AnalyticsSolution resource.
func (AnalyticsSolutionArgs) ElementType ¶
func (AnalyticsSolutionArgs) ElementType() reflect.Type
type AnalyticsSolutionArray ¶
type AnalyticsSolutionArray []AnalyticsSolutionInput
func (AnalyticsSolutionArray) ElementType ¶
func (AnalyticsSolutionArray) ElementType() reflect.Type
func (AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutput ¶
func (i AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput
func (AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutputWithContext ¶
func (i AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutputWithContext(ctx context.Context) AnalyticsSolutionArrayOutput
type AnalyticsSolutionArrayInput ¶
type AnalyticsSolutionArrayInput interface { pulumi.Input ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput ToAnalyticsSolutionArrayOutputWithContext(context.Context) AnalyticsSolutionArrayOutput }
AnalyticsSolutionArrayInput is an input type that accepts AnalyticsSolutionArray and AnalyticsSolutionArrayOutput values. You can construct a concrete instance of `AnalyticsSolutionArrayInput` via:
AnalyticsSolutionArray{ AnalyticsSolutionArgs{...} }
type AnalyticsSolutionArrayOutput ¶
type AnalyticsSolutionArrayOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionArrayOutput) ElementType ¶
func (AnalyticsSolutionArrayOutput) ElementType() reflect.Type
func (AnalyticsSolutionArrayOutput) Index ¶
func (o AnalyticsSolutionArrayOutput) Index(i pulumi.IntInput) AnalyticsSolutionOutput
func (AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutput ¶
func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput
func (AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutputWithContext ¶
func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutputWithContext(ctx context.Context) AnalyticsSolutionArrayOutput
type AnalyticsSolutionInput ¶
type AnalyticsSolutionInput interface { pulumi.Input ToAnalyticsSolutionOutput() AnalyticsSolutionOutput ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput }
type AnalyticsSolutionMap ¶
type AnalyticsSolutionMap map[string]AnalyticsSolutionInput
func (AnalyticsSolutionMap) ElementType ¶
func (AnalyticsSolutionMap) ElementType() reflect.Type
func (AnalyticsSolutionMap) ToAnalyticsSolutionMapOutput ¶
func (i AnalyticsSolutionMap) ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput
func (AnalyticsSolutionMap) ToAnalyticsSolutionMapOutputWithContext ¶
func (i AnalyticsSolutionMap) ToAnalyticsSolutionMapOutputWithContext(ctx context.Context) AnalyticsSolutionMapOutput
type AnalyticsSolutionMapInput ¶
type AnalyticsSolutionMapInput interface { pulumi.Input ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput ToAnalyticsSolutionMapOutputWithContext(context.Context) AnalyticsSolutionMapOutput }
AnalyticsSolutionMapInput is an input type that accepts AnalyticsSolutionMap and AnalyticsSolutionMapOutput values. You can construct a concrete instance of `AnalyticsSolutionMapInput` via:
AnalyticsSolutionMap{ "key": AnalyticsSolutionArgs{...} }
type AnalyticsSolutionMapOutput ¶
type AnalyticsSolutionMapOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionMapOutput) ElementType ¶
func (AnalyticsSolutionMapOutput) ElementType() reflect.Type
func (AnalyticsSolutionMapOutput) MapIndex ¶
func (o AnalyticsSolutionMapOutput) MapIndex(k pulumi.StringInput) AnalyticsSolutionOutput
func (AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutput ¶
func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput
func (AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutputWithContext ¶
func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutputWithContext(ctx context.Context) AnalyticsSolutionMapOutput
type AnalyticsSolutionOutput ¶
type AnalyticsSolutionOutput struct {
*pulumi.OutputState
}
func (AnalyticsSolutionOutput) ElementType ¶
func (AnalyticsSolutionOutput) ElementType() reflect.Type
func (AnalyticsSolutionOutput) ToAnalyticsSolutionOutput ¶
func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
func (AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext ¶
func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
func (AnalyticsSolutionOutput) ToAnalyticsSolutionPtrOutput ¶
func (o AnalyticsSolutionOutput) ToAnalyticsSolutionPtrOutput() AnalyticsSolutionPtrOutput
func (AnalyticsSolutionOutput) ToAnalyticsSolutionPtrOutputWithContext ¶
func (o AnalyticsSolutionOutput) ToAnalyticsSolutionPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPtrOutput
type AnalyticsSolutionPlan ¶
type AnalyticsSolutionPlan struct { Name *string `pulumi:"name"` // The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created. Product string `pulumi:"product"` // A promotion code to be used with the solution. PromotionCode *string `pulumi:"promotionCode"` // The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created. Publisher string `pulumi:"publisher"` }
type AnalyticsSolutionPlanArgs ¶
type AnalyticsSolutionPlanArgs struct { Name pulumi.StringPtrInput `pulumi:"name"` // The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created. Product pulumi.StringInput `pulumi:"product"` // A promotion code to be used with the solution. PromotionCode pulumi.StringPtrInput `pulumi:"promotionCode"` // The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created. Publisher pulumi.StringInput `pulumi:"publisher"` }
func (AnalyticsSolutionPlanArgs) ElementType ¶
func (AnalyticsSolutionPlanArgs) ElementType() reflect.Type
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutput ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutputWithContext ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutput ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutputWithContext ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
type AnalyticsSolutionPlanInput ¶
type AnalyticsSolutionPlanInput interface { pulumi.Input ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput ToAnalyticsSolutionPlanOutputWithContext(context.Context) AnalyticsSolutionPlanOutput }
AnalyticsSolutionPlanInput is an input type that accepts AnalyticsSolutionPlanArgs and AnalyticsSolutionPlanOutput values. You can construct a concrete instance of `AnalyticsSolutionPlanInput` via:
AnalyticsSolutionPlanArgs{...}
type AnalyticsSolutionPlanOutput ¶
type AnalyticsSolutionPlanOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionPlanOutput) ElementType ¶
func (AnalyticsSolutionPlanOutput) ElementType() reflect.Type
func (AnalyticsSolutionPlanOutput) Name ¶
func (o AnalyticsSolutionPlanOutput) Name() pulumi.StringPtrOutput
func (AnalyticsSolutionPlanOutput) Product ¶
func (o AnalyticsSolutionPlanOutput) Product() pulumi.StringOutput
The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanOutput) PromotionCode ¶
func (o AnalyticsSolutionPlanOutput) PromotionCode() pulumi.StringPtrOutput
A promotion code to be used with the solution.
func (AnalyticsSolutionPlanOutput) Publisher ¶
func (o AnalyticsSolutionPlanOutput) Publisher() pulumi.StringOutput
The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutput ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutputWithContext ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutput ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutputWithContext ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
type AnalyticsSolutionPlanPtrInput ¶
type AnalyticsSolutionPlanPtrInput interface { pulumi.Input ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput ToAnalyticsSolutionPlanPtrOutputWithContext(context.Context) AnalyticsSolutionPlanPtrOutput }
AnalyticsSolutionPlanPtrInput is an input type that accepts AnalyticsSolutionPlanArgs, AnalyticsSolutionPlanPtr and AnalyticsSolutionPlanPtrOutput values. You can construct a concrete instance of `AnalyticsSolutionPlanPtrInput` via:
AnalyticsSolutionPlanArgs{...} or: nil
func AnalyticsSolutionPlanPtr ¶
func AnalyticsSolutionPlanPtr(v *AnalyticsSolutionPlanArgs) AnalyticsSolutionPlanPtrInput
type AnalyticsSolutionPlanPtrOutput ¶
type AnalyticsSolutionPlanPtrOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionPlanPtrOutput) Elem ¶
func (o AnalyticsSolutionPlanPtrOutput) Elem() AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanPtrOutput) ElementType ¶
func (AnalyticsSolutionPlanPtrOutput) ElementType() reflect.Type
func (AnalyticsSolutionPlanPtrOutput) Name ¶
func (o AnalyticsSolutionPlanPtrOutput) Name() pulumi.StringPtrOutput
func (AnalyticsSolutionPlanPtrOutput) Product ¶
func (o AnalyticsSolutionPlanPtrOutput) Product() pulumi.StringPtrOutput
The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanPtrOutput) PromotionCode ¶
func (o AnalyticsSolutionPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
A promotion code to be used with the solution.
func (AnalyticsSolutionPlanPtrOutput) Publisher ¶
func (o AnalyticsSolutionPlanPtrOutput) Publisher() pulumi.StringPtrOutput
The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutput ¶
func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
func (AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutputWithContext ¶
func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
type AnalyticsSolutionPtrInput ¶
type AnalyticsSolutionPtrInput interface { pulumi.Input ToAnalyticsSolutionPtrOutput() AnalyticsSolutionPtrOutput ToAnalyticsSolutionPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPtrOutput }
type AnalyticsSolutionPtrOutput ¶
type AnalyticsSolutionPtrOutput struct {
*pulumi.OutputState
}
func (AnalyticsSolutionPtrOutput) ElementType ¶
func (AnalyticsSolutionPtrOutput) ElementType() reflect.Type
func (AnalyticsSolutionPtrOutput) ToAnalyticsSolutionPtrOutput ¶
func (o AnalyticsSolutionPtrOutput) ToAnalyticsSolutionPtrOutput() AnalyticsSolutionPtrOutput
func (AnalyticsSolutionPtrOutput) ToAnalyticsSolutionPtrOutputWithContext ¶
func (o AnalyticsSolutionPtrOutput) ToAnalyticsSolutionPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPtrOutput
type AnalyticsSolutionState ¶
type AnalyticsSolutionState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `plan` block as documented below. Plan AnalyticsSolutionPlanPtrInput // The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group. ResourceGroupName pulumi.StringPtrInput // Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created. SolutionName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceName pulumi.StringPtrInput // The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceResourceId pulumi.StringPtrInput }
func (AnalyticsSolutionState) ElementType ¶
func (AnalyticsSolutionState) ElementType() reflect.Type
type AnalyticsWorkspace ¶
type AnalyticsWorkspace struct { pulumi.CustomResourceState // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted. DailyQuotaGb pulumi.Float64PtrOutput `pulumi:"dailyQuotaGb"` InternetIngestionEnabled pulumi.BoolPtrOutput `pulumi:"internetIngestionEnabled"` // Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`. InternetQueryEnabled pulumi.BoolPtrOutput `pulumi:"internetQueryEnabled"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider PortalUrl pulumi.StringOutput `pulumi:"portalUrl"` PrimarySharedKey pulumi.StringOutput `pulumi:"primarySharedKey"` // The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. ReservationCapcityInGbPerDay pulumi.IntPtrOutput `pulumi:"reservationCapcityInGbPerDay"` // The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. RetentionInDays pulumi.IntOutput `pulumi:"retentionInDays"` SecondarySharedKey pulumi.StringOutput `pulumi:"secondarySharedKey"` // Specifies the Sku of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, `CapacityReservation`, and `PerGB2018` (new Sku as of `2018-04-03`). Defaults to `PerGB2018`. Sku pulumi.StringPtrOutput `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The Workspace (or Customer) ID for the Log Analytics Workspace. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Manages a Log Analytics (formally Operational Insights) Workspace.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/operationalinsights" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("PerGB2018"), RetentionInDays: pulumi.Int(30), }) if err != nil { return err } return nil }) }
```
## Import
Log Analytics Workspaces can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace workspace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1
```
func GetAnalyticsWorkspace ¶
func GetAnalyticsWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnalyticsWorkspaceState, opts ...pulumi.ResourceOption) (*AnalyticsWorkspace, error)
GetAnalyticsWorkspace gets an existing AnalyticsWorkspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAnalyticsWorkspace ¶
func NewAnalyticsWorkspace(ctx *pulumi.Context, name string, args *AnalyticsWorkspaceArgs, opts ...pulumi.ResourceOption) (*AnalyticsWorkspace, error)
NewAnalyticsWorkspace registers a new resource with the given unique name, arguments, and options.
func (*AnalyticsWorkspace) ElementType ¶
func (*AnalyticsWorkspace) ElementType() reflect.Type
func (*AnalyticsWorkspace) ToAnalyticsWorkspaceOutput ¶
func (i *AnalyticsWorkspace) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
func (*AnalyticsWorkspace) ToAnalyticsWorkspaceOutputWithContext ¶
func (i *AnalyticsWorkspace) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
func (*AnalyticsWorkspace) ToAnalyticsWorkspacePtrOutput ¶
func (i *AnalyticsWorkspace) ToAnalyticsWorkspacePtrOutput() AnalyticsWorkspacePtrOutput
func (*AnalyticsWorkspace) ToAnalyticsWorkspacePtrOutputWithContext ¶
func (i *AnalyticsWorkspace) ToAnalyticsWorkspacePtrOutputWithContext(ctx context.Context) AnalyticsWorkspacePtrOutput
type AnalyticsWorkspaceArgs ¶
type AnalyticsWorkspaceArgs struct { // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted. DailyQuotaGb pulumi.Float64PtrInput InternetIngestionEnabled pulumi.BoolPtrInput // Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`. InternetQueryEnabled pulumi.BoolPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. ReservationCapcityInGbPerDay pulumi.IntPtrInput // The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. RetentionInDays pulumi.IntPtrInput // Specifies the Sku of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, `CapacityReservation`, and `PerGB2018` (new Sku as of `2018-04-03`). Defaults to `PerGB2018`. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a AnalyticsWorkspace resource.
func (AnalyticsWorkspaceArgs) ElementType ¶
func (AnalyticsWorkspaceArgs) ElementType() reflect.Type
type AnalyticsWorkspaceArray ¶
type AnalyticsWorkspaceArray []AnalyticsWorkspaceInput
func (AnalyticsWorkspaceArray) ElementType ¶
func (AnalyticsWorkspaceArray) ElementType() reflect.Type
func (AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutput ¶
func (i AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput
func (AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutputWithContext ¶
func (i AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutputWithContext(ctx context.Context) AnalyticsWorkspaceArrayOutput
type AnalyticsWorkspaceArrayInput ¶
type AnalyticsWorkspaceArrayInput interface { pulumi.Input ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput ToAnalyticsWorkspaceArrayOutputWithContext(context.Context) AnalyticsWorkspaceArrayOutput }
AnalyticsWorkspaceArrayInput is an input type that accepts AnalyticsWorkspaceArray and AnalyticsWorkspaceArrayOutput values. You can construct a concrete instance of `AnalyticsWorkspaceArrayInput` via:
AnalyticsWorkspaceArray{ AnalyticsWorkspaceArgs{...} }
type AnalyticsWorkspaceArrayOutput ¶
type AnalyticsWorkspaceArrayOutput struct{ *pulumi.OutputState }
func (AnalyticsWorkspaceArrayOutput) ElementType ¶
func (AnalyticsWorkspaceArrayOutput) ElementType() reflect.Type
func (AnalyticsWorkspaceArrayOutput) Index ¶
func (o AnalyticsWorkspaceArrayOutput) Index(i pulumi.IntInput) AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutput ¶
func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput
func (AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutputWithContext ¶
func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutputWithContext(ctx context.Context) AnalyticsWorkspaceArrayOutput
type AnalyticsWorkspaceInput ¶
type AnalyticsWorkspaceInput interface { pulumi.Input ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput }
type AnalyticsWorkspaceMap ¶
type AnalyticsWorkspaceMap map[string]AnalyticsWorkspaceInput
func (AnalyticsWorkspaceMap) ElementType ¶
func (AnalyticsWorkspaceMap) ElementType() reflect.Type
func (AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutput ¶
func (i AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput
func (AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutputWithContext ¶
func (i AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutputWithContext(ctx context.Context) AnalyticsWorkspaceMapOutput
type AnalyticsWorkspaceMapInput ¶
type AnalyticsWorkspaceMapInput interface { pulumi.Input ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput ToAnalyticsWorkspaceMapOutputWithContext(context.Context) AnalyticsWorkspaceMapOutput }
AnalyticsWorkspaceMapInput is an input type that accepts AnalyticsWorkspaceMap and AnalyticsWorkspaceMapOutput values. You can construct a concrete instance of `AnalyticsWorkspaceMapInput` via:
AnalyticsWorkspaceMap{ "key": AnalyticsWorkspaceArgs{...} }
type AnalyticsWorkspaceMapOutput ¶
type AnalyticsWorkspaceMapOutput struct{ *pulumi.OutputState }
func (AnalyticsWorkspaceMapOutput) ElementType ¶
func (AnalyticsWorkspaceMapOutput) ElementType() reflect.Type
func (AnalyticsWorkspaceMapOutput) MapIndex ¶
func (o AnalyticsWorkspaceMapOutput) MapIndex(k pulumi.StringInput) AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutput ¶
func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput
func (AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutputWithContext ¶
func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutputWithContext(ctx context.Context) AnalyticsWorkspaceMapOutput
type AnalyticsWorkspaceOutput ¶
type AnalyticsWorkspaceOutput struct {
*pulumi.OutputState
}
func (AnalyticsWorkspaceOutput) ElementType ¶
func (AnalyticsWorkspaceOutput) ElementType() reflect.Type
func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput ¶
func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext ¶
func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspacePtrOutput ¶
func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspacePtrOutput() AnalyticsWorkspacePtrOutput
func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspacePtrOutputWithContext ¶
func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspacePtrOutputWithContext(ctx context.Context) AnalyticsWorkspacePtrOutput
type AnalyticsWorkspacePtrInput ¶
type AnalyticsWorkspacePtrInput interface { pulumi.Input ToAnalyticsWorkspacePtrOutput() AnalyticsWorkspacePtrOutput ToAnalyticsWorkspacePtrOutputWithContext(ctx context.Context) AnalyticsWorkspacePtrOutput }
type AnalyticsWorkspacePtrOutput ¶
type AnalyticsWorkspacePtrOutput struct {
*pulumi.OutputState
}
func (AnalyticsWorkspacePtrOutput) ElementType ¶
func (AnalyticsWorkspacePtrOutput) ElementType() reflect.Type
func (AnalyticsWorkspacePtrOutput) ToAnalyticsWorkspacePtrOutput ¶
func (o AnalyticsWorkspacePtrOutput) ToAnalyticsWorkspacePtrOutput() AnalyticsWorkspacePtrOutput
func (AnalyticsWorkspacePtrOutput) ToAnalyticsWorkspacePtrOutputWithContext ¶
func (o AnalyticsWorkspacePtrOutput) ToAnalyticsWorkspacePtrOutputWithContext(ctx context.Context) AnalyticsWorkspacePtrOutput
type AnalyticsWorkspaceState ¶
type AnalyticsWorkspaceState struct { // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted. DailyQuotaGb pulumi.Float64PtrInput InternetIngestionEnabled pulumi.BoolPtrInput // Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`. InternetQueryEnabled pulumi.BoolPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider PortalUrl pulumi.StringPtrInput PrimarySharedKey pulumi.StringPtrInput // The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. ReservationCapcityInGbPerDay pulumi.IntPtrInput // The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. RetentionInDays pulumi.IntPtrInput SecondarySharedKey pulumi.StringPtrInput // Specifies the Sku of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, `CapacityReservation`, and `PerGB2018` (new Sku as of `2018-04-03`). Defaults to `PerGB2018`. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The Workspace (or Customer) ID for the Log Analytics Workspace. WorkspaceId pulumi.StringPtrInput }
func (AnalyticsWorkspaceState) ElementType ¶
func (AnalyticsWorkspaceState) ElementType() reflect.Type
type LookupAnalyticsWorkspaceArgs ¶
type LookupAnalyticsWorkspaceArgs struct { // Specifies the name of the Log Analytics Workspace. Name string `pulumi:"name"` // The name of the resource group in which the Log Analytics workspace is located in. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getAnalyticsWorkspace.
type LookupAnalyticsWorkspaceResult ¶
type LookupAnalyticsWorkspaceResult struct { // The workspace daily quota for ingestion in GB. DailyQuotaGb float64 `pulumi:"dailyQuotaGb"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Location string `pulumi:"location"` Name string `pulumi:"name"` // Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider PortalUrl string `pulumi:"portalUrl"` // The Primary shared key for the Log Analytics Workspace. ResourceGroupName string `pulumi:"resourceGroupName"` // The workspace data retention in days. RetentionInDays int `pulumi:"retentionInDays"` SecondarySharedKey string `pulumi:"secondarySharedKey"` // The Sku of the Log Analytics Workspace. Sku string `pulumi:"sku"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The Workspace (or Customer) ID for the Log Analytics Workspace. WorkspaceId string `pulumi:"workspaceId"` }
A collection of values returned by getAnalyticsWorkspace.
func LookupAnalyticsWorkspace ¶
func LookupAnalyticsWorkspace(ctx *pulumi.Context, args *LookupAnalyticsWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupAnalyticsWorkspaceResult, error)
Use this data source to access information about an existing Log Analytics (formally Operational Insights) Workspace.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/operationalinsights" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := operationalinsights.LookupAnalyticsWorkspace(ctx, &operationalinsights.LookupAnalyticsWorkspaceArgs{ Name: "acctest-01", ResourceGroupName: "acctest", }, nil) if err != nil { return err } ctx.Export("logAnalyticsWorkspaceId", example.WorkspaceId) return nil }) }
```