ExportDeliveryDestination Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.ExportDeliveryDestinationTypeConverter))]
public class ExportDeliveryDestination : Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExportDeliveryDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExportDeliveryDestinationInternal
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.ExportDeliveryDestinationTypeConverter))>]
type ExportDeliveryDestination = class
interface IExportDeliveryDestination
interface IJsonSerializable
interface IExportDeliveryDestinationInternal
Public Class ExportDeliveryDestination
Implements IExportDeliveryDestination, IExportDeliveryDestinationInternal
- Inheritance
-
ExportDeliveryDestination
- Attributes
- Implements
Constructors
ExportDeliveryDestination() |
Creates an new ExportDeliveryDestination instance. |
Properties
Container |
The name of the container where exports will be uploaded. If the container does not exist it will be created. |
ResourceId |
The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified. |
RootFolderPath |
The name of the directory where exports will be uploaded. |
SasToken |
A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified. |
StorageAccount |
The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId. |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ExportDeliveryDestination. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ExportDeliveryDestination. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExportDeliveryDestination. |
FromJsonString(String) |
Creates a new instance of ExportDeliveryDestination, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of ExportDeliveryDestination into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |