New-AzAksTimeSpanObject
Creare un oggetto in memoria per TimeSpan.
Sintassi
New-AzAksTimeSpanObject
[-End <DateTime>]
[-Start <DateTime>]
[<CommonParameters>]
Descrizione
Creare un oggetto in memoria per TimeSpan.
Esempio
Esempio 1: Creare un oggetto in memoria per un intervallo di tempo
$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 crea un oggetto in memoria di tipo TimeSpan. Questo oggetto rappresenta un intervallo di tempo e verrà usato per il parametro NotAllowedTime nel cmdlet New-AzAksMaintenanceConfiguration.
Parametri
-End
Fine di un intervallo di tempo.
Tipo: | DateTime |
Position: | Named |
valore predefinito: | None |
Necessario: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Start
Inizio di un intervallo di tempo.
Tipo: | DateTime |
Position: | Named |
valore predefinito: | None |
Necessario: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |