Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3k forks source link

Unable to change settings in az version 2.62.0 #29635

Closed kurotoki1112 closed 1 month ago

kurotoki1112 commented 3 months ago

Describe the bug

I am trying to change the functions setting using the following command, but I cannot change it


az functionapp config set -n ResourceName -g RsourceGroupName --web-sockets-enabled true
az funcitonapp config set -n ResourceName -g RsourceGroupName --use-32bit-worker-process false

Confirmed that az version 2.49.0 can change settings correctly

Related command

az functionapp config set -n ResourceName -g RsourceGroupName --web-sockets-enabled true az funcitonapp config set -n ResourceName -g RsourceGroupName --use-32bit-worker-process false

Errors

No error, but “web-sockets-enabled” is set to “false” even though it is set to “true”

PS C:\Users\yunakano> az functionapp config set -n yunakano-240801-func-win -g 240801 --web-sockets-enabled true
dotnet will reach EOL on 2024-11-12 and will no longer be supported. https://azure.microsoft.com/en-us/updates/dotnet6support/
{
  "acrUseManagedIdentityCreds": false,
  "acrUserManagedIdentityId": null,
  "alwaysOn": false,
  "apiDefinition": null,
  "apiManagementConfig": null,
  "appCommandLine": "",
  "appSettings": null,
  "autoHealEnabled": false,
  "autoHealRules": null,
  "autoSwapSlotName": null,
  "azureStorageAccounts": {},
  "connectionStrings": null,
  "cors": {
    "allowedOrigins": [
      "https://ms.portal.azure.com"
    ],
    "supportCredentials": false
  },
  "defaultDocuments": [
    "Default.htm",
    "Default.html",
    "Default.asp",
    "index.htm",
    "index.html",
    "iisstart.htm",
    "default.aspx",
    "index.php"
  ],
  "detailedErrorLoggingEnabled": false,
  "documentRoot": null,
  "elasticWebAppScaleLimit": null,
  "experiments": {
    "rampUpRules": []
  },
  "ftpsState": "FtpsOnly",
  "functionAppScaleLimit": 0,
  "functionsRuntimeScaleMonitoringEnabled": false,
  "handlerMappings": null,
  "healthCheckPath": null,
  "http20Enabled": false,
  "httpLoggingEnabled": false,
  "id": "/subscriptions/22f3e45a-7d70-4717-a515-c025ef4a4916/resourceGroups/240801/providers/Microsoft.Web/sites/yunakano-240801-func-win",
  "ipSecurityRestrictions": [
    {
      "action": "Allow",
      "description": "Allow all access",
      "headers": null,
      "ipAddress": "Any",
      "name": "Allow all",
      "priority": 2147483647,
      "subnetMask": null,
      "subnetTrafficTag": null,
      "tag": null,
      "vnetSubnetResourceId": null,
      "vnetTrafficTag": null
    }
  ],
  "ipSecurityRestrictionsDefaultAction": null,
  "javaContainer": null,
  "javaContainerVersion": null,
  "javaVersion": null,
  "keyVaultReferenceIdentity": null,
  "kind": null,
  "limits": null,
  "linuxFxVersion": "",
  "loadBalancing": "LeastRequests",
  "localMySqlEnabled": false,
  "location": "Japan East",
  "logsDirectorySizeLimit": 35,
  "machineKey": null,
  "managedPipelineMode": "Integrated",
  "managedServiceIdentityId": null,
  "metadata": null,
  "minTlsCipherSuite": null,
  "minTlsVersion": "1.2",
  "minimumElasticInstanceCount": 1,
  "name": "yunakano-240801-func-win",
  "netFrameworkVersion": "v6.0",
  "nodeVersion": "",
  "numberOfWorkers": 1,
  "phpVersion": "",
  "powerShellVersion": "",
  "preWarmedInstanceCount": 1,
  "publicNetworkAccess": "Enabled",
  "publishingUsername": "REDACTED",
  "push": null,
  "pythonVersion": "",
  "remoteDebuggingEnabled": true,
  "remoteDebuggingVersion": "VS2022",
  "requestTracingEnabled": false,
  "requestTracingExpirationTime": null,
  "resourceGroup": "240801",
  "scmIpSecurityRestrictions": [
    {
      "action": "Allow",
      "description": "Allow all access",
      "headers": null,
      "ipAddress": "Any",
      "name": "Allow all",
      "priority": 2147483647,
      "subnetMask": null,
      "subnetTrafficTag": null,
      "tag": null,
      "vnetSubnetResourceId": null,
      "vnetTrafficTag": null
    }
  ],
  "scmIpSecurityRestrictionsDefaultAction": null,
  "scmIpSecurityRestrictionsUseMain": false,
  "scmMinTlsVersion": "1.2",
  "scmType": "None",
  "tags": {
    "hidden-link: /app-insights-resource-id": "/subscriptions/22f3e45a-7d70-4717-a515-c025ef4a4916/resourceGroups/240801/providers/Microsoft.Insights/components/yunakano-240801-func-win"
  },
  "tracingOptions": null,
  "type": "Microsoft.Web/sites",
  "use32BitWorkerProcess": true,
  "virtualApplications": [
    {
      "physicalPath": "site\\wwwroot",
      "preloadEnabled": false,
      "virtualDirectories": null,
      "virtualPath": "/"
    }
  ],
  "vnetName": "",
  "vnetPrivatePortsCount": 0,
  "vnetRouteAllEnabled": false,
  "webSocketsEnabled": false,
  "websiteTimeZone": null,
  "windowsFxVersion": null,
  "xManagedServiceIdentityId": null
}

Issue script & Debug output

debug.txt

Expected behavior

Configured options are ignored.

Environment Summary

PS C:\Users\yunakano> az version
{
  "azure-cli": "2.62.0",
  "azure-cli-core": "2.62.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "communication": "1.9.2",
    "containerapp": "0.3.50"
  }
}

Additional context

No response

yonzhan commented 3 months ago

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

kurotoki1112 commented 3 months ago

Dear Experts I'm wondering if you have done any research on this, and what you can tell me about it. Thank you in advance for your continued support. Please note that we have confirmed that the problem still occurs with the latest version 2.63.0 released this month.

kamperiadis commented 2 months ago

Hi @kurotoki1112 My changes in https://github.com/Azure/azure-cli/pull/29756 should resolve this issue. They will be available in the next Azure CLI release (Oct 8).

kurotoki1112 commented 1 month ago

Dear Experts We have confirmed that the problem has been fixed in the latest version that was recently released Thank you very much for your support!