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

[BUG] Unknown TriggeredWebJobStatus value. Parameter name: value Actual value was Aborted / Running. #43295

Closed
ahmedHashwa opened this issue Apr 9, 2024 · 5 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 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

@ahmedHashwa
Copy link

ahmedHashwa commented Apr 9, 2024

Library name and version

Azure.ResourceManager.AppService 1.0.2

Describe the bug

When using Azure.ResourceManager.AppService library to request the status of Triggered Webjobs in Azure, an exception occurs as it doesn't recognize the status of Aborted and Running.

Expected behavior

To be able to get the current status of the TriggeredWebJob, which may include Pending, Running, Success, Failed, and Aborted

Actual behavior

Exception is thrown.

Reproduction Steps

1- Install the aforementioned Library.
2- Make sure you have an Azure Subscription along with a Triggered WebJob aborted/running.
3- Run the following code replacing items in <> with proper values.

        var client = new ArmClient(new DefaultAzureCredential()); 
        var subscription = await client.GetDefaultSubscriptionAsync();  
        var resourceGroups = subscription.GetResourceGroups();  
        ResourceGroupResource resourceGroup = await resourceGroups.GetAsync(<resourceGroupName>);  
        var website = await resourceGroup.GetWebSiteAsync(<webAppName>);  
        await website.Value.GetWebSiteSlotTriggeredWebJobAsync(<webJobName>);

Environment

Azure AppService

@github-actions github-actions bot added 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 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 labels Apr 9, 2024
Copy link

github-actions bot commented Apr 9, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@HarveyLink
Copy link
Member

Hi @ahmedHashwa ,Thank you for using Azure SDK for .NET.
As the service swagger definition, we only have 3 status value, which are: Error/Failed/Success.
If there are other available values, then the service team need to update the definition. You could open an Azure support request to get help on that.
Also, if you could provide us the correct values, we could fix it at SDK side as work around.

@HarveyLink HarveyLink added the needs-author-feedback More information is needed from author to address the issue. label Apr 16, 2024
Copy link

Hi @ahmedHashwa. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@github-actions github-actions bot removed the needs-team-attention This issue needs attention from Azure service team or SDK team label Apr 16, 2024
@ahmedHashwa
Copy link
Author

@HarveyLink
Thank you for your response.
I got the exception for the aforementioned values in TriggeredWebJobStatus:

Aborted
Running

It is also expected to get exceptions if another value is returned, such as:
Initializing: according to Kudu TriggeredJobRunLogger.cs

As mentioned, when I try to get an object representing the job, I get that exception, which prevents me from running it through the API if it is in Aborted Status, for example.

@github-actions github-actions bot added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Apr 17, 2024
HarveyLink added a commit that referenced this issue Apr 19, 2024
* Fix for issue 43295

* Update CHANGELOG.md
@HarveyLink
Copy link
Member

Issue fixed, new package released, please have a try on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 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