Skip to content

Commit

Permalink
Fix s-cloud breaks for 'az webapp show' and 'az appservice plan show'…
Browse files Browse the repository at this point in the history
… commands (#26921)
  • Loading branch information
naveedaz authored Jul 19, 2023
1 parent d849bc5 commit 58ac6ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ def update_app_service_plan(instance, sku=None, number_of_workers=None, elastic_
def show_plan(cmd, resource_group_name, name):
from azure.cli.core.commands.client_factory import get_subscription_id
client = web_client_factory(cmd.cli_ctx)
serverfarm_url_base = 'subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}?api-version={}'
serverfarm_url_base = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}?api-version={}'
subscription_id = get_subscription_id(cmd.cli_ctx)
serverfarm_url = serverfarm_url_base.format(subscription_id, resource_group_name, name, client.DEFAULT_API_VERSION)
request_url = cmd.cli_ctx.cloud.endpoints.resource_manager + serverfarm_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _get_location_from_resource_group(cli_ctx, resource_group_name):

def show_raw_functionapp(cmd, resource_group_name, name):
client = web_client_factory(cmd.cli_ctx)
site_url_base = 'subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}?api-version={}'
site_url_base = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}?api-version={}'
subscription_id = get_subscription_id(cmd.cli_ctx)
site_url = site_url_base.format(subscription_id, resource_group_name, name, client.DEFAULT_API_VERSION)
request_url = cmd.cli_ctx.cloud.endpoints.resource_manager + site_url
Expand Down

0 comments on commit 58ac6ab

Please sign in to comment.