datadog.AzureUcConfig
Provides a Datadog Azure Usage Cost configuration resource. This can be used to create and manage Azure Cost Export configurations for Cloud Cost Management. Azure configurations require both actual and amortized cost export settings.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
# Create new Azure Usage Cost configuration resource
example:
type: datadog:AzureUcConfig
properties:
accountId: 12345678-1234-abcd-1234-123456789012
clientId: 87654321-4321-dcba-4321-210987654321
scope: /subscriptions/12345678-1234-abcd-1234-123456789012
actualBillConfig:
- exportName: my-actual-export
exportPath: exports/actual
storageAccount: mystorageaccount
storageContainer: cost-exports
amortizedBillConfig:
- exportName: my-amortized-export
exportPath: exports/amortized
storageAccount: mystorageaccount
storageContainer: cost-exports
Create AzureUcConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureUcConfig(name: string, args: AzureUcConfigArgs, opts?: CustomResourceOptions);
@overload
def AzureUcConfig(resource_name: str,
args: AzureUcConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureUcConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
client_id: Optional[str] = None,
scope: Optional[str] = None,
actual_bill_config: Optional[AzureUcConfigActualBillConfigArgs] = None,
amortized_bill_config: Optional[AzureUcConfigAmortizedBillConfigArgs] = None)
func NewAzureUcConfig(ctx *Context, name string, args AzureUcConfigArgs, opts ...ResourceOption) (*AzureUcConfig, error)
public AzureUcConfig(string name, AzureUcConfigArgs args, CustomResourceOptions? opts = null)
public AzureUcConfig(String name, AzureUcConfigArgs args)
public AzureUcConfig(String name, AzureUcConfigArgs args, CustomResourceOptions options)
type: datadog:AzureUcConfig
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 AzureUcConfigArgs
- 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 AzureUcConfigArgs
- 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 AzureUcConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureUcConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureUcConfigArgs
- 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 azureUcConfigResource = new Datadog.AzureUcConfig("azureUcConfigResource", new()
{
AccountId = "string",
ClientId = "string",
Scope = "string",
ActualBillConfig = new Datadog.Inputs.AzureUcConfigActualBillConfigArgs
{
ExportName = "string",
ExportPath = "string",
StorageAccount = "string",
StorageContainer = "string",
},
AmortizedBillConfig = new Datadog.Inputs.AzureUcConfigAmortizedBillConfigArgs
{
ExportName = "string",
ExportPath = "string",
StorageAccount = "string",
StorageContainer = "string",
},
});
example, err := datadog.NewAzureUcConfig(ctx, "azureUcConfigResource", &datadog.AzureUcConfigArgs{
AccountId: pulumi.String("string"),
ClientId: pulumi.String("string"),
Scope: pulumi.String("string"),
ActualBillConfig: &datadog.AzureUcConfigActualBillConfigArgs{
ExportName: pulumi.String("string"),
ExportPath: pulumi.String("string"),
StorageAccount: pulumi.String("string"),
StorageContainer: pulumi.String("string"),
},
AmortizedBillConfig: &datadog.AzureUcConfigAmortizedBillConfigArgs{
ExportName: pulumi.String("string"),
ExportPath: pulumi.String("string"),
StorageAccount: pulumi.String("string"),
StorageContainer: pulumi.String("string"),
},
})
var azureUcConfigResource = new AzureUcConfig("azureUcConfigResource", AzureUcConfigArgs.builder()
.accountId("string")
.clientId("string")
.scope("string")
.actualBillConfig(AzureUcConfigActualBillConfigArgs.builder()
.exportName("string")
.exportPath("string")
.storageAccount("string")
.storageContainer("string")
.build())
.amortizedBillConfig(AzureUcConfigAmortizedBillConfigArgs.builder()
.exportName("string")
.exportPath("string")
.storageAccount("string")
.storageContainer("string")
.build())
.build());
azure_uc_config_resource = datadog.AzureUcConfig("azureUcConfigResource",
account_id="string",
client_id="string",
scope="string",
actual_bill_config={
"export_name": "string",
"export_path": "string",
"storage_account": "string",
"storage_container": "string",
},
amortized_bill_config={
"export_name": "string",
"export_path": "string",
"storage_account": "string",
"storage_container": "string",
})
const azureUcConfigResource = new datadog.AzureUcConfig("azureUcConfigResource", {
accountId: "string",
clientId: "string",
scope: "string",
actualBillConfig: {
exportName: "string",
exportPath: "string",
storageAccount: "string",
storageContainer: "string",
},
amortizedBillConfig: {
exportName: "string",
exportPath: "string",
storageAccount: "string",
storageContainer: "string",
},
});
type: datadog:AzureUcConfig
properties:
accountId: string
actualBillConfig:
exportName: string
exportPath: string
storageAccount: string
storageContainer: string
amortizedBillConfig:
exportName: string
exportPath: string
storageAccount: string
storageContainer: string
clientId: string
scope: string
AzureUcConfig 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 AzureUcConfig resource accepts the following input properties:
- Account
Id string - The tenant ID of the Azure account.
- Client
Id string - The client ID of the Azure account.
- Scope string
- The scope of your observed subscription.
- Actual
Bill AzureConfig Uc Config Actual Bill Config - Configuration for the actual cost export.
- Amortized
Bill AzureConfig Uc Config Amortized Bill Config - Configuration for the amortized cost export.
- Account
Id string - The tenant ID of the Azure account.
- Client
Id string - The client ID of the Azure account.
- Scope string
- The scope of your observed subscription.
- Actual
Bill AzureConfig Uc Config Actual Bill Config Args - Configuration for the actual cost export.
- Amortized
Bill AzureConfig Uc Config Amortized Bill Config Args - Configuration for the amortized cost export.
- account
Id String - The tenant ID of the Azure account.
- client
Id String - The client ID of the Azure account.
- scope String
- The scope of your observed subscription.
- actual
Bill AzureConfig Uc Config Actual Bill Config - Configuration for the actual cost export.
- amortized
Bill AzureConfig Uc Config Amortized Bill Config - Configuration for the amortized cost export.
- account
Id string - The tenant ID of the Azure account.
- client
Id string - The client ID of the Azure account.
- scope string
- The scope of your observed subscription.
- actual
Bill AzureConfig Uc Config Actual Bill Config - Configuration for the actual cost export.
- amortized
Bill AzureConfig Uc Config Amortized Bill Config - Configuration for the amortized cost export.
- account_
id str - The tenant ID of the Azure account.
- client_
id str - The client ID of the Azure account.
- scope str
- The scope of your observed subscription.
- actual_
bill_ Azureconfig Uc Config Actual Bill Config Args - Configuration for the actual cost export.
- amortized_
bill_ Azureconfig Uc Config Amortized Bill Config Args - Configuration for the amortized cost export.
- account
Id String - The tenant ID of the Azure account.
- client
Id String - The client ID of the Azure account.
- scope String
- The scope of your observed subscription.
- actual
Bill Property MapConfig - Configuration for the actual cost export.
- amortized
Bill Property MapConfig - Configuration for the amortized cost export.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureUcConfig resource produces the following output properties:
- Created
At string - The timestamp when the Azure Usage Cost configuration was created.
- Error
Messages List<string> - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The current status of the Azure Usage Cost configuration.
- Status
Updated stringAt - The timestamp when the configuration status was last updated.
- Updated
At string - The timestamp when the Azure Usage Cost configuration was last modified.
- Created
At string - The timestamp when the Azure Usage Cost configuration was created.
- Error
Messages []string - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The current status of the Azure Usage Cost configuration.
- Status
Updated stringAt - The timestamp when the configuration status was last updated.
- Updated
At string - The timestamp when the Azure Usage Cost configuration was last modified.
- created
At String - The timestamp when the Azure Usage Cost configuration was created.
- error
Messages List<String> - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The current status of the Azure Usage Cost configuration.
- status
Updated StringAt - The timestamp when the configuration status was last updated.
- updated
At String - The timestamp when the Azure Usage Cost configuration was last modified.
- created
At string - The timestamp when the Azure Usage Cost configuration was created.
- error
Messages string[] - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The current status of the Azure Usage Cost configuration.
- status
Updated stringAt - The timestamp when the configuration status was last updated.
- updated
At string - The timestamp when the Azure Usage Cost configuration was last modified.
- created_
at str - The timestamp when the Azure Usage Cost configuration was created.
- error_
messages Sequence[str] - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The current status of the Azure Usage Cost configuration.
- status_
updated_ strat - The timestamp when the configuration status was last updated.
- updated_
at str - The timestamp when the Azure Usage Cost configuration was last modified.
- created
At String - The timestamp when the Azure Usage Cost configuration was created.
- error
Messages List<String> - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The current status of the Azure Usage Cost configuration.
- status
Updated StringAt - The timestamp when the configuration status was last updated.
- updated
At String - The timestamp when the Azure Usage Cost configuration was last modified.
Look up Existing AzureUcConfig Resource
Get an existing AzureUcConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AzureUcConfigState, opts?: CustomResourceOptions): AzureUcConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
actual_bill_config: Optional[AzureUcConfigActualBillConfigArgs] = None,
amortized_bill_config: Optional[AzureUcConfigAmortizedBillConfigArgs] = None,
client_id: Optional[str] = None,
created_at: Optional[str] = None,
error_messages: Optional[Sequence[str]] = None,
scope: Optional[str] = None,
status: Optional[str] = None,
status_updated_at: Optional[str] = None,
updated_at: Optional[str] = None) -> AzureUcConfig
func GetAzureUcConfig(ctx *Context, name string, id IDInput, state *AzureUcConfigState, opts ...ResourceOption) (*AzureUcConfig, error)
public static AzureUcConfig Get(string name, Input<string> id, AzureUcConfigState? state, CustomResourceOptions? opts = null)
public static AzureUcConfig get(String name, Output<String> id, AzureUcConfigState state, CustomResourceOptions options)
resources: _: type: datadog:AzureUcConfig get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The tenant ID of the Azure account.
- Actual
Bill AzureConfig Uc Config Actual Bill Config - Configuration for the actual cost export.
- Amortized
Bill AzureConfig Uc Config Amortized Bill Config - Configuration for the amortized cost export.
- Client
Id string - The client ID of the Azure account.
- Created
At string - The timestamp when the Azure Usage Cost configuration was created.
- Error
Messages List<string> - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- Scope string
- The scope of your observed subscription.
- Status string
- The current status of the Azure Usage Cost configuration.
- Status
Updated stringAt - The timestamp when the configuration status was last updated.
- Updated
At string - The timestamp when the Azure Usage Cost configuration was last modified.
- Account
Id string - The tenant ID of the Azure account.
- Actual
Bill AzureConfig Uc Config Actual Bill Config Args - Configuration for the actual cost export.
- Amortized
Bill AzureConfig Uc Config Amortized Bill Config Args - Configuration for the amortized cost export.
- Client
Id string - The client ID of the Azure account.
- Created
At string - The timestamp when the Azure Usage Cost configuration was created.
- Error
Messages []string - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- Scope string
- The scope of your observed subscription.
- Status string
- The current status of the Azure Usage Cost configuration.
- Status
Updated stringAt - The timestamp when the configuration status was last updated.
- Updated
At string - The timestamp when the Azure Usage Cost configuration was last modified.
- account
Id String - The tenant ID of the Azure account.
- actual
Bill AzureConfig Uc Config Actual Bill Config - Configuration for the actual cost export.
- amortized
Bill AzureConfig Uc Config Amortized Bill Config - Configuration for the amortized cost export.
- client
Id String - The client ID of the Azure account.
- created
At String - The timestamp when the Azure Usage Cost configuration was created.
- error
Messages List<String> - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- scope String
- The scope of your observed subscription.
- status String
- The current status of the Azure Usage Cost configuration.
- status
Updated StringAt - The timestamp when the configuration status was last updated.
- updated
At String - The timestamp when the Azure Usage Cost configuration was last modified.
- account
Id string - The tenant ID of the Azure account.
- actual
Bill AzureConfig Uc Config Actual Bill Config - Configuration for the actual cost export.
- amortized
Bill AzureConfig Uc Config Amortized Bill Config - Configuration for the amortized cost export.
- client
Id string - The client ID of the Azure account.
- created
At string - The timestamp when the Azure Usage Cost configuration was created.
- error
Messages string[] - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- scope string
- The scope of your observed subscription.
- status string
- The current status of the Azure Usage Cost configuration.
- status
Updated stringAt - The timestamp when the configuration status was last updated.
- updated
At string - The timestamp when the Azure Usage Cost configuration was last modified.
- account_
id str - The tenant ID of the Azure account.
- actual_
bill_ Azureconfig Uc Config Actual Bill Config Args - Configuration for the actual cost export.
- amortized_
bill_ Azureconfig Uc Config Amortized Bill Config Args - Configuration for the amortized cost export.
- client_
id str - The client ID of the Azure account.
- created_
at str - The timestamp when the Azure Usage Cost configuration was created.
- error_
messages Sequence[str] - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- scope str
- The scope of your observed subscription.
- status str
- The current status of the Azure Usage Cost configuration.
- status_
updated_ strat - The timestamp when the configuration status was last updated.
- updated_
at str - The timestamp when the Azure Usage Cost configuration was last modified.
- account
Id String - The tenant ID of the Azure account.
- actual
Bill Property MapConfig - Configuration for the actual cost export.
- amortized
Bill Property MapConfig - Configuration for the amortized cost export.
- client
Id String - The client ID of the Azure account.
- created
At String - The timestamp when the Azure Usage Cost configuration was created.
- error
Messages List<String> - List of error messages if the Azure Usage Cost configuration encountered any issues during setup or data processing.
- scope String
- The scope of your observed subscription.
- status String
- The current status of the Azure Usage Cost configuration.
- status
Updated StringAt - The timestamp when the configuration status was last updated.
- updated
At String - The timestamp when the Azure Usage Cost configuration was last modified.
Supporting Types
AzureUcConfigActualBillConfig, AzureUcConfigActualBillConfigArgs
- Export
Name string - The name of the configured Azure Export.
- Export
Path string - The path where the Azure Export is saved.
- Storage
Account string - The name of the storage account where the Azure Export is saved.
- Storage
Container string - The name of the storage container where the Azure Export is saved.
- Export
Name string - The name of the configured Azure Export.
- Export
Path string - The path where the Azure Export is saved.
- Storage
Account string - The name of the storage account where the Azure Export is saved.
- Storage
Container string - The name of the storage container where the Azure Export is saved.
- export
Name String - The name of the configured Azure Export.
- export
Path String - The path where the Azure Export is saved.
- storage
Account String - The name of the storage account where the Azure Export is saved.
- storage
Container String - The name of the storage container where the Azure Export is saved.
- export
Name string - The name of the configured Azure Export.
- export
Path string - The path where the Azure Export is saved.
- storage
Account string - The name of the storage account where the Azure Export is saved.
- storage
Container string - The name of the storage container where the Azure Export is saved.
- export_
name str - The name of the configured Azure Export.
- export_
path str - The path where the Azure Export is saved.
- storage_
account str - The name of the storage account where the Azure Export is saved.
- storage_
container str - The name of the storage container where the Azure Export is saved.
- export
Name String - The name of the configured Azure Export.
- export
Path String - The path where the Azure Export is saved.
- storage
Account String - The name of the storage account where the Azure Export is saved.
- storage
Container String - The name of the storage container where the Azure Export is saved.
AzureUcConfigAmortizedBillConfig, AzureUcConfigAmortizedBillConfigArgs
- Export
Name string - The name of the configured Azure Export.
- Export
Path string - The path where the Azure Export is saved.
- Storage
Account string - The name of the storage account where the Azure Export is saved.
- Storage
Container string - The name of the storage container where the Azure Export is saved.
- Export
Name string - The name of the configured Azure Export.
- Export
Path string - The path where the Azure Export is saved.
- Storage
Account string - The name of the storage account where the Azure Export is saved.
- Storage
Container string - The name of the storage container where the Azure Export is saved.
- export
Name String - The name of the configured Azure Export.
- export
Path String - The path where the Azure Export is saved.
- storage
Account String - The name of the storage account where the Azure Export is saved.
- storage
Container String - The name of the storage container where the Azure Export is saved.
- export
Name string - The name of the configured Azure Export.
- export
Path string - The path where the Azure Export is saved.
- storage
Account string - The name of the storage account where the Azure Export is saved.
- storage
Container string - The name of the storage container where the Azure Export is saved.
- export_
name str - The name of the configured Azure Export.
- export_
path str - The path where the Azure Export is saved.
- storage_
account str - The name of the storage account where the Azure Export is saved.
- storage_
container str - The name of the storage container where the Azure Export is saved.
- export
Name String - The name of the configured Azure Export.
- export
Path String - The path where the Azure Export is saved.
- storage
Account String - The name of the storage account where the Azure Export is saved.
- storage
Container String - The name of the storage container where the Azure Export is saved.
Import
The pulumi import
command can be used, for example:
$ pulumi import datadog:index/azureUcConfig:AzureUcConfig example <cloud_account_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.