diff --git a/examples/go.mod b/examples/go.mod index 7636ffe143..8788a90d28 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -128,7 +128,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.136.1 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.137.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect @@ -180,3 +180,7 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/frand v1.4.2 // indirect ) + +replace github.com/pulumi/pulumi/pkg/v3 => github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee + +replace github.com/pulumi/pulumi/sdk/v3 => github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee diff --git a/examples/go.sum b/examples/go.sum index 408d628c7f..73825f7e85 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -342,10 +342,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= -github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= -github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= -github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee h1:n3lLQp8pLf3f/sL3HVjQEekmrpfC+QjGWvEpsr2NFXY= +github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee/go.mod h1:QVnKWFBuraCB9q4mluaj2sOdyboCpNydSzlE0MUfHew= +github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee h1:QP1wvjt+yE6U8SrUWQ1u83oQz78uxC66AjfsTY19UBI= +github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-azure/schema.json b/provider/cmd/pulumi-resource-azure/schema.json index f48d63456c..d7c08522ac 100644 --- a/provider/cmd/pulumi-resource-azure/schema.json +++ b/provider/cmd/pulumi-resource-azure/schema.json @@ -113453,7 +113453,7 @@ } }, "azure:appplatform/springCloudBuildPackBinding:SpringCloudBuildPackBinding": { - "description": "Manages a Spring Cloud Build Pack Binding.\n\n\u003e **NOTE:** This resource is applicable only for Spring Cloud Service with enterprise tier.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleSpringCloudService = new azure.appplatform.SpringCloudService(\"example\", {\n name: \"example-springcloud\",\n resourceGroupName: example.name,\n location: example.location,\n skuName: \"E0\",\n});\nconst exampleSpringCloudBuilder = new azure.appplatform.SpringCloudBuilder(\"example\", {\n name: \"example\",\n springCloudServiceId: exampleSpringCloudService.id,\n buildPackGroups: [{\n name: \"mix\",\n buildPackIds: [\"tanzu-Build Packs/java-azure\"],\n }],\n stack: {\n id: \"io.Build Packs.stacks.bionic\",\n version: \"base\",\n },\n});\nconst exampleSpringCloudBuildPackBinding = new azure.appplatform.SpringCloudBuildPackBinding(\"example\", {\n name: \"example\",\n springCloudBuilderId: exampleSpringCloudBuilder.id,\n bindingType: \"ApplicationInsights\",\n launch: {\n properties: {\n abc: \"def\",\n \"any-string\": \"any-string\",\n \"sampling-rate\": \"12.0\",\n },\n secrets: {\n \"connection-string\": \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_spring_cloud_service = azure.appplatform.SpringCloudService(\"example\",\n name=\"example-springcloud\",\n resource_group_name=example.name,\n location=example.location,\n sku_name=\"E0\")\nexample_spring_cloud_builder = azure.appplatform.SpringCloudBuilder(\"example\",\n name=\"example\",\n spring_cloud_service_id=example_spring_cloud_service.id,\n build_pack_groups=[{\n \"name\": \"mix\",\n \"build_pack_ids\": [\"tanzu-Build Packs/java-azure\"],\n }],\n stack={\n \"id\": \"io.Build Packs.stacks.bionic\",\n \"version\": \"base\",\n })\nexample_spring_cloud_build_pack_binding = azure.appplatform.SpringCloudBuildPackBinding(\"example\",\n name=\"example\",\n spring_cloud_builder_id=example_spring_cloud_builder.id,\n binding_type=\"ApplicationInsights\",\n launch={\n \"properties\": {\n \"abc\": \"def\",\n \"any_string\": \"any-string\",\n \"sampling_rate\": \"12.0\",\n },\n \"secrets\": {\n \"connection_string\": \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\",\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService(\"example\", new()\n {\n Name = \"example-springcloud\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n SkuName = \"E0\",\n });\n\n var exampleSpringCloudBuilder = new Azure.AppPlatform.SpringCloudBuilder(\"example\", new()\n {\n Name = \"example\",\n SpringCloudServiceId = exampleSpringCloudService.Id,\n BuildPackGroups = new[]\n {\n new Azure.AppPlatform.Inputs.SpringCloudBuilderBuildPackGroupArgs\n {\n Name = \"mix\",\n BuildPackIds = new[]\n {\n \"tanzu-Build Packs/java-azure\",\n },\n },\n },\n Stack = new Azure.AppPlatform.Inputs.SpringCloudBuilderStackArgs\n {\n Id = \"io.Build Packs.stacks.bionic\",\n Version = \"base\",\n },\n });\n\n var exampleSpringCloudBuildPackBinding = new Azure.AppPlatform.SpringCloudBuildPackBinding(\"example\", new()\n {\n Name = \"example\",\n SpringCloudBuilderId = exampleSpringCloudBuilder.Id,\n BindingType = \"ApplicationInsights\",\n Launch = new Azure.AppPlatform.Inputs.SpringCloudBuildPackBindingLaunchArgs\n {\n Properties = \n {\n { \"abc\", \"def\" },\n { \"any-string\", \"any-string\" },\n { \"sampling-rate\", \"12.0\" },\n },\n Secrets = \n {\n { \"connection-string\", \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\" },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, \"example\", \u0026appplatform.SpringCloudServiceArgs{\n\t\t\tName: pulumi.String(\"example-springcloud\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSkuName: pulumi.String(\"E0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSpringCloudBuilder, err := appplatform.NewSpringCloudBuilder(ctx, \"example\", \u0026appplatform.SpringCloudBuilderArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tSpringCloudServiceId: exampleSpringCloudService.ID(),\n\t\t\tBuildPackGroups: appplatform.SpringCloudBuilderBuildPackGroupArray{\n\t\t\t\t\u0026appplatform.SpringCloudBuilderBuildPackGroupArgs{\n\t\t\t\t\tName: pulumi.String(\"mix\"),\n\t\t\t\t\tBuildPackIds: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"tanzu-Build Packs/java-azure\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tStack: \u0026appplatform.SpringCloudBuilderStackArgs{\n\t\t\t\tId: pulumi.String(\"io.Build Packs.stacks.bionic\"),\n\t\t\t\tVersion: pulumi.String(\"base\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = appplatform.NewSpringCloudBuildPackBinding(ctx, \"example\", \u0026appplatform.SpringCloudBuildPackBindingArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tSpringCloudBuilderId: exampleSpringCloudBuilder.ID(),\n\t\t\tBindingType: pulumi.String(\"ApplicationInsights\"),\n\t\t\tLaunch: \u0026appplatform.SpringCloudBuildPackBindingLaunchArgs{\n\t\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\t\"abc\": pulumi.String(\"def\"),\n\t\t\t\t\t\"any-string\": pulumi.String(\"any-string\"),\n\t\t\t\t\t\"sampling-rate\": pulumi.String(\"12.0\"),\n\t\t\t\t},\n\t\t\t\tSecrets: pulumi.StringMap{\n\t\t\t\t\t\"connection-string\": pulumi.String(\"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.appplatform.SpringCloudService;\nimport com.pulumi.azure.appplatform.SpringCloudServiceArgs;\nimport com.pulumi.azure.appplatform.SpringCloudBuilder;\nimport com.pulumi.azure.appplatform.SpringCloudBuilderArgs;\nimport com.pulumi.azure.appplatform.inputs.SpringCloudBuilderBuildPackGroupArgs;\nimport com.pulumi.azure.appplatform.inputs.SpringCloudBuilderStackArgs;\nimport com.pulumi.azure.appplatform.SpringCloudBuildPackBinding;\nimport com.pulumi.azure.appplatform.SpringCloudBuildPackBindingArgs;\nimport com.pulumi.azure.appplatform.inputs.SpringCloudBuildPackBindingLaunchArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleSpringCloudService = new SpringCloudService(\"exampleSpringCloudService\", SpringCloudServiceArgs.builder()\n .name(\"example-springcloud\")\n .resourceGroupName(example.name())\n .location(example.location())\n .skuName(\"E0\")\n .build());\n\n var exampleSpringCloudBuilder = new SpringCloudBuilder(\"exampleSpringCloudBuilder\", SpringCloudBuilderArgs.builder()\n .name(\"example\")\n .springCloudServiceId(exampleSpringCloudService.id())\n .buildPackGroups(SpringCloudBuilderBuildPackGroupArgs.builder()\n .name(\"mix\")\n .buildPackIds(\"tanzu-Build Packs/java-azure\")\n .build())\n .stack(SpringCloudBuilderStackArgs.builder()\n .id(\"io.Build Packs.stacks.bionic\")\n .version(\"base\")\n .build())\n .build());\n\n var exampleSpringCloudBuildPackBinding = new SpringCloudBuildPackBinding(\"exampleSpringCloudBuildPackBinding\", SpringCloudBuildPackBindingArgs.builder()\n .name(\"example\")\n .springCloudBuilderId(exampleSpringCloudBuilder.id())\n .bindingType(\"ApplicationInsights\")\n .launch(SpringCloudBuildPackBindingLaunchArgs.builder()\n .properties(Map.ofEntries(\n Map.entry(\"abc\", \"def\"),\n Map.entry(\"any-string\", \"any-string\"),\n Map.entry(\"sampling-rate\", \"12.0\")\n ))\n .secrets(Map.of(\"connection-string\", \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\"))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleSpringCloudService:\n type: azure:appplatform:SpringCloudService\n name: example\n properties:\n name: example-springcloud\n resourceGroupName: ${example.name}\n location: ${example.location}\n skuName: E0\n exampleSpringCloudBuilder:\n type: azure:appplatform:SpringCloudBuilder\n name: example\n properties:\n name: example\n springCloudServiceId: ${exampleSpringCloudService.id}\n buildPackGroups:\n - name: mix\n buildPackIds:\n - tanzu-Build Packs/java-azure\n stack:\n id: io.Build Packs.stacks.bionic\n version: base\n exampleSpringCloudBuildPackBinding:\n type: azure:appplatform:SpringCloudBuildPackBinding\n name: example\n properties:\n name: example\n springCloudBuilderId: ${exampleSpringCloudBuilder.id}\n bindingType: ApplicationInsights\n launch:\n properties:\n abc: def\n any-string: any-string\n sampling-rate: '12.0'\n secrets:\n connection-string: XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSpring Cloud Build Pack Bindings can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:appplatform/springCloudBuildPackBinding:SpringCloudBuildPackBinding example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/buildServices/buildService1/builders/builder1/buildPackBindings/binding1\n```\n\n", + "description": "Manages a Spring Cloud Build Pack Binding.\n\n\u003e **NOTE:** This resource is applicable only for Spring Cloud Service with enterprise tier.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleSpringCloudService = new azure.appplatform.SpringCloudService(\"example\", {\n name: \"example-springcloud\",\n resourceGroupName: example.name,\n location: example.location,\n skuName: \"E0\",\n});\nconst exampleSpringCloudBuilder = new azure.appplatform.SpringCloudBuilder(\"example\", {\n name: \"example\",\n springCloudServiceId: exampleSpringCloudService.id,\n buildPackGroups: [{\n name: \"mix\",\n buildPackIds: [\"tanzu-Build Packs/java-azure\"],\n }],\n stack: {\n id: \"io.Build Packs.stacks.bionic\",\n version: \"base\",\n },\n});\nconst exampleSpringCloudBuildPackBinding = new azure.appplatform.SpringCloudBuildPackBinding(\"example\", {\n name: \"example\",\n springCloudBuilderId: exampleSpringCloudBuilder.id,\n bindingType: \"ApplicationInsights\",\n launch: {\n properties: {\n abc: \"def\",\n \"any-string\": \"any-string\",\n \"sampling-rate\": \"12.0\",\n },\n secrets: {\n \"connection-string\": \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_spring_cloud_service = azure.appplatform.SpringCloudService(\"example\",\n name=\"example-springcloud\",\n resource_group_name=example.name,\n location=example.location,\n sku_name=\"E0\")\nexample_spring_cloud_builder = azure.appplatform.SpringCloudBuilder(\"example\",\n name=\"example\",\n spring_cloud_service_id=example_spring_cloud_service.id,\n build_pack_groups=[{\n \"name\": \"mix\",\n \"build_pack_ids\": [\"tanzu-Build Packs/java-azure\"],\n }],\n stack={\n \"id\": \"io.Build Packs.stacks.bionic\",\n \"version\": \"base\",\n })\nexample_spring_cloud_build_pack_binding = azure.appplatform.SpringCloudBuildPackBinding(\"example\",\n name=\"example\",\n spring_cloud_builder_id=example_spring_cloud_builder.id,\n binding_type=\"ApplicationInsights\",\n launch={\n \"properties\": {\n \"abc\": \"def\",\n \"any-string\": \"any-string\",\n \"sampling-rate\": \"12.0\",\n },\n \"secrets\": {\n \"connection-string\": \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\",\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService(\"example\", new()\n {\n Name = \"example-springcloud\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n SkuName = \"E0\",\n });\n\n var exampleSpringCloudBuilder = new Azure.AppPlatform.SpringCloudBuilder(\"example\", new()\n {\n Name = \"example\",\n SpringCloudServiceId = exampleSpringCloudService.Id,\n BuildPackGroups = new[]\n {\n new Azure.AppPlatform.Inputs.SpringCloudBuilderBuildPackGroupArgs\n {\n Name = \"mix\",\n BuildPackIds = new[]\n {\n \"tanzu-Build Packs/java-azure\",\n },\n },\n },\n Stack = new Azure.AppPlatform.Inputs.SpringCloudBuilderStackArgs\n {\n Id = \"io.Build Packs.stacks.bionic\",\n Version = \"base\",\n },\n });\n\n var exampleSpringCloudBuildPackBinding = new Azure.AppPlatform.SpringCloudBuildPackBinding(\"example\", new()\n {\n Name = \"example\",\n SpringCloudBuilderId = exampleSpringCloudBuilder.Id,\n BindingType = \"ApplicationInsights\",\n Launch = new Azure.AppPlatform.Inputs.SpringCloudBuildPackBindingLaunchArgs\n {\n Properties = \n {\n { \"abc\", \"def\" },\n { \"any-string\", \"any-string\" },\n { \"sampling-rate\", \"12.0\" },\n },\n Secrets = \n {\n { \"connection-string\", \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\" },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, \"example\", \u0026appplatform.SpringCloudServiceArgs{\n\t\t\tName: pulumi.String(\"example-springcloud\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSkuName: pulumi.String(\"E0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSpringCloudBuilder, err := appplatform.NewSpringCloudBuilder(ctx, \"example\", \u0026appplatform.SpringCloudBuilderArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tSpringCloudServiceId: exampleSpringCloudService.ID(),\n\t\t\tBuildPackGroups: appplatform.SpringCloudBuilderBuildPackGroupArray{\n\t\t\t\t\u0026appplatform.SpringCloudBuilderBuildPackGroupArgs{\n\t\t\t\t\tName: pulumi.String(\"mix\"),\n\t\t\t\t\tBuildPackIds: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"tanzu-Build Packs/java-azure\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tStack: \u0026appplatform.SpringCloudBuilderStackArgs{\n\t\t\t\tId: pulumi.String(\"io.Build Packs.stacks.bionic\"),\n\t\t\t\tVersion: pulumi.String(\"base\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = appplatform.NewSpringCloudBuildPackBinding(ctx, \"example\", \u0026appplatform.SpringCloudBuildPackBindingArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tSpringCloudBuilderId: exampleSpringCloudBuilder.ID(),\n\t\t\tBindingType: pulumi.String(\"ApplicationInsights\"),\n\t\t\tLaunch: \u0026appplatform.SpringCloudBuildPackBindingLaunchArgs{\n\t\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\t\"abc\": pulumi.String(\"def\"),\n\t\t\t\t\t\"any-string\": pulumi.String(\"any-string\"),\n\t\t\t\t\t\"sampling-rate\": pulumi.String(\"12.0\"),\n\t\t\t\t},\n\t\t\t\tSecrets: pulumi.StringMap{\n\t\t\t\t\t\"connection-string\": pulumi.String(\"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.appplatform.SpringCloudService;\nimport com.pulumi.azure.appplatform.SpringCloudServiceArgs;\nimport com.pulumi.azure.appplatform.SpringCloudBuilder;\nimport com.pulumi.azure.appplatform.SpringCloudBuilderArgs;\nimport com.pulumi.azure.appplatform.inputs.SpringCloudBuilderBuildPackGroupArgs;\nimport com.pulumi.azure.appplatform.inputs.SpringCloudBuilderStackArgs;\nimport com.pulumi.azure.appplatform.SpringCloudBuildPackBinding;\nimport com.pulumi.azure.appplatform.SpringCloudBuildPackBindingArgs;\nimport com.pulumi.azure.appplatform.inputs.SpringCloudBuildPackBindingLaunchArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleSpringCloudService = new SpringCloudService(\"exampleSpringCloudService\", SpringCloudServiceArgs.builder()\n .name(\"example-springcloud\")\n .resourceGroupName(example.name())\n .location(example.location())\n .skuName(\"E0\")\n .build());\n\n var exampleSpringCloudBuilder = new SpringCloudBuilder(\"exampleSpringCloudBuilder\", SpringCloudBuilderArgs.builder()\n .name(\"example\")\n .springCloudServiceId(exampleSpringCloudService.id())\n .buildPackGroups(SpringCloudBuilderBuildPackGroupArgs.builder()\n .name(\"mix\")\n .buildPackIds(\"tanzu-Build Packs/java-azure\")\n .build())\n .stack(SpringCloudBuilderStackArgs.builder()\n .id(\"io.Build Packs.stacks.bionic\")\n .version(\"base\")\n .build())\n .build());\n\n var exampleSpringCloudBuildPackBinding = new SpringCloudBuildPackBinding(\"exampleSpringCloudBuildPackBinding\", SpringCloudBuildPackBindingArgs.builder()\n .name(\"example\")\n .springCloudBuilderId(exampleSpringCloudBuilder.id())\n .bindingType(\"ApplicationInsights\")\n .launch(SpringCloudBuildPackBindingLaunchArgs.builder()\n .properties(Map.ofEntries(\n Map.entry(\"abc\", \"def\"),\n Map.entry(\"any-string\", \"any-string\"),\n Map.entry(\"sampling-rate\", \"12.0\")\n ))\n .secrets(Map.of(\"connection-string\", \"XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\"))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleSpringCloudService:\n type: azure:appplatform:SpringCloudService\n name: example\n properties:\n name: example-springcloud\n resourceGroupName: ${example.name}\n location: ${example.location}\n skuName: E0\n exampleSpringCloudBuilder:\n type: azure:appplatform:SpringCloudBuilder\n name: example\n properties:\n name: example\n springCloudServiceId: ${exampleSpringCloudService.id}\n buildPackGroups:\n - name: mix\n buildPackIds:\n - tanzu-Build Packs/java-azure\n stack:\n id: io.Build Packs.stacks.bionic\n version: base\n exampleSpringCloudBuildPackBinding:\n type: azure:appplatform:SpringCloudBuildPackBinding\n name: example\n properties:\n name: example\n springCloudBuilderId: ${exampleSpringCloudBuilder.id}\n bindingType: ApplicationInsights\n launch:\n properties:\n abc: def\n any-string: any-string\n sampling-rate: '12.0'\n secrets:\n connection-string: XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSpring Cloud Build Pack Bindings can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:appplatform/springCloudBuildPackBinding:SpringCloudBuildPackBinding example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/buildServices/buildService1/builders/builder1/buildPackBindings/binding1\n```\n\n", "properties": { "bindingType": { "type": "string", @@ -129810,7 +129810,7 @@ } }, "azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration": { - "description": "Manages an Automation Software Update Configuraion.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-rg\",\n location: \"East US\",\n});\nconst exampleAccount = new azure.automation.Account(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n skuName: \"Basic\",\n});\nconst exampleRunBook = new azure.automation.RunBook(\"example\", {\n name: \"Get-AzureVMTutorial\",\n location: example.location,\n resourceGroupName: example.name,\n automationAccountName: exampleAccount.name,\n logVerbose: true,\n logProgress: true,\n description: \"This is a example runbook for terraform acceptance example\",\n runbookType: \"Python3\",\n content: `# Some example content\n# for Terraform acceptance example\n`,\n tags: {\n ENV: \"runbook_test\",\n },\n});\nconst exampleSoftwareUpdateConfiguration = new azure.automation.SoftwareUpdateConfiguration(\"example\", {\n name: \"example\",\n automationAccountId: exampleAccount.id,\n linux: {\n classificationsIncludeds: \"Security\",\n excludedPackages: [\"apt\"],\n includedPackages: [\"vim\"],\n reboot: \"IfRequired\",\n },\n preTask: {\n source: exampleRunBook.name,\n parameters: {\n COMPUTER_NAME: \"Foo\",\n },\n },\n duration: \"PT2H2M2S\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-rg\",\n location=\"East US\")\nexample_account = azure.automation.Account(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name,\n sku_name=\"Basic\")\nexample_run_book = azure.automation.RunBook(\"example\",\n name=\"Get-AzureVMTutorial\",\n location=example.location,\n resource_group_name=example.name,\n automation_account_name=example_account.name,\n log_verbose=True,\n log_progress=True,\n description=\"This is a example runbook for terraform acceptance example\",\n runbook_type=\"Python3\",\n content=\"\"\"# Some example content\n# for Terraform acceptance example\n\"\"\",\n tags={\n \"ENV\": \"runbook_test\",\n })\nexample_software_update_configuration = azure.automation.SoftwareUpdateConfiguration(\"example\",\n name=\"example\",\n automation_account_id=example_account.id,\n linux={\n \"classifications_includeds\": \"Security\",\n \"excluded_packages\": [\"apt\"],\n \"included_packages\": [\"vim\"],\n \"reboot\": \"IfRequired\",\n },\n pre_task={\n \"source\": example_run_book.name,\n \"parameters\": {\n \"compute_r__name\": \"Foo\",\n },\n },\n duration=\"PT2H2M2S\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-rg\",\n Location = \"East US\",\n });\n\n var exampleAccount = new Azure.Automation.Account(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n SkuName = \"Basic\",\n });\n\n var exampleRunBook = new Azure.Automation.RunBook(\"example\", new()\n {\n Name = \"Get-AzureVMTutorial\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n AutomationAccountName = exampleAccount.Name,\n LogVerbose = true,\n LogProgress = true,\n Description = \"This is a example runbook for terraform acceptance example\",\n RunbookType = \"Python3\",\n Content = @\"# Some example content\n# for Terraform acceptance example\n\",\n Tags = \n {\n { \"ENV\", \"runbook_test\" },\n },\n });\n\n var exampleSoftwareUpdateConfiguration = new Azure.Automation.SoftwareUpdateConfiguration(\"example\", new()\n {\n Name = \"example\",\n AutomationAccountId = exampleAccount.Id,\n Linux = new Azure.Automation.Inputs.SoftwareUpdateConfigurationLinuxArgs\n {\n ClassificationsIncludeds = \"Security\",\n ExcludedPackages = new[]\n {\n \"apt\",\n },\n IncludedPackages = new[]\n {\n \"vim\",\n },\n Reboot = \"IfRequired\",\n },\n PreTask = new Azure.Automation.Inputs.SoftwareUpdateConfigurationPreTaskArgs\n {\n Source = exampleRunBook.Name,\n Parameters = \n {\n { \"COMPUTER_NAME\", \"Foo\" },\n },\n },\n Duration = \"PT2H2M2S\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-rg\"),\n\t\t\tLocation: pulumi.String(\"East US\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := automation.NewAccount(ctx, \"example\", \u0026automation.AccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tSkuName: pulumi.String(\"Basic\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleRunBook, err := automation.NewRunBook(ctx, \"example\", \u0026automation.RunBookArgs{\n\t\t\tName: pulumi.String(\"Get-AzureVMTutorial\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tAutomationAccountName: exampleAccount.Name,\n\t\t\tLogVerbose: pulumi.Bool(true),\n\t\t\tLogProgress: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"This is a example runbook for terraform acceptance example\"),\n\t\t\tRunbookType: pulumi.String(\"Python3\"),\n\t\t\tContent: pulumi.String(\"# Some example content\\n# for Terraform acceptance example\\n\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"ENV\": pulumi.String(\"runbook_test\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = automation.NewSoftwareUpdateConfiguration(ctx, \"example\", \u0026automation.SoftwareUpdateConfigurationArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tAutomationAccountId: exampleAccount.ID(),\n\t\t\tLinux: \u0026automation.SoftwareUpdateConfigurationLinuxArgs{\n\t\t\t\tClassificationsIncludeds: pulumi.StringArray(\"Security\"),\n\t\t\t\tExcludedPackages: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"apt\"),\n\t\t\t\t},\n\t\t\t\tIncludedPackages: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"vim\"),\n\t\t\t\t},\n\t\t\t\tReboot: pulumi.String(\"IfRequired\"),\n\t\t\t},\n\t\t\tPreTask: \u0026automation.SoftwareUpdateConfigurationPreTaskArgs{\n\t\t\t\tSource: exampleRunBook.Name,\n\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\"COMPUTER_NAME\": pulumi.String(\"Foo\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tDuration: pulumi.String(\"PT2H2M2S\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.automation.Account;\nimport com.pulumi.azure.automation.AccountArgs;\nimport com.pulumi.azure.automation.RunBook;\nimport com.pulumi.azure.automation.RunBookArgs;\nimport com.pulumi.azure.automation.SoftwareUpdateConfiguration;\nimport com.pulumi.azure.automation.SoftwareUpdateConfigurationArgs;\nimport com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationLinuxArgs;\nimport com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationPreTaskArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-rg\")\n .location(\"East US\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .skuName(\"Basic\")\n .build());\n\n var exampleRunBook = new RunBook(\"exampleRunBook\", RunBookArgs.builder()\n .name(\"Get-AzureVMTutorial\")\n .location(example.location())\n .resourceGroupName(example.name())\n .automationAccountName(exampleAccount.name())\n .logVerbose(\"true\")\n .logProgress(\"true\")\n .description(\"This is a example runbook for terraform acceptance example\")\n .runbookType(\"Python3\")\n .content(\"\"\"\n# Some example content\n# for Terraform acceptance example\n \"\"\")\n .tags(Map.of(\"ENV\", \"runbook_test\"))\n .build());\n\n var exampleSoftwareUpdateConfiguration = new SoftwareUpdateConfiguration(\"exampleSoftwareUpdateConfiguration\", SoftwareUpdateConfigurationArgs.builder()\n .name(\"example\")\n .automationAccountId(exampleAccount.id())\n .linux(SoftwareUpdateConfigurationLinuxArgs.builder()\n .classificationsIncludeds(\"Security\")\n .excludedPackages(\"apt\")\n .includedPackages(\"vim\")\n .reboot(\"IfRequired\")\n .build())\n .preTask(SoftwareUpdateConfigurationPreTaskArgs.builder()\n .source(exampleRunBook.name())\n .parameters(Map.of(\"COMPUTER_NAME\", \"Foo\"))\n .build())\n .duration(\"PT2H2M2S\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-rg\n location: East US\n exampleAccount:\n type: azure:automation:Account\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n skuName: Basic\n exampleRunBook:\n type: azure:automation:RunBook\n name: example\n properties:\n name: Get-AzureVMTutorial\n location: ${example.location}\n resourceGroupName: ${example.name}\n automationAccountName: ${exampleAccount.name}\n logVerbose: 'true'\n logProgress: 'true'\n description: This is a example runbook for terraform acceptance example\n runbookType: Python3\n content: |\n # Some example content\n # for Terraform acceptance example\n tags:\n ENV: runbook_test\n exampleSoftwareUpdateConfiguration:\n type: azure:automation:SoftwareUpdateConfiguration\n name: example\n properties:\n name: example\n automationAccountId: ${exampleAccount.id}\n linux:\n classificationsIncludeds: Security\n excludedPackages:\n - apt\n includedPackages:\n - vim\n reboot: IfRequired\n preTask:\n source: ${exampleRunBook.name}\n parameters:\n COMPUTER_NAME: Foo\n duration: PT2H2M2S\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAutomations Software Update Configuration can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/softwareUpdateConfigurations/suc1\n```\n\n", + "description": "Manages an Automation Software Update Configuraion.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-rg\",\n location: \"East US\",\n});\nconst exampleAccount = new azure.automation.Account(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n skuName: \"Basic\",\n});\nconst exampleRunBook = new azure.automation.RunBook(\"example\", {\n name: \"Get-AzureVMTutorial\",\n location: example.location,\n resourceGroupName: example.name,\n automationAccountName: exampleAccount.name,\n logVerbose: true,\n logProgress: true,\n description: \"This is a example runbook for terraform acceptance example\",\n runbookType: \"Python3\",\n content: `# Some example content\n# for Terraform acceptance example\n`,\n tags: {\n ENV: \"runbook_test\",\n },\n});\nconst exampleSoftwareUpdateConfiguration = new azure.automation.SoftwareUpdateConfiguration(\"example\", {\n name: \"example\",\n automationAccountId: exampleAccount.id,\n linux: {\n classificationsIncludeds: \"Security\",\n excludedPackages: [\"apt\"],\n includedPackages: [\"vim\"],\n reboot: \"IfRequired\",\n },\n preTask: {\n source: exampleRunBook.name,\n parameters: {\n COMPUTER_NAME: \"Foo\",\n },\n },\n duration: \"PT2H2M2S\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-rg\",\n location=\"East US\")\nexample_account = azure.automation.Account(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name,\n sku_name=\"Basic\")\nexample_run_book = azure.automation.RunBook(\"example\",\n name=\"Get-AzureVMTutorial\",\n location=example.location,\n resource_group_name=example.name,\n automation_account_name=example_account.name,\n log_verbose=True,\n log_progress=True,\n description=\"This is a example runbook for terraform acceptance example\",\n runbook_type=\"Python3\",\n content=\"\"\"# Some example content\n# for Terraform acceptance example\n\"\"\",\n tags={\n \"ENV\": \"runbook_test\",\n })\nexample_software_update_configuration = azure.automation.SoftwareUpdateConfiguration(\"example\",\n name=\"example\",\n automation_account_id=example_account.id,\n linux={\n \"classifications_includeds\": \"Security\",\n \"excluded_packages\": [\"apt\"],\n \"included_packages\": [\"vim\"],\n \"reboot\": \"IfRequired\",\n },\n pre_task={\n \"source\": example_run_book.name,\n \"parameters\": {\n \"COMPUTER_NAME\": \"Foo\",\n },\n },\n duration=\"PT2H2M2S\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-rg\",\n Location = \"East US\",\n });\n\n var exampleAccount = new Azure.Automation.Account(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n SkuName = \"Basic\",\n });\n\n var exampleRunBook = new Azure.Automation.RunBook(\"example\", new()\n {\n Name = \"Get-AzureVMTutorial\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n AutomationAccountName = exampleAccount.Name,\n LogVerbose = true,\n LogProgress = true,\n Description = \"This is a example runbook for terraform acceptance example\",\n RunbookType = \"Python3\",\n Content = @\"# Some example content\n# for Terraform acceptance example\n\",\n Tags = \n {\n { \"ENV\", \"runbook_test\" },\n },\n });\n\n var exampleSoftwareUpdateConfiguration = new Azure.Automation.SoftwareUpdateConfiguration(\"example\", new()\n {\n Name = \"example\",\n AutomationAccountId = exampleAccount.Id,\n Linux = new Azure.Automation.Inputs.SoftwareUpdateConfigurationLinuxArgs\n {\n ClassificationsIncludeds = \"Security\",\n ExcludedPackages = new[]\n {\n \"apt\",\n },\n IncludedPackages = new[]\n {\n \"vim\",\n },\n Reboot = \"IfRequired\",\n },\n PreTask = new Azure.Automation.Inputs.SoftwareUpdateConfigurationPreTaskArgs\n {\n Source = exampleRunBook.Name,\n Parameters = \n {\n { \"COMPUTER_NAME\", \"Foo\" },\n },\n },\n Duration = \"PT2H2M2S\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-rg\"),\n\t\t\tLocation: pulumi.String(\"East US\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := automation.NewAccount(ctx, \"example\", \u0026automation.AccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tSkuName: pulumi.String(\"Basic\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleRunBook, err := automation.NewRunBook(ctx, \"example\", \u0026automation.RunBookArgs{\n\t\t\tName: pulumi.String(\"Get-AzureVMTutorial\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tAutomationAccountName: exampleAccount.Name,\n\t\t\tLogVerbose: pulumi.Bool(true),\n\t\t\tLogProgress: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"This is a example runbook for terraform acceptance example\"),\n\t\t\tRunbookType: pulumi.String(\"Python3\"),\n\t\t\tContent: pulumi.String(\"# Some example content\\n# for Terraform acceptance example\\n\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"ENV\": pulumi.String(\"runbook_test\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = automation.NewSoftwareUpdateConfiguration(ctx, \"example\", \u0026automation.SoftwareUpdateConfigurationArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tAutomationAccountId: exampleAccount.ID(),\n\t\t\tLinux: \u0026automation.SoftwareUpdateConfigurationLinuxArgs{\n\t\t\t\tClassificationsIncludeds: pulumi.StringArray(\"Security\"),\n\t\t\t\tExcludedPackages: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"apt\"),\n\t\t\t\t},\n\t\t\t\tIncludedPackages: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"vim\"),\n\t\t\t\t},\n\t\t\t\tReboot: pulumi.String(\"IfRequired\"),\n\t\t\t},\n\t\t\tPreTask: \u0026automation.SoftwareUpdateConfigurationPreTaskArgs{\n\t\t\t\tSource: exampleRunBook.Name,\n\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\"COMPUTER_NAME\": pulumi.String(\"Foo\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tDuration: pulumi.String(\"PT2H2M2S\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.automation.Account;\nimport com.pulumi.azure.automation.AccountArgs;\nimport com.pulumi.azure.automation.RunBook;\nimport com.pulumi.azure.automation.RunBookArgs;\nimport com.pulumi.azure.automation.SoftwareUpdateConfiguration;\nimport com.pulumi.azure.automation.SoftwareUpdateConfigurationArgs;\nimport com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationLinuxArgs;\nimport com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationPreTaskArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-rg\")\n .location(\"East US\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .skuName(\"Basic\")\n .build());\n\n var exampleRunBook = new RunBook(\"exampleRunBook\", RunBookArgs.builder()\n .name(\"Get-AzureVMTutorial\")\n .location(example.location())\n .resourceGroupName(example.name())\n .automationAccountName(exampleAccount.name())\n .logVerbose(\"true\")\n .logProgress(\"true\")\n .description(\"This is a example runbook for terraform acceptance example\")\n .runbookType(\"Python3\")\n .content(\"\"\"\n# Some example content\n# for Terraform acceptance example\n \"\"\")\n .tags(Map.of(\"ENV\", \"runbook_test\"))\n .build());\n\n var exampleSoftwareUpdateConfiguration = new SoftwareUpdateConfiguration(\"exampleSoftwareUpdateConfiguration\", SoftwareUpdateConfigurationArgs.builder()\n .name(\"example\")\n .automationAccountId(exampleAccount.id())\n .linux(SoftwareUpdateConfigurationLinuxArgs.builder()\n .classificationsIncludeds(\"Security\")\n .excludedPackages(\"apt\")\n .includedPackages(\"vim\")\n .reboot(\"IfRequired\")\n .build())\n .preTask(SoftwareUpdateConfigurationPreTaskArgs.builder()\n .source(exampleRunBook.name())\n .parameters(Map.of(\"COMPUTER_NAME\", \"Foo\"))\n .build())\n .duration(\"PT2H2M2S\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-rg\n location: East US\n exampleAccount:\n type: azure:automation:Account\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n skuName: Basic\n exampleRunBook:\n type: azure:automation:RunBook\n name: example\n properties:\n name: Get-AzureVMTutorial\n location: ${example.location}\n resourceGroupName: ${example.name}\n automationAccountName: ${exampleAccount.name}\n logVerbose: 'true'\n logProgress: 'true'\n description: This is a example runbook for terraform acceptance example\n runbookType: Python3\n content: |\n # Some example content\n # for Terraform acceptance example\n tags:\n ENV: runbook_test\n exampleSoftwareUpdateConfiguration:\n type: azure:automation:SoftwareUpdateConfiguration\n name: example\n properties:\n name: example\n automationAccountId: ${exampleAccount.id}\n linux:\n classificationsIncludeds: Security\n excludedPackages:\n - apt\n includedPackages:\n - vim\n reboot: IfRequired\n preTask:\n source: ${exampleRunBook.name}\n parameters:\n COMPUTER_NAME: Foo\n duration: PT2H2M2S\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAutomations Software Update Configuration can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/softwareUpdateConfigurations/suc1\n```\n\n", "properties": { "automationAccountId": { "type": "string", @@ -137375,7 +137375,7 @@ } }, "azure:chaosstudio/experiment:Experiment": { - "description": "Manages a Chaos Studio Experiment.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"westeurope\",\n});\nconst exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity(\"example\", {\n resourceGroupName: example.name,\n location: example.location,\n name: \"example\",\n});\nconst exampleVirtualNetwork = new azure.network.VirtualNetwork(\"example\", {\n name: \"example\",\n addressSpaces: [\"10.0.0.0/16\"],\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleSubnet = new azure.network.Subnet(\"example\", {\n name: \"internal\",\n resourceGroupName: example.name,\n virtualNetworkName: exampleVirtualNetwork.name,\n addressPrefixes: [\"10.0.2.0/24\"],\n});\nconst exampleNetworkInterface = new azure.network.NetworkInterface(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n ipConfigurations: [{\n name: \"example\",\n subnetId: exampleSubnet.id,\n privateIpAddressAllocation: \"Dynamic\",\n }],\n});\nconst exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine(\"example\", {\n name: \"example\",\n resourceGroupName: example.name,\n location: example.location,\n size: \"Standard_F2\",\n adminUsername: \"adminuser\",\n adminPassword: \"example\",\n disablePasswordAuthentication: false,\n networkInterfaceIds: [exampleNetworkInterface.id],\n osDisk: {\n caching: \"ReadWrite\",\n storageAccountType: \"Standard_LRS\",\n },\n sourceImageReference: {\n publisher: \"Canonical\",\n offer: \"0001-com-ubuntu-server-jammy\",\n sku: \"22_04-lts\",\n version: \"latest\",\n },\n});\nconst exampleTarget = new azure.chaosstudio.Target(\"example\", {\n location: example.location,\n targetResourceId: exampleLinuxVirtualMachine.id,\n targetType: \"Microsoft-VirtualMachine\",\n});\nconst exampleCapability = new azure.chaosstudio.Capability(\"example\", {\n chaosStudioTargetId: exampleTarget.id,\n capabilityType: \"Shutdown-1.0\",\n});\nconst exampleExperiment = new azure.chaosstudio.Experiment(\"example\", {\n location: example.location,\n name: \"example\",\n resourceGroupName: example.name,\n identity: {\n type: \"SystemAssigned\",\n },\n selectors: [{\n name: \"Selector1\",\n chaosStudioTargetIds: [exampleTarget.id],\n }],\n steps: [{\n name: \"example\",\n branches: [{\n name: \"example\",\n actions: [{\n urn: exampleCapability.capabilityUrn,\n selectorName: \"Selector1\",\n parameters: {\n abruptShutdown: \"false\",\n },\n actionType: \"continuous\",\n duration: \"PT10M\",\n }],\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"westeurope\")\nexample_user_assigned_identity = azure.authorization.UserAssignedIdentity(\"example\",\n resource_group_name=example.name,\n location=example.location,\n name=\"example\")\nexample_virtual_network = azure.network.VirtualNetwork(\"example\",\n name=\"example\",\n address_spaces=[\"10.0.0.0/16\"],\n location=example.location,\n resource_group_name=example.name)\nexample_subnet = azure.network.Subnet(\"example\",\n name=\"internal\",\n resource_group_name=example.name,\n virtual_network_name=example_virtual_network.name,\n address_prefixes=[\"10.0.2.0/24\"])\nexample_network_interface = azure.network.NetworkInterface(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name,\n ip_configurations=[{\n \"name\": \"example\",\n \"subnet_id\": example_subnet.id,\n \"private_ip_address_allocation\": \"Dynamic\",\n }])\nexample_linux_virtual_machine = azure.compute.LinuxVirtualMachine(\"example\",\n name=\"example\",\n resource_group_name=example.name,\n location=example.location,\n size=\"Standard_F2\",\n admin_username=\"adminuser\",\n admin_password=\"example\",\n disable_password_authentication=False,\n network_interface_ids=[example_network_interface.id],\n os_disk={\n \"caching\": \"ReadWrite\",\n \"storage_account_type\": \"Standard_LRS\",\n },\n source_image_reference={\n \"publisher\": \"Canonical\",\n \"offer\": \"0001-com-ubuntu-server-jammy\",\n \"sku\": \"22_04-lts\",\n \"version\": \"latest\",\n })\nexample_target = azure.chaosstudio.Target(\"example\",\n location=example.location,\n target_resource_id=example_linux_virtual_machine.id,\n target_type=\"Microsoft-VirtualMachine\")\nexample_capability = azure.chaosstudio.Capability(\"example\",\n chaos_studio_target_id=example_target.id,\n capability_type=\"Shutdown-1.0\")\nexample_experiment = azure.chaosstudio.Experiment(\"example\",\n location=example.location,\n name=\"example\",\n resource_group_name=example.name,\n identity={\n \"type\": \"SystemAssigned\",\n },\n selectors=[{\n \"name\": \"Selector1\",\n \"chaos_studio_target_ids\": [example_target.id],\n }],\n steps=[{\n \"name\": \"example\",\n \"branches\": [{\n \"name\": \"example\",\n \"actions\": [{\n \"urn\": example_capability.capability_urn,\n \"selector_name\": \"Selector1\",\n \"parameters\": {\n \"abrupt_shutdown\": \"false\",\n },\n \"action_type\": \"continuous\",\n \"duration\": \"PT10M\",\n }],\n }],\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"westeurope\",\n });\n\n var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity(\"example\", new()\n {\n ResourceGroupName = example.Name,\n Location = example.Location,\n Name = \"example\",\n });\n\n var exampleVirtualNetwork = new Azure.Network.VirtualNetwork(\"example\", new()\n {\n Name = \"example\",\n AddressSpaces = new[]\n {\n \"10.0.0.0/16\",\n },\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleSubnet = new Azure.Network.Subnet(\"example\", new()\n {\n Name = \"internal\",\n ResourceGroupName = example.Name,\n VirtualNetworkName = exampleVirtualNetwork.Name,\n AddressPrefixes = new[]\n {\n \"10.0.2.0/24\",\n },\n });\n\n var exampleNetworkInterface = new Azure.Network.NetworkInterface(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n IpConfigurations = new[]\n {\n new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs\n {\n Name = \"example\",\n SubnetId = exampleSubnet.Id,\n PrivateIpAddressAllocation = \"Dynamic\",\n },\n },\n });\n\n var exampleLinuxVirtualMachine = new Azure.Compute.LinuxVirtualMachine(\"example\", new()\n {\n Name = \"example\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Size = \"Standard_F2\",\n AdminUsername = \"adminuser\",\n AdminPassword = \"example\",\n DisablePasswordAuthentication = false,\n NetworkInterfaceIds = new[]\n {\n exampleNetworkInterface.Id,\n },\n OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineOsDiskArgs\n {\n Caching = \"ReadWrite\",\n StorageAccountType = \"Standard_LRS\",\n },\n SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineSourceImageReferenceArgs\n {\n Publisher = \"Canonical\",\n Offer = \"0001-com-ubuntu-server-jammy\",\n Sku = \"22_04-lts\",\n Version = \"latest\",\n },\n });\n\n var exampleTarget = new Azure.ChaosStudio.Target(\"example\", new()\n {\n Location = example.Location,\n TargetResourceId = exampleLinuxVirtualMachine.Id,\n TargetType = \"Microsoft-VirtualMachine\",\n });\n\n var exampleCapability = new Azure.ChaosStudio.Capability(\"example\", new()\n {\n ChaosStudioTargetId = exampleTarget.Id,\n CapabilityType = \"Shutdown-1.0\",\n });\n\n var exampleExperiment = new Azure.ChaosStudio.Experiment(\"example\", new()\n {\n Location = example.Location,\n Name = \"example\",\n ResourceGroupName = example.Name,\n Identity = new Azure.ChaosStudio.Inputs.ExperimentIdentityArgs\n {\n Type = \"SystemAssigned\",\n },\n Selectors = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentSelectorArgs\n {\n Name = \"Selector1\",\n ChaosStudioTargetIds = new[]\n {\n exampleTarget.Id,\n },\n },\n },\n Steps = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentStepArgs\n {\n Name = \"example\",\n Branches = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentStepBranchArgs\n {\n Name = \"example\",\n Actions = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentStepBranchActionArgs\n {\n Urn = exampleCapability.CapabilityUrn,\n SelectorName = \"Selector1\",\n Parameters = \n {\n { \"abruptShutdown\", \"false\" },\n },\n ActionType = \"continuous\",\n Duration = \"PT10M\",\n },\n },\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"westeurope\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = authorization.NewUserAssignedIdentity(ctx, \"example\", \u0026authorization.UserAssignedIdentityArgs{\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, \"example\", \u0026network.VirtualNetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tAddressSpaces: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.0.0/16\"),\n\t\t\t},\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSubnet, err := network.NewSubnet(ctx, \"example\", \u0026network.SubnetArgs{\n\t\t\tName: pulumi.String(\"internal\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tVirtualNetworkName: exampleVirtualNetwork.Name,\n\t\t\tAddressPrefixes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.2.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetworkInterface, err := network.NewNetworkInterface(ctx, \"example\", \u0026network.NetworkInterfaceArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tIpConfigurations: network.NetworkInterfaceIpConfigurationArray{\n\t\t\t\t\u0026network.NetworkInterfaceIpConfigurationArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tSubnetId: exampleSubnet.ID(),\n\t\t\t\t\tPrivateIpAddressAllocation: pulumi.String(\"Dynamic\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, \"example\", \u0026compute.LinuxVirtualMachineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSize: pulumi.String(\"Standard_F2\"),\n\t\t\tAdminUsername: pulumi.String(\"adminuser\"),\n\t\t\tAdminPassword: pulumi.String(\"example\"),\n\t\t\tDisablePasswordAuthentication: pulumi.Bool(false),\n\t\t\tNetworkInterfaceIds: pulumi.StringArray{\n\t\t\t\texampleNetworkInterface.ID(),\n\t\t\t},\n\t\t\tOsDisk: \u0026compute.LinuxVirtualMachineOsDiskArgs{\n\t\t\t\tCaching: pulumi.String(\"ReadWrite\"),\n\t\t\t\tStorageAccountType: pulumi.String(\"Standard_LRS\"),\n\t\t\t},\n\t\t\tSourceImageReference: \u0026compute.LinuxVirtualMachineSourceImageReferenceArgs{\n\t\t\t\tPublisher: pulumi.String(\"Canonical\"),\n\t\t\t\tOffer: pulumi.String(\"0001-com-ubuntu-server-jammy\"),\n\t\t\t\tSku: pulumi.String(\"22_04-lts\"),\n\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTarget, err := chaosstudio.NewTarget(ctx, \"example\", \u0026chaosstudio.TargetArgs{\n\t\t\tLocation: example.Location,\n\t\t\tTargetResourceId: exampleLinuxVirtualMachine.ID(),\n\t\t\tTargetType: pulumi.String(\"Microsoft-VirtualMachine\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleCapability, err := chaosstudio.NewCapability(ctx, \"example\", \u0026chaosstudio.CapabilityArgs{\n\t\t\tChaosStudioTargetId: exampleTarget.ID(),\n\t\t\tCapabilityType: pulumi.String(\"Shutdown-1.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = chaosstudio.NewExperiment(ctx, \"example\", \u0026chaosstudio.ExperimentArgs{\n\t\t\tLocation: example.Location,\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tIdentity: \u0026chaosstudio.ExperimentIdentityArgs{\n\t\t\t\tType: pulumi.String(\"SystemAssigned\"),\n\t\t\t},\n\t\t\tSelectors: chaosstudio.ExperimentSelectorArray{\n\t\t\t\t\u0026chaosstudio.ExperimentSelectorArgs{\n\t\t\t\t\tName: pulumi.String(\"Selector1\"),\n\t\t\t\t\tChaosStudioTargetIds: pulumi.StringArray{\n\t\t\t\t\t\texampleTarget.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSteps: chaosstudio.ExperimentStepArray{\n\t\t\t\t\u0026chaosstudio.ExperimentStepArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tBranches: chaosstudio.ExperimentStepBranchArray{\n\t\t\t\t\t\t\u0026chaosstudio.ExperimentStepBranchArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\t\t\tActions: chaosstudio.ExperimentStepBranchActionArray{\n\t\t\t\t\t\t\t\t\u0026chaosstudio.ExperimentStepBranchActionArgs{\n\t\t\t\t\t\t\t\t\tUrn: exampleCapability.CapabilityUrn,\n\t\t\t\t\t\t\t\t\tSelectorName: pulumi.String(\"Selector1\"),\n\t\t\t\t\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\t\t\t\t\"abruptShutdown\": pulumi.String(\"false\"),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tActionType: pulumi.String(\"continuous\"),\n\t\t\t\t\t\t\t\t\tDuration: pulumi.String(\"PT10M\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.authorization.UserAssignedIdentity;\nimport com.pulumi.azure.authorization.UserAssignedIdentityArgs;\nimport com.pulumi.azure.network.VirtualNetwork;\nimport com.pulumi.azure.network.VirtualNetworkArgs;\nimport com.pulumi.azure.network.Subnet;\nimport com.pulumi.azure.network.SubnetArgs;\nimport com.pulumi.azure.network.NetworkInterface;\nimport com.pulumi.azure.network.NetworkInterfaceArgs;\nimport com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;\nimport com.pulumi.azure.compute.LinuxVirtualMachine;\nimport com.pulumi.azure.compute.LinuxVirtualMachineArgs;\nimport com.pulumi.azure.compute.inputs.LinuxVirtualMachineOsDiskArgs;\nimport com.pulumi.azure.compute.inputs.LinuxVirtualMachineSourceImageReferenceArgs;\nimport com.pulumi.azure.chaosstudio.Target;\nimport com.pulumi.azure.chaosstudio.TargetArgs;\nimport com.pulumi.azure.chaosstudio.Capability;\nimport com.pulumi.azure.chaosstudio.CapabilityArgs;\nimport com.pulumi.azure.chaosstudio.Experiment;\nimport com.pulumi.azure.chaosstudio.ExperimentArgs;\nimport com.pulumi.azure.chaosstudio.inputs.ExperimentIdentityArgs;\nimport com.pulumi.azure.chaosstudio.inputs.ExperimentSelectorArgs;\nimport com.pulumi.azure.chaosstudio.inputs.ExperimentStepArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"westeurope\")\n .build());\n\n var exampleUserAssignedIdentity = new UserAssignedIdentity(\"exampleUserAssignedIdentity\", UserAssignedIdentityArgs.builder()\n .resourceGroupName(example.name())\n .location(example.location())\n .name(\"example\")\n .build());\n\n var exampleVirtualNetwork = new VirtualNetwork(\"exampleVirtualNetwork\", VirtualNetworkArgs.builder()\n .name(\"example\")\n .addressSpaces(\"10.0.0.0/16\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleSubnet = new Subnet(\"exampleSubnet\", SubnetArgs.builder()\n .name(\"internal\")\n .resourceGroupName(example.name())\n .virtualNetworkName(exampleVirtualNetwork.name())\n .addressPrefixes(\"10.0.2.0/24\")\n .build());\n\n var exampleNetworkInterface = new NetworkInterface(\"exampleNetworkInterface\", NetworkInterfaceArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()\n .name(\"example\")\n .subnetId(exampleSubnet.id())\n .privateIpAddressAllocation(\"Dynamic\")\n .build())\n .build());\n\n var exampleLinuxVirtualMachine = new LinuxVirtualMachine(\"exampleLinuxVirtualMachine\", LinuxVirtualMachineArgs.builder()\n .name(\"example\")\n .resourceGroupName(example.name())\n .location(example.location())\n .size(\"Standard_F2\")\n .adminUsername(\"adminuser\")\n .adminPassword(\"example\")\n .disablePasswordAuthentication(false)\n .networkInterfaceIds(exampleNetworkInterface.id())\n .osDisk(LinuxVirtualMachineOsDiskArgs.builder()\n .caching(\"ReadWrite\")\n .storageAccountType(\"Standard_LRS\")\n .build())\n .sourceImageReference(LinuxVirtualMachineSourceImageReferenceArgs.builder()\n .publisher(\"Canonical\")\n .offer(\"0001-com-ubuntu-server-jammy\")\n .sku(\"22_04-lts\")\n .version(\"latest\")\n .build())\n .build());\n\n var exampleTarget = new Target(\"exampleTarget\", TargetArgs.builder()\n .location(example.location())\n .targetResourceId(exampleLinuxVirtualMachine.id())\n .targetType(\"Microsoft-VirtualMachine\")\n .build());\n\n var exampleCapability = new Capability(\"exampleCapability\", CapabilityArgs.builder()\n .chaosStudioTargetId(exampleTarget.id())\n .capabilityType(\"Shutdown-1.0\")\n .build());\n\n var exampleExperiment = new Experiment(\"exampleExperiment\", ExperimentArgs.builder()\n .location(example.location())\n .name(\"example\")\n .resourceGroupName(example.name())\n .identity(ExperimentIdentityArgs.builder()\n .type(\"SystemAssigned\")\n .build())\n .selectors(ExperimentSelectorArgs.builder()\n .name(\"Selector1\")\n .chaosStudioTargetIds(exampleTarget.id())\n .build())\n .steps(ExperimentStepArgs.builder()\n .name(\"example\")\n .branches(ExperimentStepBranchArgs.builder()\n .name(\"example\")\n .actions(ExperimentStepBranchActionArgs.builder()\n .urn(exampleCapability.capabilityUrn())\n .selectorName(\"Selector1\")\n .parameters(Map.of(\"abruptShutdown\", \"false\"))\n .actionType(\"continuous\")\n .duration(\"PT10M\")\n .build())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example\n location: westeurope\n exampleUserAssignedIdentity:\n type: azure:authorization:UserAssignedIdentity\n name: example\n properties:\n resourceGroupName: ${example.name}\n location: ${example.location}\n name: example\n exampleVirtualNetwork:\n type: azure:network:VirtualNetwork\n name: example\n properties:\n name: example\n addressSpaces:\n - 10.0.0.0/16\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleSubnet:\n type: azure:network:Subnet\n name: example\n properties:\n name: internal\n resourceGroupName: ${example.name}\n virtualNetworkName: ${exampleVirtualNetwork.name}\n addressPrefixes:\n - 10.0.2.0/24\n exampleNetworkInterface:\n type: azure:network:NetworkInterface\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n ipConfigurations:\n - name: example\n subnetId: ${exampleSubnet.id}\n privateIpAddressAllocation: Dynamic\n exampleLinuxVirtualMachine:\n type: azure:compute:LinuxVirtualMachine\n name: example\n properties:\n name: example\n resourceGroupName: ${example.name}\n location: ${example.location}\n size: Standard_F2\n adminUsername: adminuser\n adminPassword: example\n disablePasswordAuthentication: false\n networkInterfaceIds:\n - ${exampleNetworkInterface.id}\n osDisk:\n caching: ReadWrite\n storageAccountType: Standard_LRS\n sourceImageReference:\n publisher: Canonical\n offer: 0001-com-ubuntu-server-jammy\n sku: 22_04-lts\n version: latest\n exampleTarget:\n type: azure:chaosstudio:Target\n name: example\n properties:\n location: ${example.location}\n targetResourceId: ${exampleLinuxVirtualMachine.id}\n targetType: Microsoft-VirtualMachine\n exampleCapability:\n type: azure:chaosstudio:Capability\n name: example\n properties:\n chaosStudioTargetId: ${exampleTarget.id}\n capabilityType: Shutdown-1.0\n exampleExperiment:\n type: azure:chaosstudio:Experiment\n name: example\n properties:\n location: ${example.location}\n name: example\n resourceGroupName: ${example.name}\n identity:\n type: SystemAssigned\n selectors:\n - name: Selector1\n chaosStudioTargetIds:\n - ${exampleTarget.id}\n steps:\n - name: example\n branches:\n - name: example\n actions:\n - urn: ${exampleCapability.capabilityUrn}\n selectorName: Selector1\n parameters:\n abruptShutdown: 'false'\n actionType: continuous\n duration: PT10M\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nChaos Studio Experiments can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:chaosstudio/experiment:Experiment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Chaos/experiments/experiment1\n```\n\n", + "description": "Manages a Chaos Studio Experiment.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"westeurope\",\n});\nconst exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity(\"example\", {\n resourceGroupName: example.name,\n location: example.location,\n name: \"example\",\n});\nconst exampleVirtualNetwork = new azure.network.VirtualNetwork(\"example\", {\n name: \"example\",\n addressSpaces: [\"10.0.0.0/16\"],\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleSubnet = new azure.network.Subnet(\"example\", {\n name: \"internal\",\n resourceGroupName: example.name,\n virtualNetworkName: exampleVirtualNetwork.name,\n addressPrefixes: [\"10.0.2.0/24\"],\n});\nconst exampleNetworkInterface = new azure.network.NetworkInterface(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n ipConfigurations: [{\n name: \"example\",\n subnetId: exampleSubnet.id,\n privateIpAddressAllocation: \"Dynamic\",\n }],\n});\nconst exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine(\"example\", {\n name: \"example\",\n resourceGroupName: example.name,\n location: example.location,\n size: \"Standard_F2\",\n adminUsername: \"adminuser\",\n adminPassword: \"example\",\n disablePasswordAuthentication: false,\n networkInterfaceIds: [exampleNetworkInterface.id],\n osDisk: {\n caching: \"ReadWrite\",\n storageAccountType: \"Standard_LRS\",\n },\n sourceImageReference: {\n publisher: \"Canonical\",\n offer: \"0001-com-ubuntu-server-jammy\",\n sku: \"22_04-lts\",\n version: \"latest\",\n },\n});\nconst exampleTarget = new azure.chaosstudio.Target(\"example\", {\n location: example.location,\n targetResourceId: exampleLinuxVirtualMachine.id,\n targetType: \"Microsoft-VirtualMachine\",\n});\nconst exampleCapability = new azure.chaosstudio.Capability(\"example\", {\n chaosStudioTargetId: exampleTarget.id,\n capabilityType: \"Shutdown-1.0\",\n});\nconst exampleExperiment = new azure.chaosstudio.Experiment(\"example\", {\n location: example.location,\n name: \"example\",\n resourceGroupName: example.name,\n identity: {\n type: \"SystemAssigned\",\n },\n selectors: [{\n name: \"Selector1\",\n chaosStudioTargetIds: [exampleTarget.id],\n }],\n steps: [{\n name: \"example\",\n branches: [{\n name: \"example\",\n actions: [{\n urn: exampleCapability.capabilityUrn,\n selectorName: \"Selector1\",\n parameters: {\n abruptShutdown: \"false\",\n },\n actionType: \"continuous\",\n duration: \"PT10M\",\n }],\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"westeurope\")\nexample_user_assigned_identity = azure.authorization.UserAssignedIdentity(\"example\",\n resource_group_name=example.name,\n location=example.location,\n name=\"example\")\nexample_virtual_network = azure.network.VirtualNetwork(\"example\",\n name=\"example\",\n address_spaces=[\"10.0.0.0/16\"],\n location=example.location,\n resource_group_name=example.name)\nexample_subnet = azure.network.Subnet(\"example\",\n name=\"internal\",\n resource_group_name=example.name,\n virtual_network_name=example_virtual_network.name,\n address_prefixes=[\"10.0.2.0/24\"])\nexample_network_interface = azure.network.NetworkInterface(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name,\n ip_configurations=[{\n \"name\": \"example\",\n \"subnet_id\": example_subnet.id,\n \"private_ip_address_allocation\": \"Dynamic\",\n }])\nexample_linux_virtual_machine = azure.compute.LinuxVirtualMachine(\"example\",\n name=\"example\",\n resource_group_name=example.name,\n location=example.location,\n size=\"Standard_F2\",\n admin_username=\"adminuser\",\n admin_password=\"example\",\n disable_password_authentication=False,\n network_interface_ids=[example_network_interface.id],\n os_disk={\n \"caching\": \"ReadWrite\",\n \"storage_account_type\": \"Standard_LRS\",\n },\n source_image_reference={\n \"publisher\": \"Canonical\",\n \"offer\": \"0001-com-ubuntu-server-jammy\",\n \"sku\": \"22_04-lts\",\n \"version\": \"latest\",\n })\nexample_target = azure.chaosstudio.Target(\"example\",\n location=example.location,\n target_resource_id=example_linux_virtual_machine.id,\n target_type=\"Microsoft-VirtualMachine\")\nexample_capability = azure.chaosstudio.Capability(\"example\",\n chaos_studio_target_id=example_target.id,\n capability_type=\"Shutdown-1.0\")\nexample_experiment = azure.chaosstudio.Experiment(\"example\",\n location=example.location,\n name=\"example\",\n resource_group_name=example.name,\n identity={\n \"type\": \"SystemAssigned\",\n },\n selectors=[{\n \"name\": \"Selector1\",\n \"chaos_studio_target_ids\": [example_target.id],\n }],\n steps=[{\n \"name\": \"example\",\n \"branches\": [{\n \"name\": \"example\",\n \"actions\": [{\n \"urn\": example_capability.capability_urn,\n \"selector_name\": \"Selector1\",\n \"parameters\": {\n \"abruptShutdown\": \"false\",\n },\n \"action_type\": \"continuous\",\n \"duration\": \"PT10M\",\n }],\n }],\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"westeurope\",\n });\n\n var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity(\"example\", new()\n {\n ResourceGroupName = example.Name,\n Location = example.Location,\n Name = \"example\",\n });\n\n var exampleVirtualNetwork = new Azure.Network.VirtualNetwork(\"example\", new()\n {\n Name = \"example\",\n AddressSpaces = new[]\n {\n \"10.0.0.0/16\",\n },\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleSubnet = new Azure.Network.Subnet(\"example\", new()\n {\n Name = \"internal\",\n ResourceGroupName = example.Name,\n VirtualNetworkName = exampleVirtualNetwork.Name,\n AddressPrefixes = new[]\n {\n \"10.0.2.0/24\",\n },\n });\n\n var exampleNetworkInterface = new Azure.Network.NetworkInterface(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n IpConfigurations = new[]\n {\n new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs\n {\n Name = \"example\",\n SubnetId = exampleSubnet.Id,\n PrivateIpAddressAllocation = \"Dynamic\",\n },\n },\n });\n\n var exampleLinuxVirtualMachine = new Azure.Compute.LinuxVirtualMachine(\"example\", new()\n {\n Name = \"example\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Size = \"Standard_F2\",\n AdminUsername = \"adminuser\",\n AdminPassword = \"example\",\n DisablePasswordAuthentication = false,\n NetworkInterfaceIds = new[]\n {\n exampleNetworkInterface.Id,\n },\n OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineOsDiskArgs\n {\n Caching = \"ReadWrite\",\n StorageAccountType = \"Standard_LRS\",\n },\n SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineSourceImageReferenceArgs\n {\n Publisher = \"Canonical\",\n Offer = \"0001-com-ubuntu-server-jammy\",\n Sku = \"22_04-lts\",\n Version = \"latest\",\n },\n });\n\n var exampleTarget = new Azure.ChaosStudio.Target(\"example\", new()\n {\n Location = example.Location,\n TargetResourceId = exampleLinuxVirtualMachine.Id,\n TargetType = \"Microsoft-VirtualMachine\",\n });\n\n var exampleCapability = new Azure.ChaosStudio.Capability(\"example\", new()\n {\n ChaosStudioTargetId = exampleTarget.Id,\n CapabilityType = \"Shutdown-1.0\",\n });\n\n var exampleExperiment = new Azure.ChaosStudio.Experiment(\"example\", new()\n {\n Location = example.Location,\n Name = \"example\",\n ResourceGroupName = example.Name,\n Identity = new Azure.ChaosStudio.Inputs.ExperimentIdentityArgs\n {\n Type = \"SystemAssigned\",\n },\n Selectors = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentSelectorArgs\n {\n Name = \"Selector1\",\n ChaosStudioTargetIds = new[]\n {\n exampleTarget.Id,\n },\n },\n },\n Steps = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentStepArgs\n {\n Name = \"example\",\n Branches = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentStepBranchArgs\n {\n Name = \"example\",\n Actions = new[]\n {\n new Azure.ChaosStudio.Inputs.ExperimentStepBranchActionArgs\n {\n Urn = exampleCapability.CapabilityUrn,\n SelectorName = \"Selector1\",\n Parameters = \n {\n { \"abruptShutdown\", \"false\" },\n },\n ActionType = \"continuous\",\n Duration = \"PT10M\",\n },\n },\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"westeurope\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = authorization.NewUserAssignedIdentity(ctx, \"example\", \u0026authorization.UserAssignedIdentityArgs{\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, \"example\", \u0026network.VirtualNetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tAddressSpaces: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.0.0/16\"),\n\t\t\t},\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSubnet, err := network.NewSubnet(ctx, \"example\", \u0026network.SubnetArgs{\n\t\t\tName: pulumi.String(\"internal\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tVirtualNetworkName: exampleVirtualNetwork.Name,\n\t\t\tAddressPrefixes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.2.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetworkInterface, err := network.NewNetworkInterface(ctx, \"example\", \u0026network.NetworkInterfaceArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tIpConfigurations: network.NetworkInterfaceIpConfigurationArray{\n\t\t\t\t\u0026network.NetworkInterfaceIpConfigurationArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tSubnetId: exampleSubnet.ID(),\n\t\t\t\t\tPrivateIpAddressAllocation: pulumi.String(\"Dynamic\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, \"example\", \u0026compute.LinuxVirtualMachineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSize: pulumi.String(\"Standard_F2\"),\n\t\t\tAdminUsername: pulumi.String(\"adminuser\"),\n\t\t\tAdminPassword: pulumi.String(\"example\"),\n\t\t\tDisablePasswordAuthentication: pulumi.Bool(false),\n\t\t\tNetworkInterfaceIds: pulumi.StringArray{\n\t\t\t\texampleNetworkInterface.ID(),\n\t\t\t},\n\t\t\tOsDisk: \u0026compute.LinuxVirtualMachineOsDiskArgs{\n\t\t\t\tCaching: pulumi.String(\"ReadWrite\"),\n\t\t\t\tStorageAccountType: pulumi.String(\"Standard_LRS\"),\n\t\t\t},\n\t\t\tSourceImageReference: \u0026compute.LinuxVirtualMachineSourceImageReferenceArgs{\n\t\t\t\tPublisher: pulumi.String(\"Canonical\"),\n\t\t\t\tOffer: pulumi.String(\"0001-com-ubuntu-server-jammy\"),\n\t\t\t\tSku: pulumi.String(\"22_04-lts\"),\n\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTarget, err := chaosstudio.NewTarget(ctx, \"example\", \u0026chaosstudio.TargetArgs{\n\t\t\tLocation: example.Location,\n\t\t\tTargetResourceId: exampleLinuxVirtualMachine.ID(),\n\t\t\tTargetType: pulumi.String(\"Microsoft-VirtualMachine\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleCapability, err := chaosstudio.NewCapability(ctx, \"example\", \u0026chaosstudio.CapabilityArgs{\n\t\t\tChaosStudioTargetId: exampleTarget.ID(),\n\t\t\tCapabilityType: pulumi.String(\"Shutdown-1.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = chaosstudio.NewExperiment(ctx, \"example\", \u0026chaosstudio.ExperimentArgs{\n\t\t\tLocation: example.Location,\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tIdentity: \u0026chaosstudio.ExperimentIdentityArgs{\n\t\t\t\tType: pulumi.String(\"SystemAssigned\"),\n\t\t\t},\n\t\t\tSelectors: chaosstudio.ExperimentSelectorArray{\n\t\t\t\t\u0026chaosstudio.ExperimentSelectorArgs{\n\t\t\t\t\tName: pulumi.String(\"Selector1\"),\n\t\t\t\t\tChaosStudioTargetIds: pulumi.StringArray{\n\t\t\t\t\t\texampleTarget.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSteps: chaosstudio.ExperimentStepArray{\n\t\t\t\t\u0026chaosstudio.ExperimentStepArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tBranches: chaosstudio.ExperimentStepBranchArray{\n\t\t\t\t\t\t\u0026chaosstudio.ExperimentStepBranchArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\t\t\tActions: chaosstudio.ExperimentStepBranchActionArray{\n\t\t\t\t\t\t\t\t\u0026chaosstudio.ExperimentStepBranchActionArgs{\n\t\t\t\t\t\t\t\t\tUrn: exampleCapability.CapabilityUrn,\n\t\t\t\t\t\t\t\t\tSelectorName: pulumi.String(\"Selector1\"),\n\t\t\t\t\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\t\t\t\t\"abruptShutdown\": pulumi.String(\"false\"),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tActionType: pulumi.String(\"continuous\"),\n\t\t\t\t\t\t\t\t\tDuration: pulumi.String(\"PT10M\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.authorization.UserAssignedIdentity;\nimport com.pulumi.azure.authorization.UserAssignedIdentityArgs;\nimport com.pulumi.azure.network.VirtualNetwork;\nimport com.pulumi.azure.network.VirtualNetworkArgs;\nimport com.pulumi.azure.network.Subnet;\nimport com.pulumi.azure.network.SubnetArgs;\nimport com.pulumi.azure.network.NetworkInterface;\nimport com.pulumi.azure.network.NetworkInterfaceArgs;\nimport com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;\nimport com.pulumi.azure.compute.LinuxVirtualMachine;\nimport com.pulumi.azure.compute.LinuxVirtualMachineArgs;\nimport com.pulumi.azure.compute.inputs.LinuxVirtualMachineOsDiskArgs;\nimport com.pulumi.azure.compute.inputs.LinuxVirtualMachineSourceImageReferenceArgs;\nimport com.pulumi.azure.chaosstudio.Target;\nimport com.pulumi.azure.chaosstudio.TargetArgs;\nimport com.pulumi.azure.chaosstudio.Capability;\nimport com.pulumi.azure.chaosstudio.CapabilityArgs;\nimport com.pulumi.azure.chaosstudio.Experiment;\nimport com.pulumi.azure.chaosstudio.ExperimentArgs;\nimport com.pulumi.azure.chaosstudio.inputs.ExperimentIdentityArgs;\nimport com.pulumi.azure.chaosstudio.inputs.ExperimentSelectorArgs;\nimport com.pulumi.azure.chaosstudio.inputs.ExperimentStepArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"westeurope\")\n .build());\n\n var exampleUserAssignedIdentity = new UserAssignedIdentity(\"exampleUserAssignedIdentity\", UserAssignedIdentityArgs.builder()\n .resourceGroupName(example.name())\n .location(example.location())\n .name(\"example\")\n .build());\n\n var exampleVirtualNetwork = new VirtualNetwork(\"exampleVirtualNetwork\", VirtualNetworkArgs.builder()\n .name(\"example\")\n .addressSpaces(\"10.0.0.0/16\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleSubnet = new Subnet(\"exampleSubnet\", SubnetArgs.builder()\n .name(\"internal\")\n .resourceGroupName(example.name())\n .virtualNetworkName(exampleVirtualNetwork.name())\n .addressPrefixes(\"10.0.2.0/24\")\n .build());\n\n var exampleNetworkInterface = new NetworkInterface(\"exampleNetworkInterface\", NetworkInterfaceArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()\n .name(\"example\")\n .subnetId(exampleSubnet.id())\n .privateIpAddressAllocation(\"Dynamic\")\n .build())\n .build());\n\n var exampleLinuxVirtualMachine = new LinuxVirtualMachine(\"exampleLinuxVirtualMachine\", LinuxVirtualMachineArgs.builder()\n .name(\"example\")\n .resourceGroupName(example.name())\n .location(example.location())\n .size(\"Standard_F2\")\n .adminUsername(\"adminuser\")\n .adminPassword(\"example\")\n .disablePasswordAuthentication(false)\n .networkInterfaceIds(exampleNetworkInterface.id())\n .osDisk(LinuxVirtualMachineOsDiskArgs.builder()\n .caching(\"ReadWrite\")\n .storageAccountType(\"Standard_LRS\")\n .build())\n .sourceImageReference(LinuxVirtualMachineSourceImageReferenceArgs.builder()\n .publisher(\"Canonical\")\n .offer(\"0001-com-ubuntu-server-jammy\")\n .sku(\"22_04-lts\")\n .version(\"latest\")\n .build())\n .build());\n\n var exampleTarget = new Target(\"exampleTarget\", TargetArgs.builder()\n .location(example.location())\n .targetResourceId(exampleLinuxVirtualMachine.id())\n .targetType(\"Microsoft-VirtualMachine\")\n .build());\n\n var exampleCapability = new Capability(\"exampleCapability\", CapabilityArgs.builder()\n .chaosStudioTargetId(exampleTarget.id())\n .capabilityType(\"Shutdown-1.0\")\n .build());\n\n var exampleExperiment = new Experiment(\"exampleExperiment\", ExperimentArgs.builder()\n .location(example.location())\n .name(\"example\")\n .resourceGroupName(example.name())\n .identity(ExperimentIdentityArgs.builder()\n .type(\"SystemAssigned\")\n .build())\n .selectors(ExperimentSelectorArgs.builder()\n .name(\"Selector1\")\n .chaosStudioTargetIds(exampleTarget.id())\n .build())\n .steps(ExperimentStepArgs.builder()\n .name(\"example\")\n .branches(ExperimentStepBranchArgs.builder()\n .name(\"example\")\n .actions(ExperimentStepBranchActionArgs.builder()\n .urn(exampleCapability.capabilityUrn())\n .selectorName(\"Selector1\")\n .parameters(Map.of(\"abruptShutdown\", \"false\"))\n .actionType(\"continuous\")\n .duration(\"PT10M\")\n .build())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example\n location: westeurope\n exampleUserAssignedIdentity:\n type: azure:authorization:UserAssignedIdentity\n name: example\n properties:\n resourceGroupName: ${example.name}\n location: ${example.location}\n name: example\n exampleVirtualNetwork:\n type: azure:network:VirtualNetwork\n name: example\n properties:\n name: example\n addressSpaces:\n - 10.0.0.0/16\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleSubnet:\n type: azure:network:Subnet\n name: example\n properties:\n name: internal\n resourceGroupName: ${example.name}\n virtualNetworkName: ${exampleVirtualNetwork.name}\n addressPrefixes:\n - 10.0.2.0/24\n exampleNetworkInterface:\n type: azure:network:NetworkInterface\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n ipConfigurations:\n - name: example\n subnetId: ${exampleSubnet.id}\n privateIpAddressAllocation: Dynamic\n exampleLinuxVirtualMachine:\n type: azure:compute:LinuxVirtualMachine\n name: example\n properties:\n name: example\n resourceGroupName: ${example.name}\n location: ${example.location}\n size: Standard_F2\n adminUsername: adminuser\n adminPassword: example\n disablePasswordAuthentication: false\n networkInterfaceIds:\n - ${exampleNetworkInterface.id}\n osDisk:\n caching: ReadWrite\n storageAccountType: Standard_LRS\n sourceImageReference:\n publisher: Canonical\n offer: 0001-com-ubuntu-server-jammy\n sku: 22_04-lts\n version: latest\n exampleTarget:\n type: azure:chaosstudio:Target\n name: example\n properties:\n location: ${example.location}\n targetResourceId: ${exampleLinuxVirtualMachine.id}\n targetType: Microsoft-VirtualMachine\n exampleCapability:\n type: azure:chaosstudio:Capability\n name: example\n properties:\n chaosStudioTargetId: ${exampleTarget.id}\n capabilityType: Shutdown-1.0\n exampleExperiment:\n type: azure:chaosstudio:Experiment\n name: example\n properties:\n location: ${example.location}\n name: example\n resourceGroupName: ${example.name}\n identity:\n type: SystemAssigned\n selectors:\n - name: Selector1\n chaosStudioTargetIds:\n - ${exampleTarget.id}\n steps:\n - name: example\n branches:\n - name: example\n actions:\n - urn: ${exampleCapability.capabilityUrn}\n selectorName: Selector1\n parameters:\n abruptShutdown: 'false'\n actionType: continuous\n duration: PT10M\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nChaos Studio Experiments can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:chaosstudio/experiment:Experiment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Chaos/experiments/experiment1\n```\n\n", "properties": { "identity": { "$ref": "#/types/azure:chaosstudio/ExperimentIdentity:ExperimentIdentity", @@ -164173,7 +164173,7 @@ } }, "azure:datafactory/dataFlow:DataFlow": { - "description": "Manages a Data Flow inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleAccount = new azure.storage.Account(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n accountTier: \"Standard\",\n accountReplicationType: \"LRS\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleLinkedCustomService = new azure.datafactory.LinkedCustomService(\"example\", {\n name: \"linked_service\",\n dataFactoryId: exampleFactory.id,\n type: \"AzureBlobStorage\",\n typePropertiesJson: pulumi.interpolate`{\n \"connectionString\": \"${exampleAccount.primaryConnectionString}\"\n}\n`,\n});\nconst example1 = new azure.datafactory.DatasetJson(\"example1\", {\n name: \"dataset1\",\n dataFactoryId: exampleFactory.id,\n linkedServiceName: exampleLinkedCustomService.name,\n azureBlobStorageLocation: {\n container: \"container\",\n path: \"foo/bar/\",\n filename: \"foo.txt\",\n },\n encoding: \"UTF-8\",\n});\nconst example2 = new azure.datafactory.DatasetJson(\"example2\", {\n name: \"dataset2\",\n dataFactoryId: exampleFactory.id,\n linkedServiceName: exampleLinkedCustomService.name,\n azureBlobStorageLocation: {\n container: \"container\",\n path: \"foo/bar/\",\n filename: \"bar.txt\",\n },\n encoding: \"UTF-8\",\n});\nconst example1FlowletDataFlow = new azure.datafactory.FlowletDataFlow(\"example1\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n sources: [{\n name: \"source1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n sinks: [{\n name: \"sink1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n script: `source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`,\n});\nconst example2FlowletDataFlow = new azure.datafactory.FlowletDataFlow(\"example2\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n sources: [{\n name: \"source1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n sinks: [{\n name: \"sink1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n script: `source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`,\n});\nconst exampleDataFlow = new azure.datafactory.DataFlow(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n sources: [{\n name: \"source1\",\n flowlet: {\n name: example1FlowletDataFlow.name,\n parameters: {\n Key1: \"value1\",\n },\n },\n dataset: {\n name: example1.name,\n },\n }],\n sinks: [{\n name: \"sink1\",\n flowlet: {\n name: example2FlowletDataFlow.name,\n parameters: {\n Key1: \"value1\",\n },\n },\n dataset: {\n name: example2.name,\n },\n }],\n script: `source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_account = azure.storage.Account(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name,\n account_tier=\"Standard\",\n account_replication_type=\"LRS\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_linked_custom_service = azure.datafactory.LinkedCustomService(\"example\",\n name=\"linked_service\",\n data_factory_id=example_factory.id,\n type=\"AzureBlobStorage\",\n type_properties_json=example_account.primary_connection_string.apply(lambda primary_connection_string: f\"\"\"{{\n \"connectionString\": \"{primary_connection_string}\"\n}}\n\"\"\"))\nexample1 = azure.datafactory.DatasetJson(\"example1\",\n name=\"dataset1\",\n data_factory_id=example_factory.id,\n linked_service_name=example_linked_custom_service.name,\n azure_blob_storage_location={\n \"container\": \"container\",\n \"path\": \"foo/bar/\",\n \"filename\": \"foo.txt\",\n },\n encoding=\"UTF-8\")\nexample2 = azure.datafactory.DatasetJson(\"example2\",\n name=\"dataset2\",\n data_factory_id=example_factory.id,\n linked_service_name=example_linked_custom_service.name,\n azure_blob_storage_location={\n \"container\": \"container\",\n \"path\": \"foo/bar/\",\n \"filename\": \"bar.txt\",\n },\n encoding=\"UTF-8\")\nexample1_flowlet_data_flow = azure.datafactory.FlowletDataFlow(\"example1\",\n name=\"example\",\n data_factory_id=example_factory.id,\n sources=[{\n \"name\": \"source1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n sinks=[{\n \"name\": \"sink1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n script=\"\"\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\"\"\")\nexample2_flowlet_data_flow = azure.datafactory.FlowletDataFlow(\"example2\",\n name=\"example\",\n data_factory_id=example_factory.id,\n sources=[{\n \"name\": \"source1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n sinks=[{\n \"name\": \"sink1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n script=\"\"\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\"\"\")\nexample_data_flow = azure.datafactory.DataFlow(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n sources=[{\n \"name\": \"source1\",\n \"flowlet\": {\n \"name\": example1_flowlet_data_flow.name,\n \"parameters\": {\n \"key1\": \"value1\",\n },\n },\n \"dataset\": {\n \"name\": example1.name,\n },\n }],\n sinks=[{\n \"name\": \"sink1\",\n \"flowlet\": {\n \"name\": example2_flowlet_data_flow.name,\n \"parameters\": {\n \"key1\": \"value1\",\n },\n },\n \"dataset\": {\n \"name\": example2.name,\n },\n }],\n script=\"\"\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\"\"\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleAccount = new Azure.Storage.Account(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n AccountTier = \"Standard\",\n AccountReplicationType = \"LRS\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleLinkedCustomService = new Azure.DataFactory.LinkedCustomService(\"example\", new()\n {\n Name = \"linked_service\",\n DataFactoryId = exampleFactory.Id,\n Type = \"AzureBlobStorage\",\n TypePropertiesJson = exampleAccount.PrimaryConnectionString.Apply(primaryConnectionString =\u003e @$\"{{\n \"\"connectionString\"\": \"\"{primaryConnectionString}\"\"\n}}\n\"),\n });\n\n var example1 = new Azure.DataFactory.DatasetJson(\"example1\", new()\n {\n Name = \"dataset1\",\n DataFactoryId = exampleFactory.Id,\n LinkedServiceName = exampleLinkedCustomService.Name,\n AzureBlobStorageLocation = new Azure.DataFactory.Inputs.DatasetJsonAzureBlobStorageLocationArgs\n {\n Container = \"container\",\n Path = \"foo/bar/\",\n Filename = \"foo.txt\",\n },\n Encoding = \"UTF-8\",\n });\n\n var example2 = new Azure.DataFactory.DatasetJson(\"example2\", new()\n {\n Name = \"dataset2\",\n DataFactoryId = exampleFactory.Id,\n LinkedServiceName = exampleLinkedCustomService.Name,\n AzureBlobStorageLocation = new Azure.DataFactory.Inputs.DatasetJsonAzureBlobStorageLocationArgs\n {\n Container = \"container\",\n Path = \"foo/bar/\",\n Filename = \"bar.txt\",\n },\n Encoding = \"UTF-8\",\n });\n\n var example1FlowletDataFlow = new Azure.DataFactory.FlowletDataFlow(\"example1\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n Sources = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSourceArgs\n {\n Name = \"source1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSourceLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Sinks = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSinkArgs\n {\n Name = \"sink1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSinkLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Script = @\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\",\n });\n\n var example2FlowletDataFlow = new Azure.DataFactory.FlowletDataFlow(\"example2\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n Sources = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSourceArgs\n {\n Name = \"source1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSourceLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Sinks = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSinkArgs\n {\n Name = \"sink1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSinkLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Script = @\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\",\n });\n\n var exampleDataFlow = new Azure.DataFactory.DataFlow(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n Sources = new[]\n {\n new Azure.DataFactory.Inputs.DataFlowSourceArgs\n {\n Name = \"source1\",\n Flowlet = new Azure.DataFactory.Inputs.DataFlowSourceFlowletArgs\n {\n Name = example1FlowletDataFlow.Name,\n Parameters = \n {\n { \"Key1\", \"value1\" },\n },\n },\n Dataset = new Azure.DataFactory.Inputs.DataFlowSourceDatasetArgs\n {\n Name = example1.Name,\n },\n },\n },\n Sinks = new[]\n {\n new Azure.DataFactory.Inputs.DataFlowSinkArgs\n {\n Name = \"sink1\",\n Flowlet = new Azure.DataFactory.Inputs.DataFlowSinkFlowletArgs\n {\n Name = example2FlowletDataFlow.Name,\n Parameters = \n {\n { \"Key1\", \"value1\" },\n },\n },\n Dataset = new Azure.DataFactory.Inputs.DataFlowSinkDatasetArgs\n {\n Name = example2.Name,\n },\n },\n },\n Script = @\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := storage.NewAccount(ctx, \"example\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"LRS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleLinkedCustomService, err := datafactory.NewLinkedCustomService(ctx, \"example\", \u0026datafactory.LinkedCustomServiceArgs{\n\t\t\tName: pulumi.String(\"linked_service\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tType: pulumi.String(\"AzureBlobStorage\"),\n\t\t\tTypePropertiesJson: exampleAccount.PrimaryConnectionString.ApplyT(func(primaryConnectionString string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"{\\n \\\"connectionString\\\": \\\"%v\\\"\\n}\\n\", primaryConnectionString), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample1, err := datafactory.NewDatasetJson(ctx, \"example1\", \u0026datafactory.DatasetJsonArgs{\n\t\t\tName: pulumi.String(\"dataset1\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tLinkedServiceName: exampleLinkedCustomService.Name,\n\t\t\tAzureBlobStorageLocation: \u0026datafactory.DatasetJsonAzureBlobStorageLocationArgs{\n\t\t\t\tContainer: pulumi.String(\"container\"),\n\t\t\t\tPath: pulumi.String(\"foo/bar/\"),\n\t\t\t\tFilename: pulumi.String(\"foo.txt\"),\n\t\t\t},\n\t\t\tEncoding: pulumi.String(\"UTF-8\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample2, err := datafactory.NewDatasetJson(ctx, \"example2\", \u0026datafactory.DatasetJsonArgs{\n\t\t\tName: pulumi.String(\"dataset2\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tLinkedServiceName: exampleLinkedCustomService.Name,\n\t\t\tAzureBlobStorageLocation: \u0026datafactory.DatasetJsonAzureBlobStorageLocationArgs{\n\t\t\t\tContainer: pulumi.String(\"container\"),\n\t\t\t\tPath: pulumi.String(\"foo/bar/\"),\n\t\t\t\tFilename: pulumi.String(\"bar.txt\"),\n\t\t\t},\n\t\t\tEncoding: pulumi.String(\"UTF-8\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample1FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, \"example1\", \u0026datafactory.FlowletDataFlowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tSources: datafactory.FlowletDataFlowSourceArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSourceArgs{\n\t\t\t\t\tName: pulumi.String(\"source1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSourceLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSinks: datafactory.FlowletDataFlowSinkArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSinkArgs{\n\t\t\t\t\tName: pulumi.String(\"sink1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSinkLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tScript: pulumi.String(`source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample2FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, \"example2\", \u0026datafactory.FlowletDataFlowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tSources: datafactory.FlowletDataFlowSourceArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSourceArgs{\n\t\t\t\t\tName: pulumi.String(\"source1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSourceLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSinks: datafactory.FlowletDataFlowSinkArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSinkArgs{\n\t\t\t\t\tName: pulumi.String(\"sink1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSinkLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tScript: pulumi.String(`source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewDataFlow(ctx, \"example\", \u0026datafactory.DataFlowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tSources: datafactory.DataFlowSourceArray{\n\t\t\t\t\u0026datafactory.DataFlowSourceArgs{\n\t\t\t\t\tName: pulumi.String(\"source1\"),\n\t\t\t\t\tFlowlet: \u0026datafactory.DataFlowSourceFlowletArgs{\n\t\t\t\t\t\tName: example1FlowletDataFlow.Name,\n\t\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\t\"Key1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tDataset: \u0026datafactory.DataFlowSourceDatasetArgs{\n\t\t\t\t\t\tName: example1.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSinks: datafactory.DataFlowSinkArray{\n\t\t\t\t\u0026datafactory.DataFlowSinkArgs{\n\t\t\t\t\tName: pulumi.String(\"sink1\"),\n\t\t\t\t\tFlowlet: \u0026datafactory.DataFlowSinkFlowletArgs{\n\t\t\t\t\t\tName: example2FlowletDataFlow.Name,\n\t\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\t\"Key1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tDataset: \u0026datafactory.DataFlowSinkDatasetArgs{\n\t\t\t\t\t\tName: example2.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tScript: pulumi.String(`source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.LinkedCustomService;\nimport com.pulumi.azure.datafactory.LinkedCustomServiceArgs;\nimport com.pulumi.azure.datafactory.DatasetJson;\nimport com.pulumi.azure.datafactory.DatasetJsonArgs;\nimport com.pulumi.azure.datafactory.inputs.DatasetJsonAzureBlobStorageLocationArgs;\nimport com.pulumi.azure.datafactory.FlowletDataFlow;\nimport com.pulumi.azure.datafactory.FlowletDataFlowArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSourceArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSourceLinkedServiceArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkLinkedServiceArgs;\nimport com.pulumi.azure.datafactory.DataFlow;\nimport com.pulumi.azure.datafactory.DataFlowArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSourceArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSourceFlowletArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSourceDatasetArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSinkArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSinkFlowletArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSinkDatasetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .accountTier(\"Standard\")\n .accountReplicationType(\"LRS\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleLinkedCustomService = new LinkedCustomService(\"exampleLinkedCustomService\", LinkedCustomServiceArgs.builder()\n .name(\"linked_service\")\n .dataFactoryId(exampleFactory.id())\n .type(\"AzureBlobStorage\")\n .typePropertiesJson(exampleAccount.primaryConnectionString().applyValue(primaryConnectionString -\u003e \"\"\"\n{\n \"connectionString\": \"%s\"\n}\n\", primaryConnectionString)))\n .build());\n\n var example1 = new DatasetJson(\"example1\", DatasetJsonArgs.builder()\n .name(\"dataset1\")\n .dataFactoryId(exampleFactory.id())\n .linkedServiceName(exampleLinkedCustomService.name())\n .azureBlobStorageLocation(DatasetJsonAzureBlobStorageLocationArgs.builder()\n .container(\"container\")\n .path(\"foo/bar/\")\n .filename(\"foo.txt\")\n .build())\n .encoding(\"UTF-8\")\n .build());\n\n var example2 = new DatasetJson(\"example2\", DatasetJsonArgs.builder()\n .name(\"dataset2\")\n .dataFactoryId(exampleFactory.id())\n .linkedServiceName(exampleLinkedCustomService.name())\n .azureBlobStorageLocation(DatasetJsonAzureBlobStorageLocationArgs.builder()\n .container(\"container\")\n .path(\"foo/bar/\")\n .filename(\"bar.txt\")\n .build())\n .encoding(\"UTF-8\")\n .build());\n\n var example1FlowletDataFlow = new FlowletDataFlow(\"example1FlowletDataFlow\", FlowletDataFlowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .sources(FlowletDataFlowSourceArgs.builder()\n .name(\"source1\")\n .linkedService(FlowletDataFlowSourceLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .sinks(FlowletDataFlowSinkArgs.builder()\n .name(\"sink1\")\n .linkedService(FlowletDataFlowSinkLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .script(\"\"\"\nsource(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n \"\"\")\n .build());\n\n var example2FlowletDataFlow = new FlowletDataFlow(\"example2FlowletDataFlow\", FlowletDataFlowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .sources(FlowletDataFlowSourceArgs.builder()\n .name(\"source1\")\n .linkedService(FlowletDataFlowSourceLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .sinks(FlowletDataFlowSinkArgs.builder()\n .name(\"sink1\")\n .linkedService(FlowletDataFlowSinkLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .script(\"\"\"\nsource(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n \"\"\")\n .build());\n\n var exampleDataFlow = new DataFlow(\"exampleDataFlow\", DataFlowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .sources(DataFlowSourceArgs.builder()\n .name(\"source1\")\n .flowlet(DataFlowSourceFlowletArgs.builder()\n .name(example1FlowletDataFlow.name())\n .parameters(Map.of(\"Key1\", \"value1\"))\n .build())\n .dataset(DataFlowSourceDatasetArgs.builder()\n .name(example1.name())\n .build())\n .build())\n .sinks(DataFlowSinkArgs.builder()\n .name(\"sink1\")\n .flowlet(DataFlowSinkFlowletArgs.builder()\n .name(example2FlowletDataFlow.name())\n .parameters(Map.of(\"Key1\", \"value1\"))\n .build())\n .dataset(DataFlowSinkDatasetArgs.builder()\n .name(example2.name())\n .build())\n .build())\n .script(\"\"\"\nsource(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n \"\"\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleAccount:\n type: azure:storage:Account\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n accountTier: Standard\n accountReplicationType: LRS\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleLinkedCustomService:\n type: azure:datafactory:LinkedCustomService\n name: example\n properties:\n name: linked_service\n dataFactoryId: ${exampleFactory.id}\n type: AzureBlobStorage\n typePropertiesJson: |\n {\n \"connectionString\": \"${exampleAccount.primaryConnectionString}\"\n }\n example1:\n type: azure:datafactory:DatasetJson\n properties:\n name: dataset1\n dataFactoryId: ${exampleFactory.id}\n linkedServiceName: ${exampleLinkedCustomService.name}\n azureBlobStorageLocation:\n container: container\n path: foo/bar/\n filename: foo.txt\n encoding: UTF-8\n example2:\n type: azure:datafactory:DatasetJson\n properties:\n name: dataset2\n dataFactoryId: ${exampleFactory.id}\n linkedServiceName: ${exampleLinkedCustomService.name}\n azureBlobStorageLocation:\n container: container\n path: foo/bar/\n filename: bar.txt\n encoding: UTF-8\n exampleDataFlow:\n type: azure:datafactory:DataFlow\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n sources:\n - name: source1\n flowlet:\n name: ${example1FlowletDataFlow.name}\n parameters:\n Key1: value1\n dataset:\n name: ${example1.name}\n sinks:\n - name: sink1\n flowlet:\n name: ${example2FlowletDataFlow.name}\n parameters:\n Key1: value1\n dataset:\n name: ${example2.name}\n script: \"source(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n limit: 100, \\n ignoreNoFilesFound: false, \\n documentForm: 'documentPerLine') ~\u003e source1 \\nsource1 sink(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n skipDuplicateMapInputs: true, \\n skipDuplicateMapOutputs: true) ~\u003e sink1\\n\"\n example1FlowletDataFlow:\n type: azure:datafactory:FlowletDataFlow\n name: example1\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n sources:\n - name: source1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n sinks:\n - name: sink1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n script: \"source(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n limit: 100, \\n ignoreNoFilesFound: false, \\n documentForm: 'documentPerLine') ~\u003e source1 \\nsource1 sink(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n skipDuplicateMapInputs: true, \\n skipDuplicateMapOutputs: true) ~\u003e sink1\\n\"\n example2FlowletDataFlow:\n type: azure:datafactory:FlowletDataFlow\n name: example2\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n sources:\n - name: source1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n sinks:\n - name: sink1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n script: \"source(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n limit: 100, \\n ignoreNoFilesFound: false, \\n documentForm: 'documentPerLine') ~\u003e source1 \\nsource1 sink(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n skipDuplicateMapInputs: true, \\n skipDuplicateMapOutputs: true) ~\u003e sink1\\n\"\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Data Flow can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/dataFlow:DataFlow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/dataflows/example\n```\n\n", + "description": "Manages a Data Flow inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleAccount = new azure.storage.Account(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n accountTier: \"Standard\",\n accountReplicationType: \"LRS\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleLinkedCustomService = new azure.datafactory.LinkedCustomService(\"example\", {\n name: \"linked_service\",\n dataFactoryId: exampleFactory.id,\n type: \"AzureBlobStorage\",\n typePropertiesJson: pulumi.interpolate`{\n \"connectionString\": \"${exampleAccount.primaryConnectionString}\"\n}\n`,\n});\nconst example1 = new azure.datafactory.DatasetJson(\"example1\", {\n name: \"dataset1\",\n dataFactoryId: exampleFactory.id,\n linkedServiceName: exampleLinkedCustomService.name,\n azureBlobStorageLocation: {\n container: \"container\",\n path: \"foo/bar/\",\n filename: \"foo.txt\",\n },\n encoding: \"UTF-8\",\n});\nconst example2 = new azure.datafactory.DatasetJson(\"example2\", {\n name: \"dataset2\",\n dataFactoryId: exampleFactory.id,\n linkedServiceName: exampleLinkedCustomService.name,\n azureBlobStorageLocation: {\n container: \"container\",\n path: \"foo/bar/\",\n filename: \"bar.txt\",\n },\n encoding: \"UTF-8\",\n});\nconst example1FlowletDataFlow = new azure.datafactory.FlowletDataFlow(\"example1\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n sources: [{\n name: \"source1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n sinks: [{\n name: \"sink1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n script: `source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`,\n});\nconst example2FlowletDataFlow = new azure.datafactory.FlowletDataFlow(\"example2\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n sources: [{\n name: \"source1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n sinks: [{\n name: \"sink1\",\n linkedService: {\n name: exampleLinkedCustomService.name,\n },\n }],\n script: `source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`,\n});\nconst exampleDataFlow = new azure.datafactory.DataFlow(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n sources: [{\n name: \"source1\",\n flowlet: {\n name: example1FlowletDataFlow.name,\n parameters: {\n Key1: \"value1\",\n },\n },\n dataset: {\n name: example1.name,\n },\n }],\n sinks: [{\n name: \"sink1\",\n flowlet: {\n name: example2FlowletDataFlow.name,\n parameters: {\n Key1: \"value1\",\n },\n },\n dataset: {\n name: example2.name,\n },\n }],\n script: `source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_account = azure.storage.Account(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name,\n account_tier=\"Standard\",\n account_replication_type=\"LRS\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_linked_custom_service = azure.datafactory.LinkedCustomService(\"example\",\n name=\"linked_service\",\n data_factory_id=example_factory.id,\n type=\"AzureBlobStorage\",\n type_properties_json=example_account.primary_connection_string.apply(lambda primary_connection_string: f\"\"\"{{\n \"connectionString\": \"{primary_connection_string}\"\n}}\n\"\"\"))\nexample1 = azure.datafactory.DatasetJson(\"example1\",\n name=\"dataset1\",\n data_factory_id=example_factory.id,\n linked_service_name=example_linked_custom_service.name,\n azure_blob_storage_location={\n \"container\": \"container\",\n \"path\": \"foo/bar/\",\n \"filename\": \"foo.txt\",\n },\n encoding=\"UTF-8\")\nexample2 = azure.datafactory.DatasetJson(\"example2\",\n name=\"dataset2\",\n data_factory_id=example_factory.id,\n linked_service_name=example_linked_custom_service.name,\n azure_blob_storage_location={\n \"container\": \"container\",\n \"path\": \"foo/bar/\",\n \"filename\": \"bar.txt\",\n },\n encoding=\"UTF-8\")\nexample1_flowlet_data_flow = azure.datafactory.FlowletDataFlow(\"example1\",\n name=\"example\",\n data_factory_id=example_factory.id,\n sources=[{\n \"name\": \"source1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n sinks=[{\n \"name\": \"sink1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n script=\"\"\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\"\"\")\nexample2_flowlet_data_flow = azure.datafactory.FlowletDataFlow(\"example2\",\n name=\"example\",\n data_factory_id=example_factory.id,\n sources=[{\n \"name\": \"source1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n sinks=[{\n \"name\": \"sink1\",\n \"linked_service\": {\n \"name\": example_linked_custom_service.name,\n },\n }],\n script=\"\"\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\"\"\")\nexample_data_flow = azure.datafactory.DataFlow(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n sources=[{\n \"name\": \"source1\",\n \"flowlet\": {\n \"name\": example1_flowlet_data_flow.name,\n \"parameters\": {\n \"Key1\": \"value1\",\n },\n },\n \"dataset\": {\n \"name\": example1.name,\n },\n }],\n sinks=[{\n \"name\": \"sink1\",\n \"flowlet\": {\n \"name\": example2_flowlet_data_flow.name,\n \"parameters\": {\n \"Key1\": \"value1\",\n },\n },\n \"dataset\": {\n \"name\": example2.name,\n },\n }],\n script=\"\"\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\"\"\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleAccount = new Azure.Storage.Account(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n AccountTier = \"Standard\",\n AccountReplicationType = \"LRS\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleLinkedCustomService = new Azure.DataFactory.LinkedCustomService(\"example\", new()\n {\n Name = \"linked_service\",\n DataFactoryId = exampleFactory.Id,\n Type = \"AzureBlobStorage\",\n TypePropertiesJson = exampleAccount.PrimaryConnectionString.Apply(primaryConnectionString =\u003e @$\"{{\n \"\"connectionString\"\": \"\"{primaryConnectionString}\"\"\n}}\n\"),\n });\n\n var example1 = new Azure.DataFactory.DatasetJson(\"example1\", new()\n {\n Name = \"dataset1\",\n DataFactoryId = exampleFactory.Id,\n LinkedServiceName = exampleLinkedCustomService.Name,\n AzureBlobStorageLocation = new Azure.DataFactory.Inputs.DatasetJsonAzureBlobStorageLocationArgs\n {\n Container = \"container\",\n Path = \"foo/bar/\",\n Filename = \"foo.txt\",\n },\n Encoding = \"UTF-8\",\n });\n\n var example2 = new Azure.DataFactory.DatasetJson(\"example2\", new()\n {\n Name = \"dataset2\",\n DataFactoryId = exampleFactory.Id,\n LinkedServiceName = exampleLinkedCustomService.Name,\n AzureBlobStorageLocation = new Azure.DataFactory.Inputs.DatasetJsonAzureBlobStorageLocationArgs\n {\n Container = \"container\",\n Path = \"foo/bar/\",\n Filename = \"bar.txt\",\n },\n Encoding = \"UTF-8\",\n });\n\n var example1FlowletDataFlow = new Azure.DataFactory.FlowletDataFlow(\"example1\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n Sources = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSourceArgs\n {\n Name = \"source1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSourceLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Sinks = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSinkArgs\n {\n Name = \"sink1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSinkLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Script = @\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\",\n });\n\n var example2FlowletDataFlow = new Azure.DataFactory.FlowletDataFlow(\"example2\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n Sources = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSourceArgs\n {\n Name = \"source1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSourceLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Sinks = new[]\n {\n new Azure.DataFactory.Inputs.FlowletDataFlowSinkArgs\n {\n Name = \"sink1\",\n LinkedService = new Azure.DataFactory.Inputs.FlowletDataFlowSinkLinkedServiceArgs\n {\n Name = exampleLinkedCustomService.Name,\n },\n },\n },\n Script = @\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\",\n });\n\n var exampleDataFlow = new Azure.DataFactory.DataFlow(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n Sources = new[]\n {\n new Azure.DataFactory.Inputs.DataFlowSourceArgs\n {\n Name = \"source1\",\n Flowlet = new Azure.DataFactory.Inputs.DataFlowSourceFlowletArgs\n {\n Name = example1FlowletDataFlow.Name,\n Parameters = \n {\n { \"Key1\", \"value1\" },\n },\n },\n Dataset = new Azure.DataFactory.Inputs.DataFlowSourceDatasetArgs\n {\n Name = example1.Name,\n },\n },\n },\n Sinks = new[]\n {\n new Azure.DataFactory.Inputs.DataFlowSinkArgs\n {\n Name = \"sink1\",\n Flowlet = new Azure.DataFactory.Inputs.DataFlowSinkFlowletArgs\n {\n Name = example2FlowletDataFlow.Name,\n Parameters = \n {\n { \"Key1\", \"value1\" },\n },\n },\n Dataset = new Azure.DataFactory.Inputs.DataFlowSinkDatasetArgs\n {\n Name = example2.Name,\n },\n },\n },\n Script = @\"source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := storage.NewAccount(ctx, \"example\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"LRS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleLinkedCustomService, err := datafactory.NewLinkedCustomService(ctx, \"example\", \u0026datafactory.LinkedCustomServiceArgs{\n\t\t\tName: pulumi.String(\"linked_service\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tType: pulumi.String(\"AzureBlobStorage\"),\n\t\t\tTypePropertiesJson: exampleAccount.PrimaryConnectionString.ApplyT(func(primaryConnectionString string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"{\\n \\\"connectionString\\\": \\\"%v\\\"\\n}\\n\", primaryConnectionString), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample1, err := datafactory.NewDatasetJson(ctx, \"example1\", \u0026datafactory.DatasetJsonArgs{\n\t\t\tName: pulumi.String(\"dataset1\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tLinkedServiceName: exampleLinkedCustomService.Name,\n\t\t\tAzureBlobStorageLocation: \u0026datafactory.DatasetJsonAzureBlobStorageLocationArgs{\n\t\t\t\tContainer: pulumi.String(\"container\"),\n\t\t\t\tPath: pulumi.String(\"foo/bar/\"),\n\t\t\t\tFilename: pulumi.String(\"foo.txt\"),\n\t\t\t},\n\t\t\tEncoding: pulumi.String(\"UTF-8\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample2, err := datafactory.NewDatasetJson(ctx, \"example2\", \u0026datafactory.DatasetJsonArgs{\n\t\t\tName: pulumi.String(\"dataset2\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tLinkedServiceName: exampleLinkedCustomService.Name,\n\t\t\tAzureBlobStorageLocation: \u0026datafactory.DatasetJsonAzureBlobStorageLocationArgs{\n\t\t\t\tContainer: pulumi.String(\"container\"),\n\t\t\t\tPath: pulumi.String(\"foo/bar/\"),\n\t\t\t\tFilename: pulumi.String(\"bar.txt\"),\n\t\t\t},\n\t\t\tEncoding: pulumi.String(\"UTF-8\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample1FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, \"example1\", \u0026datafactory.FlowletDataFlowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tSources: datafactory.FlowletDataFlowSourceArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSourceArgs{\n\t\t\t\t\tName: pulumi.String(\"source1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSourceLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSinks: datafactory.FlowletDataFlowSinkArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSinkArgs{\n\t\t\t\t\tName: pulumi.String(\"sink1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSinkLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tScript: pulumi.String(`source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample2FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, \"example2\", \u0026datafactory.FlowletDataFlowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tSources: datafactory.FlowletDataFlowSourceArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSourceArgs{\n\t\t\t\t\tName: pulumi.String(\"source1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSourceLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSinks: datafactory.FlowletDataFlowSinkArray{\n\t\t\t\t\u0026datafactory.FlowletDataFlowSinkArgs{\n\t\t\t\t\tName: pulumi.String(\"sink1\"),\n\t\t\t\t\tLinkedService: \u0026datafactory.FlowletDataFlowSinkLinkedServiceArgs{\n\t\t\t\t\t\tName: exampleLinkedCustomService.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tScript: pulumi.String(`source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewDataFlow(ctx, \"example\", \u0026datafactory.DataFlowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tSources: datafactory.DataFlowSourceArray{\n\t\t\t\t\u0026datafactory.DataFlowSourceArgs{\n\t\t\t\t\tName: pulumi.String(\"source1\"),\n\t\t\t\t\tFlowlet: \u0026datafactory.DataFlowSourceFlowletArgs{\n\t\t\t\t\t\tName: example1FlowletDataFlow.Name,\n\t\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\t\"Key1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tDataset: \u0026datafactory.DataFlowSourceDatasetArgs{\n\t\t\t\t\t\tName: example1.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSinks: datafactory.DataFlowSinkArray{\n\t\t\t\t\u0026datafactory.DataFlowSinkArgs{\n\t\t\t\t\tName: pulumi.String(\"sink1\"),\n\t\t\t\t\tFlowlet: \u0026datafactory.DataFlowSinkFlowletArgs{\n\t\t\t\t\t\tName: example2FlowletDataFlow.Name,\n\t\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\t\"Key1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tDataset: \u0026datafactory.DataFlowSinkDatasetArgs{\n\t\t\t\t\t\tName: example2.Name,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tScript: pulumi.String(`source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.LinkedCustomService;\nimport com.pulumi.azure.datafactory.LinkedCustomServiceArgs;\nimport com.pulumi.azure.datafactory.DatasetJson;\nimport com.pulumi.azure.datafactory.DatasetJsonArgs;\nimport com.pulumi.azure.datafactory.inputs.DatasetJsonAzureBlobStorageLocationArgs;\nimport com.pulumi.azure.datafactory.FlowletDataFlow;\nimport com.pulumi.azure.datafactory.FlowletDataFlowArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSourceArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSourceLinkedServiceArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkArgs;\nimport com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkLinkedServiceArgs;\nimport com.pulumi.azure.datafactory.DataFlow;\nimport com.pulumi.azure.datafactory.DataFlowArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSourceArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSourceFlowletArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSourceDatasetArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSinkArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSinkFlowletArgs;\nimport com.pulumi.azure.datafactory.inputs.DataFlowSinkDatasetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .accountTier(\"Standard\")\n .accountReplicationType(\"LRS\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleLinkedCustomService = new LinkedCustomService(\"exampleLinkedCustomService\", LinkedCustomServiceArgs.builder()\n .name(\"linked_service\")\n .dataFactoryId(exampleFactory.id())\n .type(\"AzureBlobStorage\")\n .typePropertiesJson(exampleAccount.primaryConnectionString().applyValue(primaryConnectionString -\u003e \"\"\"\n{\n \"connectionString\": \"%s\"\n}\n\", primaryConnectionString)))\n .build());\n\n var example1 = new DatasetJson(\"example1\", DatasetJsonArgs.builder()\n .name(\"dataset1\")\n .dataFactoryId(exampleFactory.id())\n .linkedServiceName(exampleLinkedCustomService.name())\n .azureBlobStorageLocation(DatasetJsonAzureBlobStorageLocationArgs.builder()\n .container(\"container\")\n .path(\"foo/bar/\")\n .filename(\"foo.txt\")\n .build())\n .encoding(\"UTF-8\")\n .build());\n\n var example2 = new DatasetJson(\"example2\", DatasetJsonArgs.builder()\n .name(\"dataset2\")\n .dataFactoryId(exampleFactory.id())\n .linkedServiceName(exampleLinkedCustomService.name())\n .azureBlobStorageLocation(DatasetJsonAzureBlobStorageLocationArgs.builder()\n .container(\"container\")\n .path(\"foo/bar/\")\n .filename(\"bar.txt\")\n .build())\n .encoding(\"UTF-8\")\n .build());\n\n var example1FlowletDataFlow = new FlowletDataFlow(\"example1FlowletDataFlow\", FlowletDataFlowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .sources(FlowletDataFlowSourceArgs.builder()\n .name(\"source1\")\n .linkedService(FlowletDataFlowSourceLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .sinks(FlowletDataFlowSinkArgs.builder()\n .name(\"sink1\")\n .linkedService(FlowletDataFlowSinkLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .script(\"\"\"\nsource(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n \"\"\")\n .build());\n\n var example2FlowletDataFlow = new FlowletDataFlow(\"example2FlowletDataFlow\", FlowletDataFlowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .sources(FlowletDataFlowSourceArgs.builder()\n .name(\"source1\")\n .linkedService(FlowletDataFlowSourceLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .sinks(FlowletDataFlowSinkArgs.builder()\n .name(\"sink1\")\n .linkedService(FlowletDataFlowSinkLinkedServiceArgs.builder()\n .name(exampleLinkedCustomService.name())\n .build())\n .build())\n .script(\"\"\"\nsource(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n \"\"\")\n .build());\n\n var exampleDataFlow = new DataFlow(\"exampleDataFlow\", DataFlowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .sources(DataFlowSourceArgs.builder()\n .name(\"source1\")\n .flowlet(DataFlowSourceFlowletArgs.builder()\n .name(example1FlowletDataFlow.name())\n .parameters(Map.of(\"Key1\", \"value1\"))\n .build())\n .dataset(DataFlowSourceDatasetArgs.builder()\n .name(example1.name())\n .build())\n .build())\n .sinks(DataFlowSinkArgs.builder()\n .name(\"sink1\")\n .flowlet(DataFlowSinkFlowletArgs.builder()\n .name(example2FlowletDataFlow.name())\n .parameters(Map.of(\"Key1\", \"value1\"))\n .build())\n .dataset(DataFlowSinkDatasetArgs.builder()\n .name(example2.name())\n .build())\n .build())\n .script(\"\"\"\nsource(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~\u003e source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~\u003e sink1\n \"\"\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleAccount:\n type: azure:storage:Account\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n accountTier: Standard\n accountReplicationType: LRS\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleLinkedCustomService:\n type: azure:datafactory:LinkedCustomService\n name: example\n properties:\n name: linked_service\n dataFactoryId: ${exampleFactory.id}\n type: AzureBlobStorage\n typePropertiesJson: |\n {\n \"connectionString\": \"${exampleAccount.primaryConnectionString}\"\n }\n example1:\n type: azure:datafactory:DatasetJson\n properties:\n name: dataset1\n dataFactoryId: ${exampleFactory.id}\n linkedServiceName: ${exampleLinkedCustomService.name}\n azureBlobStorageLocation:\n container: container\n path: foo/bar/\n filename: foo.txt\n encoding: UTF-8\n example2:\n type: azure:datafactory:DatasetJson\n properties:\n name: dataset2\n dataFactoryId: ${exampleFactory.id}\n linkedServiceName: ${exampleLinkedCustomService.name}\n azureBlobStorageLocation:\n container: container\n path: foo/bar/\n filename: bar.txt\n encoding: UTF-8\n exampleDataFlow:\n type: azure:datafactory:DataFlow\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n sources:\n - name: source1\n flowlet:\n name: ${example1FlowletDataFlow.name}\n parameters:\n Key1: value1\n dataset:\n name: ${example1.name}\n sinks:\n - name: sink1\n flowlet:\n name: ${example2FlowletDataFlow.name}\n parameters:\n Key1: value1\n dataset:\n name: ${example2.name}\n script: \"source(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n limit: 100, \\n ignoreNoFilesFound: false, \\n documentForm: 'documentPerLine') ~\u003e source1 \\nsource1 sink(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n skipDuplicateMapInputs: true, \\n skipDuplicateMapOutputs: true) ~\u003e sink1\\n\"\n example1FlowletDataFlow:\n type: azure:datafactory:FlowletDataFlow\n name: example1\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n sources:\n - name: source1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n sinks:\n - name: sink1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n script: \"source(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n limit: 100, \\n ignoreNoFilesFound: false, \\n documentForm: 'documentPerLine') ~\u003e source1 \\nsource1 sink(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n skipDuplicateMapInputs: true, \\n skipDuplicateMapOutputs: true) ~\u003e sink1\\n\"\n example2FlowletDataFlow:\n type: azure:datafactory:FlowletDataFlow\n name: example2\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n sources:\n - name: source1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n sinks:\n - name: sink1\n linkedService:\n name: ${exampleLinkedCustomService.name}\n script: \"source(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n limit: 100, \\n ignoreNoFilesFound: false, \\n documentForm: 'documentPerLine') ~\u003e source1 \\nsource1 sink(\\n allowSchemaDrift: true, \\n validateSchema: false, \\n skipDuplicateMapInputs: true, \\n skipDuplicateMapOutputs: true) ~\u003e sink1\\n\"\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Data Flow can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/dataFlow:DataFlow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/dataflows/example\n```\n\n", "properties": { "annotations": { "type": "array", @@ -168184,7 +168184,7 @@ } }, "azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks": { - "description": "Manages a Linked Service (connection) between Azure Databricks and Azure Data Factory.\n\n## Example Usage\n\n### With Managed Identity \u0026 New Cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"East US\",\n});\n//Create a Linked Service using managed identity and new cluster config\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"TestDtaFactory92783401247\",\n location: example.location,\n resourceGroupName: example.name,\n identity: {\n type: \"SystemAssigned\",\n },\n});\n//Create a databricks instance\nconst exampleWorkspace = new azure.databricks.Workspace(\"example\", {\n name: \"databricks-test\",\n resourceGroupName: example.name,\n location: example.location,\n sku: \"standard\",\n});\nconst msiLinked = new azure.datafactory.LinkedServiceAzureDatabricks(\"msi_linked\", {\n name: \"ADBLinkedServiceViaMSI\",\n dataFactoryId: exampleFactory.id,\n description: \"ADB Linked Service via MSI\",\n adbDomain: pulumi.interpolate`https://${exampleWorkspace.workspaceUrl}`,\n msiWorkSpaceResourceId: exampleWorkspace.id,\n newClusterConfig: {\n nodeType: \"Standard_NC12\",\n clusterVersion: \"5.5.x-gpu-scala2.11\",\n minNumberOfWorkers: 1,\n maxNumberOfWorkers: 5,\n driverNodeType: \"Standard_NC12\",\n logDestination: \"dbfs:/logs\",\n customTags: {\n custom_tag1: \"sct_value_1\",\n custom_tag2: \"sct_value_2\",\n },\n sparkConfig: {\n config1: \"value1\",\n config2: \"value2\",\n },\n sparkEnvironmentVariables: {\n envVar1: \"value1\",\n envVar2: \"value2\",\n },\n initScripts: [\n \"init.sh\",\n \"init2.sh\",\n ],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"East US\")\n#Create a Linked Service using managed identity and new cluster config\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"TestDtaFactory92783401247\",\n location=example.location,\n resource_group_name=example.name,\n identity={\n \"type\": \"SystemAssigned\",\n })\n#Create a databricks instance\nexample_workspace = azure.databricks.Workspace(\"example\",\n name=\"databricks-test\",\n resource_group_name=example.name,\n location=example.location,\n sku=\"standard\")\nmsi_linked = azure.datafactory.LinkedServiceAzureDatabricks(\"msi_linked\",\n name=\"ADBLinkedServiceViaMSI\",\n data_factory_id=example_factory.id,\n description=\"ADB Linked Service via MSI\",\n adb_domain=example_workspace.workspace_url.apply(lambda workspace_url: f\"https://{workspace_url}\"),\n msi_work_space_resource_id=example_workspace.id,\n new_cluster_config={\n \"node_type\": \"Standard_NC12\",\n \"cluster_version\": \"5.5.x-gpu-scala2.11\",\n \"min_number_of_workers\": 1,\n \"max_number_of_workers\": 5,\n \"driver_node_type\": \"Standard_NC12\",\n \"log_destination\": \"dbfs:/logs\",\n \"custom_tags\": {\n \"custom_tag1\": \"sct_value_1\",\n \"custom_tag2\": \"sct_value_2\",\n },\n \"spark_config\": {\n \"config1\": \"value1\",\n \"config2\": \"value2\",\n },\n \"spark_environment_variables\": {\n \"env_var1\": \"value1\",\n \"env_var2\": \"value2\",\n },\n \"init_scripts\": [\n \"init.sh\",\n \"init2.sh\",\n ],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"East US\",\n });\n\n //Create a Linked Service using managed identity and new cluster config\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"TestDtaFactory92783401247\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n Identity = new Azure.DataFactory.Inputs.FactoryIdentityArgs\n {\n Type = \"SystemAssigned\",\n },\n });\n\n //Create a databricks instance\n var exampleWorkspace = new Azure.DataBricks.Workspace(\"example\", new()\n {\n Name = \"databricks-test\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Sku = \"standard\",\n });\n\n var msiLinked = new Azure.DataFactory.LinkedServiceAzureDatabricks(\"msi_linked\", new()\n {\n Name = \"ADBLinkedServiceViaMSI\",\n DataFactoryId = exampleFactory.Id,\n Description = \"ADB Linked Service via MSI\",\n AdbDomain = exampleWorkspace.WorkspaceUrl.Apply(workspaceUrl =\u003e $\"https://{workspaceUrl}\"),\n MsiWorkSpaceResourceId = exampleWorkspace.Id,\n NewClusterConfig = new Azure.DataFactory.Inputs.LinkedServiceAzureDatabricksNewClusterConfigArgs\n {\n NodeType = \"Standard_NC12\",\n ClusterVersion = \"5.5.x-gpu-scala2.11\",\n MinNumberOfWorkers = 1,\n MaxNumberOfWorkers = 5,\n DriverNodeType = \"Standard_NC12\",\n LogDestination = \"dbfs:/logs\",\n CustomTags = \n {\n { \"custom_tag1\", \"sct_value_1\" },\n { \"custom_tag2\", \"sct_value_2\" },\n },\n SparkConfig = \n {\n { \"config1\", \"value1\" },\n { \"config2\", \"value2\" },\n },\n SparkEnvironmentVariables = \n {\n { \"envVar1\", \"value1\" },\n { \"envVar2\", \"value2\" },\n },\n InitScripts = new[]\n {\n \"init.sh\",\n \"init2.sh\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"East US\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a Linked Service using managed identity and new cluster config\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"TestDtaFactory92783401247\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tIdentity: \u0026datafactory.FactoryIdentityArgs{\n\t\t\t\tType: pulumi.String(\"SystemAssigned\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a databricks instance\n\t\texampleWorkspace, err := databricks.NewWorkspace(ctx, \"example\", \u0026databricks.WorkspaceArgs{\n\t\t\tName: pulumi.String(\"databricks-test\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSku: pulumi.String(\"standard\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewLinkedServiceAzureDatabricks(ctx, \"msi_linked\", \u0026datafactory.LinkedServiceAzureDatabricksArgs{\n\t\t\tName: pulumi.String(\"ADBLinkedServiceViaMSI\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tDescription: pulumi.String(\"ADB Linked Service via MSI\"),\n\t\t\tAdbDomain: exampleWorkspace.WorkspaceUrl.ApplyT(func(workspaceUrl string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"https://%v\", workspaceUrl), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tMsiWorkSpaceResourceId: exampleWorkspace.ID(),\n\t\t\tNewClusterConfig: \u0026datafactory.LinkedServiceAzureDatabricksNewClusterConfigArgs{\n\t\t\t\tNodeType: pulumi.String(\"Standard_NC12\"),\n\t\t\t\tClusterVersion: pulumi.String(\"5.5.x-gpu-scala2.11\"),\n\t\t\t\tMinNumberOfWorkers: pulumi.Int(1),\n\t\t\t\tMaxNumberOfWorkers: pulumi.Int(5),\n\t\t\t\tDriverNodeType: pulumi.String(\"Standard_NC12\"),\n\t\t\t\tLogDestination: pulumi.String(\"dbfs:/logs\"),\n\t\t\t\tCustomTags: pulumi.StringMap{\n\t\t\t\t\t\"custom_tag1\": pulumi.String(\"sct_value_1\"),\n\t\t\t\t\t\"custom_tag2\": pulumi.String(\"sct_value_2\"),\n\t\t\t\t},\n\t\t\t\tSparkConfig: pulumi.StringMap{\n\t\t\t\t\t\"config1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\"config2\": pulumi.String(\"value2\"),\n\t\t\t\t},\n\t\t\t\tSparkEnvironmentVariables: pulumi.StringMap{\n\t\t\t\t\t\"envVar1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\"envVar2\": pulumi.String(\"value2\"),\n\t\t\t\t},\n\t\t\t\tInitScripts: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"init.sh\"),\n\t\t\t\t\tpulumi.String(\"init2.sh\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.inputs.FactoryIdentityArgs;\nimport com.pulumi.azure.databricks.Workspace;\nimport com.pulumi.azure.databricks.WorkspaceArgs;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricks;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricksArgs;\nimport com.pulumi.azure.datafactory.inputs.LinkedServiceAzureDatabricksNewClusterConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"East US\")\n .build());\n\n //Create a Linked Service using managed identity and new cluster config\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"TestDtaFactory92783401247\")\n .location(example.location())\n .resourceGroupName(example.name())\n .identity(FactoryIdentityArgs.builder()\n .type(\"SystemAssigned\")\n .build())\n .build());\n\n //Create a databricks instance\n var exampleWorkspace = new Workspace(\"exampleWorkspace\", WorkspaceArgs.builder()\n .name(\"databricks-test\")\n .resourceGroupName(example.name())\n .location(example.location())\n .sku(\"standard\")\n .build());\n\n var msiLinked = new LinkedServiceAzureDatabricks(\"msiLinked\", LinkedServiceAzureDatabricksArgs.builder()\n .name(\"ADBLinkedServiceViaMSI\")\n .dataFactoryId(exampleFactory.id())\n .description(\"ADB Linked Service via MSI\")\n .adbDomain(exampleWorkspace.workspaceUrl().applyValue(workspaceUrl -\u003e String.format(\"https://%s\", workspaceUrl)))\n .msiWorkSpaceResourceId(exampleWorkspace.id())\n .newClusterConfig(LinkedServiceAzureDatabricksNewClusterConfigArgs.builder()\n .nodeType(\"Standard_NC12\")\n .clusterVersion(\"5.5.x-gpu-scala2.11\")\n .minNumberOfWorkers(1)\n .maxNumberOfWorkers(5)\n .driverNodeType(\"Standard_NC12\")\n .logDestination(\"dbfs:/logs\")\n .customTags(Map.ofEntries(\n Map.entry(\"custom_tag1\", \"sct_value_1\"),\n Map.entry(\"custom_tag2\", \"sct_value_2\")\n ))\n .sparkConfig(Map.ofEntries(\n Map.entry(\"config1\", \"value1\"),\n Map.entry(\"config2\", \"value2\")\n ))\n .sparkEnvironmentVariables(Map.ofEntries(\n Map.entry(\"envVar1\", \"value1\"),\n Map.entry(\"envVar2\", \"value2\")\n ))\n .initScripts( \n \"init.sh\",\n \"init2.sh\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example\n location: East US\n #Create a Linked Service using managed identity and new cluster config\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: TestDtaFactory92783401247\n location: ${example.location}\n resourceGroupName: ${example.name}\n identity:\n type: SystemAssigned\n #Create a databricks instance\n exampleWorkspace:\n type: azure:databricks:Workspace\n name: example\n properties:\n name: databricks-test\n resourceGroupName: ${example.name}\n location: ${example.location}\n sku: standard\n msiLinked:\n type: azure:datafactory:LinkedServiceAzureDatabricks\n name: msi_linked\n properties:\n name: ADBLinkedServiceViaMSI\n dataFactoryId: ${exampleFactory.id}\n description: ADB Linked Service via MSI\n adbDomain: https://${exampleWorkspace.workspaceUrl}\n msiWorkSpaceResourceId: ${exampleWorkspace.id}\n newClusterConfig:\n nodeType: Standard_NC12\n clusterVersion: 5.5.x-gpu-scala2.11\n minNumberOfWorkers: 1\n maxNumberOfWorkers: 5\n driverNodeType: Standard_NC12\n logDestination: dbfs:/logs\n customTags:\n custom_tag1: sct_value_1\n custom_tag2: sct_value_2\n sparkConfig:\n config1: value1\n config2: value2\n sparkEnvironmentVariables:\n envVar1: value1\n envVar2: value2\n initScripts:\n - init.sh\n - init2.sh\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### With Access Token \u0026 Existing Cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"East US\",\n});\n//Link to an existing cluster via access token\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"TestDtaFactory92783401247\",\n location: example.location,\n resourceGroupName: example.name,\n});\n//Create a databricks instance\nconst exampleWorkspace = new azure.databricks.Workspace(\"example\", {\n name: \"databricks-test\",\n resourceGroupName: example.name,\n location: example.location,\n sku: \"standard\",\n});\nconst atLinked = new azure.datafactory.LinkedServiceAzureDatabricks(\"at_linked\", {\n name: \"ADBLinkedServiceViaAccessToken\",\n dataFactoryId: exampleFactory.id,\n description: \"ADB Linked Service via Access Token\",\n existingClusterId: \"0308-201146-sly615\",\n accessToken: \"SomeDatabricksAccessToken\",\n adbDomain: pulumi.interpolate`https://${exampleWorkspace.workspaceUrl}`,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"East US\")\n#Link to an existing cluster via access token\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"TestDtaFactory92783401247\",\n location=example.location,\n resource_group_name=example.name)\n#Create a databricks instance\nexample_workspace = azure.databricks.Workspace(\"example\",\n name=\"databricks-test\",\n resource_group_name=example.name,\n location=example.location,\n sku=\"standard\")\nat_linked = azure.datafactory.LinkedServiceAzureDatabricks(\"at_linked\",\n name=\"ADBLinkedServiceViaAccessToken\",\n data_factory_id=example_factory.id,\n description=\"ADB Linked Service via Access Token\",\n existing_cluster_id=\"0308-201146-sly615\",\n access_token=\"SomeDatabricksAccessToken\",\n adb_domain=example_workspace.workspace_url.apply(lambda workspace_url: f\"https://{workspace_url}\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"East US\",\n });\n\n //Link to an existing cluster via access token\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"TestDtaFactory92783401247\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n //Create a databricks instance\n var exampleWorkspace = new Azure.DataBricks.Workspace(\"example\", new()\n {\n Name = \"databricks-test\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Sku = \"standard\",\n });\n\n var atLinked = new Azure.DataFactory.LinkedServiceAzureDatabricks(\"at_linked\", new()\n {\n Name = \"ADBLinkedServiceViaAccessToken\",\n DataFactoryId = exampleFactory.Id,\n Description = \"ADB Linked Service via Access Token\",\n ExistingClusterId = \"0308-201146-sly615\",\n AccessToken = \"SomeDatabricksAccessToken\",\n AdbDomain = exampleWorkspace.WorkspaceUrl.Apply(workspaceUrl =\u003e $\"https://{workspaceUrl}\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"East US\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Link to an existing cluster via access token\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"TestDtaFactory92783401247\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a databricks instance\n\t\texampleWorkspace, err := databricks.NewWorkspace(ctx, \"example\", \u0026databricks.WorkspaceArgs{\n\t\t\tName: pulumi.String(\"databricks-test\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSku: pulumi.String(\"standard\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewLinkedServiceAzureDatabricks(ctx, \"at_linked\", \u0026datafactory.LinkedServiceAzureDatabricksArgs{\n\t\t\tName: pulumi.String(\"ADBLinkedServiceViaAccessToken\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tDescription: pulumi.String(\"ADB Linked Service via Access Token\"),\n\t\t\tExistingClusterId: pulumi.String(\"0308-201146-sly615\"),\n\t\t\tAccessToken: pulumi.String(\"SomeDatabricksAccessToken\"),\n\t\t\tAdbDomain: exampleWorkspace.WorkspaceUrl.ApplyT(func(workspaceUrl string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"https://%v\", workspaceUrl), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.databricks.Workspace;\nimport com.pulumi.azure.databricks.WorkspaceArgs;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricks;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricksArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"East US\")\n .build());\n\n //Link to an existing cluster via access token\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"TestDtaFactory92783401247\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n //Create a databricks instance\n var exampleWorkspace = new Workspace(\"exampleWorkspace\", WorkspaceArgs.builder()\n .name(\"databricks-test\")\n .resourceGroupName(example.name())\n .location(example.location())\n .sku(\"standard\")\n .build());\n\n var atLinked = new LinkedServiceAzureDatabricks(\"atLinked\", LinkedServiceAzureDatabricksArgs.builder()\n .name(\"ADBLinkedServiceViaAccessToken\")\n .dataFactoryId(exampleFactory.id())\n .description(\"ADB Linked Service via Access Token\")\n .existingClusterId(\"0308-201146-sly615\")\n .accessToken(\"SomeDatabricksAccessToken\")\n .adbDomain(exampleWorkspace.workspaceUrl().applyValue(workspaceUrl -\u003e String.format(\"https://%s\", workspaceUrl)))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example\n location: East US\n #Link to an existing cluster via access token\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: TestDtaFactory92783401247\n location: ${example.location}\n resourceGroupName: ${example.name}\n #Create a databricks instance\n exampleWorkspace:\n type: azure:databricks:Workspace\n name: example\n properties:\n name: databricks-test\n resourceGroupName: ${example.name}\n location: ${example.location}\n sku: standard\n atLinked:\n type: azure:datafactory:LinkedServiceAzureDatabricks\n name: at_linked\n properties:\n name: ADBLinkedServiceViaAccessToken\n dataFactoryId: ${exampleFactory.id}\n description: ADB Linked Service via Access Token\n existingClusterId: 0308-201146-sly615\n accessToken: SomeDatabricksAccessToken\n adbDomain: https://${exampleWorkspace.workspaceUrl}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Linked Services can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example\n```\n\n", + "description": "Manages a Linked Service (connection) between Azure Databricks and Azure Data Factory.\n\n## Example Usage\n\n### With Managed Identity \u0026 New Cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"East US\",\n});\n//Create a Linked Service using managed identity and new cluster config\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"TestDtaFactory92783401247\",\n location: example.location,\n resourceGroupName: example.name,\n identity: {\n type: \"SystemAssigned\",\n },\n});\n//Create a databricks instance\nconst exampleWorkspace = new azure.databricks.Workspace(\"example\", {\n name: \"databricks-test\",\n resourceGroupName: example.name,\n location: example.location,\n sku: \"standard\",\n});\nconst msiLinked = new azure.datafactory.LinkedServiceAzureDatabricks(\"msi_linked\", {\n name: \"ADBLinkedServiceViaMSI\",\n dataFactoryId: exampleFactory.id,\n description: \"ADB Linked Service via MSI\",\n adbDomain: pulumi.interpolate`https://${exampleWorkspace.workspaceUrl}`,\n msiWorkSpaceResourceId: exampleWorkspace.id,\n newClusterConfig: {\n nodeType: \"Standard_NC12\",\n clusterVersion: \"5.5.x-gpu-scala2.11\",\n minNumberOfWorkers: 1,\n maxNumberOfWorkers: 5,\n driverNodeType: \"Standard_NC12\",\n logDestination: \"dbfs:/logs\",\n customTags: {\n custom_tag1: \"sct_value_1\",\n custom_tag2: \"sct_value_2\",\n },\n sparkConfig: {\n config1: \"value1\",\n config2: \"value2\",\n },\n sparkEnvironmentVariables: {\n envVar1: \"value1\",\n envVar2: \"value2\",\n },\n initScripts: [\n \"init.sh\",\n \"init2.sh\",\n ],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"East US\")\n#Create a Linked Service using managed identity and new cluster config\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"TestDtaFactory92783401247\",\n location=example.location,\n resource_group_name=example.name,\n identity={\n \"type\": \"SystemAssigned\",\n })\n#Create a databricks instance\nexample_workspace = azure.databricks.Workspace(\"example\",\n name=\"databricks-test\",\n resource_group_name=example.name,\n location=example.location,\n sku=\"standard\")\nmsi_linked = azure.datafactory.LinkedServiceAzureDatabricks(\"msi_linked\",\n name=\"ADBLinkedServiceViaMSI\",\n data_factory_id=example_factory.id,\n description=\"ADB Linked Service via MSI\",\n adb_domain=example_workspace.workspace_url.apply(lambda workspace_url: f\"https://{workspace_url}\"),\n msi_work_space_resource_id=example_workspace.id,\n new_cluster_config={\n \"node_type\": \"Standard_NC12\",\n \"cluster_version\": \"5.5.x-gpu-scala2.11\",\n \"min_number_of_workers\": 1,\n \"max_number_of_workers\": 5,\n \"driver_node_type\": \"Standard_NC12\",\n \"log_destination\": \"dbfs:/logs\",\n \"custom_tags\": {\n \"custom_tag1\": \"sct_value_1\",\n \"custom_tag2\": \"sct_value_2\",\n },\n \"spark_config\": {\n \"config1\": \"value1\",\n \"config2\": \"value2\",\n },\n \"spark_environment_variables\": {\n \"envVar1\": \"value1\",\n \"envVar2\": \"value2\",\n },\n \"init_scripts\": [\n \"init.sh\",\n \"init2.sh\",\n ],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"East US\",\n });\n\n //Create a Linked Service using managed identity and new cluster config\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"TestDtaFactory92783401247\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n Identity = new Azure.DataFactory.Inputs.FactoryIdentityArgs\n {\n Type = \"SystemAssigned\",\n },\n });\n\n //Create a databricks instance\n var exampleWorkspace = new Azure.DataBricks.Workspace(\"example\", new()\n {\n Name = \"databricks-test\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Sku = \"standard\",\n });\n\n var msiLinked = new Azure.DataFactory.LinkedServiceAzureDatabricks(\"msi_linked\", new()\n {\n Name = \"ADBLinkedServiceViaMSI\",\n DataFactoryId = exampleFactory.Id,\n Description = \"ADB Linked Service via MSI\",\n AdbDomain = exampleWorkspace.WorkspaceUrl.Apply(workspaceUrl =\u003e $\"https://{workspaceUrl}\"),\n MsiWorkSpaceResourceId = exampleWorkspace.Id,\n NewClusterConfig = new Azure.DataFactory.Inputs.LinkedServiceAzureDatabricksNewClusterConfigArgs\n {\n NodeType = \"Standard_NC12\",\n ClusterVersion = \"5.5.x-gpu-scala2.11\",\n MinNumberOfWorkers = 1,\n MaxNumberOfWorkers = 5,\n DriverNodeType = \"Standard_NC12\",\n LogDestination = \"dbfs:/logs\",\n CustomTags = \n {\n { \"custom_tag1\", \"sct_value_1\" },\n { \"custom_tag2\", \"sct_value_2\" },\n },\n SparkConfig = \n {\n { \"config1\", \"value1\" },\n { \"config2\", \"value2\" },\n },\n SparkEnvironmentVariables = \n {\n { \"envVar1\", \"value1\" },\n { \"envVar2\", \"value2\" },\n },\n InitScripts = new[]\n {\n \"init.sh\",\n \"init2.sh\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"East US\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a Linked Service using managed identity and new cluster config\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"TestDtaFactory92783401247\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tIdentity: \u0026datafactory.FactoryIdentityArgs{\n\t\t\t\tType: pulumi.String(\"SystemAssigned\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a databricks instance\n\t\texampleWorkspace, err := databricks.NewWorkspace(ctx, \"example\", \u0026databricks.WorkspaceArgs{\n\t\t\tName: pulumi.String(\"databricks-test\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSku: pulumi.String(\"standard\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewLinkedServiceAzureDatabricks(ctx, \"msi_linked\", \u0026datafactory.LinkedServiceAzureDatabricksArgs{\n\t\t\tName: pulumi.String(\"ADBLinkedServiceViaMSI\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tDescription: pulumi.String(\"ADB Linked Service via MSI\"),\n\t\t\tAdbDomain: exampleWorkspace.WorkspaceUrl.ApplyT(func(workspaceUrl string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"https://%v\", workspaceUrl), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tMsiWorkSpaceResourceId: exampleWorkspace.ID(),\n\t\t\tNewClusterConfig: \u0026datafactory.LinkedServiceAzureDatabricksNewClusterConfigArgs{\n\t\t\t\tNodeType: pulumi.String(\"Standard_NC12\"),\n\t\t\t\tClusterVersion: pulumi.String(\"5.5.x-gpu-scala2.11\"),\n\t\t\t\tMinNumberOfWorkers: pulumi.Int(1),\n\t\t\t\tMaxNumberOfWorkers: pulumi.Int(5),\n\t\t\t\tDriverNodeType: pulumi.String(\"Standard_NC12\"),\n\t\t\t\tLogDestination: pulumi.String(\"dbfs:/logs\"),\n\t\t\t\tCustomTags: pulumi.StringMap{\n\t\t\t\t\t\"custom_tag1\": pulumi.String(\"sct_value_1\"),\n\t\t\t\t\t\"custom_tag2\": pulumi.String(\"sct_value_2\"),\n\t\t\t\t},\n\t\t\t\tSparkConfig: pulumi.StringMap{\n\t\t\t\t\t\"config1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\"config2\": pulumi.String(\"value2\"),\n\t\t\t\t},\n\t\t\t\tSparkEnvironmentVariables: pulumi.StringMap{\n\t\t\t\t\t\"envVar1\": pulumi.String(\"value1\"),\n\t\t\t\t\t\"envVar2\": pulumi.String(\"value2\"),\n\t\t\t\t},\n\t\t\t\tInitScripts: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"init.sh\"),\n\t\t\t\t\tpulumi.String(\"init2.sh\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.inputs.FactoryIdentityArgs;\nimport com.pulumi.azure.databricks.Workspace;\nimport com.pulumi.azure.databricks.WorkspaceArgs;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricks;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricksArgs;\nimport com.pulumi.azure.datafactory.inputs.LinkedServiceAzureDatabricksNewClusterConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"East US\")\n .build());\n\n //Create a Linked Service using managed identity and new cluster config\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"TestDtaFactory92783401247\")\n .location(example.location())\n .resourceGroupName(example.name())\n .identity(FactoryIdentityArgs.builder()\n .type(\"SystemAssigned\")\n .build())\n .build());\n\n //Create a databricks instance\n var exampleWorkspace = new Workspace(\"exampleWorkspace\", WorkspaceArgs.builder()\n .name(\"databricks-test\")\n .resourceGroupName(example.name())\n .location(example.location())\n .sku(\"standard\")\n .build());\n\n var msiLinked = new LinkedServiceAzureDatabricks(\"msiLinked\", LinkedServiceAzureDatabricksArgs.builder()\n .name(\"ADBLinkedServiceViaMSI\")\n .dataFactoryId(exampleFactory.id())\n .description(\"ADB Linked Service via MSI\")\n .adbDomain(exampleWorkspace.workspaceUrl().applyValue(workspaceUrl -\u003e String.format(\"https://%s\", workspaceUrl)))\n .msiWorkSpaceResourceId(exampleWorkspace.id())\n .newClusterConfig(LinkedServiceAzureDatabricksNewClusterConfigArgs.builder()\n .nodeType(\"Standard_NC12\")\n .clusterVersion(\"5.5.x-gpu-scala2.11\")\n .minNumberOfWorkers(1)\n .maxNumberOfWorkers(5)\n .driverNodeType(\"Standard_NC12\")\n .logDestination(\"dbfs:/logs\")\n .customTags(Map.ofEntries(\n Map.entry(\"custom_tag1\", \"sct_value_1\"),\n Map.entry(\"custom_tag2\", \"sct_value_2\")\n ))\n .sparkConfig(Map.ofEntries(\n Map.entry(\"config1\", \"value1\"),\n Map.entry(\"config2\", \"value2\")\n ))\n .sparkEnvironmentVariables(Map.ofEntries(\n Map.entry(\"envVar1\", \"value1\"),\n Map.entry(\"envVar2\", \"value2\")\n ))\n .initScripts( \n \"init.sh\",\n \"init2.sh\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example\n location: East US\n #Create a Linked Service using managed identity and new cluster config\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: TestDtaFactory92783401247\n location: ${example.location}\n resourceGroupName: ${example.name}\n identity:\n type: SystemAssigned\n #Create a databricks instance\n exampleWorkspace:\n type: azure:databricks:Workspace\n name: example\n properties:\n name: databricks-test\n resourceGroupName: ${example.name}\n location: ${example.location}\n sku: standard\n msiLinked:\n type: azure:datafactory:LinkedServiceAzureDatabricks\n name: msi_linked\n properties:\n name: ADBLinkedServiceViaMSI\n dataFactoryId: ${exampleFactory.id}\n description: ADB Linked Service via MSI\n adbDomain: https://${exampleWorkspace.workspaceUrl}\n msiWorkSpaceResourceId: ${exampleWorkspace.id}\n newClusterConfig:\n nodeType: Standard_NC12\n clusterVersion: 5.5.x-gpu-scala2.11\n minNumberOfWorkers: 1\n maxNumberOfWorkers: 5\n driverNodeType: Standard_NC12\n logDestination: dbfs:/logs\n customTags:\n custom_tag1: sct_value_1\n custom_tag2: sct_value_2\n sparkConfig:\n config1: value1\n config2: value2\n sparkEnvironmentVariables:\n envVar1: value1\n envVar2: value2\n initScripts:\n - init.sh\n - init2.sh\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### With Access Token \u0026 Existing Cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"East US\",\n});\n//Link to an existing cluster via access token\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"TestDtaFactory92783401247\",\n location: example.location,\n resourceGroupName: example.name,\n});\n//Create a databricks instance\nconst exampleWorkspace = new azure.databricks.Workspace(\"example\", {\n name: \"databricks-test\",\n resourceGroupName: example.name,\n location: example.location,\n sku: \"standard\",\n});\nconst atLinked = new azure.datafactory.LinkedServiceAzureDatabricks(\"at_linked\", {\n name: \"ADBLinkedServiceViaAccessToken\",\n dataFactoryId: exampleFactory.id,\n description: \"ADB Linked Service via Access Token\",\n existingClusterId: \"0308-201146-sly615\",\n accessToken: \"SomeDatabricksAccessToken\",\n adbDomain: pulumi.interpolate`https://${exampleWorkspace.workspaceUrl}`,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"East US\")\n#Link to an existing cluster via access token\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"TestDtaFactory92783401247\",\n location=example.location,\n resource_group_name=example.name)\n#Create a databricks instance\nexample_workspace = azure.databricks.Workspace(\"example\",\n name=\"databricks-test\",\n resource_group_name=example.name,\n location=example.location,\n sku=\"standard\")\nat_linked = azure.datafactory.LinkedServiceAzureDatabricks(\"at_linked\",\n name=\"ADBLinkedServiceViaAccessToken\",\n data_factory_id=example_factory.id,\n description=\"ADB Linked Service via Access Token\",\n existing_cluster_id=\"0308-201146-sly615\",\n access_token=\"SomeDatabricksAccessToken\",\n adb_domain=example_workspace.workspace_url.apply(lambda workspace_url: f\"https://{workspace_url}\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"East US\",\n });\n\n //Link to an existing cluster via access token\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"TestDtaFactory92783401247\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n //Create a databricks instance\n var exampleWorkspace = new Azure.DataBricks.Workspace(\"example\", new()\n {\n Name = \"databricks-test\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Sku = \"standard\",\n });\n\n var atLinked = new Azure.DataFactory.LinkedServiceAzureDatabricks(\"at_linked\", new()\n {\n Name = \"ADBLinkedServiceViaAccessToken\",\n DataFactoryId = exampleFactory.Id,\n Description = \"ADB Linked Service via Access Token\",\n ExistingClusterId = \"0308-201146-sly615\",\n AccessToken = \"SomeDatabricksAccessToken\",\n AdbDomain = exampleWorkspace.WorkspaceUrl.Apply(workspaceUrl =\u003e $\"https://{workspaceUrl}\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"East US\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Link to an existing cluster via access token\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"TestDtaFactory92783401247\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a databricks instance\n\t\texampleWorkspace, err := databricks.NewWorkspace(ctx, \"example\", \u0026databricks.WorkspaceArgs{\n\t\t\tName: pulumi.String(\"databricks-test\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tSku: pulumi.String(\"standard\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewLinkedServiceAzureDatabricks(ctx, \"at_linked\", \u0026datafactory.LinkedServiceAzureDatabricksArgs{\n\t\t\tName: pulumi.String(\"ADBLinkedServiceViaAccessToken\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tDescription: pulumi.String(\"ADB Linked Service via Access Token\"),\n\t\t\tExistingClusterId: pulumi.String(\"0308-201146-sly615\"),\n\t\t\tAccessToken: pulumi.String(\"SomeDatabricksAccessToken\"),\n\t\t\tAdbDomain: exampleWorkspace.WorkspaceUrl.ApplyT(func(workspaceUrl string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"https://%v\", workspaceUrl), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.databricks.Workspace;\nimport com.pulumi.azure.databricks.WorkspaceArgs;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricks;\nimport com.pulumi.azure.datafactory.LinkedServiceAzureDatabricksArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"East US\")\n .build());\n\n //Link to an existing cluster via access token\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"TestDtaFactory92783401247\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n //Create a databricks instance\n var exampleWorkspace = new Workspace(\"exampleWorkspace\", WorkspaceArgs.builder()\n .name(\"databricks-test\")\n .resourceGroupName(example.name())\n .location(example.location())\n .sku(\"standard\")\n .build());\n\n var atLinked = new LinkedServiceAzureDatabricks(\"atLinked\", LinkedServiceAzureDatabricksArgs.builder()\n .name(\"ADBLinkedServiceViaAccessToken\")\n .dataFactoryId(exampleFactory.id())\n .description(\"ADB Linked Service via Access Token\")\n .existingClusterId(\"0308-201146-sly615\")\n .accessToken(\"SomeDatabricksAccessToken\")\n .adbDomain(exampleWorkspace.workspaceUrl().applyValue(workspaceUrl -\u003e String.format(\"https://%s\", workspaceUrl)))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example\n location: East US\n #Link to an existing cluster via access token\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: TestDtaFactory92783401247\n location: ${example.location}\n resourceGroupName: ${example.name}\n #Create a databricks instance\n exampleWorkspace:\n type: azure:databricks:Workspace\n name: example\n properties:\n name: databricks-test\n resourceGroupName: ${example.name}\n location: ${example.location}\n sku: standard\n atLinked:\n type: azure:datafactory:LinkedServiceAzureDatabricks\n name: at_linked\n properties:\n name: ADBLinkedServiceViaAccessToken\n dataFactoryId: ${exampleFactory.id}\n description: ADB Linked Service via Access Token\n existingClusterId: 0308-201146-sly615\n accessToken: SomeDatabricksAccessToken\n adbDomain: https://${exampleWorkspace.workspaceUrl}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Linked Services can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example\n```\n\n", "properties": { "accessToken": { "type": "string", @@ -172097,7 +172097,7 @@ } }, "azure:datafactory/triggerBlobEvent:TriggerBlobEvent": { - "description": "Manages a Blob Event Trigger inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePipeline = new azure.datafactory.Pipeline(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n});\nconst exampleAccount = new azure.storage.Account(\"example\", {\n name: \"example\",\n resourceGroupName: example.name,\n location: example.location,\n accountTier: \"Standard\",\n accountReplicationType: \"LRS\",\n});\nconst exampleTriggerBlobEvent = new azure.datafactory.TriggerBlobEvent(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n storageAccountId: exampleAccount.id,\n events: [\n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\",\n ],\n blobPathEndsWith: \".txt\",\n ignoreEmptyBlobs: true,\n activated: true,\n annotations: [\n \"test1\",\n \"test2\",\n \"test3\",\n ],\n description: \"example description\",\n pipelines: [{\n name: examplePipeline.name,\n parameters: {\n Env: \"Prod\",\n },\n }],\n additionalProperties: {\n foo: \"foo1\",\n bar: \"bar2\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_pipeline = azure.datafactory.Pipeline(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id)\nexample_account = azure.storage.Account(\"example\",\n name=\"example\",\n resource_group_name=example.name,\n location=example.location,\n account_tier=\"Standard\",\n account_replication_type=\"LRS\")\nexample_trigger_blob_event = azure.datafactory.TriggerBlobEvent(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n storage_account_id=example_account.id,\n events=[\n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\",\n ],\n blob_path_ends_with=\".txt\",\n ignore_empty_blobs=True,\n activated=True,\n annotations=[\n \"test1\",\n \"test2\",\n \"test3\",\n ],\n description=\"example description\",\n pipelines=[{\n \"name\": example_pipeline.name,\n \"parameters\": {\n \"env\": \"Prod\",\n },\n }],\n additional_properties={\n \"foo\": \"foo1\",\n \"bar\": \"bar2\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePipeline = new Azure.DataFactory.Pipeline(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n });\n\n var exampleAccount = new Azure.Storage.Account(\"example\", new()\n {\n Name = \"example\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountTier = \"Standard\",\n AccountReplicationType = \"LRS\",\n });\n\n var exampleTriggerBlobEvent = new Azure.DataFactory.TriggerBlobEvent(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n StorageAccountId = exampleAccount.Id,\n Events = new[]\n {\n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\",\n },\n BlobPathEndsWith = \".txt\",\n IgnoreEmptyBlobs = true,\n Activated = true,\n Annotations = new[]\n {\n \"test1\",\n \"test2\",\n \"test3\",\n },\n Description = \"example description\",\n Pipelines = new[]\n {\n new Azure.DataFactory.Inputs.TriggerBlobEventPipelineArgs\n {\n Name = examplePipeline.Name,\n Parameters = \n {\n { \"Env\", \"Prod\" },\n },\n },\n },\n AdditionalProperties = \n {\n { \"foo\", \"foo1\" },\n { \"bar\", \"bar2\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texamplePipeline, err := datafactory.NewPipeline(ctx, \"example\", \u0026datafactory.PipelineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := storage.NewAccount(ctx, \"example\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"LRS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewTriggerBlobEvent(ctx, \"example\", \u0026datafactory.TriggerBlobEventArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tStorageAccountId: exampleAccount.ID(),\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Microsoft.Storage.BlobCreated\"),\n\t\t\t\tpulumi.String(\"Microsoft.Storage.BlobDeleted\"),\n\t\t\t},\n\t\t\tBlobPathEndsWith: pulumi.String(\".txt\"),\n\t\t\tIgnoreEmptyBlobs: pulumi.Bool(true),\n\t\t\tActivated: pulumi.Bool(true),\n\t\t\tAnnotations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"test1\"),\n\t\t\t\tpulumi.String(\"test2\"),\n\t\t\t\tpulumi.String(\"test3\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"example description\"),\n\t\t\tPipelines: datafactory.TriggerBlobEventPipelineArray{\n\t\t\t\t\u0026datafactory.TriggerBlobEventPipelineArgs{\n\t\t\t\t\tName: examplePipeline.Name,\n\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\"Env\": pulumi.String(\"Prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAdditionalProperties: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"foo1\"),\n\t\t\t\t\"bar\": pulumi.String(\"bar2\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.Pipeline;\nimport com.pulumi.azure.datafactory.PipelineArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.datafactory.TriggerBlobEvent;\nimport com.pulumi.azure.datafactory.TriggerBlobEventArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerBlobEventPipelineArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePipeline = new Pipeline(\"examplePipeline\", PipelineArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountTier(\"Standard\")\n .accountReplicationType(\"LRS\")\n .build());\n\n var exampleTriggerBlobEvent = new TriggerBlobEvent(\"exampleTriggerBlobEvent\", TriggerBlobEventArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .storageAccountId(exampleAccount.id())\n .events( \n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\")\n .blobPathEndsWith(\".txt\")\n .ignoreEmptyBlobs(true)\n .activated(true)\n .annotations( \n \"test1\",\n \"test2\",\n \"test3\")\n .description(\"example description\")\n .pipelines(TriggerBlobEventPipelineArgs.builder()\n .name(examplePipeline.name())\n .parameters(Map.of(\"Env\", \"Prod\"))\n .build())\n .additionalProperties(Map.ofEntries(\n Map.entry(\"foo\", \"foo1\"),\n Map.entry(\"bar\", \"bar2\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePipeline:\n type: azure:datafactory:Pipeline\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n exampleAccount:\n type: azure:storage:Account\n name: example\n properties:\n name: example\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountTier: Standard\n accountReplicationType: LRS\n exampleTriggerBlobEvent:\n type: azure:datafactory:TriggerBlobEvent\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n storageAccountId: ${exampleAccount.id}\n events:\n - Microsoft.Storage.BlobCreated\n - Microsoft.Storage.BlobDeleted\n blobPathEndsWith: .txt\n ignoreEmptyBlobs: true\n activated: true\n annotations:\n - test1\n - test2\n - test3\n description: example description\n pipelines:\n - name: ${examplePipeline.name}\n parameters:\n Env: Prod\n additionalProperties:\n foo: foo1\n bar: bar2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Blob Event Trigger can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/triggerBlobEvent:TriggerBlobEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example\n```\n\n", + "description": "Manages a Blob Event Trigger inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePipeline = new azure.datafactory.Pipeline(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n});\nconst exampleAccount = new azure.storage.Account(\"example\", {\n name: \"example\",\n resourceGroupName: example.name,\n location: example.location,\n accountTier: \"Standard\",\n accountReplicationType: \"LRS\",\n});\nconst exampleTriggerBlobEvent = new azure.datafactory.TriggerBlobEvent(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n storageAccountId: exampleAccount.id,\n events: [\n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\",\n ],\n blobPathEndsWith: \".txt\",\n ignoreEmptyBlobs: true,\n activated: true,\n annotations: [\n \"test1\",\n \"test2\",\n \"test3\",\n ],\n description: \"example description\",\n pipelines: [{\n name: examplePipeline.name,\n parameters: {\n Env: \"Prod\",\n },\n }],\n additionalProperties: {\n foo: \"foo1\",\n bar: \"bar2\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_pipeline = azure.datafactory.Pipeline(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id)\nexample_account = azure.storage.Account(\"example\",\n name=\"example\",\n resource_group_name=example.name,\n location=example.location,\n account_tier=\"Standard\",\n account_replication_type=\"LRS\")\nexample_trigger_blob_event = azure.datafactory.TriggerBlobEvent(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n storage_account_id=example_account.id,\n events=[\n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\",\n ],\n blob_path_ends_with=\".txt\",\n ignore_empty_blobs=True,\n activated=True,\n annotations=[\n \"test1\",\n \"test2\",\n \"test3\",\n ],\n description=\"example description\",\n pipelines=[{\n \"name\": example_pipeline.name,\n \"parameters\": {\n \"Env\": \"Prod\",\n },\n }],\n additional_properties={\n \"foo\": \"foo1\",\n \"bar\": \"bar2\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePipeline = new Azure.DataFactory.Pipeline(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n });\n\n var exampleAccount = new Azure.Storage.Account(\"example\", new()\n {\n Name = \"example\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountTier = \"Standard\",\n AccountReplicationType = \"LRS\",\n });\n\n var exampleTriggerBlobEvent = new Azure.DataFactory.TriggerBlobEvent(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n StorageAccountId = exampleAccount.Id,\n Events = new[]\n {\n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\",\n },\n BlobPathEndsWith = \".txt\",\n IgnoreEmptyBlobs = true,\n Activated = true,\n Annotations = new[]\n {\n \"test1\",\n \"test2\",\n \"test3\",\n },\n Description = \"example description\",\n Pipelines = new[]\n {\n new Azure.DataFactory.Inputs.TriggerBlobEventPipelineArgs\n {\n Name = examplePipeline.Name,\n Parameters = \n {\n { \"Env\", \"Prod\" },\n },\n },\n },\n AdditionalProperties = \n {\n { \"foo\", \"foo1\" },\n { \"bar\", \"bar2\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texamplePipeline, err := datafactory.NewPipeline(ctx, \"example\", \u0026datafactory.PipelineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := storage.NewAccount(ctx, \"example\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"LRS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewTriggerBlobEvent(ctx, \"example\", \u0026datafactory.TriggerBlobEventArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tStorageAccountId: exampleAccount.ID(),\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Microsoft.Storage.BlobCreated\"),\n\t\t\t\tpulumi.String(\"Microsoft.Storage.BlobDeleted\"),\n\t\t\t},\n\t\t\tBlobPathEndsWith: pulumi.String(\".txt\"),\n\t\t\tIgnoreEmptyBlobs: pulumi.Bool(true),\n\t\t\tActivated: pulumi.Bool(true),\n\t\t\tAnnotations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"test1\"),\n\t\t\t\tpulumi.String(\"test2\"),\n\t\t\t\tpulumi.String(\"test3\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"example description\"),\n\t\t\tPipelines: datafactory.TriggerBlobEventPipelineArray{\n\t\t\t\t\u0026datafactory.TriggerBlobEventPipelineArgs{\n\t\t\t\t\tName: examplePipeline.Name,\n\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\"Env\": pulumi.String(\"Prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAdditionalProperties: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"foo1\"),\n\t\t\t\t\"bar\": pulumi.String(\"bar2\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.Pipeline;\nimport com.pulumi.azure.datafactory.PipelineArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.datafactory.TriggerBlobEvent;\nimport com.pulumi.azure.datafactory.TriggerBlobEventArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerBlobEventPipelineArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePipeline = new Pipeline(\"examplePipeline\", PipelineArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountTier(\"Standard\")\n .accountReplicationType(\"LRS\")\n .build());\n\n var exampleTriggerBlobEvent = new TriggerBlobEvent(\"exampleTriggerBlobEvent\", TriggerBlobEventArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .storageAccountId(exampleAccount.id())\n .events( \n \"Microsoft.Storage.BlobCreated\",\n \"Microsoft.Storage.BlobDeleted\")\n .blobPathEndsWith(\".txt\")\n .ignoreEmptyBlobs(true)\n .activated(true)\n .annotations( \n \"test1\",\n \"test2\",\n \"test3\")\n .description(\"example description\")\n .pipelines(TriggerBlobEventPipelineArgs.builder()\n .name(examplePipeline.name())\n .parameters(Map.of(\"Env\", \"Prod\"))\n .build())\n .additionalProperties(Map.ofEntries(\n Map.entry(\"foo\", \"foo1\"),\n Map.entry(\"bar\", \"bar2\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePipeline:\n type: azure:datafactory:Pipeline\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n exampleAccount:\n type: azure:storage:Account\n name: example\n properties:\n name: example\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountTier: Standard\n accountReplicationType: LRS\n exampleTriggerBlobEvent:\n type: azure:datafactory:TriggerBlobEvent\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n storageAccountId: ${exampleAccount.id}\n events:\n - Microsoft.Storage.BlobCreated\n - Microsoft.Storage.BlobDeleted\n blobPathEndsWith: .txt\n ignoreEmptyBlobs: true\n activated: true\n annotations:\n - test1\n - test2\n - test3\n description: example description\n pipelines:\n - name: ${examplePipeline.name}\n parameters:\n Env: Prod\n additionalProperties:\n foo: foo1\n bar: bar2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Blob Event Trigger can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/triggerBlobEvent:TriggerBlobEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example\n```\n\n", "properties": { "activated": { "type": "boolean", @@ -172309,7 +172309,7 @@ } }, "azure:datafactory/triggerCustomEvent:TriggerCustomEvent": { - "description": "Manages a Custom Event Trigger inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePipeline = new azure.datafactory.Pipeline(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n});\nconst exampleTopic = new azure.eventgrid.Topic(\"example\", {\n name: \"example-topic\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleTriggerCustomEvent = new azure.datafactory.TriggerCustomEvent(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n eventgridTopicId: exampleTopic.id,\n events: [\n \"event1\",\n \"event2\",\n ],\n subjectBeginsWith: \"abc\",\n subjectEndsWith: \"xyz\",\n annotations: [\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description: \"example description\",\n pipelines: [{\n name: examplePipeline.name,\n parameters: {\n Env: \"Prod\",\n },\n }],\n additionalProperties: {\n foo: \"foo1\",\n bar: \"bar2\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_pipeline = azure.datafactory.Pipeline(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id)\nexample_topic = azure.eventgrid.Topic(\"example\",\n name=\"example-topic\",\n location=example.location,\n resource_group_name=example.name)\nexample_trigger_custom_event = azure.datafactory.TriggerCustomEvent(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n eventgrid_topic_id=example_topic.id,\n events=[\n \"event1\",\n \"event2\",\n ],\n subject_begins_with=\"abc\",\n subject_ends_with=\"xyz\",\n annotations=[\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description=\"example description\",\n pipelines=[{\n \"name\": example_pipeline.name,\n \"parameters\": {\n \"env\": \"Prod\",\n },\n }],\n additional_properties={\n \"foo\": \"foo1\",\n \"bar\": \"bar2\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePipeline = new Azure.DataFactory.Pipeline(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n });\n\n var exampleTopic = new Azure.EventGrid.Topic(\"example\", new()\n {\n Name = \"example-topic\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleTriggerCustomEvent = new Azure.DataFactory.TriggerCustomEvent(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n EventgridTopicId = exampleTopic.Id,\n Events = new[]\n {\n \"event1\",\n \"event2\",\n },\n SubjectBeginsWith = \"abc\",\n SubjectEndsWith = \"xyz\",\n Annotations = new[]\n {\n \"example1\",\n \"example2\",\n \"example3\",\n },\n Description = \"example description\",\n Pipelines = new[]\n {\n new Azure.DataFactory.Inputs.TriggerCustomEventPipelineArgs\n {\n Name = examplePipeline.Name,\n Parameters = \n {\n { \"Env\", \"Prod\" },\n },\n },\n },\n AdditionalProperties = \n {\n { \"foo\", \"foo1\" },\n { \"bar\", \"bar2\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texamplePipeline, err := datafactory.NewPipeline(ctx, \"example\", \u0026datafactory.PipelineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTopic, err := eventgrid.NewTopic(ctx, \"example\", \u0026eventgrid.TopicArgs{\n\t\t\tName: pulumi.String(\"example-topic\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewTriggerCustomEvent(ctx, \"example\", \u0026datafactory.TriggerCustomEventArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tEventgridTopicId: exampleTopic.ID(),\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"event1\"),\n\t\t\t\tpulumi.String(\"event2\"),\n\t\t\t},\n\t\t\tSubjectBeginsWith: pulumi.String(\"abc\"),\n\t\t\tSubjectEndsWith: pulumi.String(\"xyz\"),\n\t\t\tAnnotations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example1\"),\n\t\t\t\tpulumi.String(\"example2\"),\n\t\t\t\tpulumi.String(\"example3\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"example description\"),\n\t\t\tPipelines: datafactory.TriggerCustomEventPipelineArray{\n\t\t\t\t\u0026datafactory.TriggerCustomEventPipelineArgs{\n\t\t\t\t\tName: examplePipeline.Name,\n\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\"Env\": pulumi.String(\"Prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAdditionalProperties: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"foo1\"),\n\t\t\t\t\"bar\": pulumi.String(\"bar2\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.Pipeline;\nimport com.pulumi.azure.datafactory.PipelineArgs;\nimport com.pulumi.azure.eventgrid.Topic;\nimport com.pulumi.azure.eventgrid.TopicArgs;\nimport com.pulumi.azure.datafactory.TriggerCustomEvent;\nimport com.pulumi.azure.datafactory.TriggerCustomEventArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerCustomEventPipelineArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePipeline = new Pipeline(\"examplePipeline\", PipelineArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .build());\n\n var exampleTopic = new Topic(\"exampleTopic\", TopicArgs.builder()\n .name(\"example-topic\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleTriggerCustomEvent = new TriggerCustomEvent(\"exampleTriggerCustomEvent\", TriggerCustomEventArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .eventgridTopicId(exampleTopic.id())\n .events( \n \"event1\",\n \"event2\")\n .subjectBeginsWith(\"abc\")\n .subjectEndsWith(\"xyz\")\n .annotations( \n \"example1\",\n \"example2\",\n \"example3\")\n .description(\"example description\")\n .pipelines(TriggerCustomEventPipelineArgs.builder()\n .name(examplePipeline.name())\n .parameters(Map.of(\"Env\", \"Prod\"))\n .build())\n .additionalProperties(Map.ofEntries(\n Map.entry(\"foo\", \"foo1\"),\n Map.entry(\"bar\", \"bar2\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePipeline:\n type: azure:datafactory:Pipeline\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n exampleTopic:\n type: azure:eventgrid:Topic\n name: example\n properties:\n name: example-topic\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleTriggerCustomEvent:\n type: azure:datafactory:TriggerCustomEvent\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n eventgridTopicId: ${exampleTopic.id}\n events:\n - event1\n - event2\n subjectBeginsWith: abc\n subjectEndsWith: xyz\n annotations:\n - example1\n - example2\n - example3\n description: example description\n pipelines:\n - name: ${examplePipeline.name}\n parameters:\n Env: Prod\n additionalProperties:\n foo: foo1\n bar: bar2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Custom Event Trigger can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/triggerCustomEvent:TriggerCustomEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example\n```\n\n", + "description": "Manages a Custom Event Trigger inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePipeline = new azure.datafactory.Pipeline(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n});\nconst exampleTopic = new azure.eventgrid.Topic(\"example\", {\n name: \"example-topic\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleTriggerCustomEvent = new azure.datafactory.TriggerCustomEvent(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n eventgridTopicId: exampleTopic.id,\n events: [\n \"event1\",\n \"event2\",\n ],\n subjectBeginsWith: \"abc\",\n subjectEndsWith: \"xyz\",\n annotations: [\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description: \"example description\",\n pipelines: [{\n name: examplePipeline.name,\n parameters: {\n Env: \"Prod\",\n },\n }],\n additionalProperties: {\n foo: \"foo1\",\n bar: \"bar2\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_pipeline = azure.datafactory.Pipeline(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id)\nexample_topic = azure.eventgrid.Topic(\"example\",\n name=\"example-topic\",\n location=example.location,\n resource_group_name=example.name)\nexample_trigger_custom_event = azure.datafactory.TriggerCustomEvent(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n eventgrid_topic_id=example_topic.id,\n events=[\n \"event1\",\n \"event2\",\n ],\n subject_begins_with=\"abc\",\n subject_ends_with=\"xyz\",\n annotations=[\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description=\"example description\",\n pipelines=[{\n \"name\": example_pipeline.name,\n \"parameters\": {\n \"Env\": \"Prod\",\n },\n }],\n additional_properties={\n \"foo\": \"foo1\",\n \"bar\": \"bar2\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePipeline = new Azure.DataFactory.Pipeline(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n });\n\n var exampleTopic = new Azure.EventGrid.Topic(\"example\", new()\n {\n Name = \"example-topic\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleTriggerCustomEvent = new Azure.DataFactory.TriggerCustomEvent(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n EventgridTopicId = exampleTopic.Id,\n Events = new[]\n {\n \"event1\",\n \"event2\",\n },\n SubjectBeginsWith = \"abc\",\n SubjectEndsWith = \"xyz\",\n Annotations = new[]\n {\n \"example1\",\n \"example2\",\n \"example3\",\n },\n Description = \"example description\",\n Pipelines = new[]\n {\n new Azure.DataFactory.Inputs.TriggerCustomEventPipelineArgs\n {\n Name = examplePipeline.Name,\n Parameters = \n {\n { \"Env\", \"Prod\" },\n },\n },\n },\n AdditionalProperties = \n {\n { \"foo\", \"foo1\" },\n { \"bar\", \"bar2\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texamplePipeline, err := datafactory.NewPipeline(ctx, \"example\", \u0026datafactory.PipelineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTopic, err := eventgrid.NewTopic(ctx, \"example\", \u0026eventgrid.TopicArgs{\n\t\t\tName: pulumi.String(\"example-topic\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewTriggerCustomEvent(ctx, \"example\", \u0026datafactory.TriggerCustomEventArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tEventgridTopicId: exampleTopic.ID(),\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"event1\"),\n\t\t\t\tpulumi.String(\"event2\"),\n\t\t\t},\n\t\t\tSubjectBeginsWith: pulumi.String(\"abc\"),\n\t\t\tSubjectEndsWith: pulumi.String(\"xyz\"),\n\t\t\tAnnotations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example1\"),\n\t\t\t\tpulumi.String(\"example2\"),\n\t\t\t\tpulumi.String(\"example3\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"example description\"),\n\t\t\tPipelines: datafactory.TriggerCustomEventPipelineArray{\n\t\t\t\t\u0026datafactory.TriggerCustomEventPipelineArgs{\n\t\t\t\t\tName: examplePipeline.Name,\n\t\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\t\"Env\": pulumi.String(\"Prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAdditionalProperties: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"foo1\"),\n\t\t\t\t\"bar\": pulumi.String(\"bar2\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.Pipeline;\nimport com.pulumi.azure.datafactory.PipelineArgs;\nimport com.pulumi.azure.eventgrid.Topic;\nimport com.pulumi.azure.eventgrid.TopicArgs;\nimport com.pulumi.azure.datafactory.TriggerCustomEvent;\nimport com.pulumi.azure.datafactory.TriggerCustomEventArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerCustomEventPipelineArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePipeline = new Pipeline(\"examplePipeline\", PipelineArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .build());\n\n var exampleTopic = new Topic(\"exampleTopic\", TopicArgs.builder()\n .name(\"example-topic\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleTriggerCustomEvent = new TriggerCustomEvent(\"exampleTriggerCustomEvent\", TriggerCustomEventArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .eventgridTopicId(exampleTopic.id())\n .events( \n \"event1\",\n \"event2\")\n .subjectBeginsWith(\"abc\")\n .subjectEndsWith(\"xyz\")\n .annotations( \n \"example1\",\n \"example2\",\n \"example3\")\n .description(\"example description\")\n .pipelines(TriggerCustomEventPipelineArgs.builder()\n .name(examplePipeline.name())\n .parameters(Map.of(\"Env\", \"Prod\"))\n .build())\n .additionalProperties(Map.ofEntries(\n Map.entry(\"foo\", \"foo1\"),\n Map.entry(\"bar\", \"bar2\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePipeline:\n type: azure:datafactory:Pipeline\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n exampleTopic:\n type: azure:eventgrid:Topic\n name: example\n properties:\n name: example-topic\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleTriggerCustomEvent:\n type: azure:datafactory:TriggerCustomEvent\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n eventgridTopicId: ${exampleTopic.id}\n events:\n - event1\n - event2\n subjectBeginsWith: abc\n subjectEndsWith: xyz\n annotations:\n - example1\n - example2\n - example3\n description: example description\n pipelines:\n - name: ${examplePipeline.name}\n parameters:\n Env: Prod\n additionalProperties:\n foo: foo1\n bar: bar2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Custom Event Trigger can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/triggerCustomEvent:TriggerCustomEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example\n```\n\n", "properties": { "activated": { "type": "boolean", @@ -172732,7 +172732,7 @@ } }, "azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow": { - "description": "Manages a Tumbling Window Trigger inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePipeline = new azure.datafactory.Pipeline(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n});\nconst exampleTriggerTumblingWindow = new azure.datafactory.TriggerTumblingWindow(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n startTime: \"2022-09-21T00:00:00Z\",\n endTime: \"2022-09-21T08:00:00Z\",\n frequency: \"Minute\",\n interval: 15,\n delay: \"16:00:00\",\n annotations: [\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description: \"example description\",\n retry: {\n count: 1,\n interval: 30,\n },\n pipeline: {\n name: examplePipeline.name,\n parameters: {\n Env: \"Prod\",\n },\n },\n triggerDependencies: [{\n size: \"24:00:00\",\n offset: \"-24:00:00\",\n }],\n additionalProperties: {\n foo: \"value1\",\n bar: \"value2\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_pipeline = azure.datafactory.Pipeline(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id)\nexample_trigger_tumbling_window = azure.datafactory.TriggerTumblingWindow(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n start_time=\"2022-09-21T00:00:00Z\",\n end_time=\"2022-09-21T08:00:00Z\",\n frequency=\"Minute\",\n interval=15,\n delay=\"16:00:00\",\n annotations=[\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description=\"example description\",\n retry={\n \"count\": 1,\n \"interval\": 30,\n },\n pipeline={\n \"name\": example_pipeline.name,\n \"parameters\": {\n \"env\": \"Prod\",\n },\n },\n trigger_dependencies=[{\n \"size\": \"24:00:00\",\n \"offset\": \"-24:00:00\",\n }],\n additional_properties={\n \"foo\": \"value1\",\n \"bar\": \"value2\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePipeline = new Azure.DataFactory.Pipeline(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n });\n\n var exampleTriggerTumblingWindow = new Azure.DataFactory.TriggerTumblingWindow(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n StartTime = \"2022-09-21T00:00:00Z\",\n EndTime = \"2022-09-21T08:00:00Z\",\n Frequency = \"Minute\",\n Interval = 15,\n Delay = \"16:00:00\",\n Annotations = new[]\n {\n \"example1\",\n \"example2\",\n \"example3\",\n },\n Description = \"example description\",\n Retry = new Azure.DataFactory.Inputs.TriggerTumblingWindowRetryArgs\n {\n Count = 1,\n Interval = 30,\n },\n Pipeline = new Azure.DataFactory.Inputs.TriggerTumblingWindowPipelineArgs\n {\n Name = examplePipeline.Name,\n Parameters = \n {\n { \"Env\", \"Prod\" },\n },\n },\n TriggerDependencies = new[]\n {\n new Azure.DataFactory.Inputs.TriggerTumblingWindowTriggerDependencyArgs\n {\n Size = \"24:00:00\",\n Offset = \"-24:00:00\",\n },\n },\n AdditionalProperties = \n {\n { \"foo\", \"value1\" },\n { \"bar\", \"value2\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texamplePipeline, err := datafactory.NewPipeline(ctx, \"example\", \u0026datafactory.PipelineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewTriggerTumblingWindow(ctx, \"example\", \u0026datafactory.TriggerTumblingWindowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tStartTime: pulumi.String(\"2022-09-21T00:00:00Z\"),\n\t\t\tEndTime: pulumi.String(\"2022-09-21T08:00:00Z\"),\n\t\t\tFrequency: pulumi.String(\"Minute\"),\n\t\t\tInterval: pulumi.Int(15),\n\t\t\tDelay: pulumi.String(\"16:00:00\"),\n\t\t\tAnnotations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example1\"),\n\t\t\t\tpulumi.String(\"example2\"),\n\t\t\t\tpulumi.String(\"example3\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"example description\"),\n\t\t\tRetry: \u0026datafactory.TriggerTumblingWindowRetryArgs{\n\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\tInterval: pulumi.Int(30),\n\t\t\t},\n\t\t\tPipeline: \u0026datafactory.TriggerTumblingWindowPipelineArgs{\n\t\t\t\tName: examplePipeline.Name,\n\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\"Env\": pulumi.String(\"Prod\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTriggerDependencies: datafactory.TriggerTumblingWindowTriggerDependencyArray{\n\t\t\t\t\u0026datafactory.TriggerTumblingWindowTriggerDependencyArgs{\n\t\t\t\t\tSize: pulumi.String(\"24:00:00\"),\n\t\t\t\t\tOffset: pulumi.String(\"-24:00:00\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAdditionalProperties: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"value1\"),\n\t\t\t\t\"bar\": pulumi.String(\"value2\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.Pipeline;\nimport com.pulumi.azure.datafactory.PipelineArgs;\nimport com.pulumi.azure.datafactory.TriggerTumblingWindow;\nimport com.pulumi.azure.datafactory.TriggerTumblingWindowArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerTumblingWindowRetryArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerTumblingWindowPipelineArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerTumblingWindowTriggerDependencyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePipeline = new Pipeline(\"examplePipeline\", PipelineArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .build());\n\n var exampleTriggerTumblingWindow = new TriggerTumblingWindow(\"exampleTriggerTumblingWindow\", TriggerTumblingWindowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .startTime(\"2022-09-21T00:00:00Z\")\n .endTime(\"2022-09-21T08:00:00Z\")\n .frequency(\"Minute\")\n .interval(15)\n .delay(\"16:00:00\")\n .annotations( \n \"example1\",\n \"example2\",\n \"example3\")\n .description(\"example description\")\n .retry(TriggerTumblingWindowRetryArgs.builder()\n .count(1)\n .interval(30)\n .build())\n .pipeline(TriggerTumblingWindowPipelineArgs.builder()\n .name(examplePipeline.name())\n .parameters(Map.of(\"Env\", \"Prod\"))\n .build())\n .triggerDependencies(TriggerTumblingWindowTriggerDependencyArgs.builder()\n .size(\"24:00:00\")\n .offset(\"-24:00:00\")\n .build())\n .additionalProperties(Map.ofEntries(\n Map.entry(\"foo\", \"value1\"),\n Map.entry(\"bar\", \"value2\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePipeline:\n type: azure:datafactory:Pipeline\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n exampleTriggerTumblingWindow:\n type: azure:datafactory:TriggerTumblingWindow\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n startTime: 2022-09-21T00:00:00Z\n endTime: 2022-09-21T08:00:00Z\n frequency: Minute\n interval: 15\n delay: 16:00:00\n annotations:\n - example1\n - example2\n - example3\n description: example description\n retry:\n count: 1\n interval: 30\n pipeline:\n name: ${examplePipeline.name}\n parameters:\n Env: Prod\n triggerDependencies:\n - size: 24:00:00\n offset: -24:00:00\n additionalProperties:\n foo: value1\n bar: value2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Tumbling Window Trigger can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example\n```\n\n", + "description": "Manages a Tumbling Window Trigger inside an Azure Data Factory.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleFactory = new azure.datafactory.Factory(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePipeline = new azure.datafactory.Pipeline(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n});\nconst exampleTriggerTumblingWindow = new azure.datafactory.TriggerTumblingWindow(\"example\", {\n name: \"example\",\n dataFactoryId: exampleFactory.id,\n startTime: \"2022-09-21T00:00:00Z\",\n endTime: \"2022-09-21T08:00:00Z\",\n frequency: \"Minute\",\n interval: 15,\n delay: \"16:00:00\",\n annotations: [\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description: \"example description\",\n retry: {\n count: 1,\n interval: 30,\n },\n pipeline: {\n name: examplePipeline.name,\n parameters: {\n Env: \"Prod\",\n },\n },\n triggerDependencies: [{\n size: \"24:00:00\",\n offset: \"-24:00:00\",\n }],\n additionalProperties: {\n foo: \"value1\",\n bar: \"value2\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_factory = azure.datafactory.Factory(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.name)\nexample_pipeline = azure.datafactory.Pipeline(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id)\nexample_trigger_tumbling_window = azure.datafactory.TriggerTumblingWindow(\"example\",\n name=\"example\",\n data_factory_id=example_factory.id,\n start_time=\"2022-09-21T00:00:00Z\",\n end_time=\"2022-09-21T08:00:00Z\",\n frequency=\"Minute\",\n interval=15,\n delay=\"16:00:00\",\n annotations=[\n \"example1\",\n \"example2\",\n \"example3\",\n ],\n description=\"example description\",\n retry={\n \"count\": 1,\n \"interval\": 30,\n },\n pipeline={\n \"name\": example_pipeline.name,\n \"parameters\": {\n \"Env\": \"Prod\",\n },\n },\n trigger_dependencies=[{\n \"size\": \"24:00:00\",\n \"offset\": \"-24:00:00\",\n }],\n additional_properties={\n \"foo\": \"value1\",\n \"bar\": \"value2\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleFactory = new Azure.DataFactory.Factory(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePipeline = new Azure.DataFactory.Pipeline(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n });\n\n var exampleTriggerTumblingWindow = new Azure.DataFactory.TriggerTumblingWindow(\"example\", new()\n {\n Name = \"example\",\n DataFactoryId = exampleFactory.Id,\n StartTime = \"2022-09-21T00:00:00Z\",\n EndTime = \"2022-09-21T08:00:00Z\",\n Frequency = \"Minute\",\n Interval = 15,\n Delay = \"16:00:00\",\n Annotations = new[]\n {\n \"example1\",\n \"example2\",\n \"example3\",\n },\n Description = \"example description\",\n Retry = new Azure.DataFactory.Inputs.TriggerTumblingWindowRetryArgs\n {\n Count = 1,\n Interval = 30,\n },\n Pipeline = new Azure.DataFactory.Inputs.TriggerTumblingWindowPipelineArgs\n {\n Name = examplePipeline.Name,\n Parameters = \n {\n { \"Env\", \"Prod\" },\n },\n },\n TriggerDependencies = new[]\n {\n new Azure.DataFactory.Inputs.TriggerTumblingWindowTriggerDependencyArgs\n {\n Size = \"24:00:00\",\n Offset = \"-24:00:00\",\n },\n },\n AdditionalProperties = \n {\n { \"foo\", \"value1\" },\n { \"bar\", \"value2\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleFactory, err := datafactory.NewFactory(ctx, \"example\", \u0026datafactory.FactoryArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texamplePipeline, err := datafactory.NewPipeline(ctx, \"example\", \u0026datafactory.PipelineArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = datafactory.NewTriggerTumblingWindow(ctx, \"example\", \u0026datafactory.TriggerTumblingWindowArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDataFactoryId: exampleFactory.ID(),\n\t\t\tStartTime: pulumi.String(\"2022-09-21T00:00:00Z\"),\n\t\t\tEndTime: pulumi.String(\"2022-09-21T08:00:00Z\"),\n\t\t\tFrequency: pulumi.String(\"Minute\"),\n\t\t\tInterval: pulumi.Int(15),\n\t\t\tDelay: pulumi.String(\"16:00:00\"),\n\t\t\tAnnotations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example1\"),\n\t\t\t\tpulumi.String(\"example2\"),\n\t\t\t\tpulumi.String(\"example3\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"example description\"),\n\t\t\tRetry: \u0026datafactory.TriggerTumblingWindowRetryArgs{\n\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\tInterval: pulumi.Int(30),\n\t\t\t},\n\t\t\tPipeline: \u0026datafactory.TriggerTumblingWindowPipelineArgs{\n\t\t\t\tName: examplePipeline.Name,\n\t\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\t\"Env\": pulumi.String(\"Prod\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTriggerDependencies: datafactory.TriggerTumblingWindowTriggerDependencyArray{\n\t\t\t\t\u0026datafactory.TriggerTumblingWindowTriggerDependencyArgs{\n\t\t\t\t\tSize: pulumi.String(\"24:00:00\"),\n\t\t\t\t\tOffset: pulumi.String(\"-24:00:00\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAdditionalProperties: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"value1\"),\n\t\t\t\t\"bar\": pulumi.String(\"value2\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.datafactory.Factory;\nimport com.pulumi.azure.datafactory.FactoryArgs;\nimport com.pulumi.azure.datafactory.Pipeline;\nimport com.pulumi.azure.datafactory.PipelineArgs;\nimport com.pulumi.azure.datafactory.TriggerTumblingWindow;\nimport com.pulumi.azure.datafactory.TriggerTumblingWindowArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerTumblingWindowRetryArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerTumblingWindowPipelineArgs;\nimport com.pulumi.azure.datafactory.inputs.TriggerTumblingWindowTriggerDependencyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleFactory = new Factory(\"exampleFactory\", FactoryArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePipeline = new Pipeline(\"examplePipeline\", PipelineArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .build());\n\n var exampleTriggerTumblingWindow = new TriggerTumblingWindow(\"exampleTriggerTumblingWindow\", TriggerTumblingWindowArgs.builder()\n .name(\"example\")\n .dataFactoryId(exampleFactory.id())\n .startTime(\"2022-09-21T00:00:00Z\")\n .endTime(\"2022-09-21T08:00:00Z\")\n .frequency(\"Minute\")\n .interval(15)\n .delay(\"16:00:00\")\n .annotations( \n \"example1\",\n \"example2\",\n \"example3\")\n .description(\"example description\")\n .retry(TriggerTumblingWindowRetryArgs.builder()\n .count(1)\n .interval(30)\n .build())\n .pipeline(TriggerTumblingWindowPipelineArgs.builder()\n .name(examplePipeline.name())\n .parameters(Map.of(\"Env\", \"Prod\"))\n .build())\n .triggerDependencies(TriggerTumblingWindowTriggerDependencyArgs.builder()\n .size(\"24:00:00\")\n .offset(\"-24:00:00\")\n .build())\n .additionalProperties(Map.ofEntries(\n Map.entry(\"foo\", \"value1\"),\n Map.entry(\"bar\", \"value2\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleFactory:\n type: azure:datafactory:Factory\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePipeline:\n type: azure:datafactory:Pipeline\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n exampleTriggerTumblingWindow:\n type: azure:datafactory:TriggerTumblingWindow\n name: example\n properties:\n name: example\n dataFactoryId: ${exampleFactory.id}\n startTime: 2022-09-21T00:00:00Z\n endTime: 2022-09-21T08:00:00Z\n frequency: Minute\n interval: 15\n delay: 16:00:00\n annotations:\n - example1\n - example2\n - example3\n description: example description\n retry:\n count: 1\n interval: 30\n pipeline:\n name: ${examplePipeline.name}\n parameters:\n Env: Prod\n triggerDependencies:\n - size: 24:00:00\n offset: -24:00:00\n additionalProperties:\n foo: value1\n bar: value2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nData Factory Tumbling Window Trigger can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example\n```\n\n", "properties": { "activated": { "type": "boolean", @@ -210338,7 +210338,7 @@ } }, "azure:monitoring/activityLogAlert:ActivityLogAlert": { - "description": "Manages an Activity Log Alert within Azure Monitor.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst main = new azure.monitoring.ActionGroup(\"main\", {\n name: \"example-actiongroup\",\n resourceGroupName: example.name,\n shortName: \"p0action\",\n webhookReceivers: [{\n name: \"callmyapi\",\n serviceUri: \"http://example.com/alert\",\n }],\n});\nconst toMonitor = new azure.storage.Account(\"to_monitor\", {\n name: \"examplesa\",\n resourceGroupName: example.name,\n location: example.location,\n accountTier: \"Standard\",\n accountReplicationType: \"GRS\",\n});\nconst mainActivityLogAlert = new azure.monitoring.ActivityLogAlert(\"main\", {\n name: \"example-activitylogalert\",\n resourceGroupName: example.name,\n location: example.location,\n scopes: [example.id],\n description: \"This alert will monitor a specific storage account updates.\",\n criteria: {\n resourceId: toMonitor.id,\n operationName: \"Microsoft.Storage/storageAccounts/write\",\n category: \"Recommendation\",\n },\n actions: [{\n actionGroupId: main.id,\n webhookProperties: {\n from: \"source\",\n },\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nmain = azure.monitoring.ActionGroup(\"main\",\n name=\"example-actiongroup\",\n resource_group_name=example.name,\n short_name=\"p0action\",\n webhook_receivers=[{\n \"name\": \"callmyapi\",\n \"service_uri\": \"http://example.com/alert\",\n }])\nto_monitor = azure.storage.Account(\"to_monitor\",\n name=\"examplesa\",\n resource_group_name=example.name,\n location=example.location,\n account_tier=\"Standard\",\n account_replication_type=\"GRS\")\nmain_activity_log_alert = azure.monitoring.ActivityLogAlert(\"main\",\n name=\"example-activitylogalert\",\n resource_group_name=example.name,\n location=example.location,\n scopes=[example.id],\n description=\"This alert will monitor a specific storage account updates.\",\n criteria={\n \"resource_id\": to_monitor.id,\n \"operation_name\": \"Microsoft.Storage/storageAccounts/write\",\n \"category\": \"Recommendation\",\n },\n actions=[{\n \"action_group_id\": main.id,\n \"webhook_properties\": {\n \"from_\": \"source\",\n },\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var main = new Azure.Monitoring.ActionGroup(\"main\", new()\n {\n Name = \"example-actiongroup\",\n ResourceGroupName = example.Name,\n ShortName = \"p0action\",\n WebhookReceivers = new[]\n {\n new Azure.Monitoring.Inputs.ActionGroupWebhookReceiverArgs\n {\n Name = \"callmyapi\",\n ServiceUri = \"http://example.com/alert\",\n },\n },\n });\n\n var toMonitor = new Azure.Storage.Account(\"to_monitor\", new()\n {\n Name = \"examplesa\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountTier = \"Standard\",\n AccountReplicationType = \"GRS\",\n });\n\n var mainActivityLogAlert = new Azure.Monitoring.ActivityLogAlert(\"main\", new()\n {\n Name = \"example-activitylogalert\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Scopes = new[]\n {\n example.Id,\n },\n Description = \"This alert will monitor a specific storage account updates.\",\n Criteria = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaArgs\n {\n ResourceId = toMonitor.Id,\n OperationName = \"Microsoft.Storage/storageAccounts/write\",\n Category = \"Recommendation\",\n },\n Actions = new[]\n {\n new Azure.Monitoring.Inputs.ActivityLogAlertActionArgs\n {\n ActionGroupId = main.Id,\n WebhookProperties = \n {\n { \"from\", \"source\" },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/monitoring\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmain, err := monitoring.NewActionGroup(ctx, \"main\", \u0026monitoring.ActionGroupArgs{\n\t\t\tName: pulumi.String(\"example-actiongroup\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tShortName: pulumi.String(\"p0action\"),\n\t\t\tWebhookReceivers: monitoring.ActionGroupWebhookReceiverArray{\n\t\t\t\t\u0026monitoring.ActionGroupWebhookReceiverArgs{\n\t\t\t\t\tName: pulumi.String(\"callmyapi\"),\n\t\t\t\t\tServiceUri: pulumi.String(\"http://example.com/alert\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttoMonitor, err := storage.NewAccount(ctx, \"to_monitor\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"examplesa\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"GRS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = monitoring.NewActivityLogAlert(ctx, \"main\", \u0026monitoring.ActivityLogAlertArgs{\n\t\t\tName: pulumi.String(\"example-activitylogalert\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tScopes: pulumi.StringArray{\n\t\t\t\texample.ID(),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"This alert will monitor a specific storage account updates.\"),\n\t\t\tCriteria: \u0026monitoring.ActivityLogAlertCriteriaArgs{\n\t\t\t\tResourceId: toMonitor.ID(),\n\t\t\t\tOperationName: pulumi.String(\"Microsoft.Storage/storageAccounts/write\"),\n\t\t\t\tCategory: pulumi.String(\"Recommendation\"),\n\t\t\t},\n\t\t\tActions: monitoring.ActivityLogAlertActionArray{\n\t\t\t\t\u0026monitoring.ActivityLogAlertActionArgs{\n\t\t\t\t\tActionGroupId: main.ID(),\n\t\t\t\t\tWebhookProperties: pulumi.StringMap{\n\t\t\t\t\t\t\"from\": pulumi.String(\"source\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.monitoring.ActionGroup;\nimport com.pulumi.azure.monitoring.ActionGroupArgs;\nimport com.pulumi.azure.monitoring.inputs.ActionGroupWebhookReceiverArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.monitoring.ActivityLogAlert;\nimport com.pulumi.azure.monitoring.ActivityLogAlertArgs;\nimport com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs;\nimport com.pulumi.azure.monitoring.inputs.ActivityLogAlertActionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var main = new ActionGroup(\"main\", ActionGroupArgs.builder()\n .name(\"example-actiongroup\")\n .resourceGroupName(example.name())\n .shortName(\"p0action\")\n .webhookReceivers(ActionGroupWebhookReceiverArgs.builder()\n .name(\"callmyapi\")\n .serviceUri(\"http://example.com/alert\")\n .build())\n .build());\n\n var toMonitor = new Account(\"toMonitor\", AccountArgs.builder()\n .name(\"examplesa\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountTier(\"Standard\")\n .accountReplicationType(\"GRS\")\n .build());\n\n var mainActivityLogAlert = new ActivityLogAlert(\"mainActivityLogAlert\", ActivityLogAlertArgs.builder()\n .name(\"example-activitylogalert\")\n .resourceGroupName(example.name())\n .location(example.location())\n .scopes(example.id())\n .description(\"This alert will monitor a specific storage account updates.\")\n .criteria(ActivityLogAlertCriteriaArgs.builder()\n .resourceId(toMonitor.id())\n .operationName(\"Microsoft.Storage/storageAccounts/write\")\n .category(\"Recommendation\")\n .build())\n .actions(ActivityLogAlertActionArgs.builder()\n .actionGroupId(main.id())\n .webhookProperties(Map.of(\"from\", \"source\"))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n main:\n type: azure:monitoring:ActionGroup\n properties:\n name: example-actiongroup\n resourceGroupName: ${example.name}\n shortName: p0action\n webhookReceivers:\n - name: callmyapi\n serviceUri: http://example.com/alert\n toMonitor:\n type: azure:storage:Account\n name: to_monitor\n properties:\n name: examplesa\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountTier: Standard\n accountReplicationType: GRS\n mainActivityLogAlert:\n type: azure:monitoring:ActivityLogAlert\n name: main\n properties:\n name: example-activitylogalert\n resourceGroupName: ${example.name}\n location: ${example.location}\n scopes:\n - ${example.id}\n description: This alert will monitor a specific storage account updates.\n criteria:\n resourceId: ${toMonitor.id}\n operationName: Microsoft.Storage/storageAccounts/write\n category: Recommendation\n actions:\n - actionGroupId: ${main.id}\n webhookProperties:\n from: source\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nActivity log alerts can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:monitoring/activityLogAlert:ActivityLogAlert example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/activityLogAlerts/myalertname\n```\n\n", + "description": "Manages an Activity Log Alert within Azure Monitor.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst main = new azure.monitoring.ActionGroup(\"main\", {\n name: \"example-actiongroup\",\n resourceGroupName: example.name,\n shortName: \"p0action\",\n webhookReceivers: [{\n name: \"callmyapi\",\n serviceUri: \"http://example.com/alert\",\n }],\n});\nconst toMonitor = new azure.storage.Account(\"to_monitor\", {\n name: \"examplesa\",\n resourceGroupName: example.name,\n location: example.location,\n accountTier: \"Standard\",\n accountReplicationType: \"GRS\",\n});\nconst mainActivityLogAlert = new azure.monitoring.ActivityLogAlert(\"main\", {\n name: \"example-activitylogalert\",\n resourceGroupName: example.name,\n location: example.location,\n scopes: [example.id],\n description: \"This alert will monitor a specific storage account updates.\",\n criteria: {\n resourceId: toMonitor.id,\n operationName: \"Microsoft.Storage/storageAccounts/write\",\n category: \"Recommendation\",\n },\n actions: [{\n actionGroupId: main.id,\n webhookProperties: {\n from: \"source\",\n },\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nmain = azure.monitoring.ActionGroup(\"main\",\n name=\"example-actiongroup\",\n resource_group_name=example.name,\n short_name=\"p0action\",\n webhook_receivers=[{\n \"name\": \"callmyapi\",\n \"service_uri\": \"http://example.com/alert\",\n }])\nto_monitor = azure.storage.Account(\"to_monitor\",\n name=\"examplesa\",\n resource_group_name=example.name,\n location=example.location,\n account_tier=\"Standard\",\n account_replication_type=\"GRS\")\nmain_activity_log_alert = azure.monitoring.ActivityLogAlert(\"main\",\n name=\"example-activitylogalert\",\n resource_group_name=example.name,\n location=example.location,\n scopes=[example.id],\n description=\"This alert will monitor a specific storage account updates.\",\n criteria={\n \"resource_id\": to_monitor.id,\n \"operation_name\": \"Microsoft.Storage/storageAccounts/write\",\n \"category\": \"Recommendation\",\n },\n actions=[{\n \"action_group_id\": main.id,\n \"webhook_properties\": {\n \"from\": \"source\",\n },\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var main = new Azure.Monitoring.ActionGroup(\"main\", new()\n {\n Name = \"example-actiongroup\",\n ResourceGroupName = example.Name,\n ShortName = \"p0action\",\n WebhookReceivers = new[]\n {\n new Azure.Monitoring.Inputs.ActionGroupWebhookReceiverArgs\n {\n Name = \"callmyapi\",\n ServiceUri = \"http://example.com/alert\",\n },\n },\n });\n\n var toMonitor = new Azure.Storage.Account(\"to_monitor\", new()\n {\n Name = \"examplesa\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountTier = \"Standard\",\n AccountReplicationType = \"GRS\",\n });\n\n var mainActivityLogAlert = new Azure.Monitoring.ActivityLogAlert(\"main\", new()\n {\n Name = \"example-activitylogalert\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Scopes = new[]\n {\n example.Id,\n },\n Description = \"This alert will monitor a specific storage account updates.\",\n Criteria = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaArgs\n {\n ResourceId = toMonitor.Id,\n OperationName = \"Microsoft.Storage/storageAccounts/write\",\n Category = \"Recommendation\",\n },\n Actions = new[]\n {\n new Azure.Monitoring.Inputs.ActivityLogAlertActionArgs\n {\n ActionGroupId = main.Id,\n WebhookProperties = \n {\n { \"from\", \"source\" },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/monitoring\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmain, err := monitoring.NewActionGroup(ctx, \"main\", \u0026monitoring.ActionGroupArgs{\n\t\t\tName: pulumi.String(\"example-actiongroup\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tShortName: pulumi.String(\"p0action\"),\n\t\t\tWebhookReceivers: monitoring.ActionGroupWebhookReceiverArray{\n\t\t\t\t\u0026monitoring.ActionGroupWebhookReceiverArgs{\n\t\t\t\t\tName: pulumi.String(\"callmyapi\"),\n\t\t\t\t\tServiceUri: pulumi.String(\"http://example.com/alert\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttoMonitor, err := storage.NewAccount(ctx, \"to_monitor\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"examplesa\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"GRS\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = monitoring.NewActivityLogAlert(ctx, \"main\", \u0026monitoring.ActivityLogAlertArgs{\n\t\t\tName: pulumi.String(\"example-activitylogalert\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tScopes: pulumi.StringArray{\n\t\t\t\texample.ID(),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"This alert will monitor a specific storage account updates.\"),\n\t\t\tCriteria: \u0026monitoring.ActivityLogAlertCriteriaArgs{\n\t\t\t\tResourceId: toMonitor.ID(),\n\t\t\t\tOperationName: pulumi.String(\"Microsoft.Storage/storageAccounts/write\"),\n\t\t\t\tCategory: pulumi.String(\"Recommendation\"),\n\t\t\t},\n\t\t\tActions: monitoring.ActivityLogAlertActionArray{\n\t\t\t\t\u0026monitoring.ActivityLogAlertActionArgs{\n\t\t\t\t\tActionGroupId: main.ID(),\n\t\t\t\t\tWebhookProperties: pulumi.StringMap{\n\t\t\t\t\t\t\"from\": pulumi.String(\"source\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.monitoring.ActionGroup;\nimport com.pulumi.azure.monitoring.ActionGroupArgs;\nimport com.pulumi.azure.monitoring.inputs.ActionGroupWebhookReceiverArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.monitoring.ActivityLogAlert;\nimport com.pulumi.azure.monitoring.ActivityLogAlertArgs;\nimport com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs;\nimport com.pulumi.azure.monitoring.inputs.ActivityLogAlertActionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var main = new ActionGroup(\"main\", ActionGroupArgs.builder()\n .name(\"example-actiongroup\")\n .resourceGroupName(example.name())\n .shortName(\"p0action\")\n .webhookReceivers(ActionGroupWebhookReceiverArgs.builder()\n .name(\"callmyapi\")\n .serviceUri(\"http://example.com/alert\")\n .build())\n .build());\n\n var toMonitor = new Account(\"toMonitor\", AccountArgs.builder()\n .name(\"examplesa\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountTier(\"Standard\")\n .accountReplicationType(\"GRS\")\n .build());\n\n var mainActivityLogAlert = new ActivityLogAlert(\"mainActivityLogAlert\", ActivityLogAlertArgs.builder()\n .name(\"example-activitylogalert\")\n .resourceGroupName(example.name())\n .location(example.location())\n .scopes(example.id())\n .description(\"This alert will monitor a specific storage account updates.\")\n .criteria(ActivityLogAlertCriteriaArgs.builder()\n .resourceId(toMonitor.id())\n .operationName(\"Microsoft.Storage/storageAccounts/write\")\n .category(\"Recommendation\")\n .build())\n .actions(ActivityLogAlertActionArgs.builder()\n .actionGroupId(main.id())\n .webhookProperties(Map.of(\"from\", \"source\"))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n main:\n type: azure:monitoring:ActionGroup\n properties:\n name: example-actiongroup\n resourceGroupName: ${example.name}\n shortName: p0action\n webhookReceivers:\n - name: callmyapi\n serviceUri: http://example.com/alert\n toMonitor:\n type: azure:storage:Account\n name: to_monitor\n properties:\n name: examplesa\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountTier: Standard\n accountReplicationType: GRS\n mainActivityLogAlert:\n type: azure:monitoring:ActivityLogAlert\n name: main\n properties:\n name: example-activitylogalert\n resourceGroupName: ${example.name}\n location: ${example.location}\n scopes:\n - ${example.id}\n description: This alert will monitor a specific storage account updates.\n criteria:\n resourceId: ${toMonitor.id}\n operationName: Microsoft.Storage/storageAccounts/write\n category: Recommendation\n actions:\n - actionGroupId: ${main.id}\n webhookProperties:\n from: source\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nActivity log alerts can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:monitoring/activityLogAlert:ActivityLogAlert example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/activityLogAlerts/myalertname\n```\n\n", "properties": { "actions": { "type": "array", @@ -210817,7 +210817,7 @@ ] }, "azure:monitoring/alertPrometheusRuleGroup:AlertPrometheusRuleGroup": { - "description": "Manages an Alert Management Prometheus Rule Group.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleActionGroup = new azure.monitoring.ActionGroup(\"example\", {\n name: \"example-mag\",\n resourceGroupName: example.name,\n shortName: \"testag\",\n});\nconst exampleWorkspace = new azure.monitoring.Workspace(\"example\", {\n name: \"example-amw\",\n resourceGroupName: example.name,\n location: example.location,\n});\nconst exampleKubernetesCluster = new azure.containerservice.KubernetesCluster(\"example\", {\n name: \"example-cluster\",\n location: example.location,\n resourceGroupName: example.name,\n dnsPrefix: \"example-aks\",\n defaultNodePool: {\n name: \"default\",\n nodeCount: 1,\n vmSize: \"Standard_DS2_v2\",\n hostEncryptionEnabled: true,\n },\n identity: {\n type: \"SystemAssigned\",\n },\n});\nconst exampleAlertPrometheusRuleGroup = new azure.monitoring.AlertPrometheusRuleGroup(\"example\", {\n name: \"example-amprg\",\n location: \"West Europe\",\n resourceGroupName: example.name,\n clusterName: exampleKubernetesCluster.name,\n description: \"This is the description of the following rule group\",\n ruleGroupEnabled: false,\n interval: \"PT1M\",\n scopes: [exampleWorkspace.id],\n rules: [\n {\n enabled: false,\n expression: \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n record: \"job_type:billing_jobs_duration_seconds:99p5m\",\n labels: {\n team: \"prod\",\n },\n },\n {\n alert: \"Billing_Processing_Very_Slow\",\n enabled: true,\n expression: \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n \"for\": \"PT5M\",\n severity: 2,\n actions: [{\n actionGroupId: exampleActionGroup.id,\n }],\n alertResolution: {\n autoResolved: true,\n timeToResolve: \"PT10M\",\n },\n annotations: {\n annotationName: \"annotationValue\",\n },\n labels: {\n team: \"prod\",\n },\n },\n ],\n tags: {\n key: \"value\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_action_group = azure.monitoring.ActionGroup(\"example\",\n name=\"example-mag\",\n resource_group_name=example.name,\n short_name=\"testag\")\nexample_workspace = azure.monitoring.Workspace(\"example\",\n name=\"example-amw\",\n resource_group_name=example.name,\n location=example.location)\nexample_kubernetes_cluster = azure.containerservice.KubernetesCluster(\"example\",\n name=\"example-cluster\",\n location=example.location,\n resource_group_name=example.name,\n dns_prefix=\"example-aks\",\n default_node_pool={\n \"name\": \"default\",\n \"node_count\": 1,\n \"vm_size\": \"Standard_DS2_v2\",\n \"host_encryption_enabled\": True,\n },\n identity={\n \"type\": \"SystemAssigned\",\n })\nexample_alert_prometheus_rule_group = azure.monitoring.AlertPrometheusRuleGroup(\"example\",\n name=\"example-amprg\",\n location=\"West Europe\",\n resource_group_name=example.name,\n cluster_name=example_kubernetes_cluster.name,\n description=\"This is the description of the following rule group\",\n rule_group_enabled=False,\n interval=\"PT1M\",\n scopes=[example_workspace.id],\n rules=[\n {\n \"enabled\": False,\n \"expression\": \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n \"record\": \"job_type:billing_jobs_duration_seconds:99p5m\",\n \"labels\": {\n \"team\": \"prod\",\n },\n },\n {\n \"alert\": \"Billing_Processing_Very_Slow\",\n \"enabled\": True,\n \"expression\": \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n \"for_\": \"PT5M\",\n \"severity\": 2,\n \"actions\": [{\n \"action_group_id\": example_action_group.id,\n }],\n \"alert_resolution\": {\n \"auto_resolved\": True,\n \"time_to_resolve\": \"PT10M\",\n },\n \"annotations\": {\n \"annotation_name\": \"annotationValue\",\n },\n \"labels\": {\n \"team\": \"prod\",\n },\n },\n ],\n tags={\n \"key\": \"value\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleActionGroup = new Azure.Monitoring.ActionGroup(\"example\", new()\n {\n Name = \"example-mag\",\n ResourceGroupName = example.Name,\n ShortName = \"testag\",\n });\n\n var exampleWorkspace = new Azure.Monitoring.Workspace(\"example\", new()\n {\n Name = \"example-amw\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n });\n\n var exampleKubernetesCluster = new Azure.ContainerService.KubernetesCluster(\"example\", new()\n {\n Name = \"example-cluster\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n DnsPrefix = \"example-aks\",\n DefaultNodePool = new Azure.ContainerService.Inputs.KubernetesClusterDefaultNodePoolArgs\n {\n Name = \"default\",\n NodeCount = 1,\n VmSize = \"Standard_DS2_v2\",\n HostEncryptionEnabled = true,\n },\n Identity = new Azure.ContainerService.Inputs.KubernetesClusterIdentityArgs\n {\n Type = \"SystemAssigned\",\n },\n });\n\n var exampleAlertPrometheusRuleGroup = new Azure.Monitoring.AlertPrometheusRuleGroup(\"example\", new()\n {\n Name = \"example-amprg\",\n Location = \"West Europe\",\n ResourceGroupName = example.Name,\n ClusterName = exampleKubernetesCluster.Name,\n Description = \"This is the description of the following rule group\",\n RuleGroupEnabled = false,\n Interval = \"PT1M\",\n Scopes = new[]\n {\n exampleWorkspace.Id,\n },\n Rules = new[]\n {\n new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleArgs\n {\n Enabled = false,\n Expression = @\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"\"billing-processing\"\"}[5m])) by (job_type))\n\",\n Record = \"job_type:billing_jobs_duration_seconds:99p5m\",\n Labels = \n {\n { \"team\", \"prod\" },\n },\n },\n new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleArgs\n {\n Alert = \"Billing_Processing_Very_Slow\",\n Enabled = true,\n Expression = @\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"\"billing-processing\"\"}[5m])) by (job_type))\n\",\n For = \"PT5M\",\n Severity = 2,\n Actions = new[]\n {\n new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleActionArgs\n {\n ActionGroupId = exampleActionGroup.Id,\n },\n },\n AlertResolution = new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs\n {\n AutoResolved = true,\n TimeToResolve = \"PT10M\",\n },\n Annotations = \n {\n { \"annotationName\", \"annotationValue\" },\n },\n Labels = \n {\n { \"team\", \"prod\" },\n },\n },\n },\n Tags = \n {\n { \"key\", \"value\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/monitoring\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleActionGroup, err := monitoring.NewActionGroup(ctx, \"example\", \u0026monitoring.ActionGroupArgs{\n\t\t\tName: pulumi.String(\"example-mag\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tShortName: pulumi.String(\"testag\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleWorkspace, err := monitoring.NewWorkspace(ctx, \"example\", \u0026monitoring.WorkspaceArgs{\n\t\t\tName: pulumi.String(\"example-amw\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, \"example\", \u0026containerservice.KubernetesClusterArgs{\n\t\t\tName: pulumi.String(\"example-cluster\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tDnsPrefix: pulumi.String(\"example-aks\"),\n\t\t\tDefaultNodePool: \u0026containerservice.KubernetesClusterDefaultNodePoolArgs{\n\t\t\t\tName: pulumi.String(\"default\"),\n\t\t\t\tNodeCount: pulumi.Int(1),\n\t\t\t\tVmSize: pulumi.String(\"Standard_DS2_v2\"),\n\t\t\t\tHostEncryptionEnabled: pulumi.Bool(true),\n\t\t\t},\n\t\t\tIdentity: \u0026containerservice.KubernetesClusterIdentityArgs{\n\t\t\t\tType: pulumi.String(\"SystemAssigned\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = monitoring.NewAlertPrometheusRuleGroup(ctx, \"example\", \u0026monitoring.AlertPrometheusRuleGroupArgs{\n\t\t\tName: pulumi.String(\"example-amprg\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tClusterName: exampleKubernetesCluster.Name,\n\t\t\tDescription: pulumi.String(\"This is the description of the following rule group\"),\n\t\t\tRuleGroupEnabled: pulumi.Bool(false),\n\t\t\tInterval: pulumi.String(\"PT1M\"),\n\t\t\tScopes: pulumi.StringArray{\n\t\t\t\texampleWorkspace.ID(),\n\t\t\t},\n\t\t\tRules: monitoring.AlertPrometheusRuleGroupRuleArray{\n\t\t\t\t\u0026monitoring.AlertPrometheusRuleGroupRuleArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\tExpression: pulumi.String(\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\"),\n\t\t\t\t\tRecord: pulumi.String(\"job_type:billing_jobs_duration_seconds:99p5m\"),\n\t\t\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\t\t\"team\": pulumi.String(\"prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026monitoring.AlertPrometheusRuleGroupRuleArgs{\n\t\t\t\t\tAlert: pulumi.String(\"Billing_Processing_Very_Slow\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tExpression: pulumi.String(\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\"),\n\t\t\t\t\tFor: pulumi.String(\"PT5M\"),\n\t\t\t\t\tSeverity: pulumi.Int(2),\n\t\t\t\t\tActions: monitoring.AlertPrometheusRuleGroupRuleActionArray{\n\t\t\t\t\t\t\u0026monitoring.AlertPrometheusRuleGroupRuleActionArgs{\n\t\t\t\t\t\t\tActionGroupId: exampleActionGroup.ID(),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tAlertResolution: \u0026monitoring.AlertPrometheusRuleGroupRuleAlertResolutionArgs{\n\t\t\t\t\t\tAutoResolved: pulumi.Bool(true),\n\t\t\t\t\t\tTimeToResolve: pulumi.String(\"PT10M\"),\n\t\t\t\t\t},\n\t\t\t\t\tAnnotations: pulumi.StringMap{\n\t\t\t\t\t\t\"annotationName\": pulumi.String(\"annotationValue\"),\n\t\t\t\t\t},\n\t\t\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\t\t\"team\": pulumi.String(\"prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"key\": pulumi.String(\"value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.monitoring.ActionGroup;\nimport com.pulumi.azure.monitoring.ActionGroupArgs;\nimport com.pulumi.azure.monitoring.Workspace;\nimport com.pulumi.azure.monitoring.WorkspaceArgs;\nimport com.pulumi.azure.containerservice.KubernetesCluster;\nimport com.pulumi.azure.containerservice.KubernetesClusterArgs;\nimport com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolArgs;\nimport com.pulumi.azure.containerservice.inputs.KubernetesClusterIdentityArgs;\nimport com.pulumi.azure.monitoring.AlertPrometheusRuleGroup;\nimport com.pulumi.azure.monitoring.AlertPrometheusRuleGroupArgs;\nimport com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleArgs;\nimport com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleActionGroup = new ActionGroup(\"exampleActionGroup\", ActionGroupArgs.builder()\n .name(\"example-mag\")\n .resourceGroupName(example.name())\n .shortName(\"testag\")\n .build());\n\n var exampleWorkspace = new Workspace(\"exampleWorkspace\", WorkspaceArgs.builder()\n .name(\"example-amw\")\n .resourceGroupName(example.name())\n .location(example.location())\n .build());\n\n var exampleKubernetesCluster = new KubernetesCluster(\"exampleKubernetesCluster\", KubernetesClusterArgs.builder()\n .name(\"example-cluster\")\n .location(example.location())\n .resourceGroupName(example.name())\n .dnsPrefix(\"example-aks\")\n .defaultNodePool(KubernetesClusterDefaultNodePoolArgs.builder()\n .name(\"default\")\n .nodeCount(1)\n .vmSize(\"Standard_DS2_v2\")\n .hostEncryptionEnabled(true)\n .build())\n .identity(KubernetesClusterIdentityArgs.builder()\n .type(\"SystemAssigned\")\n .build())\n .build());\n\n var exampleAlertPrometheusRuleGroup = new AlertPrometheusRuleGroup(\"exampleAlertPrometheusRuleGroup\", AlertPrometheusRuleGroupArgs.builder()\n .name(\"example-amprg\")\n .location(\"West Europe\")\n .resourceGroupName(example.name())\n .clusterName(exampleKubernetesCluster.name())\n .description(\"This is the description of the following rule group\")\n .ruleGroupEnabled(false)\n .interval(\"PT1M\")\n .scopes(exampleWorkspace.id())\n .rules( \n AlertPrometheusRuleGroupRuleArgs.builder()\n .enabled(false)\n .expression(\"\"\"\nhistogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n \"\"\")\n .record(\"job_type:billing_jobs_duration_seconds:99p5m\")\n .labels(Map.of(\"team\", \"prod\"))\n .build(),\n AlertPrometheusRuleGroupRuleArgs.builder()\n .alert(\"Billing_Processing_Very_Slow\")\n .enabled(true)\n .expression(\"\"\"\nhistogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n \"\"\")\n .for_(\"PT5M\")\n .severity(2)\n .actions(AlertPrometheusRuleGroupRuleActionArgs.builder()\n .actionGroupId(exampleActionGroup.id())\n .build())\n .alertResolution(AlertPrometheusRuleGroupRuleAlertResolutionArgs.builder()\n .autoResolved(true)\n .timeToResolve(\"PT10M\")\n .build())\n .annotations(Map.of(\"annotationName\", \"annotationValue\"))\n .labels(Map.of(\"team\", \"prod\"))\n .build())\n .tags(Map.of(\"key\", \"value\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleActionGroup:\n type: azure:monitoring:ActionGroup\n name: example\n properties:\n name: example-mag\n resourceGroupName: ${example.name}\n shortName: testag\n exampleWorkspace:\n type: azure:monitoring:Workspace\n name: example\n properties:\n name: example-amw\n resourceGroupName: ${example.name}\n location: ${example.location}\n exampleKubernetesCluster:\n type: azure:containerservice:KubernetesCluster\n name: example\n properties:\n name: example-cluster\n location: ${example.location}\n resourceGroupName: ${example.name}\n dnsPrefix: example-aks\n defaultNodePool:\n name: default\n nodeCount: 1\n vmSize: Standard_DS2_v2\n hostEncryptionEnabled: true\n identity:\n type: SystemAssigned\n exampleAlertPrometheusRuleGroup:\n type: azure:monitoring:AlertPrometheusRuleGroup\n name: example\n properties:\n name: example-amprg\n location: West Europe\n resourceGroupName: ${example.name}\n clusterName: ${exampleKubernetesCluster.name}\n description: This is the description of the following rule group\n ruleGroupEnabled: false\n interval: PT1M\n scopes:\n - ${exampleWorkspace.id}\n rules:\n - enabled: false\n expression: |\n histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n record: job_type:billing_jobs_duration_seconds:99p5m\n labels:\n team: prod\n - alert: Billing_Processing_Very_Slow\n enabled: true\n expression: |\n histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n for: PT5M\n severity: 2\n actions:\n - actionGroupId: ${exampleActionGroup.id}\n alertResolution:\n autoResolved: true\n timeToResolve: PT10M\n annotations:\n annotationName: annotationValue\n labels:\n team: prod\n tags:\n key: value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAlert Management Prometheus Rule Group can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:monitoring/alertPrometheusRuleGroup:AlertPrometheusRuleGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AlertsManagement/prometheusRuleGroups/ruleGroup1\n```\n\n", + "description": "Manages an Alert Management Prometheus Rule Group.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleActionGroup = new azure.monitoring.ActionGroup(\"example\", {\n name: \"example-mag\",\n resourceGroupName: example.name,\n shortName: \"testag\",\n});\nconst exampleWorkspace = new azure.monitoring.Workspace(\"example\", {\n name: \"example-amw\",\n resourceGroupName: example.name,\n location: example.location,\n});\nconst exampleKubernetesCluster = new azure.containerservice.KubernetesCluster(\"example\", {\n name: \"example-cluster\",\n location: example.location,\n resourceGroupName: example.name,\n dnsPrefix: \"example-aks\",\n defaultNodePool: {\n name: \"default\",\n nodeCount: 1,\n vmSize: \"Standard_DS2_v2\",\n hostEncryptionEnabled: true,\n },\n identity: {\n type: \"SystemAssigned\",\n },\n});\nconst exampleAlertPrometheusRuleGroup = new azure.monitoring.AlertPrometheusRuleGroup(\"example\", {\n name: \"example-amprg\",\n location: \"West Europe\",\n resourceGroupName: example.name,\n clusterName: exampleKubernetesCluster.name,\n description: \"This is the description of the following rule group\",\n ruleGroupEnabled: false,\n interval: \"PT1M\",\n scopes: [exampleWorkspace.id],\n rules: [\n {\n enabled: false,\n expression: \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n record: \"job_type:billing_jobs_duration_seconds:99p5m\",\n labels: {\n team: \"prod\",\n },\n },\n {\n alert: \"Billing_Processing_Very_Slow\",\n enabled: true,\n expression: \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n \"for\": \"PT5M\",\n severity: 2,\n actions: [{\n actionGroupId: exampleActionGroup.id,\n }],\n alertResolution: {\n autoResolved: true,\n timeToResolve: \"PT10M\",\n },\n annotations: {\n annotationName: \"annotationValue\",\n },\n labels: {\n team: \"prod\",\n },\n },\n ],\n tags: {\n key: \"value\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_action_group = azure.monitoring.ActionGroup(\"example\",\n name=\"example-mag\",\n resource_group_name=example.name,\n short_name=\"testag\")\nexample_workspace = azure.monitoring.Workspace(\"example\",\n name=\"example-amw\",\n resource_group_name=example.name,\n location=example.location)\nexample_kubernetes_cluster = azure.containerservice.KubernetesCluster(\"example\",\n name=\"example-cluster\",\n location=example.location,\n resource_group_name=example.name,\n dns_prefix=\"example-aks\",\n default_node_pool={\n \"name\": \"default\",\n \"node_count\": 1,\n \"vm_size\": \"Standard_DS2_v2\",\n \"host_encryption_enabled\": True,\n },\n identity={\n \"type\": \"SystemAssigned\",\n })\nexample_alert_prometheus_rule_group = azure.monitoring.AlertPrometheusRuleGroup(\"example\",\n name=\"example-amprg\",\n location=\"West Europe\",\n resource_group_name=example.name,\n cluster_name=example_kubernetes_cluster.name,\n description=\"This is the description of the following rule group\",\n rule_group_enabled=False,\n interval=\"PT1M\",\n scopes=[example_workspace.id],\n rules=[\n {\n \"enabled\": False,\n \"expression\": \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n \"record\": \"job_type:billing_jobs_duration_seconds:99p5m\",\n \"labels\": {\n \"team\": \"prod\",\n },\n },\n {\n \"alert\": \"Billing_Processing_Very_Slow\",\n \"enabled\": True,\n \"expression\": \"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\",\n \"for_\": \"PT5M\",\n \"severity\": 2,\n \"actions\": [{\n \"action_group_id\": example_action_group.id,\n }],\n \"alert_resolution\": {\n \"auto_resolved\": True,\n \"time_to_resolve\": \"PT10M\",\n },\n \"annotations\": {\n \"annotationName\": \"annotationValue\",\n },\n \"labels\": {\n \"team\": \"prod\",\n },\n },\n ],\n tags={\n \"key\": \"value\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleActionGroup = new Azure.Monitoring.ActionGroup(\"example\", new()\n {\n Name = \"example-mag\",\n ResourceGroupName = example.Name,\n ShortName = \"testag\",\n });\n\n var exampleWorkspace = new Azure.Monitoring.Workspace(\"example\", new()\n {\n Name = \"example-amw\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n });\n\n var exampleKubernetesCluster = new Azure.ContainerService.KubernetesCluster(\"example\", new()\n {\n Name = \"example-cluster\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n DnsPrefix = \"example-aks\",\n DefaultNodePool = new Azure.ContainerService.Inputs.KubernetesClusterDefaultNodePoolArgs\n {\n Name = \"default\",\n NodeCount = 1,\n VmSize = \"Standard_DS2_v2\",\n HostEncryptionEnabled = true,\n },\n Identity = new Azure.ContainerService.Inputs.KubernetesClusterIdentityArgs\n {\n Type = \"SystemAssigned\",\n },\n });\n\n var exampleAlertPrometheusRuleGroup = new Azure.Monitoring.AlertPrometheusRuleGroup(\"example\", new()\n {\n Name = \"example-amprg\",\n Location = \"West Europe\",\n ResourceGroupName = example.Name,\n ClusterName = exampleKubernetesCluster.Name,\n Description = \"This is the description of the following rule group\",\n RuleGroupEnabled = false,\n Interval = \"PT1M\",\n Scopes = new[]\n {\n exampleWorkspace.Id,\n },\n Rules = new[]\n {\n new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleArgs\n {\n Enabled = false,\n Expression = @\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"\"billing-processing\"\"}[5m])) by (job_type))\n\",\n Record = \"job_type:billing_jobs_duration_seconds:99p5m\",\n Labels = \n {\n { \"team\", \"prod\" },\n },\n },\n new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleArgs\n {\n Alert = \"Billing_Processing_Very_Slow\",\n Enabled = true,\n Expression = @\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"\"billing-processing\"\"}[5m])) by (job_type))\n\",\n For = \"PT5M\",\n Severity = 2,\n Actions = new[]\n {\n new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleActionArgs\n {\n ActionGroupId = exampleActionGroup.Id,\n },\n },\n AlertResolution = new Azure.Monitoring.Inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs\n {\n AutoResolved = true,\n TimeToResolve = \"PT10M\",\n },\n Annotations = \n {\n { \"annotationName\", \"annotationValue\" },\n },\n Labels = \n {\n { \"team\", \"prod\" },\n },\n },\n },\n Tags = \n {\n { \"key\", \"value\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/monitoring\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleActionGroup, err := monitoring.NewActionGroup(ctx, \"example\", \u0026monitoring.ActionGroupArgs{\n\t\t\tName: pulumi.String(\"example-mag\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tShortName: pulumi.String(\"testag\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleWorkspace, err := monitoring.NewWorkspace(ctx, \"example\", \u0026monitoring.WorkspaceArgs{\n\t\t\tName: pulumi.String(\"example-amw\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, \"example\", \u0026containerservice.KubernetesClusterArgs{\n\t\t\tName: pulumi.String(\"example-cluster\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tDnsPrefix: pulumi.String(\"example-aks\"),\n\t\t\tDefaultNodePool: \u0026containerservice.KubernetesClusterDefaultNodePoolArgs{\n\t\t\t\tName: pulumi.String(\"default\"),\n\t\t\t\tNodeCount: pulumi.Int(1),\n\t\t\t\tVmSize: pulumi.String(\"Standard_DS2_v2\"),\n\t\t\t\tHostEncryptionEnabled: pulumi.Bool(true),\n\t\t\t},\n\t\t\tIdentity: \u0026containerservice.KubernetesClusterIdentityArgs{\n\t\t\t\tType: pulumi.String(\"SystemAssigned\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = monitoring.NewAlertPrometheusRuleGroup(ctx, \"example\", \u0026monitoring.AlertPrometheusRuleGroupArgs{\n\t\t\tName: pulumi.String(\"example-amprg\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tClusterName: exampleKubernetesCluster.Name,\n\t\t\tDescription: pulumi.String(\"This is the description of the following rule group\"),\n\t\t\tRuleGroupEnabled: pulumi.Bool(false),\n\t\t\tInterval: pulumi.String(\"PT1M\"),\n\t\t\tScopes: pulumi.StringArray{\n\t\t\t\texampleWorkspace.ID(),\n\t\t\t},\n\t\t\tRules: monitoring.AlertPrometheusRuleGroupRuleArray{\n\t\t\t\t\u0026monitoring.AlertPrometheusRuleGroupRuleArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(false),\n\t\t\t\t\tExpression: pulumi.String(\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\"),\n\t\t\t\t\tRecord: pulumi.String(\"job_type:billing_jobs_duration_seconds:99p5m\"),\n\t\t\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\t\t\"team\": pulumi.String(\"prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026monitoring.AlertPrometheusRuleGroupRuleArgs{\n\t\t\t\t\tAlert: pulumi.String(\"Billing_Processing_Very_Slow\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tExpression: pulumi.String(\"histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\\\"billing-processing\\\"}[5m])) by (job_type))\\n\"),\n\t\t\t\t\tFor: pulumi.String(\"PT5M\"),\n\t\t\t\t\tSeverity: pulumi.Int(2),\n\t\t\t\t\tActions: monitoring.AlertPrometheusRuleGroupRuleActionArray{\n\t\t\t\t\t\t\u0026monitoring.AlertPrometheusRuleGroupRuleActionArgs{\n\t\t\t\t\t\t\tActionGroupId: exampleActionGroup.ID(),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tAlertResolution: \u0026monitoring.AlertPrometheusRuleGroupRuleAlertResolutionArgs{\n\t\t\t\t\t\tAutoResolved: pulumi.Bool(true),\n\t\t\t\t\t\tTimeToResolve: pulumi.String(\"PT10M\"),\n\t\t\t\t\t},\n\t\t\t\t\tAnnotations: pulumi.StringMap{\n\t\t\t\t\t\t\"annotationName\": pulumi.String(\"annotationValue\"),\n\t\t\t\t\t},\n\t\t\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\t\t\"team\": pulumi.String(\"prod\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"key\": pulumi.String(\"value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.monitoring.ActionGroup;\nimport com.pulumi.azure.monitoring.ActionGroupArgs;\nimport com.pulumi.azure.monitoring.Workspace;\nimport com.pulumi.azure.monitoring.WorkspaceArgs;\nimport com.pulumi.azure.containerservice.KubernetesCluster;\nimport com.pulumi.azure.containerservice.KubernetesClusterArgs;\nimport com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolArgs;\nimport com.pulumi.azure.containerservice.inputs.KubernetesClusterIdentityArgs;\nimport com.pulumi.azure.monitoring.AlertPrometheusRuleGroup;\nimport com.pulumi.azure.monitoring.AlertPrometheusRuleGroupArgs;\nimport com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleArgs;\nimport com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleActionGroup = new ActionGroup(\"exampleActionGroup\", ActionGroupArgs.builder()\n .name(\"example-mag\")\n .resourceGroupName(example.name())\n .shortName(\"testag\")\n .build());\n\n var exampleWorkspace = new Workspace(\"exampleWorkspace\", WorkspaceArgs.builder()\n .name(\"example-amw\")\n .resourceGroupName(example.name())\n .location(example.location())\n .build());\n\n var exampleKubernetesCluster = new KubernetesCluster(\"exampleKubernetesCluster\", KubernetesClusterArgs.builder()\n .name(\"example-cluster\")\n .location(example.location())\n .resourceGroupName(example.name())\n .dnsPrefix(\"example-aks\")\n .defaultNodePool(KubernetesClusterDefaultNodePoolArgs.builder()\n .name(\"default\")\n .nodeCount(1)\n .vmSize(\"Standard_DS2_v2\")\n .hostEncryptionEnabled(true)\n .build())\n .identity(KubernetesClusterIdentityArgs.builder()\n .type(\"SystemAssigned\")\n .build())\n .build());\n\n var exampleAlertPrometheusRuleGroup = new AlertPrometheusRuleGroup(\"exampleAlertPrometheusRuleGroup\", AlertPrometheusRuleGroupArgs.builder()\n .name(\"example-amprg\")\n .location(\"West Europe\")\n .resourceGroupName(example.name())\n .clusterName(exampleKubernetesCluster.name())\n .description(\"This is the description of the following rule group\")\n .ruleGroupEnabled(false)\n .interval(\"PT1M\")\n .scopes(exampleWorkspace.id())\n .rules( \n AlertPrometheusRuleGroupRuleArgs.builder()\n .enabled(false)\n .expression(\"\"\"\nhistogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n \"\"\")\n .record(\"job_type:billing_jobs_duration_seconds:99p5m\")\n .labels(Map.of(\"team\", \"prod\"))\n .build(),\n AlertPrometheusRuleGroupRuleArgs.builder()\n .alert(\"Billing_Processing_Very_Slow\")\n .enabled(true)\n .expression(\"\"\"\nhistogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n \"\"\")\n .for_(\"PT5M\")\n .severity(2)\n .actions(AlertPrometheusRuleGroupRuleActionArgs.builder()\n .actionGroupId(exampleActionGroup.id())\n .build())\n .alertResolution(AlertPrometheusRuleGroupRuleAlertResolutionArgs.builder()\n .autoResolved(true)\n .timeToResolve(\"PT10M\")\n .build())\n .annotations(Map.of(\"annotationName\", \"annotationValue\"))\n .labels(Map.of(\"team\", \"prod\"))\n .build())\n .tags(Map.of(\"key\", \"value\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleActionGroup:\n type: azure:monitoring:ActionGroup\n name: example\n properties:\n name: example-mag\n resourceGroupName: ${example.name}\n shortName: testag\n exampleWorkspace:\n type: azure:monitoring:Workspace\n name: example\n properties:\n name: example-amw\n resourceGroupName: ${example.name}\n location: ${example.location}\n exampleKubernetesCluster:\n type: azure:containerservice:KubernetesCluster\n name: example\n properties:\n name: example-cluster\n location: ${example.location}\n resourceGroupName: ${example.name}\n dnsPrefix: example-aks\n defaultNodePool:\n name: default\n nodeCount: 1\n vmSize: Standard_DS2_v2\n hostEncryptionEnabled: true\n identity:\n type: SystemAssigned\n exampleAlertPrometheusRuleGroup:\n type: azure:monitoring:AlertPrometheusRuleGroup\n name: example\n properties:\n name: example-amprg\n location: West Europe\n resourceGroupName: ${example.name}\n clusterName: ${exampleKubernetesCluster.name}\n description: This is the description of the following rule group\n ruleGroupEnabled: false\n interval: PT1M\n scopes:\n - ${exampleWorkspace.id}\n rules:\n - enabled: false\n expression: |\n histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n record: job_type:billing_jobs_duration_seconds:99p5m\n labels:\n team: prod\n - alert: Billing_Processing_Very_Slow\n enabled: true\n expression: |\n histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service=\"billing-processing\"}[5m])) by (job_type))\n for: PT5M\n severity: 2\n actions:\n - actionGroupId: ${exampleActionGroup.id}\n alertResolution:\n autoResolved: true\n timeToResolve: PT10M\n annotations:\n annotationName: annotationValue\n labels:\n team: prod\n tags:\n key: value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAlert Management Prometheus Rule Group can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:monitoring/alertPrometheusRuleGroup:AlertPrometheusRuleGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AlertsManagement/prometheusRuleGroups/ruleGroup1\n```\n\n", "properties": { "clusterName": { "type": "string", @@ -244639,7 +244639,7 @@ } }, "azure:securitycenter/subscriptionPricing:SubscriptionPricing": { - "description": "Manages the Pricing Tier for Azure Security Center in the current subscription.\n\n\u003e **NOTE:** Deletion of this resource will reset the pricing tier to `Free`\n\n## Example Usage\n\n### Basic usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.securitycenter.SubscriptionPricing(\"example\", {\n tier: \"Standard\",\n resourceType: \"VirtualMachines\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.securitycenter.SubscriptionPricing(\"example\",\n tier=\"Standard\",\n resource_type=\"VirtualMachines\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.SecurityCenter.SubscriptionPricing(\"example\", new()\n {\n Tier = \"Standard\",\n ResourceType = \"VirtualMachines\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := securitycenter.NewSubscriptionPricing(ctx, \"example\", \u0026securitycenter.SubscriptionPricingArgs{\n\t\t\tTier: pulumi.String(\"Standard\"),\n\t\t\tResourceType: pulumi.String(\"VirtualMachines\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.securitycenter.SubscriptionPricing;\nimport com.pulumi.azure.securitycenter.SubscriptionPricingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SubscriptionPricing(\"example\", SubscriptionPricingArgs.builder()\n .tier(\"Standard\")\n .resourceType(\"VirtualMachines\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:securitycenter:SubscriptionPricing\n properties:\n tier: Standard\n resourceType: VirtualMachines\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Using Extensions with Defender CSPM\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example1 = new azure.securitycenter.SubscriptionPricing(\"example1\", {\n tier: \"Standard\",\n resourceType: \"CloudPosture\",\n extensions: [\n {\n name: \"ContainerRegistriesVulnerabilityAssessments\",\n },\n {\n name: \"AgentlessVmScanning\",\n additionalExtensionProperties: {\n ExclusionTags: \"[]\",\n },\n },\n {\n name: \"AgentlessDiscoveryForKubernetes\",\n },\n {\n name: \"SensitiveDataDiscovery\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample1 = azure.securitycenter.SubscriptionPricing(\"example1\",\n tier=\"Standard\",\n resource_type=\"CloudPosture\",\n extensions=[\n {\n \"name\": \"ContainerRegistriesVulnerabilityAssessments\",\n },\n {\n \"name\": \"AgentlessVmScanning\",\n \"additional_extension_properties\": {\n \"exclusion_tags\": \"[]\",\n },\n },\n {\n \"name\": \"AgentlessDiscoveryForKubernetes\",\n },\n {\n \"name\": \"SensitiveDataDiscovery\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example1 = new Azure.SecurityCenter.SubscriptionPricing(\"example1\", new()\n {\n Tier = \"Standard\",\n ResourceType = \"CloudPosture\",\n Extensions = new[]\n {\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"ContainerRegistriesVulnerabilityAssessments\",\n },\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"AgentlessVmScanning\",\n AdditionalExtensionProperties = \n {\n { \"ExclusionTags\", \"[]\" },\n },\n },\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"AgentlessDiscoveryForKubernetes\",\n },\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"SensitiveDataDiscovery\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := securitycenter.NewSubscriptionPricing(ctx, \"example1\", \u0026securitycenter.SubscriptionPricingArgs{\n\t\t\tTier: pulumi.String(\"Standard\"),\n\t\t\tResourceType: pulumi.String(\"CloudPosture\"),\n\t\t\tExtensions: securitycenter.SubscriptionPricingExtensionArray{\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"ContainerRegistriesVulnerabilityAssessments\"),\n\t\t\t\t},\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"AgentlessVmScanning\"),\n\t\t\t\t\tAdditionalExtensionProperties: pulumi.StringMap{\n\t\t\t\t\t\t\"ExclusionTags\": pulumi.String(\"[]\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"AgentlessDiscoveryForKubernetes\"),\n\t\t\t\t},\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"SensitiveDataDiscovery\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.securitycenter.SubscriptionPricing;\nimport com.pulumi.azure.securitycenter.SubscriptionPricingArgs;\nimport com.pulumi.azure.securitycenter.inputs.SubscriptionPricingExtensionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example1 = new SubscriptionPricing(\"example1\", SubscriptionPricingArgs.builder()\n .tier(\"Standard\")\n .resourceType(\"CloudPosture\")\n .extensions( \n SubscriptionPricingExtensionArgs.builder()\n .name(\"ContainerRegistriesVulnerabilityAssessments\")\n .build(),\n SubscriptionPricingExtensionArgs.builder()\n .name(\"AgentlessVmScanning\")\n .additionalExtensionProperties(Map.of(\"ExclusionTags\", \"[]\"))\n .build(),\n SubscriptionPricingExtensionArgs.builder()\n .name(\"AgentlessDiscoveryForKubernetes\")\n .build(),\n SubscriptionPricingExtensionArgs.builder()\n .name(\"SensitiveDataDiscovery\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example1:\n type: azure:securitycenter:SubscriptionPricing\n properties:\n tier: Standard\n resourceType: CloudPosture\n extensions:\n - name: ContainerRegistriesVulnerabilityAssessments\n - name: AgentlessVmScanning\n additionalExtensionProperties:\n ExclusionTags: '[]'\n - name: AgentlessDiscoveryForKubernetes\n - name: SensitiveDataDiscovery\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThe pricing tier can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:securitycenter/subscriptionPricing:SubscriptionPricing example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/\u003cresource_type\u003e\n```\n\n", + "description": "Manages the Pricing Tier for Azure Security Center in the current subscription.\n\n\u003e **NOTE:** Deletion of this resource will reset the pricing tier to `Free`\n\n## Example Usage\n\n### Basic usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.securitycenter.SubscriptionPricing(\"example\", {\n tier: \"Standard\",\n resourceType: \"VirtualMachines\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.securitycenter.SubscriptionPricing(\"example\",\n tier=\"Standard\",\n resource_type=\"VirtualMachines\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.SecurityCenter.SubscriptionPricing(\"example\", new()\n {\n Tier = \"Standard\",\n ResourceType = \"VirtualMachines\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := securitycenter.NewSubscriptionPricing(ctx, \"example\", \u0026securitycenter.SubscriptionPricingArgs{\n\t\t\tTier: pulumi.String(\"Standard\"),\n\t\t\tResourceType: pulumi.String(\"VirtualMachines\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.securitycenter.SubscriptionPricing;\nimport com.pulumi.azure.securitycenter.SubscriptionPricingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SubscriptionPricing(\"example\", SubscriptionPricingArgs.builder()\n .tier(\"Standard\")\n .resourceType(\"VirtualMachines\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:securitycenter:SubscriptionPricing\n properties:\n tier: Standard\n resourceType: VirtualMachines\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Using Extensions with Defender CSPM\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example1 = new azure.securitycenter.SubscriptionPricing(\"example1\", {\n tier: \"Standard\",\n resourceType: \"CloudPosture\",\n extensions: [\n {\n name: \"ContainerRegistriesVulnerabilityAssessments\",\n },\n {\n name: \"AgentlessVmScanning\",\n additionalExtensionProperties: {\n ExclusionTags: \"[]\",\n },\n },\n {\n name: \"AgentlessDiscoveryForKubernetes\",\n },\n {\n name: \"SensitiveDataDiscovery\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample1 = azure.securitycenter.SubscriptionPricing(\"example1\",\n tier=\"Standard\",\n resource_type=\"CloudPosture\",\n extensions=[\n {\n \"name\": \"ContainerRegistriesVulnerabilityAssessments\",\n },\n {\n \"name\": \"AgentlessVmScanning\",\n \"additional_extension_properties\": {\n \"ExclusionTags\": \"[]\",\n },\n },\n {\n \"name\": \"AgentlessDiscoveryForKubernetes\",\n },\n {\n \"name\": \"SensitiveDataDiscovery\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example1 = new Azure.SecurityCenter.SubscriptionPricing(\"example1\", new()\n {\n Tier = \"Standard\",\n ResourceType = \"CloudPosture\",\n Extensions = new[]\n {\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"ContainerRegistriesVulnerabilityAssessments\",\n },\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"AgentlessVmScanning\",\n AdditionalExtensionProperties = \n {\n { \"ExclusionTags\", \"[]\" },\n },\n },\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"AgentlessDiscoveryForKubernetes\",\n },\n new Azure.SecurityCenter.Inputs.SubscriptionPricingExtensionArgs\n {\n Name = \"SensitiveDataDiscovery\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := securitycenter.NewSubscriptionPricing(ctx, \"example1\", \u0026securitycenter.SubscriptionPricingArgs{\n\t\t\tTier: pulumi.String(\"Standard\"),\n\t\t\tResourceType: pulumi.String(\"CloudPosture\"),\n\t\t\tExtensions: securitycenter.SubscriptionPricingExtensionArray{\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"ContainerRegistriesVulnerabilityAssessments\"),\n\t\t\t\t},\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"AgentlessVmScanning\"),\n\t\t\t\t\tAdditionalExtensionProperties: pulumi.StringMap{\n\t\t\t\t\t\t\"ExclusionTags\": pulumi.String(\"[]\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"AgentlessDiscoveryForKubernetes\"),\n\t\t\t\t},\n\t\t\t\t\u0026securitycenter.SubscriptionPricingExtensionArgs{\n\t\t\t\t\tName: pulumi.String(\"SensitiveDataDiscovery\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.securitycenter.SubscriptionPricing;\nimport com.pulumi.azure.securitycenter.SubscriptionPricingArgs;\nimport com.pulumi.azure.securitycenter.inputs.SubscriptionPricingExtensionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example1 = new SubscriptionPricing(\"example1\", SubscriptionPricingArgs.builder()\n .tier(\"Standard\")\n .resourceType(\"CloudPosture\")\n .extensions( \n SubscriptionPricingExtensionArgs.builder()\n .name(\"ContainerRegistriesVulnerabilityAssessments\")\n .build(),\n SubscriptionPricingExtensionArgs.builder()\n .name(\"AgentlessVmScanning\")\n .additionalExtensionProperties(Map.of(\"ExclusionTags\", \"[]\"))\n .build(),\n SubscriptionPricingExtensionArgs.builder()\n .name(\"AgentlessDiscoveryForKubernetes\")\n .build(),\n SubscriptionPricingExtensionArgs.builder()\n .name(\"SensitiveDataDiscovery\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example1:\n type: azure:securitycenter:SubscriptionPricing\n properties:\n tier: Standard\n resourceType: CloudPosture\n extensions:\n - name: ContainerRegistriesVulnerabilityAssessments\n - name: AgentlessVmScanning\n additionalExtensionProperties:\n ExclusionTags: '[]'\n - name: AgentlessDiscoveryForKubernetes\n - name: SensitiveDataDiscovery\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThe pricing tier can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:securitycenter/subscriptionPricing:SubscriptionPricing example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/\u003cresource_type\u003e\n```\n\n", "properties": { "extensions": { "type": "array", diff --git a/provider/go.mod b/provider/go.mod index 221fb8de7e..f988a9ead2 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ require ( github.com/hashicorp/terraform-provider-azurerm v1.44.1-0.20220923005104-eaa801c358ff github.com/pulumi/providertest v0.1.2 github.com/pulumi/pulumi-terraform-bridge/v3 v3.93.1 - github.com/pulumi/pulumi/sdk/v3 v3.136.1 + github.com/pulumi/pulumi/sdk/v3 v3.137.0 github.com/stretchr/testify v1.9.0 ) @@ -199,7 +199,7 @@ require ( github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect - github.com/pulumi/pulumi-yaml v1.10.3 // indirect + github.com/pulumi/pulumi-yaml v1.11.1 // indirect github.com/pulumi/pulumi/pkg/v3 v3.136.1 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect @@ -270,3 +270,7 @@ require ( lukechampine.com/frand v1.4.2 // indirect software.sslmate.com/src/go-pkcs12 v0.4.0 // indirect ) + +replace github.com/pulumi/pulumi/pkg/v3 => github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee + +replace github.com/pulumi/pulumi/sdk/v3 => github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee diff --git a/provider/go.sum b/provider/go.sum index fabb0d66b7..76f0bbf7bd 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1968,12 +1968,12 @@ github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIka github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= github.com/pulumi/pulumi-terraform-bridge/v3 v3.93.1 h1:EEf5W3buVR5pcCKTXGouDS1/oY6TqVUIRKLksl5h4Es= github.com/pulumi/pulumi-terraform-bridge/v3 v3.93.1/go.mod h1:jNpOSGkfTeZSnSjpGBHHiyllciCEDRqFaZhLUpQPlpo= -github.com/pulumi/pulumi-yaml v1.10.3 h1:j5cjPiE32ILmjrWnC1cfZ0MWdqCZ8fg9wlaWk7HOtM4= -github.com/pulumi/pulumi-yaml v1.10.3/go.mod h1:MFMQXkaUP5YQUKVJ6Z/aagZDl2f8hdU9oGaJfTcMf1Y= -github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= -github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= -github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= -github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi-yaml v1.11.1 h1:ULUL9fpb2Bwgf3jJHx0FamKYm0ld0KxBQr/uSAslRLk= +github.com/pulumi/pulumi-yaml v1.11.1/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI= +github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee h1:n3lLQp8pLf3f/sL3HVjQEekmrpfC+QjGWvEpsr2NFXY= +github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee/go.mod h1:QVnKWFBuraCB9q4mluaj2sOdyboCpNydSzlE0MUfHew= +github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee h1:QP1wvjt+yE6U8SrUWQ1u83oQz78uxC66AjfsTY19UBI= +github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index c5e8e2a6a3..614adbf2fe 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -91,3 +91,7 @@ require ( lukechampine.com/frand v1.4.2 // indirect pgregory.net/rapid v0.6.1 // indirect ) + +replace github.com/pulumi/pulumi/pkg/v3 => github.com/pulumi/pulumi/pkg/v3 v3.137.1-0.20241030184058-4cda63dd2eee + +replace github.com/pulumi/pulumi/sdk/v3 => github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee diff --git a/sdk/go.sum b/sdk/go.sum index be72157e2c..1f28353820 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= -github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee h1:QP1wvjt+yE6U8SrUWQ1u83oQz78uxC66AjfsTY19UBI= +github.com/pulumi/pulumi/sdk/v3 v3.137.1-0.20241030184058-4cda63dd2eee/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/python/pulumi_azure/appplatform/spring_cloud_build_pack_binding.py b/sdk/python/pulumi_azure/appplatform/spring_cloud_build_pack_binding.py index 33e42cceaf..e97e38ddce 100644 --- a/sdk/python/pulumi_azure/appplatform/spring_cloud_build_pack_binding.py +++ b/sdk/python/pulumi_azure/appplatform/spring_cloud_build_pack_binding.py @@ -208,11 +208,11 @@ def __init__(__self__, launch={ "properties": { "abc": "def", - "any_string": "any-string", - "sampling_rate": "12.0", + "any-string": "any-string", + "sampling-rate": "12.0", }, "secrets": { - "connection_string": "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX", + "connection-string": "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX", }, }) ``` @@ -275,11 +275,11 @@ def __init__(__self__, launch={ "properties": { "abc": "def", - "any_string": "any-string", - "sampling_rate": "12.0", + "any-string": "any-string", + "sampling-rate": "12.0", }, "secrets": { - "connection_string": "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX", + "connection-string": "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX", }, }) ``` diff --git a/sdk/python/pulumi_azure/automation/software_update_configuration.py b/sdk/python/pulumi_azure/automation/software_update_configuration.py index 92fb90eace..19424af59a 100644 --- a/sdk/python/pulumi_azure/automation/software_update_configuration.py +++ b/sdk/python/pulumi_azure/automation/software_update_configuration.py @@ -485,7 +485,7 @@ def __init__(__self__, pre_task={ "source": example_run_book.name, "parameters": { - "compute_r__name": "Foo", + "COMPUTER_NAME": "Foo", }, }, duration="PT2H2M2S") @@ -565,7 +565,7 @@ def __init__(__self__, pre_task={ "source": example_run_book.name, "parameters": { - "compute_r__name": "Foo", + "COMPUTER_NAME": "Foo", }, }, duration="PT2H2M2S") diff --git a/sdk/python/pulumi_azure/chaosstudio/experiment.py b/sdk/python/pulumi_azure/chaosstudio/experiment.py index 06f54dd25b..996395ee92 100644 --- a/sdk/python/pulumi_azure/chaosstudio/experiment.py +++ b/sdk/python/pulumi_azure/chaosstudio/experiment.py @@ -315,7 +315,7 @@ def __init__(__self__, "urn": example_capability.capability_urn, "selector_name": "Selector1", "parameters": { - "abrupt_shutdown": "false", + "abruptShutdown": "false", }, "action_type": "continuous", "duration": "PT10M", @@ -427,7 +427,7 @@ def __init__(__self__, "urn": example_capability.capability_urn, "selector_name": "Selector1", "parameters": { - "abrupt_shutdown": "false", + "abruptShutdown": "false", }, "action_type": "continuous", "duration": "PT10M", diff --git a/sdk/python/pulumi_azure/datafactory/data_flow.py b/sdk/python/pulumi_azure/datafactory/data_flow.py index 36a06e8835..630e3c3458 100644 --- a/sdk/python/pulumi_azure/datafactory/data_flow.py +++ b/sdk/python/pulumi_azure/datafactory/data_flow.py @@ -479,7 +479,7 @@ def __init__(__self__, "flowlet": { "name": example1_flowlet_data_flow.name, "parameters": { - "key1": "value1", + "Key1": "value1", }, }, "dataset": { @@ -491,7 +491,7 @@ def __init__(__self__, "flowlet": { "name": example2_flowlet_data_flow.name, "parameters": { - "key1": "value1", + "Key1": "value1", }, }, "dataset": { @@ -651,7 +651,7 @@ def __init__(__self__, "flowlet": { "name": example1_flowlet_data_flow.name, "parameters": { - "key1": "value1", + "Key1": "value1", }, }, "dataset": { @@ -663,7 +663,7 @@ def __init__(__self__, "flowlet": { "name": example2_flowlet_data_flow.name, "parameters": { - "key1": "value1", + "Key1": "value1", }, }, "dataset": { diff --git a/sdk/python/pulumi_azure/datafactory/linked_service_azure_databricks.py b/sdk/python/pulumi_azure/datafactory/linked_service_azure_databricks.py index be3e0d74fa..5e8780c5ac 100644 --- a/sdk/python/pulumi_azure/datafactory/linked_service_azure_databricks.py +++ b/sdk/python/pulumi_azure/datafactory/linked_service_azure_databricks.py @@ -550,8 +550,8 @@ def __init__(__self__, "config2": "value2", }, "spark_environment_variables": { - "env_var1": "value1", - "env_var2": "value2", + "envVar1": "value1", + "envVar2": "value2", }, "init_scripts": [ "init.sh", @@ -670,8 +670,8 @@ def __init__(__self__, "config2": "value2", }, "spark_environment_variables": { - "env_var1": "value1", - "env_var2": "value2", + "envVar1": "value1", + "envVar2": "value2", }, "init_scripts": [ "init.sh", diff --git a/sdk/python/pulumi_azure/datafactory/trigger_blob_event.py b/sdk/python/pulumi_azure/datafactory/trigger_blob_event.py index c73be6685b..7f01445e63 100644 --- a/sdk/python/pulumi_azure/datafactory/trigger_blob_event.py +++ b/sdk/python/pulumi_azure/datafactory/trigger_blob_event.py @@ -485,7 +485,7 @@ def __init__(__self__, pipelines=[{ "name": example_pipeline.name, "parameters": { - "env": "Prod", + "Env": "Prod", }, }], additional_properties={ @@ -570,7 +570,7 @@ def __init__(__self__, pipelines=[{ "name": example_pipeline.name, "parameters": { - "env": "Prod", + "Env": "Prod", }, }], additional_properties={ diff --git a/sdk/python/pulumi_azure/datafactory/trigger_custom_event.py b/sdk/python/pulumi_azure/datafactory/trigger_custom_event.py index 0551143aa1..d92eb9c3ea 100644 --- a/sdk/python/pulumi_azure/datafactory/trigger_custom_event.py +++ b/sdk/python/pulumi_azure/datafactory/trigger_custom_event.py @@ -441,7 +441,7 @@ def __init__(__self__, pipelines=[{ "name": example_pipeline.name, "parameters": { - "env": "Prod", + "Env": "Prod", }, }], additional_properties={ @@ -520,7 +520,7 @@ def __init__(__self__, pipelines=[{ "name": example_pipeline.name, "parameters": { - "env": "Prod", + "Env": "Prod", }, }], additional_properties={ diff --git a/sdk/python/pulumi_azure/datafactory/trigger_tumbling_window.py b/sdk/python/pulumi_azure/datafactory/trigger_tumbling_window.py index 317ca39fb2..7649752f6f 100644 --- a/sdk/python/pulumi_azure/datafactory/trigger_tumbling_window.py +++ b/sdk/python/pulumi_azure/datafactory/trigger_tumbling_window.py @@ -570,7 +570,7 @@ def __init__(__self__, pipeline={ "name": example_pipeline.name, "parameters": { - "env": "Prod", + "Env": "Prod", }, }, trigger_dependencies=[{ @@ -655,7 +655,7 @@ def __init__(__self__, pipeline={ "name": example_pipeline.name, "parameters": { - "env": "Prod", + "Env": "Prod", }, }, trigger_dependencies=[{ diff --git a/sdk/python/pulumi_azure/monitoring/activity_log_alert.py b/sdk/python/pulumi_azure/monitoring/activity_log_alert.py index c272cbb39d..96e7711bf7 100644 --- a/sdk/python/pulumi_azure/monitoring/activity_log_alert.py +++ b/sdk/python/pulumi_azure/monitoring/activity_log_alert.py @@ -374,7 +374,7 @@ def __init__(__self__, actions=[{ "action_group_id": main.id, "webhook_properties": { - "from_": "source", + "from": "source", }, }]) ``` @@ -445,7 +445,7 @@ def __init__(__self__, actions=[{ "action_group_id": main.id, "webhook_properties": { - "from_": "source", + "from": "source", }, }]) ``` diff --git a/sdk/python/pulumi_azure/monitoring/alert_prometheus_rule_group.py b/sdk/python/pulumi_azure/monitoring/alert_prometheus_rule_group.py index fde2bb55c3..f50382b794 100644 --- a/sdk/python/pulumi_azure/monitoring/alert_prometheus_rule_group.py +++ b/sdk/python/pulumi_azure/monitoring/alert_prometheus_rule_group.py @@ -433,7 +433,7 @@ def __init__(__self__, "time_to_resolve": "PT10M", }, "annotations": { - "annotation_name": "annotationValue", + "annotationName": "annotationValue", }, "labels": { "team": "prod", @@ -538,7 +538,7 @@ def __init__(__self__, "time_to_resolve": "PT10M", }, "annotations": { - "annotation_name": "annotationValue", + "annotationName": "annotationValue", }, "labels": { "team": "prod", diff --git a/sdk/python/pulumi_azure/securitycenter/subscription_pricing.py b/sdk/python/pulumi_azure/securitycenter/subscription_pricing.py index fd846cf3da..4bd7c88efe 100644 --- a/sdk/python/pulumi_azure/securitycenter/subscription_pricing.py +++ b/sdk/python/pulumi_azure/securitycenter/subscription_pricing.py @@ -205,7 +205,7 @@ def __init__(__self__, { "name": "AgentlessVmScanning", "additional_extension_properties": { - "exclusion_tags": "[]", + "ExclusionTags": "[]", }, }, { @@ -272,7 +272,7 @@ def __init__(__self__, { "name": "AgentlessVmScanning", "additional_extension_properties": { - "exclusion_tags": "[]", + "ExclusionTags": "[]", }, }, {