Defines a knowledge source resource for a web agent.
Uses Azure REST API version 2025-09-01-preview.
Example Usage
Create or Update Knowledge Source
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var knowledgeSource = new AzureNative.Cdn.KnowledgeSource("knowledgeSource", new()
{
Description = "Website knowledge source for FAQ content",
KnowledgeSourceName = "myKnowledgeSource1",
ResourceGroupName = "RG",
SourceType = AzureNative.Cdn.KnowledgeSourceType.SchemaOrgMarkup,
UpdateFrequency = AzureNative.Cdn.KnowledgeSourceUpdateFrequency.EverySixHours,
Url = "https://example.com/faq",
WebAgentName = "myWebAgent1",
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewKnowledgeSource(ctx, "knowledgeSource", &cdn.KnowledgeSourceArgs{
Description: pulumi.String("Website knowledge source for FAQ content"),
KnowledgeSourceName: pulumi.String("myKnowledgeSource1"),
ResourceGroupName: pulumi.String("RG"),
SourceType: pulumi.String(cdn.KnowledgeSourceTypeSchemaOrgMarkup),
UpdateFrequency: pulumi.String(cdn.KnowledgeSourceUpdateFrequencyEverySixHours),
Url: pulumi.String("https://example.com/faq"),
WebAgentName: pulumi.String("myWebAgent1"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_cdn_knowledge_source" "knowledgeSource" {
lifecycle {
create_before_destroy = true
}
description = "Website knowledge source for FAQ content"
knowledge_source_name = "myKnowledgeSource1"
resource_group_name = "RG"
source_type = "SchemaOrgMarkup"
update_frequency = "EverySixHours"
url = "https://example.com/faq"
web_agent_name = "myWebAgent1"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.KnowledgeSource;
import com.pulumi.azurenative.cdn.KnowledgeSourceArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var knowledgeSource = new KnowledgeSource("knowledgeSource", KnowledgeSourceArgs.builder()
.description("Website knowledge source for FAQ content")
.knowledgeSourceName("myKnowledgeSource1")
.resourceGroupName("RG")
.sourceType("SchemaOrgMarkup")
.updateFrequency("EverySixHours")
.url("https://example.com/faq")
.webAgentName("myWebAgent1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const knowledgeSource = new azure_native.cdn.KnowledgeSource("knowledgeSource", {
description: "Website knowledge source for FAQ content",
knowledgeSourceName: "myKnowledgeSource1",
resourceGroupName: "RG",
sourceType: azure_native.cdn.KnowledgeSourceType.SchemaOrgMarkup,
updateFrequency: azure_native.cdn.KnowledgeSourceUpdateFrequency.EverySixHours,
url: "https://example.com/faq",
webAgentName: "myWebAgent1",
});
import pulumi
import pulumi_azure_native as azure_native
knowledge_source = azure_native.cdn.KnowledgeSource("knowledgeSource",
description="Website knowledge source for FAQ content",
knowledge_source_name="myKnowledgeSource1",
resource_group_name="RG",
source_type=azure_native.cdn.KnowledgeSourceType.SCHEMA_ORG_MARKUP,
update_frequency=azure_native.cdn.KnowledgeSourceUpdateFrequency.EVERY_SIX_HOURS,
url="https://example.com/faq",
web_agent_name="myWebAgent1")
resources:
knowledgeSource:
type: azure-native:cdn:KnowledgeSource
properties:
description: Website knowledge source for FAQ content
knowledgeSourceName: myKnowledgeSource1
resourceGroupName: RG
sourceType: SchemaOrgMarkup
updateFrequency: EverySixHours
url: https://example.com/faq
webAgentName: myWebAgent1
Create KnowledgeSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def KnowledgeSource(resource_name: str,
args: KnowledgeSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KnowledgeSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
source_type: Optional[Union[str, KnowledgeSourceType]] = None,
url: Optional[str] = None,
web_agent_name: Optional[str] = None,
description: Optional[str] = None,
knowledge_source_name: Optional[str] = None,
update_frequency: Optional[Union[str, KnowledgeSourceUpdateFrequency]] = None)
type: azure-native:cdn:KnowledgeSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_cdn_knowledge_source" "name" {
# resource properties
}
Parameters
- resource_name
str
- The unique name of the resource.
- args
KnowledgeSourceArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
KnowledgeSourceArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
KnowledgeSourceArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var knowledgeSourceResource = new AzureNative.Cdn.KnowledgeSource("knowledgeSourceResource", new()
{
ResourceGroupName = "string",
SourceType = "string",
Url = "string",
WebAgentName = "string",
Description = "string",
KnowledgeSourceName = "string",
UpdateFrequency = "string",
});
example, err := cdn.NewKnowledgeSource(ctx, "knowledgeSourceResource", &cdn.KnowledgeSourceArgs{
ResourceGroupName: pulumi.String("string"),
SourceType: pulumi.String("string"),
Url: pulumi.String("string"),
WebAgentName: pulumi.String("string"),
Description: pulumi.String("string"),
KnowledgeSourceName: pulumi.String("string"),
UpdateFrequency: pulumi.String("string"),
})
resource "azure-native_cdn_knowledge_source" "knowledgeSourceResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
source_type = "string"
url = "string"
web_agent_name = "string"
description = "string"
knowledge_source_name = "string"
update_frequency = "string"
}
var knowledgeSourceResource = new KnowledgeSource("knowledgeSourceResource", KnowledgeSourceArgs.builder()
.resourceGroupName("string")
.sourceType("string")
.url("string")
.webAgentName("string")
.description("string")
.knowledgeSourceName("string")
.updateFrequency("string")
.build());
knowledge_source_resource = azure_native.cdn.KnowledgeSource("knowledgeSourceResource",
resource_group_name="string",
source_type="string",
url="string",
web_agent_name="string",
description="string",
knowledge_source_name="string",
update_frequency="string")
const knowledgeSourceResource = new azure_native.cdn.KnowledgeSource("knowledgeSourceResource", {
resourceGroupName: "string",
sourceType: "string",
url: "string",
webAgentName: "string",
description: "string",
knowledgeSourceName: "string",
updateFrequency: "string",
});
type: azure-native:cdn:KnowledgeSource
properties:
description: string
knowledgeSourceName: string
resourceGroupName: string
sourceType: string
updateFrequency: string
url: string
webAgentName: string
KnowledgeSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KnowledgeSource resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the KnowledgeSource resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- LastRefreshedTime
string
- The last time the knowledge source was updated.
- Name
string
- The name of the resource
- ProvisioningState
string
- Provisioning status of the knowledge source.
- SystemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- last_refreshed_time
string
- The last time the knowledge source was updated.
- name
string
- The name of the resource
- provisioning_state
string
- Provisioning status of the knowledge source.
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- lastRefreshedTime
String
- The last time the knowledge source was updated.
- name
String
- The name of the resource
- provisioningState
String
- Provisioning status of the knowledge source.
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- lastRefreshedTime
string
- The last time the knowledge source was updated.
- name
string
- The name of the resource
- provisioningState
string
- Provisioning status of the knowledge source.
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- last_refreshed_time
str
- The last time the knowledge source was updated.
- name
str
- The name of the resource
- provisioning_state
str
- Provisioning status of the knowledge source.
- system_data
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- lastRefreshedTime
String
- The last time the knowledge source was updated.
- name
String
- The name of the resource
- provisioningState
String
- Provisioning status of the knowledge source.
- systemData
Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
KnowledgeSourceType, KnowledgeSourceTypeArgs
| Name | Value |
|---|
| SchemaOrgMarkup | SchemaOrgMarkup |
| RssFeeds | RssFeeds |
| Sitemap | Sitemap |
| Name | Value |
|---|
| KnowledgeSourceTypeSchemaOrgMarkup | SchemaOrgMarkup |
| KnowledgeSourceTypeRssFeeds | RssFeeds |
| KnowledgeSourceTypeSitemap | Sitemap |
| Value |
|---|
SchemaOrgMarkup |
RssFeeds |
Sitemap |
| Name | Value |
|---|
| SchemaOrgMarkup | SchemaOrgMarkup |
| RssFeeds | RssFeeds |
| Sitemap | Sitemap |
| Name | Value |
|---|
| SchemaOrgMarkup | SchemaOrgMarkup |
| RssFeeds | RssFeeds |
| Sitemap | Sitemap |
| Name | Value |
|---|
| SCHEMA_ORG_MARKUP | SchemaOrgMarkup |
| RSS_FEEDS | RssFeeds |
| SITEMAP | Sitemap |
| Value |
|---|
SchemaOrgMarkup |
RssFeeds |
Sitemap |
KnowledgeSourceUpdateFrequency, KnowledgeSourceUpdateFrequencyArgs
| Name | Value |
|---|
| EverySixHours | EverySixHours |
| Daily | Daily |
| Weekly | Weekly |
| Monthly | Monthly |
| Name | Value |
|---|
| KnowledgeSourceUpdateFrequencyEverySixHours | EverySixHours |
| KnowledgeSourceUpdateFrequencyDaily | Daily |
| KnowledgeSourceUpdateFrequencyWeekly | Weekly |
| KnowledgeSourceUpdateFrequencyMonthly | Monthly |
| Value |
|---|
EverySixHours |
Daily |
Weekly |
Monthly |
| Name | Value |
|---|
| EverySixHours | EverySixHours |
| Daily | Daily |
| Weekly | Weekly |
| Monthly | Monthly |
| Name | Value |
|---|
| EverySixHours | EverySixHours |
| Daily | Daily |
| Weekly | Weekly |
| Monthly | Monthly |
| Name | Value |
|---|
| EVERY_SIX_HOURS | EverySixHours |
| DAILY | Daily |
| WEEKLY | Weekly |
| MONTHLY | Monthly |
| Value |
|---|
EverySixHours |
Daily |
Weekly |
Monthly |
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:KnowledgeSource myKnowledgeSource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0