Skip to main content

conditional_credit_contributors

Creates, updates, deletes, gets or lists a conditional_credit_contributors resource.

Overview

Nameconditional_credit_contributors
TypeResource
Idazure.billing_benefits.conditional_credit_contributors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
benefitResourceIdstringFully-qualified identifier of the benefit under applicable benefit list.
billingAccountResourceIdstringThe billing account resource ID.
displayNamestringDisplay name for the conditional credit.
endAtstring (date-time)End date of the conditional credit (derived from last milestone).
entityTypestringType of conditional credit entity. Required. CONTRIBUTOR.
milestonesarrayList of milestones copied from primary conditional credit (excludes award details).
primaryBillingAccountResourceIdstringFully-qualified billing account resource identifier of the primary CACO. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}.
primaryResourceIdstringResource ID of the primary conditional credit (required for contributors).
productCodestringProduct code for the conditional credit.
provisioningStatestringThe provisioning state of the resource. Known values are: "Unknown", "Succeeded", "Failed", "Canceled", and "Pending". (Unknown, Succeeded, Failed, Canceled, Pending)
resourceIdstringFully-qualified resource identifier of the resource. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/{benefitType}/{benefitName}.
startAtstring (date-time)Start date of the conditional credit.
statusstringThe status of the conditional credit. Known values are: "Unknown", "Scheduled", "Active", "Pending", "Failed", "Canceled", "Completed", "Stopped", and "PendingSettlement". (Unknown, Scheduled, Active, Pending, Failed, Canceled, Completed, Stopped, PendingSettlement)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
systemIdstringSystem identifier shared between primary and contributor conditional credits representing the same conditional credit program.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_from_primaryselectresource_group_name, conditional_credit_name, contributor_name, subscription_idGet a conditional credit contributor for primary service admin.
list_from_primaryselectresource_group_name, conditional_credit_name, subscription_idList contributors under a primary conditional credit for primary service admin.
list_from_applicable_conditional_creditselectbilling_account_id, system_idList contributors under applicable conditional credits for a given billing account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billing_account_idstringThe billing account Id at which the benefits are listed. Accepted format is: {rootId:orgId}. Required.
conditional_credit_namestringName of the conditional credit. Required.
contributor_namestringUnique name of contributor in the format {contributorCloudSubId}{resourceGroupName}{nameInContributorTenant}. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
system_idstringSystem ID of the primary MACC. Required.

SELECT examples

Get a conditional credit contributor for primary service admin.

SELECT
id,
name,
benefitResourceId,
billingAccountResourceId,
displayName,
endAt,
entityType,
milestones,
primaryBillingAccountResourceId,
primaryResourceId,
productCode,
provisioningState,
resourceId,
startAt,
status,
systemData,
systemId,
type
FROM azure.billing_benefits.conditional_credit_contributors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND conditional_credit_name = '{{ conditional_credit_name }}' -- required
AND contributor_name = '{{ contributor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;