Cloud Connector
The Connector model definition Uses Azure REST API version 2019-03-01-preview. In version 2.x of the Azure Native provider, it used API version 2019-03-01-preview.
Example Usage
CloudConnector_Put
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cloudConnector = new AzureNative.CostManagement.CloudConnector("cloudConnector", new()
{
ConnectorName = "aws-123456789012",
CredentialsKey = "arn:aws:iam::123456789012:role/AzureCostManagementRole",
CredentialsSecret = "external-id",
DisplayName = "AWS-Consolidated-1",
ReportId = "HourlyWithResources",
});
});
Content copied to clipboard
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costmanagement.NewCloudConnector(ctx, "cloudConnector", &costmanagement.CloudConnectorArgs{
ConnectorName: pulumi.String("aws-123456789012"),
CredentialsKey: pulumi.String("arn:aws:iam::123456789012:role/AzureCostManagementRole"),
CredentialsSecret: pulumi.String("external-id"),
DisplayName: pulumi.String("AWS-Consolidated-1"),
ReportId: pulumi.String("HourlyWithResources"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.CloudConnector;
import com.pulumi.azurenative.costmanagement.CloudConnectorArgs;
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 cloudConnector = new CloudConnector("cloudConnector", CloudConnectorArgs.builder()
.connectorName("aws-123456789012")
.credentialsKey("arn:aws:iam::123456789012:role/AzureCostManagementRole")
.credentialsSecret("external-id")
.displayName("AWS-Consolidated-1")
.reportId("HourlyWithResources")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:CloudConnector aws-123456789012 /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
Connector billing model
Link copied to clipboard
Collection information
Link copied to clipboard
Credentials authentication key (eg AWS ARN)
Link copied to clipboard
Number of days remaining of trial
Link copied to clipboard
Default ManagementGroupId
Link copied to clipboard
Connector DisplayName
Link copied to clipboard
Associated ExternalBillingAccountId
Link copied to clipboard
Connector last modified datetime
Link copied to clipboard
The display name of the providerBillingAccountId as defined on the external provider
Link copied to clipboard
Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Billing SubscriptionId