You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload/update a single, or multiple agreements into an Azure Integration Account.
220
+
221
+
.Description
222
+
Provide a file- or folder-path to upload/update a single or multiple agreements into an Integration Account.
223
+
224
+
.ParameterResourceGroupName
225
+
The name of the Azure resource group where the Azure Integration Account is located.
226
+
227
+
.ParameterName
228
+
The name of the Azure Integration Account into which the agreements are to be uploaded/updated.
229
+
230
+
.ParameterAgreementFilePath
231
+
The full path of a agreement that should be uploaded/updated.
232
+
233
+
.ParameterAgreementsFolder
234
+
The path to a directory containing all agreements that should be uploaded/updated.
235
+
236
+
.ParameterArtifactsPrefix
237
+
The prefix, if any, that should be added to the agreements before uploading/updating.
238
+
#>
239
+
functionSet-AzIntegrationAccountAgreements {
240
+
param(
241
+
[Parameter(Mandatory=$true)][string] $ResourceGroupName=$(throw"Resource group name is required"),
242
+
[Parameter(Mandatory=$true)][string] $Name=$(throw"Name of the Integration Account is required"),
243
+
[parameter(Mandatory=$false)][string] $AgreementFilePath=$(if ($AgreementsFolder-eq'') { throw"Either the file path of a specific agreement or the file path of a folder containing multiple agreements is required, e.g.: -AgreementFilePath 'C:\Agreements\agreement.json' or -AgreementsFolder 'C:\Agreements'" }),
244
+
[parameter(Mandatory=$false)][string] $AgreementsFolder=$(if ($AgreementFilePath-eq'') { throw"Either the file path of a specific agreement or the file path of a folder containing multiple agreements is required, e.g.: -AgreementFilePath 'C:\Agreements\agreement.json' or -AgreementsFolder 'C:\Agreements'" }),
[Parameter(Mandatory=$true)][string] $ResourceGroupName=$(throw"Resource group name is required"),
3
+
[Parameter(Mandatory=$true)][string] $Name=$(throw"Name of the Integration Account is required"),
4
+
[parameter(Mandatory=$false)][string] $AgreementFilePath=$(if ($AgreementsFolder-eq'') { throw"Either the file path of a specific agreement or the file path of a folder containing multiple agreements is required, e.g.: -AgreementFilePath 'C:\Agreements\agreement.json' or -AgreementsFolder 'C:\Agreements'" }),
5
+
[parameter(Mandatory=$false)][string] $AgreementsFolder=$(if ($AgreementFilePath-eq'') { throw"Either the file path of a specific agreement or the file path of a folder containing multiple agreements is required, e.g.: -AgreementFilePath 'C:\Agreements\agreement.json' or -AgreementsFolder 'C:\Agreements'" }),
if ($AgreementFilePath-ne''-and$AgreementsFolder-ne'') {
10
+
throw"Either the file path of a specific agreement or the file path of a folder containing multiple agreements is required, e.g.: -AgreementFilePath 'C:\Agreements\agreement.json' or -AgreementsFolder 'C:\Agreements'"
0 commit comments