external help file | Module Name | online version | schema |
---|---|---|---|
Az.Aks-help.xml |
Az.Aks |
2.0.0 |
Create an in-memory object for TimeSpan.
New-AzAksTimeSpanObject [-End <DateTime>] [-Start <DateTime>]
[<CommonParameters>]
Create an in-memory object for TimeSpan.
$startDate = Get-Date -Year 2023 -Month 3 -Day 1
$endDate = Get-Date -Year 2023 -Month 3 -Day 2
New-AzAksTimeSpanObject -Start $startDate -End $endDate
End Start
--- -----
3/2/2023 1:53:53 PM 3/1/2023 1:53:45 PM
New-AzAksTimeSpanObject creates an in-memory object of type TimeSpan. This object represents a time span and will be used for parameter NotAllowedTime in cmdlet New-AzAksMaintenanceConfiguration.
The end of a time span.
Type: System.DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The start of a time span.
Type: System.DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.