@@ -23,8 +23,8 @@ Create or update linker resource in container app.
23
23
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforcontainerapp
24
24
#>
25
25
function New-AzServiceLinkerForContainerApp {
26
- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 .ILinkerResource ])]
27
- [CmdletBinding (DefaultParameterSetName = ' CreateExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
26
+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview .ILinkerResource ])]
27
+ [CmdletBinding (DefaultParameterSetName = ' CreateExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
28
28
param (
29
29
[Parameter ()]
30
30
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Path' )]
@@ -41,7 +41,7 @@ function New-AzServiceLinkerForContainerApp {
41
41
42
42
[Parameter ()]
43
43
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Runtime' )]
44
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo (Script= ' (Get-AzContext).Subscription.Id' )]
44
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo (Script = ' (Get-AzContext).Subscription.Id' )]
45
45
[System.String ]
46
46
# Gets subscription ID which uniquely identify the Microsoft Azure subscription.
47
47
# The subscription ID forms part of the URI for every service call.
@@ -56,27 +56,87 @@ function New-AzServiceLinkerForContainerApp {
56
56
[Parameter ()]
57
57
[Alias (' LinkerName' )]
58
58
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Path' )]
59
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo (Script= ' "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))' )]
59
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo (Script = ' "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))' )]
60
60
[System.String ]
61
61
# The name Linker resource.
62
62
${Name} ,
63
63
64
64
[Parameter (Mandatory )]
65
65
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
66
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 .IAuthInfoBase ]
66
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview .IAuthInfoBase ]
67
67
# The authentication type.
68
68
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
69
69
${AuthInfo} ,
70
70
71
71
[Parameter ()]
72
72
[ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType ])]
73
73
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
74
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo (Script= ' "none"' )]
74
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo (Script = ' "none"' )]
75
75
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType ]
76
76
# The application client type
77
77
${ClientType} ,
78
78
79
- [Parameter (Mandatory )]
79
+ [Parameter ()]
80
+ [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ])]
81
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
82
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ]
83
+ # Optional, indicate whether to apply configurations on source application.
84
+ # If enable, generate configurations and applied to the source application.
85
+ # Default is enable.
86
+ # If optOut, no configuration change will be made on source.
87
+ ${ConfigurationInfoAction} ,
88
+
89
+ [Parameter ()]
90
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
91
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info (PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ]))]
92
+ [System.Collections.Hashtable ]
93
+ # A dictionary of additional configurations to be added.
94
+ # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
95
+ ${ConfigurationInfoAdditionalConfiguration} ,
96
+
97
+ [Parameter ()]
98
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
99
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info (PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ]))]
100
+ [System.Collections.Hashtable ]
101
+ # Optional.
102
+ # A dictionary of default key name and customized key name mapping.
103
+ # If not specified, default key name will be used for generate configurations
104
+ ${ConfigurationInfoCustomizedKey} ,
105
+
106
+ [Parameter ()]
107
+ [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType ])]
108
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
109
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType ]
110
+ # Allow Azure services to access the target service if true.
111
+ ${FirewallRuleAzureService} ,
112
+
113
+ [Parameter ()]
114
+ [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType ])]
115
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
116
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType ]
117
+ # Allow caller client IP to access the target service if true.
118
+ # the property is used when connecting local application to target service.
119
+ ${FirewallRuleCallerClientIP} ,
120
+
121
+ [Parameter ()]
122
+ [AllowEmptyCollection ()]
123
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
124
+ [System.String []]
125
+ # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
126
+ ${FirewallRuleIPRange} ,
127
+
128
+ [Parameter ()]
129
+ [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ])]
130
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
131
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ]
132
+ # Optional.
133
+ # Indicates public network solution.
134
+ # If enable, enable public network access of target service with best try.
135
+ # Default is enable.
136
+ # If optOut, opt out public network access configuration.
137
+ ${PublicNetworkSolutionAction} ,
138
+
139
+ [Parameter ()]
80
140
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
81
141
[System.String ]
82
142
# connection scope in source service.
@@ -88,13 +148,19 @@ function New-AzServiceLinkerForContainerApp {
88
148
# The key vault id to store secret
89
149
${SecretStoreKeyVaultId} ,
90
150
151
+ [Parameter ()]
152
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
153
+ [System.String ]
154
+ # The key vault secret name to store secret, only valid when storing one secret
155
+ ${SecretStoreKeyVaultSecretName} ,
156
+
91
157
[Parameter (Mandatory )]
92
158
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
93
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 .ITargetServiceBase ]
159
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview .ITargetServiceBase ]
94
160
# The target service properties
95
161
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
96
162
${TargetService} ,
97
-
163
+
98
164
[Parameter ()]
99
165
[ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType ])]
100
166
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category (' Body' )]
@@ -175,4 +241,4 @@ function New-AzServiceLinkerForContainerApp {
175
241
$PSBoundParameters = Set-Header - PSBoundParameters $PSBoundParameters
176
242
Az.ServiceLinker.internal\New-AzServiceLinker @PSBoundParameters
177
243
}
178
- }
244
+ }
0 commit comments