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

[AppService] appSettings is null, getConfiguration #30876

Open
6 tasks
dbwodlf3 opened this issue Aug 23, 2024 · 6 comments
Open
6 tasks

[AppService] appSettings is null, getConfiguration #30876

dbwodlf3 opened this issue Aug 23, 2024 · 6 comments
Assignees
Labels
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-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@dbwodlf3
Copy link

dbwodlf3 commented Aug 23, 2024

  • Package Name: @azure/arm-appservice":
  • Package Version: "^15.0.0"
  • Operating system: OSX
  • nodejs
    • version: 22
  • browser chrome
    • name/version:
  • typescript
    • version:
  • Is the bug related to documentation in
    const updateTaskItems = await Promise.all(
        taskItems.map(async (taskItem) => {
            const { id, resourceGroup, expandEnvs } =
                validateTaskItem(taskItem);
            const resource = await client.webApps.getConfiguration(
                resourceGroup,
                id
            );
            console.log("RESOURCE!!:=", resource.appSettings);
        })
    );

When I use the getConfiguration function, it returns a null value.
However, when I use the listApplicationSettings function, I can retrieve the settings,
but it doesn't include the slotSettings information.

how can i get slotSettings?

Tasks

No tasks being tracked yet.
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 23, 2024
@dbwodlf3
Copy link
Author

dbwodlf3 commented Aug 23, 2024

just use the listSlotConfigurationNames API?. However, the listSlotConfigurationNames API only retrieves information for the production slot, not for individual slots.

@jeremymeng jeremymeng added the Mgmt This issue is related to a management-plane library. label Aug 23, 2024
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Aug 23, 2024
@kazrael2119
Copy link
Contributor

will check

@kazrael2119
Copy link
Contributor

kazrael2119 commented Aug 30, 2024

When I use the getConfiguration function, it returns a null value.

I can repro this issue, @dbwodlf3 Do you have set the appSettings on portal? If yes, could you tell me how to set it?

@kazrael2119
Copy link
Contributor

kazrael2119 commented Aug 30, 2024

just use the listSlotConfigurationNames API?. However, the listSlotConfigurationNames API only retrieves information for the production slot, not for individual slots.

could you try to use webapps.getConfigurationSlot() ? we have an operation to get configuration slot: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts#L4520

@qiaozha qiaozha added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Sep 4, 2024
Copy link

github-actions bot commented Sep 4, 2024

Hi @dbwodlf3. 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.

Copy link

Hi @dbwodlf3, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. 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

4 participants