Skip to main content

AzureCostManagement.Contents

Syntax​

AzureCostManagement.Contents(
scope as text,
scopeValue as text,
numberOfMonths as number,
optional parameters as record
) as table

Examples​

Example #1​

āļŠāļĄāļĄāļ•āļīāļ§āđˆāļēāļ§āļąāļ™āļ™āļĩāđ‰āļ„āļ·āļ­ 2017-6-15 āđƒāļŦāđ‰āļĢāļąāļšāļŠāļĢāļļāļ›āļ‚āđ‰āļ­āļĄāļđāļĨāļĢāļ°āļŦāļ§āđˆāļēāļ‡ 2017-5-1 āļ–āļķāļ‡ 2017-6-15

āđƒāļŦāđ‰    
enrollmentNumber = "100"
optionalParameters = [ numberOfMonth = 1 ]
āļœāļĨāļĨāļąāļžāļ˜āđŒ = AzureCostManagement.Contents(enrollmentNumber, optionalParameters)
āđƒāļ™
āļœāļĨāļĨāļąāļžāļ˜āđŒ

Result:

āļŸāļąāļ‡āļāđŒāļŠāļąāļ™āļˆāļ°āļŠāđˆāļ‡āļāļĨāļąāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļĢāļļāļ›āļĢāļ°āļŦāļ§āđˆāļēāļ‡ 2017-5-1 āļ–āļķāļ‡ 2017-6-15

Example #2​

āļŠāļĄāļĄāļ•āļīāļ§āđˆāļēāļ§āļąāļ™āļ™āļĩāđ‰āļ„āļ·āļ­ 2017-6-15 āđƒāļŦāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļĢāļļāļ›āļŠāļģāļŦāļĢāļąāļšāđ€āļ”āļ·āļ­āļ™āđ€āļĄāļĐāļēāļĒāļ™ 2017

āđƒāļŦāđ‰    
enrollmentNumber = "100"
optionalParameters = [ startBillingDataWindow = "-2", endBillingDataWindow = "-1" ]
āļœāļĨāļĨāļąāļžāļ˜āđŒ = MicrosoftAzureConsumptionInsights.Contents(enrollmentNumber, optionalParameters)
āđƒāļ™
āļœāļĨāļĨāļąāļžāļ˜āđŒ

Result:

āļŸāļąāļ‡āļāđŒāļŠāļąāļ™āļˆāļ°āļŠāđˆāļ‡āļāļĨāļąāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļĢāļ°āļŦāļ§āđˆāļēāļ‡ 2017-4-1 āđāļĨāļ° 2017-4-30

Example #3​

āļŠāļĄāļĄāļ•āļīāļ§āđˆāļēāļ§āļąāļ™āļ™āļĩāđ‰āļ„āļ·āļ­ 2017-6-15 āđƒāļŦāđ‰āļĢāļąāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļŠāļĢāļļāļ›āļˆāļēāļāđ€āļ”āļ·āļ­āļ™āđ€āļĄāļĐāļēāļĒāļ™ 2017 āļˆāļ™āļ–āļķāļ‡āļ›āļąāļˆāļˆāļļāļšāļąāļ™

āđƒāļŦāđ‰    
enrollmentNumber = "100"
optionalParameters = [ startBillingDataWindow = "-2", endBillingDataWindow = "0", dataType = "Summaries" ]
āļœāļĨāļĨāļąāļžāļ˜āđŒ = MicrosoftAzureConsumptionInsights.Contents(enrollmentNumber, optionalParameters)
āđƒāļ™
āļœāļĨāļĨāļąāļžāļ˜āđŒ

Result:

āļŸāļąāļ‡āļāđŒāļŠāļąāļ™āļˆāļ°āļŠāđˆāļ‡āļāļĨāļąāļšāļ‚āđ‰āļ­āļĄāļđāļĨāļĢāļ°āļŦāļ§āđˆāļēāļ‡ 2017-4-1 āļ–āļķāļ‡ 2017-6-15