This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.costmanagement.getMarkupRule
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 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>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]func LookupMarkupRule(ctx *Context, args *LookupMarkupRuleArgs, opts ...InvokeOption) (*LookupMarkupRuleResult, error)
func LookupMarkupRuleOutput(ctx *Context, args *LookupMarkupRuleOutputArgs, opts ...InvokeOption) LookupMarkupRuleResultOutput> 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)
}public static CompletableFuture<GetMarkupRuleResult> getMarkupRule(GetMarkupRuleArgs args, InvokeOptions options)
public static Output<GetMarkupRuleResult> getMarkupRule(GetMarkupRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:costmanagement:getMarkupRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BillingAccount stringId 
- BillingAccount ID
- BillingProfile stringId 
- BillingProfile ID
- Name string
- Markup rule name.
- BillingAccount stringId 
- BillingAccount ID
- BillingProfile stringId 
- BillingProfile ID
- Name string
- Markup rule name.
- billingAccount StringId 
- BillingAccount ID
- billingProfile StringId 
- BillingProfile ID
- name String
- Markup rule name.
- billingAccount stringId 
- BillingAccount ID
- billingProfile stringId 
- BillingProfile ID
- name string
- Markup rule name.
- billing_account_ strid 
- BillingAccount ID
- billing_profile_ strid 
- BillingProfile ID
- name str
- Markup rule name.
- billingAccount StringId 
- BillingAccount ID
- billingProfile StringId 
- BillingProfile ID
- name String
- Markup rule name.
getMarkupRule Result
The following output properties are available:
- CustomerDetails Pulumi.Azure Native. Cost Management. Outputs. Customer Metadata Response 
- 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 CustomerMetadata Response 
- 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 CustomerMetadata Response 
- 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 CustomerMetadata Response 
- 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 CustomerMetadata Response 
- 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  
- BillingAccount stringId 
- Customer billing account id
- BillingProfile stringId 
- Customer billing profile id
- BillingAccount stringId 
- Customer billing account id
- BillingProfile stringId 
- Customer billing profile id
- billingAccount StringId 
- Customer billing account id
- billingProfile StringId 
- Customer billing profile id
- billingAccount stringId 
- Customer billing account id
- billingProfile stringId 
- Customer billing profile id
- billing_account_ strid 
- Customer billing account id
- billing_profile_ strid 
- Customer billing profile id
- billingAccount StringId 
- Customer billing account id
- billingProfile StringId 
- Customer billing profile id
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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi