1. Packages
  2. Azure Native
  3. API Docs
  4. agfoodplatform
  5. Extension
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.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.agfoodplatform.Extension

Explore with Pulumi AI

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.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Extension resource.

Uses Azure REST API version 2023-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview.

Example Usage

Extensions_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var extension = new AzureNative.AgFoodPlatform.Extension("extension", new()
    {
        DataManagerForAgricultureResourceName = "examples-dataManagerForAgricultureResourceName",
        ExtensionId = "provider.extension",
        ResourceGroupName = "examples-rg",
    });

});
Copy
package main

import (
	agfoodplatform "github.com/pulumi/pulumi-azure-native-sdk/agfoodplatform/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := agfoodplatform.NewExtension(ctx, "extension", &agfoodplatform.ExtensionArgs{
			DataManagerForAgricultureResourceName: pulumi.String("examples-dataManagerForAgricultureResourceName"),
			ExtensionId:                           pulumi.String("provider.extension"),
			ResourceGroupName:                     pulumi.String("examples-rg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.agfoodplatform.Extension;
import com.pulumi.azurenative.agfoodplatform.ExtensionArgs;
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 extension = new Extension("extension", ExtensionArgs.builder()
            .dataManagerForAgricultureResourceName("examples-dataManagerForAgricultureResourceName")
            .extensionId("provider.extension")
            .resourceGroupName("examples-rg")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const extension = new azure_native.agfoodplatform.Extension("extension", {
    dataManagerForAgricultureResourceName: "examples-dataManagerForAgricultureResourceName",
    extensionId: "provider.extension",
    resourceGroupName: "examples-rg",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

extension = azure_native.agfoodplatform.Extension("extension",
    data_manager_for_agriculture_resource_name="examples-dataManagerForAgricultureResourceName",
    extension_id="provider.extension",
    resource_group_name="examples-rg")
Copy
resources:
  extension:
    type: azure-native:agfoodplatform:Extension
    properties:
      dataManagerForAgricultureResourceName: examples-dataManagerForAgricultureResourceName
      extensionId: provider.extension
      resourceGroupName: examples-rg
Copy

Create Extension Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Extension(name: string, args: ExtensionArgs, opts?: CustomResourceOptions);
@overload
def Extension(resource_name: str,
              args: ExtensionArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def Extension(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              data_manager_for_agriculture_resource_name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              additional_api_properties: Optional[Mapping[str, ApiPropertiesArgs]] = None,
              extension_id: Optional[str] = None,
              extension_version: Optional[str] = None)
func NewExtension(ctx *Context, name string, args ExtensionArgs, opts ...ResourceOption) (*Extension, error)
public Extension(string name, ExtensionArgs args, CustomResourceOptions? opts = null)
public Extension(String name, ExtensionArgs args)
public Extension(String name, ExtensionArgs args, CustomResourceOptions options)
type: azure-native:agfoodplatform:Extension
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ExtensionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ExtensionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ExtensionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ExtensionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ExtensionArgs
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 extensionResource = new AzureNative.AgFoodPlatform.Extension("extensionResource", new()
{
    DataManagerForAgricultureResourceName = "string",
    ResourceGroupName = "string",
    AdditionalApiProperties = 
    {
        { "string", new AzureNative.AgFoodPlatform.Inputs.ApiPropertiesArgs
        {
            ApiFreshnessTimeInMinutes = 0,
        } },
    },
    ExtensionId = "string",
    ExtensionVersion = "string",
});
Copy
example, err := agfoodplatform.NewExtension(ctx, "extensionResource", &agfoodplatform.ExtensionArgs{
	DataManagerForAgricultureResourceName: pulumi.String("string"),
	ResourceGroupName:                     pulumi.String("string"),
	AdditionalApiProperties: agfoodplatform.ApiPropertiesMap{
		"string": &agfoodplatform.ApiPropertiesArgs{
			ApiFreshnessTimeInMinutes: pulumi.Int(0),
		},
	},
	ExtensionId:      pulumi.String("string"),
	ExtensionVersion: pulumi.String("string"),
})
Copy
var extensionResource = new Extension("extensionResource", ExtensionArgs.builder()
    .dataManagerForAgricultureResourceName("string")
    .resourceGroupName("string")
    .additionalApiProperties(Map.of("string", Map.of("apiFreshnessTimeInMinutes", 0)))
    .extensionId("string")
    .extensionVersion("string")
    .build());
Copy
extension_resource = azure_native.agfoodplatform.Extension("extensionResource",
    data_manager_for_agriculture_resource_name="string",
    resource_group_name="string",
    additional_api_properties={
        "string": {
            "api_freshness_time_in_minutes": 0,
        },
    },
    extension_id="string",
    extension_version="string")
Copy
const extensionResource = new azure_native.agfoodplatform.Extension("extensionResource", {
    dataManagerForAgricultureResourceName: "string",
    resourceGroupName: "string",
    additionalApiProperties: {
        string: {
            apiFreshnessTimeInMinutes: 0,
        },
    },
    extensionId: "string",
    extensionVersion: "string",
});
Copy
type: azure-native:agfoodplatform:Extension
properties:
    additionalApiProperties:
        string:
            apiFreshnessTimeInMinutes: 0
    dataManagerForAgricultureResourceName: string
    extensionId: string
    extensionVersion: string
    resourceGroupName: string
Copy

Extension 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 Extension resource accepts the following input properties:

DataManagerForAgricultureResourceName
This property is required.
Changes to this property will trigger replacement.
string
DataManagerForAgriculture resource name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AdditionalApiProperties Dictionary<string, Pulumi.AzureNative.AgFoodPlatform.Inputs.ApiPropertiesArgs>
Additional Api Properties.
ExtensionId Changes to this property will trigger replacement. string
Id of extension resource.
ExtensionVersion string
Extension Version.
DataManagerForAgricultureResourceName
This property is required.
Changes to this property will trigger replacement.
string
DataManagerForAgriculture resource name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AdditionalApiProperties map[string]ApiPropertiesArgs
Additional Api Properties.
ExtensionId Changes to this property will trigger replacement. string
Id of extension resource.
ExtensionVersion string
Extension Version.
dataManagerForAgricultureResourceName
This property is required.
Changes to this property will trigger replacement.
String
DataManagerForAgriculture resource name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
additionalApiProperties Map<String,ApiPropertiesArgs>
Additional Api Properties.
extensionId Changes to this property will trigger replacement. String
Id of extension resource.
extensionVersion String
Extension Version.
dataManagerForAgricultureResourceName
This property is required.
Changes to this property will trigger replacement.
string
DataManagerForAgriculture resource name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
additionalApiProperties {[key: string]: ApiPropertiesArgs}
Additional Api Properties.
extensionId Changes to this property will trigger replacement. string
Id of extension resource.
extensionVersion string
Extension Version.
data_manager_for_agriculture_resource_name
This property is required.
Changes to this property will trigger replacement.
str
DataManagerForAgriculture resource name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
additional_api_properties Mapping[str, ApiPropertiesArgs]
Additional Api Properties.
extension_id Changes to this property will trigger replacement. str
Id of extension resource.
extension_version str
Extension Version.
dataManagerForAgricultureResourceName
This property is required.
Changes to this property will trigger replacement.
String
DataManagerForAgriculture resource name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
additionalApiProperties Map<Property Map>
Additional Api Properties.
extensionId Changes to this property will trigger replacement. String
Id of extension resource.
extensionVersion String
Extension Version.

Outputs

All input properties are implicitly available as output properties. Additionally, the Extension resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
ETag string
The ETag value to implement optimistic concurrency.
ExtensionApiDocsLink string
Extension api docs link.
ExtensionAuthLink string
Extension auth link.
ExtensionCategory string
Extension category. e.g. weather/sensor/satellite.
Id string
The provider-assigned unique ID for this managed resource.
InstalledExtensionVersion string
Installed extension version.
Name string
The name of the resource
SystemData Pulumi.AzureNative.AgFoodPlatform.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.
ETag string
The ETag value to implement optimistic concurrency.
ExtensionApiDocsLink string
Extension api docs link.
ExtensionAuthLink string
Extension auth link.
ExtensionCategory string
Extension category. e.g. weather/sensor/satellite.
Id string
The provider-assigned unique ID for this managed resource.
InstalledExtensionVersion string
Installed extension version.
Name string
The name of the resource
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.
eTag String
The ETag value to implement optimistic concurrency.
extensionApiDocsLink String
Extension api docs link.
extensionAuthLink String
Extension auth link.
extensionCategory String
Extension category. e.g. weather/sensor/satellite.
id String
The provider-assigned unique ID for this managed resource.
installedExtensionVersion String
Installed extension version.
name String
The name of the resource
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.
eTag string
The ETag value to implement optimistic concurrency.
extensionApiDocsLink string
Extension api docs link.
extensionAuthLink string
Extension auth link.
extensionCategory string
Extension category. e.g. weather/sensor/satellite.
id string
The provider-assigned unique ID for this managed resource.
installedExtensionVersion string
Installed extension version.
name string
The name of the resource
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.
e_tag str
The ETag value to implement optimistic concurrency.
extension_api_docs_link str
Extension api docs link.
extension_auth_link str
Extension auth link.
extension_category str
Extension category. e.g. weather/sensor/satellite.
id str
The provider-assigned unique ID for this managed resource.
installed_extension_version str
Installed extension version.
name str
The name of the resource
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.
eTag String
The ETag value to implement optimistic concurrency.
extensionApiDocsLink String
Extension api docs link.
extensionAuthLink String
Extension auth link.
extensionCategory String
Extension category. e.g. weather/sensor/satellite.
id String
The provider-assigned unique ID for this managed resource.
installedExtensionVersion String
Installed extension version.
name String
The name of the resource
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

ApiProperties
, ApiPropertiesArgs

ApiFreshnessTimeInMinutes int
Interval in minutes for which the weather data for the api needs to be refreshed.
ApiFreshnessTimeInMinutes int
Interval in minutes for which the weather data for the api needs to be refreshed.
apiFreshnessTimeInMinutes Integer
Interval in minutes for which the weather data for the api needs to be refreshed.
apiFreshnessTimeInMinutes number
Interval in minutes for which the weather data for the api needs to be refreshed.
api_freshness_time_in_minutes int
Interval in minutes for which the weather data for the api needs to be refreshed.
apiFreshnessTimeInMinutes Number
Interval in minutes for which the weather data for the api needs to be refreshed.

ApiPropertiesResponse
, ApiPropertiesResponseArgs

ApiFreshnessTimeInMinutes int
Interval in minutes for which the weather data for the api needs to be refreshed.
ApiFreshnessTimeInMinutes int
Interval in minutes for which the weather data for the api needs to be refreshed.
apiFreshnessTimeInMinutes Integer
Interval in minutes for which the weather data for the api needs to be refreshed.
apiFreshnessTimeInMinutes number
Interval in minutes for which the weather data for the api needs to be refreshed.
api_freshness_time_in_minutes int
Interval in minutes for which the weather data for the api needs to be refreshed.
apiFreshnessTimeInMinutes Number
Interval in minutes for which the weather data for the api needs to be refreshed.

SystemDataResponse
, SystemDataResponseArgs

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:agfoodplatform:Extension provider.extension /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/extensions/{extensionId} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
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.1.0 published on Tuesday, Apr 8, 2025 by Pulumi