diff --git a/src/CostManagement/CostManagement.Autorest/Properties/AssemblyInfo.cs b/src/CostManagement/CostManagement.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..27ba54fbf85d --- /dev/null +++ b/src/CostManagement/CostManagement.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - CostManagement")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/CostManagement/CostManagement.Autorest/README.md b/src/CostManagement/CostManagement.Autorest/README.md index 99e3c15a1c20..8ff495f6b070 100644 --- a/src/CostManagement/CostManagement.Autorest/README.md +++ b/src/CostManagement/CostManagement.Autorest/README.md @@ -54,15 +54,12 @@ module-version: 0.3.0 service-name: CostManagement -identity-correction-for-post: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + - where: + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$ remove: true - from: source-file-csharp where: $ @@ -84,18 +81,18 @@ directive: remove: true # Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header. - where: - subject: GenerateCostDetailReportOperationResult + subject: GenerateCostDetailsReportOperationResult verb: Get remove: true - where: - subject: GenerateCostDetailReportOperation + subject: GenerateCostDetailsReportOperation set: subject: DetailReport # The schema of their response body is the same - where: - subject: ByGenerateReservationDetailReportBillingAccountId|ByGenerateReservationDetailReportBillingProfileId + subject: ByGenerateReservationDetailsReportBillingAccountId|ByGenerateReservationDetailsReportBillingProfileId set: subject: ReservationDetailReport - where: @@ -220,4 +217,9 @@ directive: - ReportConfigFilterAutoGenerated - QueryFilter - ReportConfigFilter + - model-cmdlet: + - model-name: QueryFilter + cmdlet-name: New-AzCostManagementQueryFilterObject + - model-name: QueryComparisonExpression + cmdlet-name: New-AzCostManagementQueryComparisonExpressionObject ``` diff --git a/src/CostManagement/CostManagement.Autorest/custom/Invoke-AzCostManagementQuery.ps1 b/src/CostManagement/CostManagement.Autorest/custom/Invoke-AzCostManagementQuery.ps1 index fd6de5aed020..f58fe8874cc2 100644 --- a/src/CostManagement/CostManagement.Autorest/custom/Invoke-AzCostManagementQuery.ps1 +++ b/src/CostManagement/CostManagement.Autorest/custom/Invoke-AzCostManagementQuery.ps1 @@ -20,7 +20,7 @@ Query the usage data for scope defined. Query the usage data for scope defined. #> function Invoke-AzCostManagementQuery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryResult])] [CmdletBinding(DefaultParameterSetName='UsageExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UsageExpanded', Mandatory, HelpMessage="This includes 'subscriptions/{subscriptionId}/' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.")] @@ -37,27 +37,27 @@ param( ${ExternalCloudProviderId}, [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="The external cloud provider type associated with dimension/query operations.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("ExternalBillingAccounts", "ExternalSubscriptions")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType] + [System.String] # The external cloud provider type associated with dimension/query operations. # This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. ${ExternalCloudProviderType}, [Parameter(ParameterSetName='UsageExpanded', Mandatory, HelpMessage="The time frame for pulling data for the query.")] [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="The time frame for pulling data for the query.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("MonthToDate", "BillingMonthToDate", "TheLastMonth", "TheLastBillingMonth", "WeekToDate", "Custom")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + [System.String] # The time frame for pulling data for the query. # If custom, then a specific time period must be provided. ${Timeframe}, [Parameter(ParameterSetName='UsageExpanded', Mandatory, HelpMessage="The type of the query.")] [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="The type of the query.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Usage", "ActualCost", "AmortizedCost")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + [System.String] # The type of the query. ${Type}, @@ -73,7 +73,7 @@ param( [Parameter(ParameterSetName='UsageExpanded', HelpMessage="Dictionary of aggregation expression to use in the query.")] [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Dictionary of aggregation expression to use in the query.")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryDatasetAggregation]))] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryDatasetAggregation]))] [System.Collections.Hashtable] # Dictionary of aggregation expression to use in the query. # The key of each item in the dictionary is the alias for the aggregated column. @@ -83,23 +83,23 @@ param( [Parameter(ParameterSetName='UsageExpanded', HelpMessage="Has filter expression to use in the query.")] [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Has filter expression to use in the query.")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryFilter] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryFilter] # Has filter expression to use in the query. # To construct, see NOTES section for DATASETFILTER properties and create a hash table. ${DatasetFilter}, [Parameter(ParameterSetName='UsageExpanded', HelpMessage="The granularity of rows in the query.")] [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="The granularity of rows in the query.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Daily")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + [System.String] # The granularity of rows in the query. ${DatasetGranularity}, [Parameter(ParameterSetName='UsageExpanded', HelpMessage='Array of group by expression to use in the query.')] [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Array of group by expression to use in the query.")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryGrouping[]] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryGrouping[]] # Array of group by expression to use in the query. # Query can have up to 2 group by clauses. # To construct, see NOTES section for DATASETGROUPING properties and create a hash table. @@ -178,7 +178,7 @@ param( "$Scope/providers/Microsoft.CostManagement/query?api-version=$ApiVersion", "\\?&*$|&*$|(\\?)&+|(&)&+","$1$2") } - $Request = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryDefinition]::New() + $Request = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryDefinition]::New() if ($PSBoundParameters.ContainsKey('ConfigurationColumn')) { $Request.ConfigurationColumn = $ConfigurationColumn } @@ -206,7 +206,7 @@ param( if ($PSBoundParameters.ContainsKey('Type')) { $Request.Type = $Type } - $Result = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryResult]::New() + $Result = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryResult]::New() $SkipToken = $null $RowList = New-Object System.Collections.Generic.List[System.Collections.Generic.List[string]] while ($true) { @@ -228,7 +228,7 @@ param( } function Invoke-AzCostManagementUsageQueryInternal { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryResult])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryResult])] param( [System.String] ${URL}, @@ -245,16 +245,16 @@ function Invoke-AzCostManagementUsageQueryInternal { } $ResponseContent = (Invoke-AzRest -Path $URL -Payload $Payload -Method POST).Content | ConvertFrom-Json - $Result = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryResult]::New() + $Result = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryResult]::New() if ($null -ne $ResponseContent.Properties.NextLink) { $Result.NextLink = $ResponseContent.Properties.NextLink.split('&')[1] } - $ColumnList = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryColumn] + $ColumnList = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryColumn] foreach ($Column in $ResponseContent.Properties.Columns) { Write-Host $Column.ToString() - $QueryColumn = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryColumn]::New() + $QueryColumn = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryColumn]::New() $QueryColumn.Name = $Column.Name $QueryColumn.Type = $Column.Type $ColumnList.Add($QueryColumn) diff --git a/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementExport.ps1 b/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementExport.ps1 index 1a0dd3ff0f56..abdf0d4a337a 100644 --- a/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementExport.ps1 +++ b/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementExport.ps1 @@ -26,7 +26,7 @@ You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. #> function New-AzCostManagementExport { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -42,7 +42,7 @@ param( # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. ${Scope}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String[]] # Array of column names to be included in the export. @@ -50,101 +50,147 @@ param( # The available columns can vary by customer channel (see examples). ${ConfigurationColumn}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Daily")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + [System.String] # The granularity of rows in the export. # Currently only 'Daily' is supported. ${DataSetGranularity}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("MonthToDate", "BillingMonthToDate", "TheLastMonth", "TheLastBillingMonth", "WeekToDate", "Custom")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + [System.String] # The time frame for pulling data for the export. # If custom, then a specific time period must be provided. ${DefinitionTimeframe}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Usage", "ActualCost", "AmortizedCost")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + [System.String] # The type of the export. # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. ${DefinitionType}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String] # The name of the container where exports will be uploaded. + # If the container does not exist it will be created. ${DestinationContainer}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String] # The resource id of the storage account where exports will be delivered. + # This is not required if a sasToken and storageAccount are specified. ${DestinationResourceId}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String] # The name of the directory where exports will be uploaded. ${DestinationRootFolderPath}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + [System.String] + # 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. + ${DestinationSasToken}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # 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. + ${DestinationStorageAccount}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.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. + ${ETag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Csv")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] # The format of the export being delivered. # Currently only 'Csv' is supported. ${Format}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.Management.Automation.SwitchParameter] + # If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. + # Note: this option is currently available only for modern commerce scopes. + ${PartitionData}, + + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The start date of recurrence. ${RecurrencePeriodFrom}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The end date of recurrence. ${RecurrencePeriodTo}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Daily", "Weekly", "Monthly", "Annually")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + [System.String] # The schedule recurrence. ${ScheduleRecurrence}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Active", "Inactive")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + [System.String] # The status of the export's schedule. # If 'Inactive', the export's schedule is paused. ${ScheduleStatus}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The start date for export data. ${TimePeriodFrom}, - [Parameter()] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The end date for export data. ${TimePeriodTo}, + [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # Path of Json file supplied to the Create operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # Json string supplied to the Create operation + ${JsonString}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -187,38 +233,7 @@ param( ${ProxyUseDefaultCredentials} ) -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - CreateExpanded = 'Az.CostManagement.private\New-AzCostManagementExport_CreateExpanded'; - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw + process { + Az.CostManagement.internal\New-AzCostManagementExport @PSBoundParameters } } - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } -} - -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} diff --git a/src/CostManagement/CostManagement.Autorest/custom/Update-AzCostManagementExport.ps1 b/src/CostManagement/CostManagement.Autorest/custom/Update-AzCostManagementExport.ps1 index 76a686a39549..25779045f732 100644 --- a/src/CostManagement/CostManagement.Autorest/custom/Update-AzCostManagementExport.ps1 +++ b/src/CostManagement/CostManagement.Autorest/custom/Update-AzCostManagementExport.ps1 @@ -36,7 +36,7 @@ PS C:\> {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport .Notes COMPLEX PARAMETER PROPERTIES @@ -54,10 +54,12 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.costmanagement/update-azcostmanagementexport #> function Update-AzCostManagementExport { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Alias('ExportName')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] [System.String] @@ -65,6 +67,8 @@ param( ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] [System.String] # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. @@ -74,10 +78,10 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String[]] # Array of column names to be included in the export. @@ -85,108 +89,164 @@ param( # The available columns can vary by customer channel (see examples). ${ConfigurationColumn}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Daily")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + [System.String] # The granularity of rows in the export. # Currently only 'Daily' is supported. ${DataSetGranularity}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("MonthToDate", "BillingMonthToDate", "TheLastMonth", "TheLastBillingMonth", "WeekToDate", "Custom")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + [System.String] # The time frame for pulling data for the export. # If custom, then a specific time period must be provided. ${DefinitionTimeframe}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Usage", "ActualCost", "AmortizedCost")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + [System.String] # The type of the export. # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. ${DefinitionType}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String] # The name of the container where exports will be uploaded. + # If the container does not exist it will be created. ${DestinationContainer}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String] # The resource id of the storage account where exports will be delivered. + # This is not required if a sasToken and storageAccount are specified. ${DestinationResourceId}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.String] # The name of the directory where exports will be uploaded. ${DestinationRootFolderPath}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # 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. + ${DestinationSasToken}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # 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. + ${DestinationStorageAccount}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.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. ${ETag}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Csv")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + [System.String] # The format of the export being delivered. # Currently only 'Csv' is supported. ${Format}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.Management.Automation.SwitchParameter] + # If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. + # Note: this option is currently available only for modern commerce scopes. + ${PartitionData}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The start date of recurrence. ${RecurrencePeriodFrom}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The end date of recurrence. ${RecurrencePeriodTo}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Daily", "Weekly", "Monthly", "Annually")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + [System.String] # The schedule recurrence. ${ScheduleRecurrence}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PSArgumentCompleterAttribute("Active", "Inactive")] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + [System.String] # The status of the export's schedule. # If 'Inactive', the export's schedule is paused. ${ScheduleStatus}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The start date for export data. ${TimePeriodFrom}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] [System.DateTime] # The end date for export data. ${TimePeriodTo}, + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -231,72 +291,89 @@ param( process { try { - $CommonPSBoundParameters = @{} - if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) { - $CommonPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend - } - if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) { - $CommonPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend - } - if ($PSBoundParameters.ContainsKey('SubscriptionId')) { - $CommonPSBoundParameters['SubscriptionId'] = $SubscriptionId - } - if($PSBoundParameters['InputObject'] -ne $null) - { - $InputExportObject = $PSBoundParameters['InputObject'] - $getExport = Get-AzCostManagementExport -InputObject $InputExportObject @CommonPSBoundParameters - }else{ - $InputExportScope = $PSBoundParameters['Scope'] - $InputExportName = $PSBoundParameters['Name'] - $getExport = Get-AzCostManagementExport -Scope $InputExportScope -Name $InputExportName @CommonPSBoundParameters - } - - $null = $PSBoundParameters.Add("ETag",$getExport.Etag) - if($PSBoundParameters['DataSetGranularity'] -eq $null) - { - $null = $PSBoundParameters.Add("DataSetGranularity",$getExport.DataSetGranularity) - } - if($PSBoundParameters['DefinitionTimeframe'] -eq $null) - { - $null = $PSBoundParameters.Add("DefinitionTimeframe",$getExport.DefinitionTimeframe) - } - if($PSBoundParameters['DefinitionType'] -eq $null) - { - $null = $PSBoundParameters.Add("DefinitionType",$getExport.DefinitionType) - } - if($PSBoundParameters['DestinationContainer'] -eq $null) - { - $null = $PSBoundParameters.Add("DestinationContainer",$getExport.DestinationContainer) - } - if($PSBoundParameters['DestinationResourceId'] -eq $null) - { - $null = $PSBoundParameters.Add("DestinationResourceId",$getExport.DestinationResourceId) - } - if($PSBoundParameters['DestinationRootFolderPath'] -eq $null) - { - $null = $PSBoundParameters.Add("DestinationRootFolderPath",$getExport.DestinationRootFolderPath) - } - if($PSBoundParameters['Format'] -eq $null) - { - $null = $PSBoundParameters.Add("Format",$getExport.Format) - } - if($PSBoundParameters['RecurrencePeriodFrom'] -eq $null) - { - $null = $PSBoundParameters.Add("RecurrencePeriodFrom",$getExport.RecurrencePeriodFrom) - } - if($PSBoundParameters['RecurrencePeriodTo'] -eq $null) - { - $null = $PSBoundParameters.Add("RecurrencePeriodTo",$getExport.RecurrencePeriodTo) - } - if($PSBoundParameters['ScheduleStatus'] -eq $null) - { - $null = $PSBoundParameters.Add("ScheduleStatus",$getExport.ScheduleStatus) + if(('UpdateViaJsonFilePath') -contains $parameterSet -or ('UpdateViaJsonString') -contains $parameterSet){ + Az.CostManagement.internal\Update-AzCostManagementExport @PSBoundParameters } - if($PSBoundParameters['ScheduleRecurrence'] -eq $null) - { - $null = $PSBoundParameters.Add("ScheduleRecurrence",$getExport.ScheduleRecurrence) + else{ + $CommonPSBoundParameters = @{} + if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) { + $CommonPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend + } + if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) { + $CommonPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend + } + if ($PSBoundParameters.ContainsKey('SubscriptionId')) { + $CommonPSBoundParameters['SubscriptionId'] = $SubscriptionId + } + if($PSBoundParameters['InputObject'] -ne $null) + { + $InputExportObject = $PSBoundParameters['InputObject'] + $getExport = Get-AzCostManagementExport -InputObject $InputExportObject @CommonPSBoundParameters + }else{ + $InputExportScope = $PSBoundParameters['Scope'] + $InputExportName = $PSBoundParameters['Name'] + $getExport = Get-AzCostManagementExport -Scope $InputExportScope -Name $InputExportName @CommonPSBoundParameters + } + + $null = $PSBoundParameters.Add("ETag",$getExport.Etag) + if($PSBoundParameters['DataSetGranularity'] -eq $null) + { + $null = $PSBoundParameters.Add("DataSetGranularity",$getExport.DataSetGranularity) + } + if($PSBoundParameters['DefinitionTimeframe'] -eq $null) + { + $null = $PSBoundParameters.Add("DefinitionTimeframe",$getExport.DefinitionTimeframe) + } + if($PSBoundParameters['DefinitionType'] -eq $null) + { + $null = $PSBoundParameters.Add("DefinitionType",$getExport.DefinitionType) + } + if($PSBoundParameters['DestinationContainer'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationContainer",$getExport.DestinationContainer) + } + if($PSBoundParameters['DestinationResourceId'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationResourceId",$getExport.DestinationResourceId) + } + if($PSBoundParameters['DestinationRootFolderPath'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationRootFolderPath",$getExport.DestinationRootFolderPath) + } + if($PSBoundParameters['DestinationSasToken'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationSasToken",$getExport.DestinationSasToken) + } + if($PSBoundParameters['DestinationStorageAccount'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationStorageAccount",$getExport.DestinationStorageAccount) + } + if($PSBoundParameters['Format'] -eq $null) + { + $null = $PSBoundParameters.Add("Format",$getExport.Format) + } + if($PSBoundParameters['PartitionData'] -eq $null) + { + $null = $PSBoundParameters.Add("PartitionData",$getExport.PartitionData) + } + if($PSBoundParameters['RecurrencePeriodFrom'] -eq $null) + { + $null = $PSBoundParameters.Add("RecurrencePeriodFrom",$getExport.RecurrencePeriodFrom) + } + if($PSBoundParameters['RecurrencePeriodTo'] -eq $null) + { + $null = $PSBoundParameters.Add("RecurrencePeriodTo",$getExport.RecurrencePeriodTo) + } + if($PSBoundParameters['ScheduleStatus'] -eq $null) + { + $null = $PSBoundParameters.Add("ScheduleStatus",$getExport.ScheduleStatus) + } + if($PSBoundParameters['ScheduleRecurrence'] -eq $null) + { + $null = $PSBoundParameters.Add("ScheduleRecurrence",$getExport.ScheduleRecurrence) + } + Az.CostManagement.internal\Update-AzCostManagementExport @PSBoundParameters } - Az.CostManagement.internal\Update-AzCostManagementExport @PSBoundParameters } catch { throw } diff --git a/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementQueryComparisonExpressionObject.ps1 b/src/CostManagement/CostManagement.Autorest/custom/autogen-model-cmdlets/New-AzCostManagementQueryComparisonExpressionObject.ps1 similarity index 53% rename from src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementQueryComparisonExpressionObject.ps1 rename to src/CostManagement/CostManagement.Autorest/custom/autogen-model-cmdlets/New-AzCostManagementQueryComparisonExpressionObject.ps1 index 03fc04e512b7..2abcf224d503 100644 --- a/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementQueryComparisonExpressionObject.ps1 +++ b/src/CostManagement/CostManagement.Autorest/custom/autogen-model-cmdlets/New-AzCostManagementQueryComparisonExpressionObject.ps1 @@ -1,52 +1,53 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the \"License\"); +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an \"AS IS\" BASIS, +# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. .Description -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryComparisonExpression +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryComparisonExpression .Link -https://learn.microsoft.com/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +https://learn.microsoft.com/powershell/module/Az.CostManagement/new-azcostmanagementquerycomparisonexpressionobject #> function New-AzCostManagementQueryComparisonExpressionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryComparisonExpression')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryComparisonExpression')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory, HelpMessage="The name of the column to use in comparison.")] [string] $Name, - [Parameter(Mandatory, HelpMessage="The operator to use for comparison.")] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType] - $Operator, [Parameter(Mandatory, HelpMessage="Array of values to use for comparison.")] [string[]] $Value ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryComparisonExpression]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryComparisonExpression]::New() - $Object.Name = $Name - # Description: The type of the Operator is enum,but it only contains one value,so the parameter is not exposed now. - # $Object.Operator = $Operator - $Object.Value = $Value + if ($PSBoundParameters.ContainsKey('Name')) { + $Object.Name = $Name + } + if ($PSBoundParameters.ContainsKey('Value')) { + $Object.Value = $Value + } return $Object } } diff --git a/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementQueryFilterObject.ps1 b/src/CostManagement/CostManagement.Autorest/custom/autogen-model-cmdlets/New-AzCostManagementQueryFilterObject.ps1 similarity index 55% rename from src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementQueryFilterObject.ps1 rename to src/CostManagement/CostManagement.Autorest/custom/autogen-model-cmdlets/New-AzCostManagementQueryFilterObject.ps1 index 07158bb14922..8a48411ae929 100644 --- a/src/CostManagement/CostManagement.Autorest/custom/New-AzCostManagementQueryFilterObject.ps1 +++ b/src/CostManagement/CostManagement.Autorest/custom/autogen-model-cmdlets/New-AzCostManagementQueryFilterObject.ps1 @@ -1,59 +1,71 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the \"License\"); +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an \"AS IS\" BASIS, +# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis -Create a in-memory object for QueryFilter +Create an in-memory object for QueryFilter. .Description -Create a in-memory object for QueryFilter +Create an in-memory object for QueryFilter. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryFilter +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryFilter .Link -https://learn.microsoft.com/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +https://learn.microsoft.com/powershell/module/Az.CostManagement/new-azcostmanagementqueryfilterobject #> function New-AzCostManagementQueryFilterObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryFilter')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryFilter')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="The logical `"AND`" expression. Must have at least 2 items.")] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryFilter[]] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryFilter[]] $And, - [Parameter(HelpMessage="Has comparison expression for a dimensions.")] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryComparisonExpression] + [Parameter(HelpMessage="Has comparison expression for a dimension.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryComparisonExpression] $Dimensions, [Parameter(HelpMessage="The logical `"NOT`" expression.")] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryFilter] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryFilter] $Not, [Parameter(HelpMessage="The logical `"OR`" expression. Must have at least 2 items.")] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryFilter[]] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryFilter[]] $Or, [Parameter(HelpMessage="Has comparison expression for a tag.")] - [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryComparisonExpression] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryComparisonExpression] $Tag ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryFilter]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryFilter]::New() - $Object.And = $And - $Object.Dimensions = $Dimensions - $Object.Not = $Not - $Object.Or = $Or - $Object.Tag = $Tag + if ($PSBoundParameters.ContainsKey('And')) { + $Object.And = $And + } + if ($PSBoundParameters.ContainsKey('Dimensions')) { + $Object.Dimensions = $Dimensions + } + if ($PSBoundParameters.ContainsKey('Not')) { + $Object.Not = $Not + } + if ($PSBoundParameters.ContainsKey('Or')) { + $Object.Or = $Or + } + if ($PSBoundParameters.ContainsKey('Tag')) { + $Object.Tag = $Tag + } return $Object } } diff --git a/src/CostManagement/CostManagement.Autorest/docs/Az.CostManagement.md b/src/CostManagement/CostManagement.Autorest/docs/Az.CostManagement.md index bfab6addd547..721e0daf3054 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/Az.CostManagement.md +++ b/src/CostManagement/CostManagement.Autorest/docs/Az.CostManagement.md @@ -1,6 +1,6 @@ --- Module Name: Az.CostManagement -Module Guid: 4cd9af10-559e-4fb9-8dcd-d3e8eb9e03b7 +Module Guid: 357ea1ef-9042-434d-8155-d0ed25190a96 Download Help Link: https://learn.microsoft.com/powershell/module/az.costmanagement Help Version: 1.0.0.0 Locale: en-US @@ -45,10 +45,10 @@ You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. ### [New-AzCostManagementQueryComparisonExpressionObject](New-AzCostManagementQueryComparisonExpressionObject.md) -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. ### [New-AzCostManagementQueryFilterObject](New-AzCostManagementQueryFilterObject.md) -Create a in-memory object for QueryFilter +Create an in-memory object for QueryFilter. ### [Remove-AzCostManagementExport](Remove-AzCostManagementExport.md) The operation to delete a export. diff --git a/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExport.md b/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExport.md index 5481b3c04ebb..b739ba74aaa0 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExport.md +++ b/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExport.md @@ -99,7 +99,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -152,9 +151,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExportListResult ## NOTES ## RELATED LINKS +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) + diff --git a/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExportExecutionHistory.md b/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExportExecutionHistory.md index c5fb3cfbb08e..44794d9556b2 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExportExecutionHistory.md +++ b/src/CostManagement/CostManagement.Autorest/docs/Get-AzCostManagementExportExecutionHistory.md @@ -93,7 +93,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -131,9 +130,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExportExecution +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExportExecutionListResult ## NOTES ## RELATED LINKS +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) + diff --git a/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementExecuteExport.md b/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementExecuteExport.md index affba6de69a7..923a322799f3 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementExecuteExport.md +++ b/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementExecuteExport.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -169,3 +168,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) + diff --git a/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementQuery.md b/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementQuery.md index ee3b59b1c107..29d9a610784c 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementQuery.md +++ b/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementQuery.md @@ -14,19 +14,19 @@ Query the usage data for scope defined. ### UsageExpanded (Default) ``` -Invoke-AzCostManagementQuery -Scope -Timeframe -Type +Invoke-AzCostManagementQuery -Scope -Timeframe -Type [-ConfigurationColumn ] [-DatasetAggregation ] [-DatasetFilter ] - [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] + [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### UsageExpanded1 ``` -Invoke-AzCostManagementQuery -ExternalCloudProviderId - -ExternalCloudProviderType -Timeframe -Type - [-ConfigurationColumn ] [-DatasetAggregation ] [-DatasetFilter ] - [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] - [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Invoke-AzCostManagementQuery -ExternalCloudProviderId -ExternalCloudProviderType + -Timeframe -Type [-ConfigurationColumn ] [-DatasetAggregation ] + [-DatasetFilter ] [-DatasetGranularity ] [-DatasetGrouping ] + [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -96,10 +96,9 @@ Accept wildcard characters: False ### -DatasetFilter Has filter expression to use in the query. -To construct, see NOTES section for DATASETFILTER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryFilter +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryFilter Parameter Sets: (All) Aliases: @@ -114,7 +113,7 @@ Accept wildcard characters: False The granularity of rows in the query. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType +Type: System.String Parameter Sets: (All) Aliases: @@ -127,10 +126,9 @@ Accept wildcard characters: False ### -DatasetGrouping Array of group by expression to use in the query. -To construct, see NOTES section for DATASETGROUPING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryGrouping[] +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryGrouping[] Parameter Sets: (All) Aliases: @@ -175,7 +173,7 @@ Accept wildcard characters: False The external cloud provider type associated with dimension/query operations. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType +Type: System.String Parameter Sets: UsageExpanded1 Aliases: @@ -205,7 +203,7 @@ Accept wildcard characters: False The time frame for pulling data for the query. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType +Type: System.String Parameter Sets: (All) Aliases: @@ -250,7 +248,7 @@ Accept wildcard characters: False The type of the query. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType +Type: System.String Parameter Sets: (All) Aliases: @@ -299,7 +297,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryResult +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryResult ## NOTES diff --git a/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementReservationDetailReport.md b/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementReservationDetailReport.md index 0e3bbf91d997..c5218a2011ed 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementReservationDetailReport.md +++ b/src/CostManagement/CostManagement.Autorest/docs/Invoke-AzCostManagementReservationDetailReport.md @@ -187,9 +187,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IOperationStatus ## NOTES ## RELATED LINKS +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) + diff --git a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementDetailReport.md b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementDetailReport.md index 2f07e1d41053..69ec1606c46d 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementDetailReport.md +++ b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementDetailReport.md @@ -19,10 +19,23 @@ The details on the file(s) available for download will be available in the polli ## SYNTAX +### CreateExpanded (Default) ``` New-AzCostManagementDetailReport -Scope [-BillingPeriod ] [-InvoiceId ] - [-Metric ] [-TimePeriodEnd ] [-TimePeriodStart ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-Metric ] [-TimePeriodEnd ] [-TimePeriodStart ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzCostManagementDetailReport -Scope -JsonFilePath [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzCostManagementDetailReport -Scope -JsonString [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -70,7 +83,7 @@ If a timePeriod, invoiceId or billingPeriod parameter is not provided in the req ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -104,7 +117,7 @@ If a timePeriod, invoiceId or billingPeriod parameter is not provided in the req ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -114,13 +127,43 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Metric The type of the detailed report. By default ActualCost is provided ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.CostDetailsMetricType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -168,7 +211,7 @@ example format 2020-03-15 ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -184,7 +227,7 @@ example format 2020-03-15 ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -232,9 +275,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.ICostDetailsOperationResults +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostDetailsOperationResults ## NOTES ## RELATED LINKS +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) + diff --git a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementExport.md b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementExport.md index 8b2a0490d275..f0275b8c0547 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementExport.md +++ b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementExport.md @@ -15,15 +15,29 @@ Create operation does not require eTag. ## SYNTAX +### CreateExpanded (Default) ``` New-AzCostManagementExport -Name -Scope [-ConfigurationColumn ] - [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] - [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] - [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-DestinationSasToken ] [-DestinationStorageAccount ] [-ETag ] [-Format ] + [-PartitionData] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzCostManagementExport -Name -Scope -JsonFilePath [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzCostManagementExport -Name -Scope -JsonString [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION The operation to create or update a export. Update operation requires latest eTag to be set in the request. @@ -54,7 +68,7 @@ The available columns can vary by customer channel (see examples). ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -69,8 +83,8 @@ The granularity of rows in the export. Currently only 'Daily' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -81,7 +95,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -100,8 +115,8 @@ The time frame for pulling data for the export. If custom, then a specific time period must be provided. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -116,8 +131,8 @@ The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -129,10 +144,11 @@ Accept wildcard characters: False ### -DestinationContainer The name of the container where exports will be uploaded. +If the container does not exist it will be created. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -144,10 +160,11 @@ Accept wildcard characters: False ### -DestinationResourceId The resource id of the storage account where exports will be delivered. +This is not required if a sasToken and storageAccount are specified. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -162,7 +179,58 @@ The name of the directory where exports will be uploaded. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationSasToken +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. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationStorageAccount +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. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ETag +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. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -177,8 +245,8 @@ The format of the export being delivered. Currently only 'Csv' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -188,6 +256,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Export Name. @@ -203,12 +301,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PartitionData +If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. +Note: this option is currently available only for modern commerce scopes. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecurrencePeriodFrom The start date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -223,7 +337,7 @@ The end date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -237,8 +351,8 @@ Accept wildcard characters: False The schedule recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -253,8 +367,8 @@ The status of the export's schedule. If 'Inactive', the export's schedule is paused. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -284,7 +398,7 @@ The start date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -299,7 +413,7 @@ The end date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -347,7 +461,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport ## NOTES diff --git a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryComparisonExpressionObject.md b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryComparisonExpressionObject.md index 0b8da26b71b5..8bdad5af4321 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryComparisonExpressionObject.md +++ b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryComparisonExpressionObject.md @@ -1,24 +1,23 @@ --- external help file: Module Name: Az.CostManagement -online version: https://learn.microsoft.com/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +online version: https://learn.microsoft.com/powershell/module/Az.CostManagement/new-azcostmanagementquerycomparisonexpressionobject schema: 2.0.0 --- # New-AzCostManagementQueryComparisonExpressionObject ## SYNOPSIS -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. ## SYNTAX ``` -New-AzCostManagementQueryComparisonExpressionObject -Name -Operator -Value - [] +New-AzCostManagementQueryComparisonExpressionObject -Name -Value [] ``` ## DESCRIPTION -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. ## EXAMPLES @@ -52,21 +51,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Operator -The operator to use for comparison. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Value Array of values to use for comparison. @@ -89,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryComparisonExpression +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryComparisonExpression ## NOTES diff --git a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryFilterObject.md b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryFilterObject.md index 9391206cd5d6..0f817224cb03 100644 --- a/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryFilterObject.md +++ b/src/CostManagement/CostManagement.Autorest/docs/New-AzCostManagementQueryFilterObject.md @@ -1,14 +1,14 @@ --- external help file: Module Name: Az.CostManagement -online version: https://learn.microsoft.com/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +online version: https://learn.microsoft.com/powershell/module/Az.CostManagement/new-azcostmanagementqueryfilterobject schema: 2.0.0 --- # New-AzCostManagementQueryFilterObject ## SYNOPSIS -Create a in-memory object for QueryFilter +Create an in-memory object for QueryFilter. ## SYNTAX @@ -18,7 +18,7 @@ New-AzCostManagementQueryFilterObject [-And ] [-Dimensions -Scope [-ConfigurationColumn ] - [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] - [-ETag ] [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] - [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-DestinationSasToken ] [-DestinationStorageAccount ] [-ETag ] [-Format ] + [-PartitionData] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzCostManagementExport -InputObject [-ConfigurationColumn ] - [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] - [-ETag ] [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] - [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-DestinationSasToken ] [-DestinationStorageAccount ] [-ETag ] [-Format ] + [-PartitionData] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzCostManagementExport -Name -Scope -JsonFilePath + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzCostManagementExport -Name -Scope -JsonString [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION The operation to create or update a export. Update operation requires latest eTag to be set in the request. @@ -79,7 +93,7 @@ The available columns can vary by customer channel (see examples). ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -94,8 +108,8 @@ The granularity of rows in the export. Currently only 'Daily' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -106,7 +120,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -125,8 +140,8 @@ The time frame for pulling data for the export. If custom, then a specific time period must be provided. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -141,8 +156,8 @@ The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -154,10 +169,11 @@ Accept wildcard characters: False ### -DestinationContainer The name of the container where exports will be uploaded. +If the container does not exist it will be created. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -169,10 +185,11 @@ Accept wildcard characters: False ### -DestinationResourceId The resource id of the storage account where exports will be delivered. +This is not required if a sasToken and storageAccount are specified. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -187,7 +204,42 @@ The name of the directory where exports will be uploaded. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationSasToken +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. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationStorageAccount +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. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -203,7 +255,7 @@ To handle concurrent update scenario, this field will be used to determine wheth ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -218,8 +270,8 @@ The format of the export being delivered. Currently only 'Csv' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -231,7 +283,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -245,12 +296,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Export Name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ExportName Required: True @@ -260,12 +341,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PartitionData +If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. +Note: this option is currently available only for modern commerce scopes. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecurrencePeriodFrom The start date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -280,7 +377,7 @@ The end date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -294,8 +391,8 @@ Accept wildcard characters: False The schedule recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -310,8 +407,8 @@ The status of the export's schedule. If 'Inactive', the export's schedule is paused. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -326,7 +423,7 @@ This parameter defines the scope of costmanagement from different perspectives ' ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -341,7 +438,7 @@ The start date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -356,7 +453,7 @@ The end date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -406,7 +503,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport ## NOTES diff --git a/src/CostManagement/CostManagement.Autorest/generate-info.json b/src/CostManagement/CostManagement.Autorest/generate-info.json index 2d6fd9583922..1b80ac355527 100644 --- a/src/CostManagement/CostManagement.Autorest/generate-info.json +++ b/src/CostManagement/CostManagement.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "71b8e822-9738-44ac-8ea3-fdc00d01f633" + "generate_Id": "f708438f-fa63-49df-ae51-3811bffb58b4" } diff --git a/src/CostManagement/CostManagement.Autorest/resources/README.md b/src/CostManagement/CostManagement.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/CostManagement/CostManagement.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 b/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 index ac7a7bb49a1f..8d92ff94e805 100644 --- a/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 +++ b/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 @@ -14,7 +14,7 @@ while(-not $mockingPath) { Describe 'New-AzCostManagementQueryComparisonExpressionObject' { It '__AllParameterSets' { { - $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator 'In' -Value @('East US', 'West Europe') + $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Value @('East US', 'West Europe') } | Should -Not -Throw } } diff --git a/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryFilterObject.Tests.ps1 b/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryFilterObject.Tests.ps1 index 7fe3d678c256..6d37e7d7ab4e 100644 --- a/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryFilterObject.Tests.ps1 +++ b/src/CostManagement/CostManagement.Autorest/test/New-AzCostManagementQueryFilterObject.Tests.ps1 @@ -14,11 +14,11 @@ while(-not $mockingPath) { Describe 'New-AzCostManagementQueryFilterObject' { It '__AllParameterSets' { { - $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator 'In' -Value @('East US', 'West Europe') - $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator 'In' -Value @('UAT', 'Prod') + $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Value @('East US', 'West Europe') + $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Value @('UAT', 'Prod') $andOr = New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) - $dimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator 'In' -Value 'API' + $dimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Value 'API' $andDimension = New-AzCostManagementQueryFilterObject -Dimension $dimension $fileter = New-AzCostManagementQueryFilterObject -And @($andOr, $andDimension) } | Should -Not -Throw diff --git a/src/CostManagement/CostManagement.sln b/src/CostManagement/CostManagement.sln index f4f32f981a40..26096f4207e6 100644 --- a/src/CostManagement/CostManagement.sln +++ b/src/CostManagement/CostManagement.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CostManagement", "CostManagement\CostManagement.csproj", "{1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CostManagement", "..\..\generated\CostManagement\CostManagement.Autorest\Az.CostManagement.csproj", "{BA394861-9D56-43B8-9D90-6772213DE7D8}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CostManagement.Autorest", "CostManagement.Autorest", "{0929046C-245C-3E60-CE5C-5AA40BC83C1B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.CostManagement", "..\..\generated\CostManagement\CostManagement.Autorest\Az.CostManagement.csproj", "{E6CD2E5D-1FE2-4B07-8860-FD087E746564}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {CDE043A1-8134-4F7D-8BFB-43C497884327}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CDE043A1-8134-4F7D-8BFB-43C497884327}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Debug|x64.ActiveCfg = Debug|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Debug|x64.Build.0 = Debug|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Debug|x86.ActiveCfg = Debug|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Debug|x86.Build.0 = Debug|Any CPU {CDE043A1-8134-4F7D-8BFB-43C497884327}.Release|Any CPU.ActiveCfg = Release|Any CPU {CDE043A1-8134-4F7D-8BFB-43C497884327}.Release|Any CPU.Build.0 = Release|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Release|x64.ActiveCfg = Release|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Release|x64.Build.0 = Release|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Release|x86.ActiveCfg = Release|Any CPU + {CDE043A1-8134-4F7D-8BFB-43C497884327}.Release|x86.Build.0 = Release|Any CPU {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Debug|x64.ActiveCfg = Debug|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Debug|x64.Build.0 = Debug|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Debug|x86.ActiveCfg = Debug|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Debug|x86.Build.0 = Debug|Any CPU {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Release|Any CPU.ActiveCfg = Release|Any CPU {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Release|Any CPU.Build.0 = Release|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Release|x64.ActiveCfg = Release|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Release|x64.Build.0 = Release|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Release|x86.ActiveCfg = Release|Any CPU + {37A39A97-8EE8-44BE-9FB2-58C2ACBA9A9F}.Release|x86.Build.0 = Release|Any CPU {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Debug|x64.ActiveCfg = Debug|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Debug|x64.Build.0 = Debug|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Debug|x86.ActiveCfg = Debug|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Debug|x86.Build.0 = Debug|Any CPU {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Release|Any CPU.ActiveCfg = Release|Any CPU {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Release|Any CPU.Build.0 = Release|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Release|x64.ActiveCfg = Release|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Release|x64.Build.0 = Release|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Release|x86.ActiveCfg = Release|Any CPU + {F73BFF95-1119-4E4C-A136-EB8671A7CECF}.Release|x86.Build.0 = Release|Any CPU {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Debug|x64.ActiveCfg = Debug|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Debug|x64.Build.0 = Debug|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Debug|x86.ActiveCfg = Debug|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Debug|x86.Build.0 = Debug|Any CPU {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Release|Any CPU.ActiveCfg = Release|Any CPU {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Release|Any CPU.Build.0 = Release|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Release|x64.ActiveCfg = Release|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Release|x64.Build.0 = Release|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Release|x86.ActiveCfg = Release|Any CPU + {FDF593BF-95B7-4D97-A2A2-027D84518E61}.Release|x86.Build.0 = Release|Any CPU {653392B7-9D54-4711-BC48-E3C0121D590C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {653392B7-9D54-4711-BC48-E3C0121D590C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Debug|x64.ActiveCfg = Debug|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Debug|x64.Build.0 = Debug|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Debug|x86.ActiveCfg = Debug|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Debug|x86.Build.0 = Debug|Any CPU {653392B7-9D54-4711-BC48-E3C0121D590C}.Release|Any CPU.ActiveCfg = Release|Any CPU {653392B7-9D54-4711-BC48-E3C0121D590C}.Release|Any CPU.Build.0 = Release|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Release|x64.ActiveCfg = Release|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Release|x64.Build.0 = Release|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Release|x86.ActiveCfg = Release|Any CPU + {653392B7-9D54-4711-BC48-E3C0121D590C}.Release|x86.Build.0 = Release|Any CPU {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Debug|x64.ActiveCfg = Debug|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Debug|x64.Build.0 = Debug|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Debug|x86.ActiveCfg = Debug|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Debug|x86.Build.0 = Debug|Any CPU {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Release|Any CPU.ActiveCfg = Release|Any CPU {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Release|Any CPU.Build.0 = Release|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Release|x64.ActiveCfg = Release|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Release|x64.Build.0 = Release|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Release|x86.ActiveCfg = Release|Any CPU + {A6869746-4DBF-48E3-A755-F1BDE713C95A}.Release|x86.Build.0 = Release|Any CPU {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Debug|x64.ActiveCfg = Debug|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Debug|x64.Build.0 = Debug|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Debug|x86.ActiveCfg = Debug|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Debug|x86.Build.0 = Debug|Any CPU {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Release|Any CPU.ActiveCfg = Release|Any CPU {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Release|Any CPU.Build.0 = Release|Any CPU - {BA394861-9D56-43B8-9D90-6772213DE7D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BA394861-9D56-43B8-9D90-6772213DE7D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BA394861-9D56-43B8-9D90-6772213DE7D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BA394861-9D56-43B8-9D90-6772213DE7D8}.Release|Any CPU.Build.0 = Release|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Release|x64.ActiveCfg = Release|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Release|x64.Build.0 = Release|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Release|x86.ActiveCfg = Release|Any CPU + {1CDE589D-A03A-4E6D-8F95-F9EBBA97B8E9}.Release|x86.Build.0 = Release|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Debug|x64.ActiveCfg = Debug|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Debug|x64.Build.0 = Debug|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Debug|x86.ActiveCfg = Debug|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Debug|x86.Build.0 = Debug|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Release|Any CPU.Build.0 = Release|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Release|x64.ActiveCfg = Release|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Release|x64.Build.0 = Release|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Release|x86.ActiveCfg = Release|Any CPU + {E6CD2E5D-1FE2-4B07-8860-FD087E746564}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {CDE043A1-8134-4F7D-8BFB-43C497884327} = {5861DA26-B115-4D03-82A3-39CFBE745777} @@ -70,5 +140,6 @@ Global {FDF593BF-95B7-4D97-A2A2-027D84518E61} = {5861DA26-B115-4D03-82A3-39CFBE745777} {653392B7-9D54-4711-BC48-E3C0121D590C} = {5861DA26-B115-4D03-82A3-39CFBE745777} {A6869746-4DBF-48E3-A755-F1BDE713C95A} = {5861DA26-B115-4D03-82A3-39CFBE745777} + {E6CD2E5D-1FE2-4B07-8860-FD087E746564} = {0929046C-245C-3E60-CE5C-5AA40BC83C1B} EndGlobalSection EndGlobal diff --git a/src/CostManagement/CostManagement/Az.CostManagement.psd1 b/src/CostManagement/CostManagement/Az.CostManagement.psd1 index 0ad8df1f69e8..edcdd1f8d478 100644 --- a/src/CostManagement/CostManagement/Az.CostManagement.psd1 +++ b/src/CostManagement/CostManagement/Az.CostManagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-04-14 # @{ @@ -12,13 +12,13 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '0.3.4' +ModuleVersion = '0.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = '4cd9af10-559e-4fb9-8dcd-d3e8eb9e03b7' +GUID = 'accceef6-8113-453a-a31c-4f2ce57893d6' # Author of this module Author = 'Microsoft Corporation' @@ -30,7 +30,7 @@ CompanyName = 'Microsoft Corporation' Copyright = 'Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: Cost cmdlets' +Description = 'Microsoft Azure PowerShell: {ModuleNamePlaceHolder} cmdlets' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '5.1' @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'CostManagement.Autorest/bin/Az.CostManagement.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'CostManagement.Autorest/Az.CostManagement.format.ps1xml' @@ -103,7 +103,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Cost' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', '{ModuleNamePlaceHolder}' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -115,8 +115,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Upgraded nuget package to signed package. -* Fixed bug tags in query filter cannot be properly serialized [#22326]' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' @@ -129,7 +128,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/CostManagement/CostManagement/ChangeLog.md b/src/CostManagement/CostManagement/ChangeLog.md index 3e2be5b059e0..1a90ef88d106 100644 --- a/src/CostManagement/CostManagement/ChangeLog.md +++ b/src/CostManagement/CostManagement/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). ## Version 0.3.4 * Upgraded nuget package to signed package. diff --git a/src/CostManagement/CostManagement/help/Az.CostManagement.md b/src/CostManagement/CostManagement/help/Az.CostManagement.md index bfab6addd547..e79b6e37b6cf 100644 --- a/src/CostManagement/CostManagement/help/Az.CostManagement.md +++ b/src/CostManagement/CostManagement/help/Az.CostManagement.md @@ -45,10 +45,10 @@ You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. ### [New-AzCostManagementQueryComparisonExpressionObject](New-AzCostManagementQueryComparisonExpressionObject.md) -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. ### [New-AzCostManagementQueryFilterObject](New-AzCostManagementQueryFilterObject.md) -Create a in-memory object for QueryFilter +Create an in-memory object for QueryFilter. ### [Remove-AzCostManagementExport](Remove-AzCostManagementExport.md) The operation to delete a export. diff --git a/src/CostManagement/CostManagement/help/Get-AzCostManagementExport.md b/src/CostManagement/CostManagement/help/Get-AzCostManagementExport.md index 793368f6708a..35e1a10e593d 100644 --- a/src/CostManagement/CostManagement/help/Get-AzCostManagementExport.md +++ b/src/CostManagement/CostManagement/help/Get-AzCostManagementExport.md @@ -99,7 +99,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -152,8 +151,12 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExportListResult ## NOTES ## RELATED LINKS + +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) diff --git a/src/CostManagement/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md b/src/CostManagement/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md index aae5a3870034..feb6eb07f38e 100644 --- a/src/CostManagement/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md +++ b/src/CostManagement/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md @@ -93,7 +93,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -131,8 +130,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExportExecution +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExportExecutionListResult ## NOTES ## RELATED LINKS + +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) diff --git a/src/CostManagement/CostManagement/help/Invoke-AzCostManagementExecuteExport.md b/src/CostManagement/CostManagement/help/Invoke-AzCostManagementExecuteExport.md index 17349b94827f..ce79bb252d76 100644 --- a/src/CostManagement/CostManagement/help/Invoke-AzCostManagementExecuteExport.md +++ b/src/CostManagement/CostManagement/help/Invoke-AzCostManagementExecuteExport.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -168,3 +167,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS + +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) diff --git a/src/CostManagement/CostManagement/help/Invoke-AzCostManagementQuery.md b/src/CostManagement/CostManagement/help/Invoke-AzCostManagementQuery.md index 35e913606231..579490100ff3 100644 --- a/src/CostManagement/CostManagement/help/Invoke-AzCostManagementQuery.md +++ b/src/CostManagement/CostManagement/help/Invoke-AzCostManagementQuery.md @@ -14,21 +14,20 @@ Query the usage data for scope defined. ### UsageExpanded (Default) ``` -Invoke-AzCostManagementQuery -Scope -Timeframe -Type +Invoke-AzCostManagementQuery -Scope -Timeframe -Type [-ConfigurationColumn ] [-DatasetAggregation ] [-DatasetFilter ] - [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] + [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### UsageExpanded1 ``` -Invoke-AzCostManagementQuery -ExternalCloudProviderId - -ExternalCloudProviderType -Timeframe -Type - [-ConfigurationColumn ] [-DatasetAggregation ] [-DatasetFilter ] - [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] - [-TimePeriodTo ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Invoke-AzCostManagementQuery -ExternalCloudProviderId -ExternalCloudProviderType + -Timeframe -Type [-ConfigurationColumn ] [-DatasetAggregation ] + [-DatasetFilter ] [-DatasetGranularity ] [-DatasetGrouping ] + [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -98,10 +97,9 @@ Accept wildcard characters: False ### -DatasetFilter Has filter expression to use in the query. -To construct, see NOTES section for DATASETFILTER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryFilter +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryFilter Parameter Sets: (All) Aliases: @@ -116,7 +114,7 @@ Accept wildcard characters: False The granularity of rows in the query. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType +Type: System.String Parameter Sets: (All) Aliases: @@ -129,10 +127,9 @@ Accept wildcard characters: False ### -DatasetGrouping Array of group by expression to use in the query. -To construct, see NOTES section for DATASETGROUPING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryGrouping[] +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryGrouping[] Parameter Sets: (All) Aliases: @@ -177,7 +174,7 @@ Accept wildcard characters: False The external cloud provider type associated with dimension/query operations. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType +Type: System.String Parameter Sets: UsageExpanded1 Aliases: @@ -207,7 +204,7 @@ Accept wildcard characters: False The time frame for pulling data for the query. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType +Type: System.String Parameter Sets: (All) Aliases: @@ -252,7 +249,7 @@ Accept wildcard characters: False The type of the query. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType +Type: System.String Parameter Sets: (All) Aliases: @@ -301,7 +298,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryResult +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IQueryResult ## NOTES diff --git a/src/CostManagement/CostManagement/help/Invoke-AzCostManagementReservationDetailReport.md b/src/CostManagement/CostManagement/help/Invoke-AzCostManagementReservationDetailReport.md index 2609ca220ee7..cb5f2c4f9ee1 100644 --- a/src/CostManagement/CostManagement/help/Invoke-AzCostManagementReservationDetailReport.md +++ b/src/CostManagement/CostManagement/help/Invoke-AzCostManagementReservationDetailReport.md @@ -188,8 +188,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IOperationStatus ## NOTES ## RELATED LINKS + +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) diff --git a/src/CostManagement/CostManagement/help/New-AzCostManagementDetailReport.md b/src/CostManagement/CostManagement/help/New-AzCostManagementDetailReport.md index d04522cc75c4..3f4b286fb445 100644 --- a/src/CostManagement/CostManagement/help/New-AzCostManagementDetailReport.md +++ b/src/CostManagement/CostManagement/help/New-AzCostManagementDetailReport.md @@ -19,11 +19,23 @@ The details on the file(s) available for download will be available in the polli ## SYNTAX +### CreateExpanded (Default) ``` New-AzCostManagementDetailReport -Scope [-BillingPeriod ] [-InvoiceId ] - [-Metric ] [-TimePeriodEnd ] [-TimePeriodStart ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-Metric ] [-TimePeriodEnd ] [-TimePeriodStart ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzCostManagementDetailReport -Scope -JsonFilePath [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzCostManagementDetailReport -Scope -JsonString [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -71,7 +83,7 @@ If a timePeriod, invoiceId or billingPeriod parameter is not provided in the req ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -105,7 +117,7 @@ If a timePeriod, invoiceId or billingPeriod parameter is not provided in the req ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -115,13 +127,43 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Metric The type of the detailed report. By default ActualCost is provided ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.CostDetailsMetricType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -169,7 +211,7 @@ example format 2020-03-15 ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -185,7 +227,7 @@ example format 2020-03-15 ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -233,8 +275,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20220501.ICostDetailsOperationResults +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostDetailsOperationResults ## NOTES ## RELATED LINKS + +[https://docs.microsoft.com/en-us/rest/api/costmanagement/](https://docs.microsoft.com/en-us/rest/api/costmanagement/) diff --git a/src/CostManagement/CostManagement/help/New-AzCostManagementExport.md b/src/CostManagement/CostManagement/help/New-AzCostManagementExport.md index 248593f1a761..82e0794ca8f7 100644 --- a/src/CostManagement/CostManagement/help/New-AzCostManagementExport.md +++ b/src/CostManagement/CostManagement/help/New-AzCostManagementExport.md @@ -15,16 +15,30 @@ Create operation does not require eTag. ## SYNTAX +### CreateExpanded (Default) ``` New-AzCostManagementExport -Name -Scope [-ConfigurationColumn ] - [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] - [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] - [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-DestinationSasToken ] [-DestinationStorageAccount ] [-ETag ] [-Format ] + [-PartitionData] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzCostManagementExport -Name -Scope -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzCostManagementExport -Name -Scope -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION The operation to create or update a export. Update operation requires latest eTag to be set in the request. @@ -55,7 +69,7 @@ The available columns can vary by customer channel (see examples). ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -70,8 +84,8 @@ The granularity of rows in the export. Currently only 'Daily' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -82,7 +96,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -101,8 +116,8 @@ The time frame for pulling data for the export. If custom, then a specific time period must be provided. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -117,8 +132,8 @@ The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -130,10 +145,11 @@ Accept wildcard characters: False ### -DestinationContainer The name of the container where exports will be uploaded. +If the container does not exist it will be created. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -145,10 +161,11 @@ Accept wildcard characters: False ### -DestinationResourceId The resource id of the storage account where exports will be delivered. +This is not required if a sasToken and storageAccount are specified. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -163,7 +180,58 @@ The name of the directory where exports will be uploaded. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationSasToken +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. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationStorageAccount +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. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ETag +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. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -178,8 +246,8 @@ The format of the export being delivered. Currently only 'Csv' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -189,6 +257,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Export Name. @@ -204,12 +302,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PartitionData +If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. +Note: this option is currently available only for modern commerce scopes. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecurrencePeriodFrom The start date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -224,7 +338,7 @@ The end date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -238,8 +352,8 @@ Accept wildcard characters: False The schedule recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -254,8 +368,8 @@ The status of the export's schedule. If 'Inactive', the export's schedule is paused. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -285,7 +399,7 @@ The start date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -300,7 +414,7 @@ The end date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -348,7 +462,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport ## NOTES diff --git a/src/CostManagement/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md b/src/CostManagement/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md index 33cee127aa2a..065f648d68e7 100644 --- a/src/CostManagement/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md +++ b/src/CostManagement/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md @@ -1,24 +1,24 @@ --- external help file: Az.CostManagement-help.xml Module Name: Az.CostManagement -online version: https://learn.microsoft.com/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +online version: https://learn.microsoft.com/powershell/module/Az.CostManagement/new-azcostmanagementquerycomparisonexpressionobject schema: 2.0.0 --- # New-AzCostManagementQueryComparisonExpressionObject ## SYNOPSIS -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. ## SYNTAX ``` -New-AzCostManagementQueryComparisonExpressionObject -Name -Operator -Value +New-AzCostManagementQueryComparisonExpressionObject -Name -Value [] ``` ## DESCRIPTION -Create a in-memory object for QueryComparisonExpression +Create an in-memory object for QueryComparisonExpression. ## EXAMPLES @@ -52,21 +52,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Operator -The operator to use for comparison. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Value Array of values to use for comparison. @@ -89,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryComparisonExpression +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.QueryComparisonExpression ## NOTES diff --git a/src/CostManagement/CostManagement/help/New-AzCostManagementQueryFilterObject.md b/src/CostManagement/CostManagement/help/New-AzCostManagementQueryFilterObject.md index bc5fbe822dfa..494c6baf19af 100644 --- a/src/CostManagement/CostManagement/help/New-AzCostManagementQueryFilterObject.md +++ b/src/CostManagement/CostManagement/help/New-AzCostManagementQueryFilterObject.md @@ -1,14 +1,14 @@ --- external help file: Az.CostManagement-help.xml Module Name: Az.CostManagement -online version: https://learn.microsoft.com/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +online version: https://learn.microsoft.com/powershell/module/Az.CostManagement/new-azcostmanagementqueryfilterobject schema: 2.0.0 --- # New-AzCostManagementQueryFilterObject ## SYNOPSIS -Create a in-memory object for QueryFilter +Create an in-memory object for QueryFilter. ## SYNTAX @@ -19,7 +19,7 @@ New-AzCostManagementQueryFilterObject [-And ] [-Dimensions -Scope [-ConfigurationColumn ] - [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] - [-ETag ] [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] - [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-DestinationSasToken ] [-DestinationStorageAccount ] [-ETag ] [-Format ] + [-PartitionData] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzCostManagementExport -Name -Scope -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonString +``` +Update-AzCostManagementExport -Name -Scope -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzCostManagementExport -InputObject [-ConfigurationColumn ] - [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] - [-ETag ] [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] - [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-DestinationSasToken ] [-DestinationStorageAccount ] [-ETag ] [-Format ] + [-PartitionData] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] [-TimePeriodTo ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -81,7 +95,7 @@ The available columns can vary by customer channel (see examples). ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -96,8 +110,8 @@ The granularity of rows in the export. Currently only 'Daily' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -108,7 +122,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -127,8 +142,8 @@ The time frame for pulling data for the export. If custom, then a specific time period must be provided. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -143,8 +158,8 @@ The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -156,10 +171,11 @@ Accept wildcard characters: False ### -DestinationContainer The name of the container where exports will be uploaded. +If the container does not exist it will be created. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -171,10 +187,11 @@ Accept wildcard characters: False ### -DestinationResourceId The resource id of the storage account where exports will be delivered. +This is not required if a sasToken and storageAccount are specified. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -189,7 +206,42 @@ The name of the directory where exports will be uploaded. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationSasToken +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. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationStorageAccount +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. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -205,7 +257,7 @@ To handle concurrent update scenario, this field will be used to determine wheth ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -220,8 +272,8 @@ The format of the export being delivered. Currently only 'Csv' is supported. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -233,7 +285,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity @@ -247,12 +298,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Export Name. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ExportName Required: True @@ -262,12 +343,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PartitionData +If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. +Note: this option is currently available only for modern commerce scopes. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecurrencePeriodFrom The start date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -282,7 +379,7 @@ The end date of recurrence. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -296,8 +393,8 @@ Accept wildcard characters: False The schedule recurrence. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -312,8 +409,8 @@ The status of the export's schedule. If 'Inactive', the export's schedule is paused. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -328,7 +425,7 @@ This parameter defines the scope of costmanagement from different perspectives ' ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -343,7 +440,7 @@ The start date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -358,7 +455,7 @@ The end date for export data. ```yaml Type: System.DateTime -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -408,7 +505,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IExport +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.IExport ## NOTES