New-AzDataProtectionPolicyTagCriteriaClientObject
Creates a new criteria object
Syntax
ScheduleCriteria (Default)
New-AzDataProtectionPolicyTagCriteriaClientObject
[-DaysOfWeek <DaysOfWeek[]>]
[-WeeksOfMonth <WeeksOfMonth[]>]
[-MonthsOfYear <MonthsOfYear[]>]
[-ScheduleTimes <DateTime[]>]
[<CommonParameters>]
AbsoluteCriteria
New-AzDataProtectionPolicyTagCriteriaClientObject
-AbsoluteCriteria <AbsoluteTagCriteria>
[<CommonParameters>]
MonthlyCriteria
New-AzDataProtectionPolicyTagCriteriaClientObject
-DaysOfMonth <String[]>
[-MonthsOfYear <MonthsOfYear[]>]
[-ScheduleTimes <DateTime[]>]
[<CommonParameters>]
Description
Creates a new criteria object
Examples
Example 1: Create a tag with absolute criteria
New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay
ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth
---------- ----------------- ------------- ------------ ------------ ---------------
ScheduleBasedBackupCriteria {FirstOfDay}
This command creates a criteria object with absolute criteria.
Example 2: create a tag with weekly criteria
New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday")
ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth
---------- ----------------- ------------- ------------ ------------ ---------------
ScheduleBasedBackupCriteria {Sunday, Monday}
This command creates a critetia object with weekly criteria
Parameters
-AbsoluteCriteria
Absolute criteria
Parameter properties
Type: AbsoluteTagCriteria
Default value: None
Accepted values: AllBackup, FirstOfDay, FirstOfMonth, FirstOfWeek, FirstOfYear
Supports wildcards: False
DontShow: False
Parameter sets
AbsoluteCriteria
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DaysOfMonth
Days of the month.
Allowed values are 1 to 28 and Last
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
MonthlyCriteria
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DaysOfWeek
Days of the week
Parameter properties
Type: DaysOfWeek [ ]
Default value: None
Accepted values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
Supports wildcards: False
DontShow: False
Parameter sets
ScheduleCriteria
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-MonthsOfYear
Months of the year.
Parameter properties
Type: MonthsOfYear [ ]
Default value: None
Accepted values: January, February, March, April, May, June, July, August, September, October, November, December
Supports wildcards: False
DontShow: False
Parameter sets
ScheduleCriteria
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
MonthlyCriteria
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ScheduleTimes
Schedule times.
Parameter properties
Type: DateTime [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ScheduleCriteria
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
MonthlyCriteria
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WeeksOfMonth
Weeks of the month.
Parameter properties
Type: WeeksOfMonth [ ]
Default value: None
Accepted values: First, Second, Third, Fourth, Last
Supports wildcards: False
DontShow: False
Parameter sets
ScheduleCriteria
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs