-
Notifications
You must be signed in to change notification settings - Fork 4k
New cmdlets to create/enter PSSession in remote container app. New cmdlet for getting container continuous deployment url #7307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MiYanni
merged 17 commits into
Azure:preview
from
vinisoto:asfarok-container-newcmdlets
Sep 25, 2018
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
47a640a
Solving CI conflicts and failing tests
b25b4c2
Updating help and change log
66403c0
typo on the cmdlet name
7729b1b
Skipping test due to failure in Travis. Tests passess locally in Play…
4336e16
Updating "Az" to "AzureRm" mappings for the new cmdlets
df7834c
un-skippinf test for continuous deployment URL
eebc5a0
Addressing static analysis failures
8fe0504
Removing PSSession cmdlets from current PR
66bfb80
Fixing changelog entries.
MiYanni d97ef02
Addressing typos
caeff97
Undoing AzureRM.psm1 commit
98496e1
Merge branch 'asfarok-container-newcmdlets' of https://github.com/vin…
a9f6958
Merge branch 'preview' into asfarok-container-newcmdlets
vinisoto c22f93d
Skipping test due to failure in Travis. Tests passess locally in Play…
e11ab24
un-skippinf test for continuous deployment URL
b6c43d5
Merge branch 'asfarok-container-newcmdlets' of https://github.com/vin…
d3c31f8
updating Mappings.json
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,739 changes: 1,739 additions & 0 deletions
1,739
...ites.Test.ScenarioTests.WebAppTests/TestEnableContainerContinuousDeploymentAndGetUrl.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...tes/Commands.Websites/Cmdlets/WebApps/GetAzureRMWebAppContainerContinuousDeploymentUrl.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// | ||
// Copyright Microsoft Corporation | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ---------------------------------------------------------------------------------- | ||
using System.Management.Automation; | ||
namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps | ||
{ | ||
/// <summary> | ||
/// this commandlet will return ContainerContinuousDeploymentUrl | ||
/// </summary> | ||
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "WebAppContainerContinuousDeploymentUrl", DefaultParameterSetName = ParameterSet1Name)] | ||
[OutputType(typeof(string))] | ||
public class GetAzureRMWebAppContainerContinuousDeploymentUrl : WebAppBaseCmdlet | ||
{ | ||
[Parameter(ParameterSetName = ParameterSet1Name, Position = 1, Mandatory = false, HelpMessage = "The name of the web app slot.", ValueFromPipelineByPropertyName = true)] | ||
[ValidateNotNullOrEmpty] | ||
public string SlotName { get; set; } | ||
public override void ExecuteCmdlet() | ||
{ | ||
if (ParameterSetName == ParameterSet2Name) | ||
{ | ||
string rg, name, slot; | ||
Utilities.CmdletHelpers.TryParseWebAppMetadataFromResourceId(WebApp.Id, out rg, out name, out slot); | ||
ResourceGroupName = rg; | ||
Name = name; | ||
SlotName = slot; | ||
} | ||
WriteObject(WebsitesClient.GetPublishingCredentials(ResourceGroupName, Name).ScmUri + "/docker/hook"); | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/ResourceManager/Websites/Commands.Websites/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
...tes/Commands.Websites/help/Get-AzureRmWebAppContainerContinuousDeploymentUrl.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
--- | ||
external help file: Microsoft.Azure.Commands.Websites.dll-Help.xml | ||
Module Name: AzureRM.Websites | ||
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.websites/?view=azurermps-6.8.1 | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Get-AzureRmWebAppContainerContinuousDeploymentUrl | ||
|
||
## SYNOPSIS | ||
Get-AzureRMWebAppContainerContinuousDeploymentUrl will return container continuous deployment url | ||
|
||
## SYNTAX | ||
|
||
### S1 | ||
``` | ||
Get-AzureRmWebAppContainerContinuousDeploymentUrl [[-SlotName] <String>] [-ResourceGroupName] <String> | ||
[-Name] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>] | ||
``` | ||
|
||
### S2 | ||
``` | ||
Get-AzureRmWebAppContainerContinuousDeploymentUrl [-WebApp] <PSSite> [-DefaultProfile <IAzureContextContainer>] | ||
[<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Get-AzureRMWebAppContainerContinuousDeploymentUrl will return container continuous deployment url | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
``` | ||
PS C:\> Get-AzureRmWebAppContainerContinuousDeploymentUrl -ResourceGroupName "Default-Web-WestUS" -Name "ContosoASP" | ||
``` | ||
|
||
This command will return container continuous deployment url. | ||
|
||
## PARAMETERS | ||
|
||
### -DefaultProfile | ||
The credentials, account, tenant, and subscription used for communication with Azure. | ||
|
||
```yaml | ||
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer | ||
Parameter Sets: (All) | ||
Aliases: AzureRmContext, AzureCredential | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -Name | ||
The name of the web app. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: S1 | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -ResourceGroupName | ||
The name of the resource group. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: S1 | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -SlotName | ||
The name of the web app slot. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: S1 | ||
Aliases: | ||
|
||
Required: False | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -WebApp | ||
The web app object | ||
|
||
```yaml | ||
Type: Microsoft.Azure.Commands.WebApps.Models.PSSite | ||
Parameter Sets: S2 | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: True (ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### CommonParameters | ||
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). | ||
|
||
## INPUTS | ||
|
||
### System.String | ||
### Microsoft.Azure.Commands.WebApps.Models.PSSite | ||
## OUTPUTS | ||
|
||
### System.String | ||
## NOTES | ||
|
||
## RELATED LINKS |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.