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

az staticwebapp disconnect is broken #21364

Closed
Alec13355 opened this issue Oct 21, 2021 · 3 comments
Closed

az staticwebapp disconnect is broken #21364

Alec13355 opened this issue Oct 21, 2021 · 3 comments
Assignees
Labels
App Services customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@Alec13355
Copy link

  • ** azure-cli**:
  • 2.29.0:
  • Linux:
  • 3.6.10:

Describe the bug
Running az staticwebapp disconnect -n <your app name> no longer works

The command failed with an unexpected error. Here is the traceback:
'StaticSitesOperations' object has no attribute 'detach_static_site'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 657, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 691, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 328, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/static_sites.py", line 38, in disconnect_staticsite
return sdk_no_wait(no_wait, client.detach_static_site,
AttributeError: 'StaticSitesOperations' object has no attribute 'detach_static_site'
To open an issue, please run: 'az feedback'

To Reproduce
Steps to reproduce the behavior:

  1. Create a static Site
  2. Attempt to disconnect said static site through pipeline agent or portal built in CLI

Expected behavior
Should run command successfully

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2021-10-21 at 1 12 38 PM

Additional context
Add any other context about the problem here.

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 21, 2021
@mccoyp mccoyp added App Services Mgmt This issue is related to a management-plane library. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Oct 21, 2021
@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Oct 21, 2021
@mccoyp
Copy link
Member

mccoyp commented Oct 21, 2021

Hi @Alec13355, thank you for opening an issue! I'll tag some folks who may be able to help so we can take a look at this as soon as possible. I see that this is using the Azure CLI, and the stack trace suggests that the issue might be isolated to the CLI even though the azure-mgmt-web package may be used behind the scenes. I would suggest opening an issue in the azure-cli repo if you haven't already, to make them aware of this and maybe receive some more useful help.

@Alec13355
Copy link
Author

@mccoyp thank you looks like it was opened here and is being addressed I just had the wrong open source package maybe? Azure/azure-cli#19891

@mccoyp
Copy link
Member

mccoyp commented Oct 21, 2021

@Alec13355 Got it, thank you for linking the issue! Since this is being addressed there, I can close this duplicate issue.

@mccoyp mccoyp closed this as completed Oct 21, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Nov 2, 2022
Release cost management microsoft.cost management 2022 10 01 (Azure#21380)

* Adds base for updating Microsoft.CostManagement from version stable/2022-05-01 to version 2022-10-01

* Updates readme

* Updates API version in new specs and examples

* Upgrading Scheduled Actions API to GA (Azure#20964)

* Upgrading Scheduled Actions API to GA

* First commit:- upgrading existing API to GA version

* Upgraded api-version

* Adding Operations API in common-types

* upgrading api-version in Operations example

* referencing common operation def

* removing reference to common Operation as it caused multiple validation
errors

* renaming Operation to CostManagementOperation and referencing Operation from V3 types

* fixing csv

* SavingsPlan GA changes (Azure#20776)

* SavingsPlan GA changes

Fix validation errors

Rebase with shared branch

Correct version in the common-types file

Review comments

Review comments

Refer grain enum in parameter

Correct enum type

Review comments

More improvements

* Fix duplicated model lint diff error

* Use common types v2

* Move to v2 types.json

* Corrected examples

* Sri/release cost management microsoft.cost management 2022 10 01 (Azure#21036)

* First commit - copying cost management and exports API from 2021-10-01

* Upgrading version

* Adding costmanagement.generatedetailedcostreport.json

* fixing validation errors

* fixing validation errors

* fixing validation errors

* reverting parameter order update

* Reverting CostManagementProxyResource and CostManagementResource changes after breaking changes office hours discussion

* ddressing review comments

* Resolving code review comments

* Qualifying Resource and ProxyResource with CostManagement prefix

Please enter the commit message for your changes. Lines starting

* Addressing review comments

* fixing example file names

* fixing linter error

* updated operationResults description

* Reverting breaking changes in exports API

* fixing validation error

* Rebasing with latest

* fixing billingAccountIdParameter definition conflict

* fixing billing profile id parameter conflict

* Addressing code review comment

* fixing model validation errors

* Jatehr/cost management pricesheets (Azure#20958)

* Create costmanagement.pricesheets.json

* Create PricesheetDownload.json

* Create PricesheetDownloadByBillingProfile.json

* Create OperationList.json

* Update readme.md

* Update readme.md

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update PricesheetDownload.json

* Update PricesheetDownloadByBillingProfile.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Delete OperationList.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update PricesheetDownload.json

* Update PricesheetDownloadByBillingProfile.json

* Update PricesheetDownload.json

* Update PricesheetDownloadByBillingProfile.json

* Update PricesheetDownloadByBillingProfile.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* resolve Go SDK stuttering issue

* Update costmanagement.pricesheets.json

* Update readme.md

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update PricesheetDownload.json

* Update PricesheetDownloadByBillingProfile.json

* Delete BenefitRecommendationsByRecommendationId.json

* Update costmanagement.benefits.json

* Update costmanagement.pricesheets.json

* Update costmanagement.pricesheets.json

* Update common-types.json

* Update costmanagement.pricesheets.json

* Update costmanagement.generatedetailedcostreport.json

* Update common-types.json

* Update common-types.json

* Update common-types.json

* Update common-types.json

* Update common-types.json

* resolve Go SDK naming collision

Co-authored-by: Chenjie Shi <[email protected]>

* Update descriptions (Azure#21364)

* Update descriptions

* Fix lint errors

Co-authored-by: srilatha inavolu <[email protected]>
Co-authored-by: Jayati Tehri <[email protected]>
Co-authored-by: Chenjie Shi <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
App Services customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants