@@ -28,12 +28,12 @@ PS C:\> {{ Add code here }}
28
28
{{ Add output here }}
29
29
30
30
. Outputs
31
- Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701. IAccount
31
+ Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount
32
32
. Link
33
33
https://learn.microsoft.com/powershell/module/az.purview/new-azpurviewaccount
34
34
#>
35
35
function New-AzPurviewAccount {
36
- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701. IAccount ])]
36
+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount ])]
37
37
[CmdletBinding (DefaultParameterSetName = ' CreateExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
38
38
param (
39
39
[Parameter (Mandatory )]
@@ -42,120 +42,132 @@ function New-AzPurviewAccount {
42
42
[System.String ]
43
43
# The name of the account.
44
44
${Name} ,
45
-
45
+
46
46
[Parameter (Mandatory )]
47
47
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Path' )]
48
48
[System.String ]
49
49
# The resource group name.
50
50
${ResourceGroupName} ,
51
-
51
+
52
52
[Parameter ()]
53
53
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Path' )]
54
54
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Runtime.DefaultInfo (Script= ' (Get-AzContext).Subscription.Id' )]
55
55
[System.String ]
56
56
# The subscription identifier
57
57
${SubscriptionId} ,
58
-
59
- [Parameter (Mandatory )]
60
- [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Type ])]
58
+
59
+ [Parameter (ParameterSetName = ' CreateExpanded' , Mandatory )]
61
60
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
62
- [Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Type ]
63
- # Identity Type
64
- ${IdentityType } ,
65
-
66
- [Parameter (Mandatory )]
61
+ [System.Management.Automation.SwitchParameter ]
62
+ # Determines whether to enable a system-assigned identity for the resource.
63
+ ${EnableSystemAssignedIdentity } ,
64
+
65
+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
67
66
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
68
67
[System.String ]
69
68
# Gets or sets the location.
70
69
${Location} ,
71
-
72
- [Parameter ()]
70
+
71
+ [Parameter (ParameterSetName = ' CreateExpanded ' )]
73
72
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
74
73
[System.String ]
75
74
# Gets or sets the managed resource group name
76
75
${ManagedResourceGroupName} ,
77
-
78
- [Parameter ()]
79
- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.PublicNetworkAccess ] )]
76
+
77
+ [Parameter (ParameterSetName = ' CreateExpanded ' )]
78
+ [Microsoft.Azure.PowerShell.Cmdlets.Purview.PSArgumentCompleterAttribute ( " NotSpecified " , " Enabled " , " Disabled " )]
80
79
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
81
- [Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.PublicNetworkAccess ]
80
+ [System.String ]
82
81
# Gets or sets the public network access.
83
82
${PublicNetworkAccess} ,
84
-
85
- [Parameter (Mandatory )]
83
+
84
+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
86
85
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
87
86
[System.Int32 ]
88
87
# Gets or sets the sku capacity.
89
88
# Possible values include: 4, 16
90
89
${SkuCapacity} ,
91
-
92
- [Parameter (Mandatory )]
93
- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Name ] )]
90
+
91
+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
92
+ [Microsoft.Azure.PowerShell.Cmdlets.Purview.PSArgumentCompleterAttribute ( " Standard " )]
94
93
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
95
- [Microsoft.Azure.PowerShell.Cmdlets.Purview.Support.Name ]
94
+ [System.String ]
96
95
# Gets or sets the sku name.
97
96
${SkuName} ,
98
-
99
- [Parameter ()]
97
+
98
+ [Parameter (ParameterSetName = ' CreateExpanded ' )]
100
99
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
101
- [Microsoft.Azure.PowerShell.Cmdlets.Purview.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.Api20210701. ITrackedResourceTags ]))]
100
+ [Microsoft.Azure.PowerShell.Cmdlets.Purview.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.ITrackedResourceTags ]))]
102
101
[System.Collections.Hashtable ]
103
102
# Tags on the azure resource.
104
103
${Tag} ,
105
-
104
+
105
+ [Parameter (ParameterSetName = ' CreateViaJsonFilePath' , Mandatory )]
106
+ [Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
107
+ [System.String ]
108
+ # Path of Json file supplied to the Create operation
109
+ ${JsonFilePath} ,
110
+
111
+ [Parameter (ParameterSetName = ' CreateViaJsonString' , Mandatory )]
112
+ [Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Body' )]
113
+ [System.String ]
114
+ # Json string supplied to the Create operation
115
+ ${JsonString} ,
116
+
106
117
[Parameter ()]
107
118
[Alias (' AzureRMContext' , ' AzureCredential' )]
108
119
[ValidateNotNull ()]
109
120
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Azure' )]
110
121
[System.Management.Automation.PSObject ]
111
- # The credentials, account, tenant, and subscription used for communication with Azure.
122
+ # The DefaultProfile parameter is not functional.
123
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
112
124
${DefaultProfile} ,
113
-
125
+
114
126
[Parameter ()]
115
127
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
116
128
[System.Management.Automation.SwitchParameter ]
117
129
# Run the command as a job
118
130
${AsJob} ,
119
-
131
+
120
132
[Parameter (DontShow)]
121
133
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
122
134
[System.Management.Automation.SwitchParameter ]
123
135
# Wait for .NET debugger to attach
124
136
${Break} ,
125
-
137
+
126
138
[Parameter (DontShow)]
127
139
[ValidateNotNull ()]
128
140
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
129
141
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Runtime.SendAsyncStep []]
130
142
# SendAsync Pipeline Steps to be appended to the front of the pipeline
131
143
${HttpPipelineAppend} ,
132
-
144
+
133
145
[Parameter (DontShow)]
134
146
[ValidateNotNull ()]
135
147
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
136
148
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Runtime.SendAsyncStep []]
137
149
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
138
150
${HttpPipelinePrepend} ,
139
-
151
+
140
152
[Parameter ()]
141
153
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
142
154
[System.Management.Automation.SwitchParameter ]
143
155
# Run the command asynchronously
144
156
${NoWait} ,
145
-
157
+
146
158
[Parameter (DontShow)]
147
159
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
148
160
[System.Uri ]
149
161
# The URI for the proxy server to use
150
162
${Proxy} ,
151
-
163
+
152
164
[Parameter (DontShow)]
153
165
[ValidateNotNull ()]
154
166
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
155
167
[System.Management.Automation.PSCredential ]
156
168
# Credentials for a proxy server to use for the remote call
157
169
${ProxyCredential} ,
158
-
170
+
159
171
[Parameter (DontShow)]
160
172
[Microsoft.Azure.PowerShell.Cmdlets.Purview.Category (' Runtime' )]
161
173
[System.Management.Automation.SwitchParameter ]
0 commit comments