1. Packages
  2. Azure Native
  3. API Docs
  4. cdn
  5. KnowledgeSource
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi

    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
    	})
    }
    
    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.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var 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

    new KnowledgeSource(name: string, args: KnowledgeSourceArgs, opts?: CustomResourceOptions);
    @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)
    func NewKnowledgeSource(ctx *Context, name string, args KnowledgeSourceArgs, opts ...ResourceOption) (*KnowledgeSource, error)
    public KnowledgeSource(string name, KnowledgeSourceArgs args, CustomResourceOptions? opts = null)
    public KnowledgeSource(String name, KnowledgeSourceArgs args)
    public KnowledgeSource(String name, KnowledgeSourceArgs args, CustomResourceOptions options)
    
    type: azure-native:cdn:KnowledgeSource
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args KnowledgeSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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.
    opts CustomResourceOptions
    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"),
    })
    
    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.

    Inputs

    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:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SourceType string | Pulumi.AzureNative.Cdn.KnowledgeSourceType
    Format or origin of the knowledge source.
    Url string
    Endpoint or location of the knowledge source.
    WebAgentName string
    The name of the web agent.
    Description string
    Description of the knowledge source.
    KnowledgeSourceName string
    The name of the knowledge source.
    UpdateFrequency string | Pulumi.AzureNative.Cdn.KnowledgeSourceUpdateFrequency
    Specifies the units of time for scheduling update intervals for the knowledge source.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SourceType string | KnowledgeSourceType
    Format or origin of the knowledge source.
    Url string
    Endpoint or location of the knowledge source.
    WebAgentName string
    The name of the web agent.
    Description string
    Description of the knowledge source.
    KnowledgeSourceName string
    The name of the knowledge source.
    UpdateFrequency string | KnowledgeSourceUpdateFrequency
    Specifies the units of time for scheduling update intervals for the knowledge source.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sourceType String | KnowledgeSourceType
    Format or origin of the knowledge source.
    url String
    Endpoint or location of the knowledge source.
    webAgentName String
    The name of the web agent.
    description String
    Description of the knowledge source.
    knowledgeSourceName String
    The name of the knowledge source.
    updateFrequency String | KnowledgeSourceUpdateFrequency
    Specifies the units of time for scheduling update intervals for the knowledge source.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    sourceType string | KnowledgeSourceType
    Format or origin of the knowledge source.
    url string
    Endpoint or location of the knowledge source.
    webAgentName string
    The name of the web agent.
    description string
    Description of the knowledge source.
    knowledgeSourceName string
    The name of the knowledge source.
    updateFrequency string | KnowledgeSourceUpdateFrequency
    Specifies the units of time for scheduling update intervals for the knowledge source.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    source_type str | KnowledgeSourceType
    Format or origin of the knowledge source.
    url str
    Endpoint or location of the knowledge source.
    web_agent_name str
    The name of the web agent.
    description str
    Description of the knowledge source.
    knowledge_source_name str
    The name of the knowledge source.
    update_frequency str | KnowledgeSourceUpdateFrequency
    Specifies the units of time for scheduling update intervals for the knowledge source.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sourceType String | "SchemaOrgMarkup" | "RssFeeds" | "Sitemap"
    Format or origin of the knowledge source.
    url String
    Endpoint or location of the knowledge source.
    webAgentName String
    The name of the web agent.
    description String
    Description of the knowledge source.
    knowledgeSourceName String
    The name of the knowledge source.
    updateFrequency String | "EverySixHours" | "Daily" | "Weekly" | "Monthly"
    Specifies the units of time for scheduling update intervals for the knowledge source.

    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 Pulumi.AzureNative.Cdn.Outputs.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"
    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

    SchemaOrgMarkup
    SchemaOrgMarkup
    RssFeeds
    RssFeeds
    Sitemap
    Sitemap
    KnowledgeSourceTypeSchemaOrgMarkup
    SchemaOrgMarkup
    KnowledgeSourceTypeRssFeeds
    RssFeeds
    KnowledgeSourceTypeSitemap
    Sitemap
    SchemaOrgMarkup
    SchemaOrgMarkup
    RssFeeds
    RssFeeds
    Sitemap
    Sitemap
    SchemaOrgMarkup
    SchemaOrgMarkup
    RssFeeds
    RssFeeds
    Sitemap
    Sitemap
    SCHEMA_ORG_MARKUP
    SchemaOrgMarkup
    RSS_FEEDS
    RssFeeds
    SITEMAP
    Sitemap
    "SchemaOrgMarkup"
    SchemaOrgMarkup
    "RssFeeds"
    RssFeeds
    "Sitemap"
    Sitemap

    KnowledgeSourceUpdateFrequency, KnowledgeSourceUpdateFrequencyArgs

    EverySixHours
    EverySixHours
    Daily
    Daily
    Weekly
    Weekly
    Monthly
    Monthly
    KnowledgeSourceUpdateFrequencyEverySixHours
    EverySixHours
    KnowledgeSourceUpdateFrequencyDaily
    Daily
    KnowledgeSourceUpdateFrequencyWeekly
    Weekly
    KnowledgeSourceUpdateFrequencyMonthly
    Monthly
    EverySixHours
    EverySixHours
    Daily
    Daily
    Weekly
    Weekly
    Monthly
    Monthly
    EverySixHours
    EverySixHours
    Daily
    Daily
    Weekly
    Weekly
    Monthly
    Monthly
    EVERY_SIX_HOURS
    EverySixHours
    DAILY
    Daily
    WEEKLY
    Weekly
    MONTHLY
    Monthly
    "EverySixHours"
    EverySixHours
    "Daily"
    Daily
    "Weekly"
    Weekly
    "Monthly"
    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.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate