Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def default_api_version(self):
ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_POLICY: '2019-09-01',
ResourceType.MGMT_RESOURCE_RESOURCES: '2020-10-01',
ResourceType.MGMT_RESOURCE_RESOURCES: '2020-06-01',
Comment thread
calvinsID marked this conversation as resolved.
Outdated
ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2019-11-01',
ResourceType.MGMT_RESOURCE_DEPLOYMENTSCRIPTS: '2020-10-01',
ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2019-06-01-preview',
Expand Down
12 changes: 12 additions & 0 deletions src/azure-cli/azure/cli/command_modules/appservice/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,12 @@
- name: Create a web app with the default configuration.
text: >
az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName
- name: Create a web app with a java|11|Java SE|8 runtime using '|' delimiter.
text: >
az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "java|11|Java SE|8"
- name: Create a web app with a java|11|Java SE|8 runtime using ':' delimiter.
text: >
az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "java:11:Java SE:8"
- name: Create a web app with a NodeJS 10.14 runtime and deployed from a local git repository.
text: >
az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "node|10.14" --deployment-local-git
Expand Down Expand Up @@ -1958,6 +1964,12 @@
- name: Create a web app with a specified name
text: >
az webapp up -n MyUniqueAppName
- name: Create a web app with a specified name and a java|11|Java SE|8 runtime using '|' delimiter
text: >
az webapp up -n MyUniqueAppName --runtime "java|11|Java SE|8"
- name: Create a web app with a specified name and a java|11|Java SE|8 runtime using ':' delimiter
text: >
az webapp up -n MyUniqueAppName --runtime "java:11:Java SE:8"
- name: Create a web app in a specific region, by running the command from the folder where the code to be deployed exists.
text: >
az webapp up -l locationName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2619,7 +2619,13 @@ def __init__(self, cmd, client, linux=False):
@staticmethod
def remove_delimiters(runtime):
import re
runtime = re.split('[| :]', runtime) # delimiters allowed: '|', ' ', ':'
# delimiters allowed: '|', ':', ' '
Comment thread
calvinsID marked this conversation as resolved.
Outdated
if '|' in runtime:
runtime = re.split('[|]', runtime)
elif ':' in runtime:
runtime = re.split('[:]', runtime)
else:
runtime = re.split('[ ]', runtime)
return '|'.join(filter(None, runtime))

def resolve(self, display_name):
Expand Down
Loading