Skip to content

Commit d5b96aa

Browse files
Merge remote-tracking branch 'refs/remotes/azure1/release-5.1.0'
2 parents 3900208 + e552147 commit d5b96aa

File tree

6 files changed

+34
-35
lines changed

6 files changed

+34
-35
lines changed

src/ResourceManager/DataFactories/Commands.DataFactoryV2/IntegrationRuntimes/UpdateAzureDataFactoryIntegrationRuntimeNodeCommand.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Globalization;
1717
using System.Management.Automation;
1818
using System.Security.Permissions;
19+
using Microsoft.Azure.Commands.DataFactoryV2.Models;
1920
using Microsoft.Azure.Commands.DataFactoryV2.Properties;
2021
using Microsoft.Azure.Management.DataFactory.Models;
2122

@@ -26,7 +27,7 @@ namespace Microsoft.Azure.Commands.DataFactoryV2
2627
Constants.IntegrationRuntimeNode,
2728
DefaultParameterSetName = ParameterSetNames.ByIntegrationRuntimeName,
2829
SupportsShouldProcess = true),
29-
OutputType(typeof (SelfHostedIntegrationRuntimeNode))]
30+
OutputType(typeof(PSSelfHostedIntegrationRuntimeNode))]
3031
public class UpdateAzureDataFactoryIntegrationRuntimeNodeCommand : IntegrationRuntimeContextBaseCmdlet
3132
{
3233
[Parameter(
@@ -48,15 +49,23 @@ public override void ExecuteCmdlet()
4849

4950
Action updateIntegrationRuntimeNode = () =>
5051
{
51-
WriteObject(this.DataFactoryClient.UpdateIntegrationRuntimeNodesAsync(
52+
var node = this.DataFactoryClient.UpdateIntegrationRuntimeNodesAsync(
5253
ResourceGroupName,
5354
DataFactoryName,
5455
IntegrationRuntimeName,
5556
Name,
5657
new UpdateIntegrationRuntimeNodeRequest()
5758
{
5859
ConcurrentJobsLimit = ConcurrentJobsLimit
59-
}).ConfigureAwait(true).GetAwaiter().GetResult());
60+
}).ConfigureAwait(false).GetAwaiter().GetResult();
61+
62+
WriteObject(new PSSelfHostedIntegrationRuntimeNode(
63+
ResourceGroupName,
64+
DataFactoryName,
65+
IntegrationRuntimeName,
66+
Name,
67+
node,
68+
null));
6069
};
6170

6271
ConfirmAction(

src/ResourceManager/DataFactories/Commands.DataFactoryV2/help/Update-AzureRmDataFactoryV2IntegrationRuntime.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
external help file: Microsoft.Azure.Commands.DataFactoryV2.dll-Help.xml
3+
Module Name: AzureRM.DataFactoryV2
34
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datafactories/update-azurermdatafactoryv2integrationruntime
45
schema: 2.0.0
56
---

src/ResourceManager/DataFactories/Commands.DataFactoryV2/help/Update-AzureRmDataFactoryV2IntegrationRuntimeNode.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
external help file: Microsoft.Azure.Commands.DataFactoryV2.dll-Help.xml
3+
Module Name: AzureRM.DataFactoryV2
34
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datafactories/update-azurermdatafactoryv2integrationruntimenode
45
schema: 2.0.0
56
---
@@ -212,7 +213,7 @@ Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime
212213
213214
## OUTPUTS
214215
215-
### Microsoft.Azure.Management.DataFactory.Models.SelfHostedIntegrationRuntimeNode
216+
### Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode
216217
217218
## NOTES
218219
Keywords: azure, azurerm, arm, resource, management, manager, data, factories, copy, activities, integration runtime

src/ResourceManager/Websites/Commands.Websites/help/New-AzureRmWebAppSSLBinding.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,11 @@ If you upload a new certificate, keep in mind the following requirements for an
6161

6262
### Example 1: Bind a certificate to a Web App
6363
```
64-
PS C:\>New-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com" -CertificatePassword "p@ssw0rd"
64+
PS C:\>New-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com"
6565
```
6666

6767
This command binds an existing Azure certificate (a certificate with the Thumbprint E3A38EBA60CAA1C162785A2E1C44A15AD450199C3) to the web app named ContosoWebApp.
6868

69-
### Example 2: Upload a certificate and bind it to a Web App
70-
```
71-
PS C:\>New-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com" -CertificatePassword "p@ssw0rd" -CertificateFilePath "C:\Certificates\ContosoWebSite.pfx"
72-
```
73-
74-
Example 2 also binds the certificate E3A38EBA60CAA1C162785A2E1C44A15AD450199C3 to the Web App named ContosoWebApp.
75-
In this case, however, the certificate has not yet been uploaded to Azure.
76-
Because of that, the *CertificateFilePath* parameter is used to specify the local copy of the certificate .PFX file.
77-
This certificate will be uploaded to Azure and then the new SSL bindings will be created.
78-
7969
## PARAMETERS
8070

8171
### -CertificateFilePath

tools/PublishModules.ps1

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,6 @@ function Get-TargetModules
110110
}
111111
}
112112

113-
function Add-PSM1Dependency
114-
{
115-
[CmdletBinding()]
116-
param(
117-
[string] $Path)
118-
119-
PROCESS
120-
{
121-
$file = Get-Item -Path $Path
122-
$manifestFile = $file.Name
123-
$psm1file = $manifestFile -replace ".psd1", ".psm1"
124-
if($isNetCore -eq "false") {
125-
Update-ModuleManifest -Path $Path -RootModule $psm1file
126-
}
127-
}
128-
129-
}
130-
131-
132113
function Remove-ModuleDependencies
133114
{
134115
[CmdletBinding()]
@@ -216,7 +197,6 @@ function Change-RMModule
216197
Write-Output "Expanding $zipPath"
217198
Expand-Archive $zipPath -DestinationPath $dirPath
218199
Write-Output "Adding PSM1 dependency to $unzippedManifest"
219-
Add-PSM1Dependency -Path $unzippedManifest
220200
Write-Output "Removing module manifest dependencies for $unzippedManifest"
221201
Remove-ModuleDependencies -Path $unzippedManifest
222202
Remove-Item -Path $zipPath -Force

tools/UpdateModules.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,24 @@ function Create-ModulePsm1
7676
Write-Host "Writing psm1 manifest to $templateOutputPath"
7777
$template | Out-File -FilePath $templateOutputPath -Force
7878
$file = Get-Item -Path $templateOutputPath
79+
80+
Add-PSM1Dependency -Path $manifestPath
81+
}
82+
}
83+
84+
function Add-PSM1Dependency
85+
{
86+
[CmdletBinding()]
87+
param(
88+
[string] $Path)
89+
90+
PROCESS
91+
{
92+
$file = Get-Item -Path $Path
93+
$manifestFile = $file.Name
94+
$psm1file = $manifestFile -replace ".psd1", ".psm1"
95+
Write-Host "here" + $Path
96+
Update-ModuleManifest -Path $Path -RootModule $psm1file
7997
}
8098
}
8199

0 commit comments

Comments
 (0)