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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
Type string | Pulumi.Azure Native. Cdn. Knowledge Source Type - Format or origin of the knowledge source.
- Url string
- Endpoint or location of the knowledge source.
- Web
Agent stringName - The name of the web agent.
- Description string
- Description of the knowledge source.
- Knowledge
Source stringName - The name of the knowledge source.
- Update
Frequency string | Pulumi.Azure Native. Cdn. Knowledge Source Update Frequency - Specifies the units of time for scheduling update intervals for the knowledge source.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
Type string | KnowledgeSource Type - Format or origin of the knowledge source.
- Url string
- Endpoint or location of the knowledge source.
- Web
Agent stringName - The name of the web agent.
- Description string
- Description of the knowledge source.
- Knowledge
Source stringName - The name of the knowledge source.
- Update
Frequency string | KnowledgeSource Update Frequency - Specifies the units of time for scheduling update intervals for the knowledge source.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
Type String | KnowledgeSource Type - Format or origin of the knowledge source.
- url String
- Endpoint or location of the knowledge source.
- web
Agent StringName - The name of the web agent.
- description String
- Description of the knowledge source.
- knowledge
Source StringName - The name of the knowledge source.
- update
Frequency String | KnowledgeSource Update Frequency - Specifies the units of time for scheduling update intervals for the knowledge source.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- source
Type string | KnowledgeSource Type - Format or origin of the knowledge source.
- url string
- Endpoint or location of the knowledge source.
- web
Agent stringName - The name of the web agent.
- description string
- Description of the knowledge source.
- knowledge
Source stringName - The name of the knowledge source.
- update
Frequency string | KnowledgeSource Update Frequency - Specifies the units of time for scheduling update intervals for the knowledge source.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- source_
type str | KnowledgeSource Type - Format or origin of the knowledge source.
- url str
- Endpoint or location of the knowledge source.
- web_
agent_ strname - The name of the web agent.
- description str
- Description of the knowledge source.
- knowledge_
source_ strname - The name of the knowledge source.
- update_
frequency str | KnowledgeSource Update Frequency - Specifies the units of time for scheduling update intervals for the knowledge source.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
Type String | "SchemaOrg Markup" | "Rss Feeds" | "Sitemap" - Format or origin of the knowledge source.
- url String
- Endpoint or location of the knowledge source.
- web
Agent StringName - The name of the web agent.
- description String
- Description of the knowledge source.
- knowledge
Source StringName - The name of the knowledge source.
- update
Frequency String | "EverySix Hours" | "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:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Refreshed stringTime - 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 Pulumi.Azure Native. Cdn. Outputs. System Data Response - 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 stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Refreshed stringTime - 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 SystemData Response - 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 StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Refreshed StringTime - 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 SystemData Response - 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 stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Refreshed stringTime - 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 SystemData Response - 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_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
refreshed_ strtime - 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 SystemData Response - 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"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Refreshed StringTime - 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 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
- Schema
Org Markup - SchemaOrgMarkup
- Rss
Feeds - RssFeeds
- Sitemap
- Sitemap
- Knowledge
Source Type Schema Org Markup - SchemaOrgMarkup
- Knowledge
Source Type Rss Feeds - RssFeeds
- Knowledge
Source Type Sitemap - Sitemap
- Schema
Org Markup - SchemaOrgMarkup
- Rss
Feeds - RssFeeds
- Sitemap
- Sitemap
- Schema
Org Markup - SchemaOrgMarkup
- Rss
Feeds - RssFeeds
- Sitemap
- Sitemap
- SCHEMA_ORG_MARKUP
- SchemaOrgMarkup
- RSS_FEEDS
- RssFeeds
- SITEMAP
- Sitemap
- "Schema
Org Markup" - SchemaOrgMarkup
- "Rss
Feeds" - RssFeeds
- "Sitemap"
- Sitemap
KnowledgeSourceUpdateFrequency, KnowledgeSourceUpdateFrequencyArgs
- Every
Six Hours - EverySixHours
- Daily
- Daily
- Weekly
- Weekly
- Monthly
- Monthly
- Knowledge
Source Update Frequency Every Six Hours - EverySixHours
- Knowledge
Source Update Frequency Daily - Daily
- Knowledge
Source Update Frequency Weekly - Weekly
- Knowledge
Source Update Frequency Monthly - Monthly
- Every
Six Hours - EverySixHours
- Daily
- Daily
- Weekly
- Weekly
- Monthly
- Monthly
- Every
Six Hours - EverySixHours
- Daily
- Daily
- Weekly
- Weekly
- Monthly
- Monthly
- EVERY_SIX_HOURS
- EverySixHours
- DAILY
- Daily
- WEEKLY
- Weekly
- MONTHLY
- Monthly
- "Every
Six Hours" - EverySixHours
- "Daily"
- Daily
- "Weekly"
- Weekly
- "Monthly"
- Monthly
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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
