Skip to content
4 changes: 4 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 @@ -1416,6 +1416,10 @@
- name: Create a web app with an image from a private Azure Container Registry.
text: >
az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName -i myregistry.azurecr.io/docker-image:tag
- name: create a WebApp using shared App Service Plan that is in a different resource group.
text: >
AppServicePlanID=$(az appservice plan show -n SharedAppServicePlan -g MyResourceGroup --query "id" --out tsv)
az webapp create -g MyResourceGroup -p "$AppServicePlanID" -n MyUniqueAppName
"""

helps['webapp create-remote-connection'] = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def validate_asp_sku(cmd, namespace):
def validate_ip_address(cmd, namespace):
if namespace.ip_address is not None:
_validate_ip_address_format(namespace)
_validate_ip_address_existance(cmd, namespace)
# For prevention of adding the duplicate IPs.
if 'add' in cmd.name:
_validate_ip_address_existance(cmd, namespace)


def _validate_ip_address_format(namespace):
Expand Down
Loading