1. Packages
  2. Azure Native
  3. API Docs
  4. costmanagement
  5. getTagInheritanceSetting
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.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.costmanagement.getTagInheritanceSetting

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.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Get the setting from the given scope by name.

Uses Azure REST API version 2022-10-05-preview.

Using getTagInheritanceSetting

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 getTagInheritanceSetting(args: GetTagInheritanceSettingArgs, opts?: InvokeOptions): Promise<GetTagInheritanceSettingResult>
function getTagInheritanceSettingOutput(args: GetTagInheritanceSettingOutputArgs, opts?: InvokeOptions): Output<GetTagInheritanceSettingResult>
Copy
def get_tag_inheritance_setting(scope: Optional[str] = None,
                                type: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetTagInheritanceSettingResult
def get_tag_inheritance_setting_output(scope: Optional[pulumi.Input[str]] = None,
                                type: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetTagInheritanceSettingResult]
Copy
func LookupTagInheritanceSetting(ctx *Context, args *LookupTagInheritanceSettingArgs, opts ...InvokeOption) (*LookupTagInheritanceSettingResult, error)
func LookupTagInheritanceSettingOutput(ctx *Context, args *LookupTagInheritanceSettingOutputArgs, opts ...InvokeOption) LookupTagInheritanceSettingResultOutput
Copy

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

public static class GetTagInheritanceSetting 
{
    public static Task<GetTagInheritanceSettingResult> InvokeAsync(GetTagInheritanceSettingArgs args, InvokeOptions? opts = null)
    public static Output<GetTagInheritanceSettingResult> Invoke(GetTagInheritanceSettingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTagInheritanceSettingResult> getTagInheritanceSetting(GetTagInheritanceSettingArgs args, InvokeOptions options)
public static Output<GetTagInheritanceSettingResult> getTagInheritanceSetting(GetTagInheritanceSettingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:costmanagement:getTagInheritanceSetting
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Scope
This property is required.
Changes to this property will trigger replacement.
string
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
Type
This property is required.
Changes to this property will trigger replacement.
string
Setting type.
Scope
This property is required.
Changes to this property will trigger replacement.
string
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
Type
This property is required.
Changes to this property will trigger replacement.
string
Setting type.
scope
This property is required.
Changes to this property will trigger replacement.
String
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
type
This property is required.
Changes to this property will trigger replacement.
String
Setting type.
scope
This property is required.
Changes to this property will trigger replacement.
string
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
type
This property is required.
Changes to this property will trigger replacement.
string
Setting type.
scope
This property is required.
Changes to this property will trigger replacement.
str
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
type
This property is required.
Changes to this property will trigger replacement.
str
Setting type.
scope
This property is required.
Changes to this property will trigger replacement.
String
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
type
This property is required.
Changes to this property will trigger replacement.
String
Setting type.

getTagInheritanceSetting Result

The following output properties are available:

Id string
Resource Id.
Name string
Resource name.
Properties Pulumi.AzureNative.CostManagement.Outputs.TagInheritancePropertiesResponse
The properties of the tag inheritance setting.
Type string
Resource type.
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.
Id string
Resource Id.
Name string
Resource name.
Properties TagInheritancePropertiesResponse
The properties of the tag inheritance setting.
Type string
Resource type.
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.
id String
Resource Id.
name String
Resource name.
properties TagInheritancePropertiesResponse
The properties of the tag inheritance setting.
type String
Resource type.
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.
id string
Resource Id.
name string
Resource name.
properties TagInheritancePropertiesResponse
The properties of the tag inheritance setting.
type string
Resource type.
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.
id str
Resource Id.
name str
Resource name.
properties TagInheritancePropertiesResponse
The properties of the tag inheritance setting.
type str
Resource type.
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.
id String
Resource Id.
name String
Resource name.
properties Property Map
The properties of the tag inheritance setting.
type String
Resource type.
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.

Supporting Types

TagInheritancePropertiesResponse

PreferContainerTags This property is required. bool
When resource has the same tag as subscription or resource group and this property is set to true - the subscription or resource group tag will be applied. If subscription and resource group tags are also the same, subscription tag will be applied.
PreferContainerTags This property is required. bool
When resource has the same tag as subscription or resource group and this property is set to true - the subscription or resource group tag will be applied. If subscription and resource group tags are also the same, subscription tag will be applied.
preferContainerTags This property is required. Boolean
When resource has the same tag as subscription or resource group and this property is set to true - the subscription or resource group tag will be applied. If subscription and resource group tags are also the same, subscription tag will be applied.
preferContainerTags This property is required. boolean
When resource has the same tag as subscription or resource group and this property is set to true - the subscription or resource group tag will be applied. If subscription and resource group tags are also the same, subscription tag will be applied.
prefer_container_tags This property is required. bool
When resource has the same tag as subscription or resource group and this property is set to true - the subscription or resource group tag will be applied. If subscription and resource group tags are also the same, subscription tag will be applied.
preferContainerTags This property is required. Boolean
When resource has the same tag as subscription or resource group and this property is set to true - the subscription or resource group tag will be applied. If subscription and resource group tags are also the same, subscription tag will be applied.

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.90.0 published on Thursday, Mar 27, 2025 by Pulumi