You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. To allow for managed identity propagation, create a sleep time of 30 seconds.
384
+
385
+
Since the managed identity is not in the home tenant of the target scope, you must apply a delay between creating the managed identity and assigning the role to allow the managed identity to propagate between tenants. Without this delay, Azure Resource Manager might not recognize this identity when used in the template and fail within a future deployment script.
386
+
387
+
```json
388
+
{
389
+
"type": "Microsoft.Resources/deploymentScripts",
390
+
"apiVersion": "2020-10-01",
391
+
"name": "sleepScript",
392
+
"location": "[resourceGroup().location]",
393
+
"properties": {
394
+
"azPowerShellVersion": "2.0",
395
+
"scriptContent": "Start-Sleep -Seconds 30",
396
+
"timeout": "PT1H",
397
+
"cleanupPreference": "OnSuccess",
398
+
"retentionInterval": "P1D"
399
+
},
400
+
"dependsOn": [
401
+
"myManagedIdentity"
402
+
]
403
+
}
404
+
```
405
+
406
+
1. Assign the Contributor role to the managed identity at the scope of the managed resource group.
Copy file name to clipboardExpand all lines: articles/container-apps/sessions-custom-container.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ This command creates a session pool with the following settings:
89
89
|`--memory`|`0.5Gi`| The required memory. |
90
90
|`--target-port`|`80`| The session port used for ingress traffic. |
91
91
|`--cooldown-period`|`300`| The number of seconds that a session can be idle before the session is terminated. The idle period is reset each time the session's API is called. Value must be between `300` and `3600`. |
92
-
|`--network-status`| Designates whether outbound network traffic is allowed from the session. Valid values are `EgressDisabled` (default) and `EgressEnabled`. |
92
+
|`--network-status`|`EgressDisabled`|Designates whether outbound network traffic is allowed from the session. Valid values are `EgressDisabled` (default) and `EgressEnabled`. |
93
93
|`--max-sessions`|`10`| The maximum number of sessions that can be allocated at the same time. |
94
94
|`--ready-sessions`|`5`| The target number of sessions that are ready in the session pool all the time. Increase this number if sessions are allocated faster than the pool is being replenished. |
95
95
|`--env-vars`|`"key1=value1" "key2=value2"`| The environment variables to set in the container. |
When using the Workload profiles environment, you need to update the VNet to delegate the subnet to `Microsoft.App/environments`. This delegation is not needed for the Consumption-only environment.
149
+
When using the Workload profiles environment, you need to update the VNet to delegate the subnet to `Microsoft.App/environments`. Do not delegate the subnet when using the Consumption-only environment.
There are three optional networking parameters you can choose to define when calling `containerapp env create`. Use these options when you have a peered VNet with separate address ranges. Explicitly configuring these ranges ensures the addresses used by the Container Apps environment don't conflict with other ranges in the network infrastructure.
351
+
When using the Consumption-only environment, there are three optional networking parameters you can choose to define when calling `containerapp env create`. Use these options when you have a peered VNet with separate address ranges. Explicitly configuring these ranges ensures the addresses used by the Container Apps environment don't conflict with other ranges in the network infrastructure.
352
352
353
353
You must either provide values for all three of these properties, or none of them. If they aren’t provided, the values are generated for you.
Copy file name to clipboardExpand all lines: articles/cost-management-billing/automate/understand-usage-details-fields.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ titleSuffix: Microsoft Cost Management
4
4
description: This article describes the fields in the usage data files.
5
5
author: bandersmsft
6
6
ms.author: banders
7
-
ms.date: 01/07/2025
7
+
ms.date: 01/31/2025
8
8
ms.topic: conceptual
9
9
ms.service: cost-management-billing
10
10
ms.subservice: cost-management
@@ -57,6 +57,7 @@ MPA accounts have all MCA terms, in addition to the MPA terms, as described in t
57
57
| CostAllocationRuleName | EA, MCA | Name of the Cost Allocation rule that's applicable to the record. |
58
58
| CostInBillingCurrency | EA, MCA | Cost of the charge in the billing currency before credits or taxes. |
59
59
| CostInPricingCurrency | MCA | Cost of the charge in the pricing currency before credits or taxes. |
60
+
| costInUsd | MCA | Cost of the charge in USD currency before credits or taxes. |
60
61
| Currency | EA, pay-as-you-go | See `BillingCurrency`. |
61
62
| CustomerName | MPA | Name of the Microsoft Entra tenant for the customer's subscription. |
62
63
| CustomerTenantId | MPA | Identifier of the Microsoft Entra tenant of the customer's subscription. |
@@ -65,6 +66,7 @@ MPA accounts have all MCA terms, in addition to the MPA terms, as described in t
65
66
| ExchangeRateDate | MCA | Date the exchange rate was established. |
66
67
| ExchangeRatePricingToBilling | MCA | Exchange rate used to convert the cost in the pricing currency to the billing currency. |
67
68
| Frequency | All | Indicates whether a charge is expected to repeat. Charges can either happen once (**OneTime**), repeat on a monthly or yearly basis (**Recurring**), or be based on usage (**UsageBased**). |
69
+
| InstanceId | EA, pay-as-you-go | Unique identifier of the [Azure Resource Manager](/rest/api/resources/resources) resource. |
68
70
| InvoiceId | pay-as-you-go, MCA | The unique document ID listed on the invoice PDF. |
69
71
| InvoiceSection | MCA | See `InvoiceSectionName`. |
70
72
| InvoiceSectionId¹ | EA, MCA | Unique identifier for the EA department or MCA invoice section. |
@@ -83,11 +85,14 @@ MPA accounts have all MCA terms, in addition to the MPA terms, as described in t
83
85
| PartnerName | MPA | Name of the partner Microsoft Entra tenant. |
84
86
| PartnerTenantId | MPA | Identifier for the partner's Microsoft Entra tenant. |
85
87
| PartNumber¹ | EA, pay-as-you-go | Identifier used to get specific meter pricing. |
88
+
| paygCostInBillingCurrency | MCA | The amount of Pay-As-You-Go (PayG) cost before tax in billing currency. You can compute `paygCostInBillingCurrency` by multiplying `PayGPrice`, `quantity` and `exchangeRatePricingToBilling`. |
89
+
| paygCostInUsd | MCA | The amount of Pay-As-You-Go (PayG) cost before tax in USD currency. |
86
90
| PlanName | EA, pay-as-you-go | Marketplace plan name. |
91
+
| PreTaxCost| EA, pay-as-you-go | Cost of the charge before credits or taxes. You can compute `PreTaxCost` by multiplying `ResourceRate` with `UsageQuantity`. |
87
92
| PreviousInvoiceId | MCA | Reference to an original invoice if the line item is a refund. |
88
93
| PricingCurrency | MCA | Currency used when rating based on negotiated prices. |
89
94
| PricingModel | All | Identifier that indicates how the meter is priced. (Values: `OnDemand`, `Reservation`, `Spot`, and `SavingsPlan`) |
90
-
|Product| All | Name of the product. |
95
+
|ProductName| All | Name of the product. |
91
96
| ProductId¹ | MCA | Unique identifier for the product. |
92
97
| ProductOrderId | All | Unique identifier for the product order. |
93
98
| ProductOrderName | All | Unique name for the product order. |
@@ -103,21 +108,25 @@ MPA accounts have all MCA terms, in addition to the MPA terms, as described in t
103
108
| ResourceGroup | All | Name of the [resource group](../../azure-resource-manager/management/overview.md) the resource is in. Not all charges come from resources deployed to resource groups. Charges that don't have a resource group are shown as null or empty, **Others**, or **Not applicable**. |
104
109
| ResourceId¹ | All | Unique identifier of the [Azure Resource Manager](/rest/api/resources/resources) resource. |
105
110
| ResourceLocation¹ | All | The Azure region where the resource is deployed, also referred to as the datacenter location where the resource is running. For an example using Virtual Machines, see [What's the difference between MeterRegion and ResourceLocation](/azure/virtual-machines/vm-usage#what-is-the-difference-between-meter-region-and-resource-location). |
106
-
| ResourceLocationNormalized |All| Standardized format of the Azure region where the resource is deployed, also referred to as the datacenter location where the resource is running. The normalized location is used to resolve inconsistencies in region names sent by different Azure Resource Providers (RPs). |
111
+
| ResourceLocationNormalized |EA| Standardized format of the Azure region where the resource is deployed, also referred to as the datacenter location where the resource is running. The normalized location is used to resolve inconsistencies in region names sent by different Azure Resource Providers (RPs). |
107
112
| ResourceName | EA, pay-as-you-go | Name of the resource. Not all charges come from deployed resources. Charges that don't have a resource type are shown as null/empty, **Others** , or **Not applicable**. |
113
+
| ResourceRate | pay-as-you-go | The price for a given product or service that represents the actual rate that you end up paying per unit. |
108
114
| ResourceType | MCA | Type of resource instance. Not all charges come from deployed resources. Charges that don't have a resource type are shown as null/empty, **Others** , or **Not applicable**. |
109
-
| RoundingAdjustment | EA, MCA | Rounding adjustment represents the quantization that occurs during cost calculation. When the calculated costs are converted to the invoiced total, small rounding errors can occur. The rounding errors are represented as `rounding adjustment` to ensure that the costs shown in Cost Management align to the invoice. For more information, see [Rounding adjustment details](#rounding-adjustment-details). |
110
115
| ServiceFamily | MCA | Service family that the service belongs to. |
111
116
| ServiceInfo1 | All | Service-specific metadata. |
112
117
| ServiceInfo2 | All | Legacy field with optional service-specific metadata. |
118
+
| ServiceName | pay-as-you-go | The service family that the service belongs to. |
113
119
| ServicePeriodEndDate | MCA | The end date of the rating period that defined and locked pricing for the consumed or purchased service. |
114
120
| ServicePeriodStartDate | MCA | The start date of the rating period that defined and locked pricing for the consumed or purchased service. |
121
+
| ServiceTier | pay-as-you-go | Name of the service subclassification category. |
115
122
| SubscriptionId¹ | All | Unique identifier for the Azure subscription. |
116
123
| SubscriptionName | All | Name of the Azure subscription. |
117
124
| Tags¹ | All | Tags assigned to the resource. Doesn't include resource group tags. Can be used to group or distribute costs for internal chargeback. For more information, see [Organize your Azure resources with tags](https://azure.microsoft.com/updates/organize-your-azure-resources-with-tags/). |
118
125
| Term | All | Displays the term for the validity of the offer. For example: For reserved instances, it displays 12 months as the Term. For one-time purchases or recurring purchases, Term is one month (SaaS, Marketplace Support). Not applicable for Azure consumption. |
119
126
| UnitOfMeasure | All | The unit of measure for billing for the service. For example, compute services are billed per hour. |
120
127
| UnitPrice² ³| All | The price for a given product or service inclusive of any negotiated discount that you might have on top of the market price (`PayG` price column) for your contract. For more information, see [Pricing behavior in cost details](automation-ingest-usage-details-overview.md#pricing-behavior-in-cost-and-usage-details). |
128
+
| UsageDateTime | EA, pay-as-you-go | The usage date of the charge in yyyy-mm-dd format. |
129
+
| UsageQuantity | pay-as-you-go | The number of units used by the given product or service for a given day. |
121
130
122
131
¹ Fields used to build a unique ID for a single cost record. Every record in your cost details file should be considered unique.
123
132
@@ -191,6 +200,8 @@ Meter characteristics - Meters associated with IQ exhibit specific traits in the
191
200
192
201
## Rounding adjustment details
193
202
203
+
A rounding adjustment represents the quantization that occurs during cost calculation. When the calculated costs are converted to the invoiced total, small rounding errors can occur. The rounding errors are represented as `rounding adjustment` to ensure that the costs shown in Cost Management align to the invoice.
204
+
194
205
### Why do we have rounding adjustment?
195
206
196
207
Every financial system involves rounding logic, which can cause some variance. Invoices aggregate monthly costs at the meter level, with costs rounded depending on the currency. In contrast, the cost file contains costs at the resource instance level with higher precision. This difference results in a variance in the total cost between the invoice and the cost file. The rounding adjustment is provided in the cost file at an aggregated level whenever the invoice is ready, ensuring that the total costs in both files match.
0 commit comments