@@ -15,132 +15,137 @@ Gets a template What-If result for a deployment at subscription scope.
15
15
### ByTemplateFileWithNoParameters (Default)
16
16
```
17
17
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
18
- [-ExcludeChangeType <String[]>] -TemplateFile <String> [-SkipTemplateParameterPrompt] [-Pre]
19
- [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
18
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateFile <String>
19
+ [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
20
+ [<CommonParameters>]
20
21
```
21
22
22
23
### ByTemplateObjectAndParameterObject
23
24
```
24
25
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
25
- [-ExcludeChangeType <String[]>] -TemplateParameterObject <Hashtable> -TemplateObject <Hashtable>
26
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
26
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterObject <Hashtable>
27
+ -TemplateObject <Hashtable> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
27
28
[<CommonParameters>]
28
29
```
29
30
30
31
### ByTemplateFileAndParameterObject
31
32
```
32
33
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
33
- [-ExcludeChangeType <String[]>] -TemplateParameterObject <Hashtable> -TemplateFile <String >
34
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
34
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterObject <Hashtable >
35
+ -TemplateFile <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
35
36
[<CommonParameters>]
36
37
```
37
38
38
39
### ByTemplateUriAndParameterObject
39
40
```
40
41
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
41
- [-ExcludeChangeType <String[]>] -TemplateParameterObject <Hashtable> -TemplateUri <String >
42
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
42
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterObject <Hashtable >
43
+ -TemplateUri <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
43
44
[<CommonParameters>]
44
45
```
45
46
46
47
### ByTemplateSpecResourceIdAndParamsObject
47
48
```
48
49
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
49
- [-ExcludeChangeType <String[]>] -TemplateParameterObject <Hashtable> -TemplateSpecId <String >
50
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
50
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterObject <Hashtable >
51
+ -TemplateSpecId <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
51
52
[<CommonParameters>]
52
53
```
53
54
54
55
### ByTemplateObjectAndParameterFile
55
56
```
56
57
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
57
- [-ExcludeChangeType <String[]>] -TemplateParameterFile <String> -TemplateObject <Hashtable >
58
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
58
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterFile <String >
59
+ -TemplateObject <Hashtable> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
59
60
[<CommonParameters>]
60
61
```
61
62
62
63
### ByTemplateFileAndParameterFile
63
64
```
64
65
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
65
- [-ExcludeChangeType <String[]>] -TemplateParameterFile <String> -TemplateFile <String>
66
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
66
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterFile <String>
67
+ -TemplateFile <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
67
68
[<CommonParameters>]
68
69
```
69
70
70
71
### ByTemplateUriAndParameterFile
71
72
```
72
73
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
73
- [-ExcludeChangeType <String[]>] -TemplateParameterFile <String> -TemplateUri <String>
74
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
74
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterFile <String>
75
+ -TemplateUri <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
75
76
[<CommonParameters>]
76
77
```
77
78
78
79
### ByTemplateSpecResourceIdAndParams
79
80
```
80
81
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
81
- [-ExcludeChangeType <String[]>] -TemplateParameterFile <String> -TemplateSpecId <String>
82
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
82
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterFile <String>
83
+ -TemplateSpecId <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
83
84
[<CommonParameters>]
84
85
```
85
86
86
87
### ByParameterFileWithNoTemplate
87
88
```
88
89
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
89
- [-ExcludeChangeType <String[]>] -TemplateParameterFile <String> [-SkipTemplateParameterPrompt] [-Pre]
90
- [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
90
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterFile <String>
91
+ [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
92
+ [<CommonParameters>]
91
93
```
92
94
93
95
### ByTemplateObjectAndParameterUri
94
96
```
95
97
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
96
- [-ExcludeChangeType <String[]>] -TemplateParameterUri <String> -TemplateObject <Hashtable >
97
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
98
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterUri <String >
99
+ -TemplateObject <Hashtable> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
98
100
[<CommonParameters>]
99
101
```
100
102
101
103
### ByTemplateFileAndParameterUri
102
104
```
103
105
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
104
- [-ExcludeChangeType <String[]>] -TemplateParameterUri <String> -TemplateFile <String>
105
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
106
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterUri <String>
107
+ -TemplateFile <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
106
108
[<CommonParameters>]
107
109
```
108
110
109
111
### ByTemplateUriAndParameterUri
110
112
```
111
113
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
112
- [-ExcludeChangeType <String[]>] -TemplateParameterUri <String> -TemplateUri <String>
113
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
114
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterUri <String>
115
+ -TemplateUri <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
114
116
[<CommonParameters>]
115
117
```
116
118
117
119
### ByTemplateSpecResourceIdAndParamsUri
118
120
```
119
121
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
120
- [-ExcludeChangeType <String[]>] -TemplateParameterUri <String> -TemplateSpecId <String>
121
- [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
122
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateParameterUri <String>
123
+ -TemplateSpecId <String> [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
122
124
[<CommonParameters>]
123
125
```
124
126
125
127
### ByTemplateObjectWithNoParameters
126
128
```
127
129
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
128
- [-ExcludeChangeType <String[]>] -TemplateObject <Hashtable> [-SkipTemplateParameterPrompt] [-Pre]
129
- [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
130
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateObject <Hashtable>
131
+ [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
132
+ [<CommonParameters>]
130
133
```
131
134
132
135
### ByTemplateUriWithNoParameters
133
136
```
134
137
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
135
- [-ExcludeChangeType <String[]>] -TemplateUri <String> [-SkipTemplateParameterPrompt] [-Pre]
136
- [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
138
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateUri <String>
139
+ [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
140
+ [<CommonParameters>]
137
141
```
138
142
139
143
### ByTemplateSpecResourceId
140
144
```
141
145
Get-AzDeploymentWhatIfResult [-Name <String>] -Location <String> [-ResultFormat <WhatIfResultFormat>]
142
- [-ExcludeChangeType <String[]>] -TemplateSpecId <String> [-SkipTemplateParameterPrompt] [-Pre]
143
- [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
146
+ [-ExcludeChangeType <String[]>] [-ValidationLevel <String>] -TemplateSpecId <String>
147
+ [-SkipTemplateParameterPrompt] [-Pre] [-DefaultProfile <IAzureContextContainer>]
148
+ [<CommonParameters>]
144
149
```
145
150
146
151
## DESCRIPTION
@@ -403,6 +408,21 @@ Accept pipeline input: True (ByPropertyName)
403
408
Accept wildcard characters : False
404
409
` ` `
405
410
411
+ ### -ValidationLevel
412
+ Sets the validation level for validate/what-if. ValidationLevel can be Template(Skips provider validation), Provider(Performs full validation), or ProviderNoRbac(Performs full validation using RBAC read checks instead of RBAC write checks for provider validation).
413
+
414
+ ` ` ` yaml
415
+ Type : System.String
416
+ Parameter Sets : (All)
417
+ Aliases :
418
+
419
+ Required : False
420
+ Position : Named
421
+ Default value : None
422
+ Accept pipeline input : False
423
+ Accept wildcard characters : False
424
+ ` ` `
425
+
406
426
### CommonParameters
407
427
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
408
428
0 commit comments