-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error while listing slot application settings #23318
Comments
@kazrael2119 Could you help take a look at this issue ? Thanks |
Hi @lcssanches , |
Hello @kazrael2119 , Thank you for you message. I should have state this before but my goal is to create multiple app settings as "Deployment slot setting" in the "production"/default slot, because I don't want them to be swapped later. |
Adding Service team to look into this. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI. Issue Details
Describe the bug
To Reproduce // index.js
const { WebSiteManagementClient } = require("@azure/arm-appservice");
const { DefaultAzureCredential } = require("@azure/identity");
async function run() {
const appname = "xxxxx"
const subscription_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
const resource_group = "xxxxx"
const creds = new DefaultAzureCredential()
const clientWebApps = new WebSiteManagementClient(creds, subscription_id);
const res = await clientWebApps.webApps.listApplicationSettingsSlot(resource_group, appname, null)
//const res = await clientWebApps.webApps.listApplicationSettings(resource_group, appname) // works, to prove app exists
console.log({res})
}
run(); Expected behavior Screenshots Additional context
|
@antcp, @AzureAppServiceCLI Could you please look into this issue and provide an update ? |
Reverting change in name pattern regex (Azure#23318)
Reverting change in name pattern regex (Azure#23318)
Describe the bug
listApplicationSettingsSlot
andupdateApplicationSettingsSlot
only work when slot is specified even though doc suggests otherwise:null
is specified the SDK throwsError: slot cannot be null or undefined.
RestError: The Resource 'Microsoft.Web/sites/xxxxx-xxxxx/slots/config' under resource group 'xxxxxxxxx-xxxxxxxx' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
The Resource 'Microsoft.Web/sites/xxxxx-xxxxx/slots/production' under resource group 'xxxxxxxxx-xxxxxxxx' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SDK should allow listing and updating specific settings for the production slot.
Screenshots
none
Additional context
none
The text was updated successfully, but these errors were encountered: