azure-native.insights.Workbook
Explore with Pulumi AI
An Application Insights workbook definition. API Version: 2020-10-20.
Example Usage
WorkbookManagedAdd
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workbook = new AzureNative.Insights.Workbook("workbook", new()
{
Category = "workbook",
DisplayName = "tttt",
Id = "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79",
Identity = new AzureNative.Insights.Inputs.WorkbookManagedIdentityArgs
{
Type = "UserAssigned",
},
Kind = "shared",
Location = "westus",
Name = "e378d137-1243-4256-b5c4-ad2a937cae79",
ResourceGroupName = "my-resource-group",
ResourceName = "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
SerializedData = "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}",
SourceId = "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
StorageUri = "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer",
Tags =
{
{ "hidden-title", "tttt" },
},
Version = "Notebook/1.0",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewWorkbook(ctx, "workbook", &insights.WorkbookArgs{
Category: pulumi.String("workbook"),
DisplayName: pulumi.String("tttt"),
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79"),
Identity: &insights.WorkbookManagedIdentityArgs{
Type: pulumi.String("UserAssigned"),
},
Kind: pulumi.String("shared"),
Location: pulumi.String("westus"),
Name: pulumi.String("e378d137-1243-4256-b5c4-ad2a937cae79"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"),
SerializedData: pulumi.String("{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}"),
SourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup"),
StorageUri: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"),
Tags: pulumi.StringMap{
"hidden-title": pulumi.String("tttt"),
},
Version: pulumi.String("Notebook/1.0"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.Workbook;
import com.pulumi.azurenative.insights.WorkbookArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var workbook = new Workbook("workbook", WorkbookArgs.builder()
.category("workbook")
.displayName("tttt")
.id("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79")
.identity(Map.of("type", "UserAssigned"))
.kind("shared")
.location("westus")
.name("e378d137-1243-4256-b5c4-ad2a937cae79")
.resourceGroupName("my-resource-group")
.resourceName("deadb33f-5e0d-4064-8ebb-1a4ed0313eb2")
.serializedData("{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}")
.sourceId("/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup")
.storageUri("/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer")
.tags(Map.of("hidden-title", "tttt"))
.version("Notebook/1.0")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
workbook = azure_native.insights.Workbook("workbook",
category="workbook",
display_name="tttt",
id="/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79",
identity=azure_native.insights.WorkbookManagedIdentityArgs(
type="UserAssigned",
),
kind="shared",
location="westus",
name="e378d137-1243-4256-b5c4-ad2a937cae79",
resource_group_name="my-resource-group",
resource_name_="deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
serialized_data="{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}",
source_id="/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
storage_uri="/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer",
tags={
"hidden-title": "tttt",
},
version="Notebook/1.0")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const workbook = new azure_native.insights.Workbook("workbook", {
category: "workbook",
displayName: "tttt",
id: "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79",
identity: {
type: "UserAssigned",
},
kind: "shared",
location: "westus",
name: "e378d137-1243-4256-b5c4-ad2a937cae79",
resourceGroupName: "my-resource-group",
resourceName: "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
serializedData: "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}",
sourceId: "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
storageUri: "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer",
tags: {
"hidden-title": "tttt",
},
version: "Notebook/1.0",
});
resources:
workbook:
type: azure-native:insights:Workbook
properties:
category: workbook
displayName: tttt
id: /subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79
identity:
type: UserAssigned
kind: shared
location: westus
name: e378d137-1243-4256-b5c4-ad2a937cae79
resourceGroupName: my-resource-group
resourceName: deadb33f-5e0d-4064-8ebb-1a4ed0313eb2
serializedData: '{"version":"Notebook/1.0","items":[{"type":1,"content":{"json":"test"},"name":"text - 0"}],"isLocked":false,"fallbackResourceIds":["/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup"]}'
sourceId: /subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup
storageUri: /subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer
tags:
hidden-title: tttt
version: Notebook/1.0
Create Workbook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workbook(name: string, args: WorkbookArgs, opts?: CustomResourceOptions);
@overload
def Workbook(resource_name: str,
args: WorkbookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Workbook(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
display_name: Optional[str] = None,
serialized_data: Optional[str] = None,
category: Optional[str] = None,
identity: Optional[WorkbookManagedIdentityArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
kind: Optional[Union[str, Kind]] = None,
resource_name_: Optional[str] = None,
id: Optional[str] = None,
source_id: Optional[str] = None,
storage_uri: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
version: Optional[str] = None)
func NewWorkbook(ctx *Context, name string, args WorkbookArgs, opts ...ResourceOption) (*Workbook, error)
public Workbook(string name, WorkbookArgs args, CustomResourceOptions? opts = null)
public Workbook(String name, WorkbookArgs args)
public Workbook(String name, WorkbookArgs args, CustomResourceOptions options)
type: azure-native:insights:Workbook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkbookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkbookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkbookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkbookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkbookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var workbookResource = new AzureNative.Insights.Workbook("workbookResource", new()
{
ResourceGroupName = "string",
DisplayName = "string",
SerializedData = "string",
Category = "string",
Identity =
{
{ "type", "string" },
},
Location = "string",
Name = "string",
Kind = "string",
ResourceName = "string",
Id = "string",
SourceId = "string",
StorageUri = "string",
Tags =
{
{ "string", "string" },
},
Type = "string",
Version = "string",
});
example, err := insights.NewWorkbook(ctx, "workbookResource", &insights.WorkbookArgs{
ResourceGroupName: "string",
DisplayName: "string",
SerializedData: "string",
Category: "string",
Identity: map[string]interface{}{
"type": "string",
},
Location: "string",
Name: "string",
Kind: "string",
ResourceName: "string",
Id: "string",
SourceId: "string",
StorageUri: "string",
Tags: map[string]interface{}{
"string": "string",
},
Type: "string",
Version: "string",
})
var workbookResource = new Workbook("workbookResource", WorkbookArgs.builder()
.resourceGroupName("string")
.displayName("string")
.serializedData("string")
.category("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.name("string")
.kind("string")
.resourceName("string")
.id("string")
.sourceId("string")
.storageUri("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.type("string")
.version("string")
.build());
workbook_resource = azure_native.insights.Workbook("workbookResource",
resource_group_name=string,
display_name=string,
serialized_data=string,
category=string,
identity={
type: string,
},
location=string,
name=string,
kind=string,
resource_name_=string,
id=string,
source_id=string,
storage_uri=string,
tags={
string: string,
},
type=string,
version=string)
const workbookResource = new azure_native.insights.Workbook("workbookResource", {
resourceGroupName: "string",
displayName: "string",
serializedData: "string",
category: "string",
identity: {
type: "string",
},
location: "string",
name: "string",
kind: "string",
resourceName: "string",
id: "string",
sourceId: "string",
storageUri: "string",
tags: {
string: "string",
},
type: "string",
version: "string",
});
type: azure-native:insights:Workbook
properties:
category: string
displayName: string
id: string
identity:
type: string
kind: string
location: string
name: string
resourceGroupName: string
resourceName: string
serializedData: string
sourceId: string
storageUri: string
tags:
string: string
type: string
version: string
Workbook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Workbook resource accepts the following input properties:
- Category string
- Workbook category, as defined by the user at creation time.
- Display
Name string - The user-defined name (display name) of the workbook.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Serialized
Data string - Configuration of this particular workbook. Configuration data is a string containing valid JSON
- Id string
- Azure resource Id
- Identity
Pulumi.
Azure Native. Insights. Inputs. Workbook Managed Identity - Identity used for BYOS
- Kind
string | Pulumi.
Azure Native. Insights. Kind - The kind of workbook. Choices are user and shared.
- Location string
- Resource location
- Name string
- Azure resource name
- Resource
Name string - The name of the Application Insights component resource.
- Source
Id string - ResourceId for a source resource.
- Storage
Uri string - BYOS Storage Account URI
- Dictionary<string, string>
- Resource tags
- Type string
- Azure resource type
- Version string
- Workbook version
- Category string
- Workbook category, as defined by the user at creation time.
- Display
Name string - The user-defined name (display name) of the workbook.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Serialized
Data string - Configuration of this particular workbook. Configuration data is a string containing valid JSON
- Id string
- Azure resource Id
- Identity
Workbook
Managed Identity Args - Identity used for BYOS
- Kind string | Kind
- The kind of workbook. Choices are user and shared.
- Location string
- Resource location
- Name string
- Azure resource name
- Resource
Name string - The name of the Application Insights component resource.
- Source
Id string - ResourceId for a source resource.
- Storage
Uri string - BYOS Storage Account URI
- map[string]string
- Resource tags
- Type string
- Azure resource type
- Version string
- Workbook version
- category String
- Workbook category, as defined by the user at creation time.
- display
Name String - The user-defined name (display name) of the workbook.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- serialized
Data String - Configuration of this particular workbook. Configuration data is a string containing valid JSON
- id String
- Azure resource Id
- identity
Workbook
Managed Identity - Identity used for BYOS
- kind String | Kind
- The kind of workbook. Choices are user and shared.
- location String
- Resource location
- name String
- Azure resource name
- resource
Name String - The name of the Application Insights component resource.
- source
Id String - ResourceId for a source resource.
- storage
Uri String - BYOS Storage Account URI
- Map<String,String>
- Resource tags
- type String
- Azure resource type
- version String
- Workbook version
- category string
- Workbook category, as defined by the user at creation time.
- display
Name string - The user-defined name (display name) of the workbook.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- serialized
Data string - Configuration of this particular workbook. Configuration data is a string containing valid JSON
- id string
- Azure resource Id
- identity
Workbook
Managed Identity - Identity used for BYOS
- kind string | Kind
- The kind of workbook. Choices are user and shared.
- location string
- Resource location
- name string
- Azure resource name
- resource
Name string - The name of the Application Insights component resource.
- source
Id string - ResourceId for a source resource.
- storage
Uri string - BYOS Storage Account URI
- {[key: string]: string}
- Resource tags
- type string
- Azure resource type
- version string
- Workbook version
- category str
- Workbook category, as defined by the user at creation time.
- display_
name str - The user-defined name (display name) of the workbook.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- serialized_
data str - Configuration of this particular workbook. Configuration data is a string containing valid JSON
- id str
- Azure resource Id
- identity
Workbook
Managed Identity Args - Identity used for BYOS
- kind str | Kind
- The kind of workbook. Choices are user and shared.
- location str
- Resource location
- name str
- Azure resource name
- resource_
name str - The name of the Application Insights component resource.
- source_
id str - ResourceId for a source resource.
- storage_
uri str - BYOS Storage Account URI
- Mapping[str, str]
- Resource tags
- type str
- Azure resource type
- version str
- Workbook version
- category String
- Workbook category, as defined by the user at creation time.
- display
Name String - The user-defined name (display name) of the workbook.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- serialized
Data String - Configuration of this particular workbook. Configuration data is a string containing valid JSON
- id String
- Azure resource Id
- identity Property Map
- Identity used for BYOS
- kind String | "user" | "shared"
- The kind of workbook. Choices are user and shared.
- location String
- Resource location
- name String
- Azure resource name
- resource
Name String - The name of the Application Insights component resource.
- source
Id String - ResourceId for a source resource.
- storage
Uri String - BYOS Storage Account URI
- Map<String>
- Resource tags
- type String
- Azure resource type
- version String
- Workbook version
Outputs
All input properties are implicitly available as output properties. Additionally, the Workbook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Modified string - Date and time in UTC of the last modification that was made to this workbook definition.
- User
Id string - Unique user id of the specific user that owns this workbook.
- Etag Dictionary<string, string>
- Resource etag
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Modified string - Date and time in UTC of the last modification that was made to this workbook definition.
- User
Id string - Unique user id of the specific user that owns this workbook.
- Etag map[string]string
- Resource etag
- id String
- The provider-assigned unique ID for this managed resource.
- time
Modified String - Date and time in UTC of the last modification that was made to this workbook definition.
- user
Id String - Unique user id of the specific user that owns this workbook.
- etag Map<String,String>
- Resource etag
- id string
- The provider-assigned unique ID for this managed resource.
- time
Modified string - Date and time in UTC of the last modification that was made to this workbook definition.
- user
Id string - Unique user id of the specific user that owns this workbook.
- etag {[key: string]: string}
- Resource etag
- id str
- The provider-assigned unique ID for this managed resource.
- time_
modified str - Date and time in UTC of the last modification that was made to this workbook definition.
- user_
id str - Unique user id of the specific user that owns this workbook.
- etag Mapping[str, str]
- Resource etag
- id String
- The provider-assigned unique ID for this managed resource.
- time
Modified String - Date and time in UTC of the last modification that was made to this workbook definition.
- user
Id String - Unique user id of the specific user that owns this workbook.
- etag Map<String>
- Resource etag
Supporting Types
Kind, KindArgs
- User
- user
- Shared
- shared
- Kind
User - user
- Kind
Shared - shared
- User
- user
- Shared
- shared
- User
- user
- Shared
- shared
- USER
- user
- SHARED
- shared
- "user"
- user
- "shared"
- shared
WorkbookManagedIdentity, WorkbookManagedIdentityArgs
- Type string
- The identity type.
- Type string
- The identity type.
- type String
- The identity type.
- type string
- The identity type.
- type str
- The identity type.
- type String
- The identity type.
WorkbookManagedIdentityResponse, WorkbookManagedIdentityResponseArgs
- Type string
- The identity type.
- User
Assigned Pulumi.Identities Azure Native. Insights. Inputs. Workbook User Assigned Identities Response - Customer Managed Identity
- Type string
- The identity type.
- User
Assigned WorkbookIdentities User Assigned Identities Response - Customer Managed Identity
- type String
- The identity type.
- user
Assigned WorkbookIdentities User Assigned Identities Response - Customer Managed Identity
- type string
- The identity type.
- user
Assigned WorkbookIdentities User Assigned Identities Response - Customer Managed Identity
- type str
- The identity type.
- user_
assigned_ Workbookidentities User Assigned Identities Response - Customer Managed Identity
- type String
- The identity type.
- user
Assigned Property MapIdentities - Customer Managed Identity
WorkbookUserAssignedIdentitiesResponse, WorkbookUserAssignedIdentitiesResponseArgs
- Client
Id string - The client ID of resource.
- Principal
Id string - The principal ID of resource identity.
- Tenant
Id string - The tenant ID of resource.
- Client
Id string - The client ID of resource.
- Principal
Id string - The principal ID of resource identity.
- Tenant
Id string - The tenant ID of resource.
- client
Id String - The client ID of resource.
- principal
Id String - The principal ID of resource identity.
- tenant
Id String - The tenant ID of resource.
- client
Id string - The client ID of resource.
- principal
Id string - The principal ID of resource identity.
- tenant
Id string - The tenant ID of resource.
- client_
id str - The client ID of resource.
- principal_
id str - The principal ID of resource identity.
- tenant_
id str - The tenant ID of resource.
- client
Id String - The client ID of resource.
- principal
Id String - The principal ID of resource identity.
- tenant
Id String - The tenant ID of resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:Workbook e378d137-1243-4256-b5c4-ad2a937cae79 /subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/72377f0c-b7e7-4044-a882-471bcbd9696e
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0