Skip to content

Commit

Permalink
Updating help and removing 'justdoit cmdlet
Browse files Browse the repository at this point in the history
  • Loading branch information
markcowl committed Sep 15, 2017
1 parent a8e95a3 commit a68a635
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 111 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function Get-LocationFromUser
return $location
}

Export-ModuleMember -Cmdlet New-AzWebAppJustDoIt

Export-ModuleMember -Cmdlet New-AzWebApp
Export-ModuleMember -Cmdlet New-AzWebAppGrayParam

28 changes: 18 additions & 10 deletions experiments/Websites.Experiments/help/New-AzWebApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,28 @@ New-AzWebApp [[-WebAppName] <String>] [[-ResourceGroupName] <String>] [[-AppServ
```

## DESCRIPTION
{{Fill in the Description}}
Create a new Azure AppService website and attach it to a git repository.

## EXAMPLES

### Example 1
### Example 1: Create a website with prompts for settings
```
PS C:\> {{ Add example code here }}
PS C:\> New-AzWebApp contosoWebApp
```

{{ Add example description here }}
Creates a web application. The user will be prompted for the appservice to use and other settings.

## Example 1: Create a website with default settings
PS C:\> New-AzWebApp contosoWebApp -Auto
```
Creates a web application using default settings.
## PARAMETERS
### -AddRemote
{{Fill AddRemote Description}}
Add a remote to local github repo.
```yaml
Type: SwitchParameter
Expand All @@ -46,7 +53,7 @@ Accept wildcard characters: False
```

### -AppServicePlan
{{Fill AppServicePlan Description}}
The name or id of the AppService Plan to use with this WebApp.

```yaml
Type: String
Expand All @@ -61,7 +68,7 @@ Accept wildcard characters: False
```
### -Auto
{{Fill Auto Description}}
Accept default values for all settings not provided, withotu prompting.
```yaml
Type: SwitchParameter
Expand All @@ -76,7 +83,7 @@ Accept wildcard characters: False
```
### -GitRepositoryPath
{{Fill GitRepositoryPath Description}}
The path to a github repository where remotes should be added.
```yaml
Type: String
Expand All @@ -91,7 +98,7 @@ Accept wildcard characters: False
```
### -ResourceGroupName
{{Fill ResourceGroupName Description}}
The name of the resource group for the Website.
```yaml
Type: String
Expand All @@ -106,7 +113,7 @@ Accept wildcard characters: False
```
### -WebAppName
{{Fill WebAppName Description}}
The name of the Website. The website will automatically use this value as the subdomain for the created website.
```yaml
Type: String
Expand All @@ -128,6 +135,7 @@ Accept wildcard characters: False
## OUTPUTS
### Microsoft.Azure.Management.WebSites.Models.Site
Details about the created website, including URL and github repo url.
## NOTES
Expand Down
23 changes: 13 additions & 10 deletions experiments/Websites.Experiments/help/New-AzWebAppGrayParam.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,28 @@ schema: 2.0.0
# New-AzWebAppGrayParam

## SYNOPSIS
{{Fill in the Synopsis}}
Create an Azure Website using Azure App Service.

## SYNTAX

```
New-AzWebAppGrayParam [[-WebAppName] <String>] [[-ResourceGroupName] <String>] [[-AppServicePlan] <String>]
[-Auto] [-AddRemote] [[-GitRepositoryPath] <String>]
[-Auto] [-AddRemote] [[-GitRepositoryPath] <String>] [-Location <string>]
```

## DESCRIPTION
{{Fill in the Description}}
Create an Azure Website using Azure App Service. This cmdlet uses the 'Gray Parameter' experience, which will prompt the user with default
values for parameters that are not provided. Using -Auto indicates that further prompting for defaults should not occur.


## EXAMPLES

### Example 1
```
PS C:\> {{ Add example code here }}
PS C:\> New-AzWebAppGrayParam
```

{{ Add example description here }}
Create a web application using defaults for all values, including name

## PARAMETERS

Expand All @@ -46,7 +48,7 @@ Accept wildcard characters: False
```
### -AppServicePlan
{{Fill AppServicePlan Description}}
The ApPService Plan to use for thsi website. If not provided, the website will create an app service plan, or join an existing free AppService plan.
```yaml
Type: String
Expand All @@ -61,7 +63,7 @@ Accept wildcard characters: False
```
### -Auto
{{Fill Auto Description}}
Skip parameter prompting for remaining parameters.
```yaml
Type: SwitchParameter
Expand All @@ -76,7 +78,7 @@ Accept wildcard characters: False
```
### -GitRepositoryPath
{{Fill GitRepositoryPath Description}}
The path to a github repository containingg the application for the website. A remote for pushign to the website will be added to this repository.
```yaml
Type: String
Expand All @@ -91,7 +93,7 @@ Accept wildcard characters: False
```
### -ResourceGroupName
{{Fill ResourceGroupName Description}}
The name of the resource group to create the website in.
```yaml
Type: String
Expand All @@ -106,7 +108,7 @@ Accept wildcard characters: False
```
### -WebAppName
{{Fill WebAppName Description}}
The name of the website.
```yaml
Type: String
Expand All @@ -128,6 +130,7 @@ Accept wildcard characters: False
## OUTPUTS
### Microsoft.Azure.Management.WebSites.Models.Site
Details about the created website, including its URL.
## NOTES
Expand Down
90 changes: 0 additions & 90 deletions experiments/Websites.Experiments/help/New-AzWebAppJustDoIt.md

This file was deleted.

0 comments on commit a68a635

Please sign in to comment.