Skip to content
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

Unable to create appservice plan #6316

Closed
shiva-appani-gep opened this issue May 23, 2023 · 4 comments
Closed

Unable to create appservice plan #6316

shiva-appani-gep opened this issue May 23, 2023 · 4 comments
Assignees
Labels
App Services Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. extension/webapp issue-addressed This issue is addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Web Apps

Comments

@shiva-appani-gep
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az appservice plan create Extension Name: appservice-kube. Version: 0.1.7.

Errors:

The behavior of this command has been altered by the following extension: appservice-kube
The command failed with an unexpected error. Here is the traceback:
No module named 'azure.mgmt.web.v2021_01_01'
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 718, in _run_job
  File "C:\Users\Shiva.Appani\.azure\cliextensions\appservice-kube\azext_appservice_kube\commands.py", line 41, in _polish_bad_errors
    raise ex
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\Shiva.Appani\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 446, in create_app_service_plan
    return create_app_service_plan_inner(cmd, resource_group_name, name, is_linux, hyper_v, per_site_scaling,
  File "C:\Users\Shiva.Appani\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 558, in create_app_service_plan_inner
    kube_environment = _get_kube_env_from_custom_location(cmd, custom_location, resource_group_name)
  File "C:\Users\Shiva.Appani\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 468, in _get_kube_env_from_custom_location
    client = _get_kube_client(cmd)
  File "C:\Users\Shiva.Appani\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 301, in _get_kube_client
    return client.kube_environments
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/web/_web_site_management_client.py", line 627, in kube_environments
ModuleNotFoundError: No module named 'azure.mgmt.web.v2021_01_01'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Run below command:
  • az appservice plan create --resource-group {} --name {} -c {} --sku {} --per-site-scaling --is-linux

Expected Behavior

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.10
Installer: MSI

azure-cli 2.48.1 *

Extensions:
appservice-kube 0.1.7
connectedk8s 1.3.16
customlocation 0.1.3
front-door 1.0.17
k8s-extension 1.4.0
logicapp 0.1.2

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Additional Context

@ghost ghost added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. App Services labels May 23, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented May 23, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added CXP Attention This issue is handled by CXP team. Auto-Assign Auto assign by bot extension/webapp Web Apps labels May 23, 2023
@SaurabhSharma-MSFT SaurabhSharma-MSFT self-assigned this May 23, 2023
@SaurabhSharma-MSFT
Copy link
Member

@shiva-appani-gep Can you please upgrade your 'appservice-kube' extension to latest version 0.1.8 as this issue seems fixed in the latest build.
image
Thanks

@SaurabhSharma-MSFT SaurabhSharma-MSFT added the issue-addressed This issue is addressed and ready to close. label May 24, 2023
@ghost
Copy link

ghost commented May 24, 2023

Hi @shiva-appani-gep. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

@ghost
Copy link

ghost commented May 31, 2023

Hi @shiva-appani-gep, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

@ghost ghost closed this as completed May 31, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Services Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. extension/webapp issue-addressed This issue is addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Web Apps
Projects
None yet
Development

No branches or pull requests

3 participants