1. Packages
  2. Azure Native v2
  3. API Docs
  4. costmanagement
  5. getMarkupRule
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.costmanagement.getMarkupRule

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Get a markup rule by its rule name. Azure REST API version: 2022-10-05-preview.

Using getMarkupRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMarkupRule(args: GetMarkupRuleArgs, opts?: InvokeOptions): Promise<GetMarkupRuleResult>
function getMarkupRuleOutput(args: GetMarkupRuleOutputArgs, opts?: InvokeOptions): Output<GetMarkupRuleResult>
Copy
def get_markup_rule(billing_account_id: Optional[str] = None,
                    billing_profile_id: Optional[str] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetMarkupRuleResult
def get_markup_rule_output(billing_account_id: Optional[pulumi.Input[str]] = None,
                    billing_profile_id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetMarkupRuleResult]
Copy
func LookupMarkupRule(ctx *Context, args *LookupMarkupRuleArgs, opts ...InvokeOption) (*LookupMarkupRuleResult, error)
func LookupMarkupRuleOutput(ctx *Context, args *LookupMarkupRuleOutputArgs, opts ...InvokeOption) LookupMarkupRuleResultOutput
Copy

> Note: This function is named LookupMarkupRule in the Go SDK.

public static class GetMarkupRule 
{
    public static Task<GetMarkupRuleResult> InvokeAsync(GetMarkupRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetMarkupRuleResult> Invoke(GetMarkupRuleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMarkupRuleResult> getMarkupRule(GetMarkupRuleArgs args, InvokeOptions options)
public static Output<GetMarkupRuleResult> getMarkupRule(GetMarkupRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:costmanagement:getMarkupRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

BillingAccountId
This property is required.
Changes to this property will trigger replacement.
string
BillingAccount ID
BillingProfileId
This property is required.
Changes to this property will trigger replacement.
string
BillingProfile ID
Name
This property is required.
Changes to this property will trigger replacement.
string
Markup rule name.
BillingAccountId
This property is required.
Changes to this property will trigger replacement.
string
BillingAccount ID
BillingProfileId
This property is required.
Changes to this property will trigger replacement.
string
BillingProfile ID
Name
This property is required.
Changes to this property will trigger replacement.
string
Markup rule name.
billingAccountId
This property is required.
Changes to this property will trigger replacement.
String
BillingAccount ID
billingProfileId
This property is required.
Changes to this property will trigger replacement.
String
BillingProfile ID
name
This property is required.
Changes to this property will trigger replacement.
String
Markup rule name.
billingAccountId
This property is required.
Changes to this property will trigger replacement.
string
BillingAccount ID
billingProfileId
This property is required.
Changes to this property will trigger replacement.
string
BillingProfile ID
name
This property is required.
Changes to this property will trigger replacement.
string
Markup rule name.
billing_account_id
This property is required.
Changes to this property will trigger replacement.
str
BillingAccount ID
billing_profile_id
This property is required.
Changes to this property will trigger replacement.
str
BillingProfile ID
name
This property is required.
Changes to this property will trigger replacement.
str
Markup rule name.
billingAccountId
This property is required.
Changes to this property will trigger replacement.
String
BillingAccount ID
billingProfileId
This property is required.
Changes to this property will trigger replacement.
String
BillingProfile ID
name
This property is required.
Changes to this property will trigger replacement.
String
Markup rule name.

getMarkupRule Result

The following output properties are available:

CustomerDetails Pulumi.AzureNative.CostManagement.Outputs.CustomerMetadataResponse
Customer information for the markup rule.
Id string
Resource Id.
Name string
Resource name.
Percentage double
The markup percentage of the rule.
StartDate string
Starting date of the markup rule.
Type string
Resource type.
Description string
The description of the markup rule.
ETag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
EndDate string
Ending date of the markup rule.
CustomerDetails CustomerMetadataResponse
Customer information for the markup rule.
Id string
Resource Id.
Name string
Resource name.
Percentage float64
The markup percentage of the rule.
StartDate string
Starting date of the markup rule.
Type string
Resource type.
Description string
The description of the markup rule.
ETag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
EndDate string
Ending date of the markup rule.
customerDetails CustomerMetadataResponse
Customer information for the markup rule.
id String
Resource Id.
name String
Resource name.
percentage Double
The markup percentage of the rule.
startDate String
Starting date of the markup rule.
type String
Resource type.
description String
The description of the markup rule.
eTag String
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
endDate String
Ending date of the markup rule.
customerDetails CustomerMetadataResponse
Customer information for the markup rule.
id string
Resource Id.
name string
Resource name.
percentage number
The markup percentage of the rule.
startDate string
Starting date of the markup rule.
type string
Resource type.
description string
The description of the markup rule.
eTag string
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
endDate string
Ending date of the markup rule.
customer_details CustomerMetadataResponse
Customer information for the markup rule.
id str
Resource Id.
name str
Resource name.
percentage float
The markup percentage of the rule.
start_date str
Starting date of the markup rule.
type str
Resource type.
description str
The description of the markup rule.
e_tag str
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
end_date str
Ending date of the markup rule.
customerDetails Property Map
Customer information for the markup rule.
id String
Resource Id.
name String
Resource name.
percentage Number
The markup percentage of the rule.
startDate String
Starting date of the markup rule.
type String
Resource type.
description String
The description of the markup rule.
eTag String
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
endDate String
Ending date of the markup rule.

Supporting Types

CustomerMetadataResponse

BillingAccountId This property is required. string
Customer billing account id
BillingProfileId This property is required. string
Customer billing profile id
BillingAccountId This property is required. string
Customer billing account id
BillingProfileId This property is required. string
Customer billing profile id
billingAccountId This property is required. String
Customer billing account id
billingProfileId This property is required. String
Customer billing profile id
billingAccountId This property is required. string
Customer billing account id
billingProfileId This property is required. string
Customer billing profile id
billing_account_id This property is required. str
Customer billing account id
billing_profile_id This property is required. str
Customer billing profile id
billingAccountId This property is required. String
Customer billing account id
billingProfileId This property is required. String
Customer billing profile id

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi