Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.22k stars 3.82k forks source link

[Bug] Update-AzFunctionApp: Not able to switch from premium to consumption plan if same consumption plan name exists in another resource group. #17607

Open rakhshandakhan opened 2 years ago

rakhshandakhan commented 2 years ago

Description

When trying to switch the Function App Plan from Premium to Consumption using the PowerShell commands, I am unable to do that and getting the error as "Cannot change the site {function-app-name} to the App Service Plan {consumption-plan-name} due to hosting constraints.". I understand that this error comes when the webspace of the plan and the function app is different, but the issue comes even when you have the plan and function app is in the same webspace. This is because I already have an existing consumption plan with same name in a different Resource group. It is when you have same plan name in different resource group it always picks the first lexical order name and send the webspace id of that plan instead of the one just created within same Webspace. Steps to reproduce the issue with Azure PowerShell Commands: 1: Create a new resource group called "ABC123-RG" under location East US 2: Create a new storage account abcstorageaccount123 3: Create a function app in Consumption plan Model under East US (or any) location under resource group created in step 1. This should create an App Service Plan Name "EastUSPlan" in the Resource Group "ABC123-RG" 4: Create a new resource group called "Testing123-RG" under same location East US 5: Create a new storage account teststorageaccount123 6: create a new premium plan 7: create a function app in consumption plan 8: Update function app to premium plan 9: Update the function app to consumption plan. => This will fail and give error as stated above. If we check the HTTP request content for this, we will find the ServerFarmId being passed as with the resource group ABC123-RG. But it should have been Testing123-RG Powershell_Script_commands.txt

Issue script & Debug output

Command Ran:
Update-AzFunctionApp -Name test123funcapp -ResourceGroupName Testing123-RG -PlanName EastUSPlan -Force -Debug
=======================================

DEBUG: HeaderParametersAdded:                                                                                           
DEBUG: ============================ HTTP REQUEST ============================                                           

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkCertificate/providers/Microsoft.Web/serverfarms/ASP-rkCertificate-b165?api-version=2019-08-01

Headers:
x-ms-unique-id                : 95
x-ms-client-request-id        : b089d2d3-01ce-4590-9753-626bbad80678
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall:                                                                                                      
DEBUG: ============================ HTTP RESPONSE ============================                                          

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 76ec710d-fb5a-4435-94cc-c0b9c4704942
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11972
x-ms-correlation-request-id   : 4b2417d0-b9e3-4b66-ae07-47edec8c5dc1
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162336Z:4b2417d0-b9e3-4b66-ae07-47edec8c5dc1
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:23:35 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkCertificate/providers/Microsoft.Web/serverfarms/ASP-rkCertificate-b165",
  "name": "ASP-rkCertificate-b165",
  "type": "Microsoft.Web/serverfarms",
  "kind": "linux",
  "location": "Central US",
  "properties": {
    "serverFarmId": 23453,
    "name": "ASP-rkCertificate-b165",
    "workerSize": "D1",
    "workerSizeId": 3,
    "workerTierName": null,
    "numberOfWorkers": 1,
    "currentWorkerSize": "D1",
    "currentWorkerSizeId": 3,
    "currentNumberOfWorkers": 1,
    "status": "Ready",
    "webSpace": "rkCertificate-CentralUSwebspace-Linux",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 30,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Dedicated",
    "siteMode": null,
    "geoRegion": "Central US",
    "perSiteScaling": false,
    "elasticScaleEnabled": false,
    "maximumElasticWorkerCount": 1,
    "numberOfSites": 1,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": "2021-12-25T07:18:00",
    "tags": null,
    "kind": "linux",
    "resourceGroup": "rkCertificate",
    "reserved": true,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-dm1-191_23453",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "P1v2",
    "tier": "PremiumV2",
    "size": "P1v2",
    "family": "Pv2",
    "capacity": 1
  }
}

DEBUG: ResponseCreated:                                                                                                 
DEBUG: BeforeResponseDispatch:                                                                                          
DEBUG: Finally:                                                                                                         
DEBUG: CmdletAfterAPICall:                                                                                              
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process                                                               
DEBUG: CmdletProcessRecordAsyncEnd:                                                                                     
DEBUG: CmdletProcessRecordEnd:                                                                                          
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.                                                                                           
DEBUG: CmdletEndProcessing:                                                                                             
DEBUG: [CmdletBeginProcessing]: Starting command                                                                        
DEBUG: CmdletBeginProcessing:                                                                                           
DEBUG: CmdletProcessRecordStart:                                                                                        
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get'                    
DEBUG: CmdletProcessRecordAsyncStart:                                                                                   
DEBUG: CmdletGetPipeline:                                                                                               
DEBUG: CmdletBeforeAPICall:                                                                                             
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp?api-version=2019-08-01
DEBUG: HeaderParametersAdded:                                                                                           
DEBUG: ============================ HTTP REQUEST ============================                                           

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp?api-version=2019-08-01

Headers:
x-ms-unique-id                : 96
x-ms-client-request-id        : 619eb7b7-ebfe-483a-9a8c-5731201bbd2e
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall:                                                                                                      
DEBUG: ============================ HTTP RESPONSE ============================                                          

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 987304d2-5210-47d4-bc70-96c3544b389e
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11971
x-ms-correlation-request-id   : 25810f67-96d3-4fc0-9e8f-90e55617b29c
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162341Z:25810f67-96d3-4fc0-9e8f-90e55617b29c
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:23:40 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp",
  "name": "rkconfigasp",
  "type": "Microsoft.Web/serverfarms",
  "kind": "app",
  "location": "Central US",
  "properties": {
    "serverFarmId": 20902,
    "name": "rkconfigasp",
    "workerSize": "Default",
    "workerSizeId": 0,
    "workerTierName": null,
    "numberOfWorkers": 1,
    "currentWorkerSize": "Default",
    "currentWorkerSizeId": 0,
    "currentNumberOfWorkers": 1,
    "status": "Ready",
    "webSpace": "rkConfigTraining-CentralUSwebspace",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 3,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Dedicated",
    "siteMode": null,
    "geoRegion": "Central US",
    "perSiteScaling": false,
    "elasticScaleEnabled": false,
    "maximumElasticWorkerCount": 1,
    "numberOfSites": 2,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": null,
    "tags": null,
    "kind": "app",
    "resourceGroup": "rkConfigTraining",
    "reserved": false,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-dm1-239_20902",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "B1",
    "tier": "Basic",
    "size": "B1",
    "family": "B",
    "capacity": 1
  }
}

DEBUG: ResponseCreated:                                                                                                 
DEBUG: BeforeResponseDispatch:                                                                                          
DEBUG: Finally:                                                                                                         
DEBUG: CmdletAfterAPICall:                                                                                              
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process                                                               
DEBUG: CmdletProcessRecordAsyncEnd:                                                                                     
DEBUG: CmdletProcessRecordEnd:                                                                                          
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.                                                                                           
DEBUG: CmdletEndProcessing:                                                                                             
DEBUG: [CmdletBeginProcessing]: Starting command                                                                        
DEBUG: CmdletBeginProcessing:                                                                                           
DEBUG: CmdletProcessRecordStart:                                                                                        
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get'                    
DEBUG: CmdletProcessRecordAsyncStart:                                                                                   
DEBUG: CmdletGetPipeline:                                                                                               
DEBUG: CmdletBeforeAPICall:                                                                                             
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp?api-version=2019-08-01
DEBUG: HeaderParametersAdded:                                                                                           
DEBUG: ============================ HTTP REQUEST ============================                                           

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp?api-version=2019-08-01

Headers:
x-ms-unique-id                : 97
x-ms-client-request-id        : 12323850-d123-4ba2-8202-c6bdefc52c45
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall:                                                                                                      
DEBUG: ============================ HTTP RESPONSE ============================                                          

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 3a5ba33a-b2b1-428e-9e8a-eaf78705926a
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11970
x-ms-correlation-request-id   : 85722151-4deb-43c9-b92b-925c1e0e3da3
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162346Z:85722151-4deb-43c9-b92b-925c1e0e3da3
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:23:45 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp",
  "name": "funcappdediasp",
  "type": "Microsoft.Web/serverfarms",
  "kind": "app",
  "location": "Central US",
  "properties": {
    "serverFarmId": 88311,
    "name": "funcappdediasp",
    "workerSize": "Default",
    "workerSizeId": 0,
    "workerTierName": null,
    "numberOfWorkers": 0,
    "currentWorkerSize": "Default",
    "currentWorkerSizeId": 0,
    "currentNumberOfWorkers": 0,
    "status": "Ready",
    "webSpace": "vsLabrg-CentralUSwebspace",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 1,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Shared",
    "siteMode": "Limited",
    "geoRegion": "Central US",
    "perSiteScaling": false,
    "elasticScaleEnabled": false,
    "maximumElasticWorkerCount": 1,
    "numberOfSites": 1,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": null,
    "tags": null,
    "kind": "app",
    "resourceGroup": "vsLabrg",
    "reserved": false,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-dm1-187_88311",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "F1",
    "tier": "Free",
    "size": "F1",
    "family": "F",
    "capacity": 0
  }
}

DEBUG: ResponseCreated:                                                                                                 
DEBUG: BeforeResponseDispatch:                                                                                          
DEBUG: Finally:                                                                                                         
DEBUG: CmdletAfterAPICall:                                                                                              
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process                                                               
DEBUG: CmdletProcessRecordAsyncEnd:                                                                                     
DEBUG: CmdletProcessRecordEnd:                                                                                          
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.                                                                                           
DEBUG: CmdletEndProcessing:                                                                                             
DEBUG: [CmdletBeginProcessing]: Starting command                                                                        
DEBUG: CmdletBeginProcessing:                                                                                           
DEBUG: CmdletProcessRecordStart:                                                                                        
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get'                    
DEBUG: CmdletProcessRecordAsyncStart:                                                                                   
DEBUG: CmdletGetPipeline:                                                                                               
DEBUG: CmdletBeforeAPICall:                                                                                             
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01
DEBUG: HeaderParametersAdded:                                                                                           
DEBUG: ============================ HTTP REQUEST ============================                                           

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01

Headers:
x-ms-unique-id                : 98
x-ms-client-request-id        : 00a85272-f638-417b-953e-bbfe3fd17cad
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall:                                                                                                      
DEBUG: ============================ HTTP RESPONSE ============================                                          

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 3f709114-4323-4a5e-a3b6-9367a15d8f57
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11969
x-ms-correlation-request-id   : c6cc21d6-156f-45c4-80eb-45859d638277
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162351Z:c6cc21d6-156f-45c4-80eb-45859d638277
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:23:51 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan",
  "name": "EastUSPlan",
  "type": "Microsoft.Web/serverfarms",
  "kind": "functionapp",
  "location": "East US",
  "properties": {
    "serverFarmId": 4744,
    "name": "EastUSPlan",
    "workerSize": "Default",
    "workerSizeId": 0,
    "workerTierName": null,
    "numberOfWorkers": 0,
    "currentWorkerSize": "Default",
    "currentWorkerSizeId": 0,
    "currentNumberOfWorkers": 0,
    "status": "Ready",
    "webSpace": "ABC123-RG-EastUSwebspace",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 0,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Dynamic",
    "siteMode": null,
    "geoRegion": "East US",
    "perSiteScaling": false,
    "elasticScaleEnabled": false,
    "maximumElasticWorkerCount": 1,
    "numberOfSites": 1,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": null,
    "tags": null,
    "kind": "functionapp",
    "resourceGroup": "ABC123-RG",
    "reserved": false,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-blu-303_4744",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "Y1",
    "tier": "Dynamic",
    "size": "Y1",
    "family": "Y",
    "capacity": 0
  }
}

DEBUG: ResponseCreated:                                                                                                 
DEBUG: BeforeResponseDispatch:                                                                                          
DEBUG: Finally:                                                                                                         
DEBUG: CmdletAfterAPICall:                                                                                              
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process                                                               
DEBUG: CmdletProcessRecordAsyncEnd:                                                                                     
DEBUG: CmdletProcessRecordEnd:                                                                                          
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.                                                                                           
DEBUG: CmdletEndProcessing:                                                                                             
DEBUG: [CmdletBeginProcessing]: Starting command                                                                        
DEBUG: CmdletBeginProcessing:                                                                                           
DEBUG: CmdletProcessRecordStart:                                                                                        
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get'                    
DEBUG: CmdletProcessRecordAsyncStart:                                                                                   
DEBUG: CmdletGetPipeline:                                                                                               
DEBUG: CmdletBeforeAPICall:                                                                                             
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01
DEBUG: HeaderParametersAdded:                                                                                           
DEBUG: ============================ HTTP REQUEST ============================                                           

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01

Headers:
x-ms-unique-id                : 99
x-ms-client-request-id        : dff4b740-caf4-4efd-b323-dd85c5e191d7
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall:                                                                                                      
DEBUG: ============================ HTTP RESPONSE ============================                                          

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 81f13961-117b-4bf3-b1b1-832e74813eca
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11968
x-ms-correlation-request-id   : a29ab389-b1f5-4843-a35a-41f285ae2e4d
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162355Z:a29ab389-b1f5-4843-a35a-41f285ae2e4d
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:23:55 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan",
  "name": "EastUSPlan",
  "type": "Microsoft.Web/serverfarms",
  "kind": "functionapp",
  "location": "East US",
  "properties": {
    "serverFarmId": 10480,
    "name": "EastUSPlan",
    "workerSize": "Default",
    "workerSizeId": 0,
    "workerTierName": null,
    "numberOfWorkers": 0,
    "currentWorkerSize": "Default",
    "currentWorkerSizeId": 0,
    "currentNumberOfWorkers": 0,
    "status": "Ready",
    "webSpace": "Testing123-RG-EastUSwebspace",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 0,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Dynamic",
    "siteMode": null,
    "geoRegion": "East US",
    "perSiteScaling": false,
    "elasticScaleEnabled": false,
    "maximumElasticWorkerCount": 1,
    "numberOfSites": 0,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": null,
    "tags": null,
    "kind": "functionapp",
    "resourceGroup": "Testing123-RG",
    "reserved": false,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-blu-321_10480",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "Y1",
    "tier": "Dynamic",
    "size": "Y1",
    "family": "Y",
    "capacity": 0
  }
}

DEBUG: ResponseCreated:                                                                                                 
DEBUG: BeforeResponseDispatch:                                                                                          
DEBUG: Finally:                                                                                                         
DEBUG: CmdletAfterAPICall:                                                                                              
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process                                                               
DEBUG: CmdletProcessRecordAsyncEnd:                                                                                     
DEBUG: CmdletProcessRecordEnd:                                                                                          
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.                                                                                           
DEBUG: CmdletEndProcessing:                                                                                             
DEBUG: [CmdletBeginProcessing]: Starting command                                                                        
DEBUG: CmdletBeginProcessing:                                                                                           
DEBUG: CmdletProcessRecordStart:                                                                                        
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get'                    
DEBUG: CmdletProcessRecordAsyncStart:                                                                                   
DEBUG: CmdletGetPipeline:                                                                                               
DEBUG: CmdletBeforeAPICall:                                                                                             
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01
DEBUG: HeaderParametersAdded:                                                                                           
DEBUG: ============================ HTTP REQUEST ============================                                           

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01

Headers:
x-ms-unique-id                : 100
x-ms-client-request-id        : 6c832479-27b9-40ff-a38a-252f05795358
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall:                                                                                                      
DEBUG: ============================ HTTP RESPONSE ============================                                          

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : ce733ba5-a153-47a3-ac42-5411c4749618
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11967
x-ms-correlation-request-id   : ab55e2a3-e4a2-4f8e-9306-8d38925abb7c
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162400Z:ab55e2a3-e4a2-4f8e-9306-8d38925abb7c
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:23:59 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan",
  "name": "testfuncapplan",
  "type": "Microsoft.Web/serverfarms",
  "kind": "elastic",
  "location": "East US",
  "properties": {
    "serverFarmId": 10478,
    "name": "testfuncapplan",
    "workerSize": "D1",
    "workerSizeId": 3,
    "workerTierName": null,
    "numberOfWorkers": 1,
    "currentWorkerSize": "D1",
    "currentWorkerSizeId": 3,
    "currentNumberOfWorkers": 1,
    "status": "Ready",
    "webSpace": "Testing123-RG-EastUSwebspace",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 20,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Dedicated",
    "siteMode": null,
    "geoRegion": "East US",
    "perSiteScaling": false,
    "elasticScaleEnabled": true,
    "maximumElasticWorkerCount": 2,
    "numberOfSites": 1,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": null,
    "tags": null,
    "kind": "elastic",
    "resourceGroup": "Testing123-RG",
    "reserved": false,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-blu-321_10478",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "EP1",
    "tier": "ElasticPremium",
    "size": "EP1",
    "family": "EP",
    "capacity": 1
  }
}

DEBUG: ResponseCreated:                                                                                                 
DEBUG: BeforeResponseDispatch:                                                                                          
DEBUG: Finally:                                                                                                         
DEBUG: CmdletAfterAPICall:                                                                                              
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process                                                               
DEBUG: CmdletProcessRecordAsyncEnd:                                                                                     
DEBUG: CmdletProcessRecordEnd:                                                                                          
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.                                                                                           
DEBUG: CmdletEndProcessing:                                                                                             
DEBUG: [CmdletBeginProcessing]: Starting command                                                                        
DEBUG: CmdletBeginProcessing: 
DEBUG: CmdletProcessRecordStart: 
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get'
DEBUG: CmdletProcessRecordAsyncStart: 
DEBUG: CmdletGetPipeline: 
DEBUG: CmdletBeforeAPICall: 
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01
DEBUG: HeaderParametersAdded: 
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01

Headers:
x-ms-unique-id                : 101
x-ms-client-request-id        : 087442d9-13e8-42e2-9944-dc75288c9391
CommandName                   : Az.Functions.internal\Get-AzFunctionAppPlan
FullCommandName               : Get-AzFunctionAppPlan_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:

DEBUG: BeforeCall: 
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : d9724fd7-76b8-4e4b-b23e-e0c6b3b7ba9c
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11966
x-ms-correlation-request-id   : 90c6ec30-348b-4a6a-85d4-e7c1faa91329
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162403Z:90c6ec30-348b-4a6a-85d4-e7c1faa91329
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:24:02 GMT

Body:
{
  "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan",
  "name": "testfuncapplan",
  "type": "Microsoft.Web/serverfarms",
  "kind": "elastic",
  "location": "East US",
  "properties": {
    "serverFarmId": 10478,
    "name": "testfuncapplan",
    "workerSize": "D1",
    "workerSizeId": 3,
    "workerTierName": null,
    "numberOfWorkers": 1,
    "currentWorkerSize": "D1",
    "currentWorkerSizeId": 3,
    "currentNumberOfWorkers": 1,
    "status": "Ready",
    "webSpace": "Testing123-RG-EastUSwebspace",
    "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX",
    "adminSiteName": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "maximumNumberOfWorkers": 20,
    "planName": "VirtualDedicatedPlan",
    "adminRuntimeSiteName": null,
    "computeMode": "Dedicated",
    "siteMode": null,
    "geoRegion": "East US",
    "perSiteScaling": false,
    "elasticScaleEnabled": true,
    "maximumElasticWorkerCount": 2,
    "numberOfSites": 1,
    "hostingEnvironmentId": null,
    "isSpot": false,
    "spotExpirationTime": null,
    "freeOfferExpirationTime": null,
    "tags": null,
    "kind": "elastic",
    "resourceGroup": "Testing123-RG",
    "reserved": false,
    "isXenon": false,
    "hyperV": false,
    "mdmId": "waws-prod-blu-321_10478",
    "targetWorkerCount": 0,
    "targetWorkerSizeId": 0,
    "provisioningState": "Succeeded",
    "webSiteId": null,
    "existingServerFarmIds": null,
    "kubeEnvironmentProfile": null,
    "zoneRedundant": false
  },
  "sku": {
    "name": "EP1",
    "tier": "ElasticPremium",
    "size": "EP1",
    "family": "EP",
    "capacity": 1
  }
}

DEBUG: ResponseCreated: 
DEBUG: BeforeResponseDispatch: 
DEBUG: Finally: 
DEBUG: CmdletAfterAPICall: 
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd: 
DEBUG: CmdletProcessRecordEnd: 
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00
DEBUG: Finish sending metric.
DEBUG: CmdletEndProcessing: 

Confirm
Are you sure you want to perform this action?
Performing the operation "Updating function app" on target "test123funcapp".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing: 
DEBUG: CmdletProcessRecordStart: 

Confirm
Are you sure you want to perform this action?
Performing the operation "Set-AzFunctionApp_Update" on target "Call remote 'WebAppsCreateOrUpdate' operation".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Set-AzFunctionApp_Update'
DEBUG: CmdletProcessRecordAsyncStart: 
DEBUG: CmdletGetPipeline: 
DEBUG: CmdletBeforeAPICall: 
DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/sites/test123funcapp?api-version=2019-08-01
DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/sites/test123funcapp?api-version=2019-08-01
DEBUG: HeaderParametersAdded: 
DEBUG: BodyContentSet: 
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/sites/test123funcapp?api-version=2019-08-01

Headers:
x-ms-unique-id                : 102
x-ms-client-request-id        : ef1d7f87-d1fa-4e9d-9b77-4711e6bb2929
CommandName                   : Az.Functions.internal\Set-AzFunctionApp
FullCommandName               : Set-AzFunctionApp_Update
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1

Body:
{
  "kind": "functionapp",
  "location": "East US",
  "properties": {
    "serverFarmId": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan",
    "reserved": false,
    "siteConfig": {
      "powerShellVersion": "",
      "linuxFxVersion": "",
      "appSettings": [
        {
          "name": "WEBSITE_CONTENTSHARE",
          "value": "test123funcapp0g84mm8g"
        },
        {
          "name": "APPINSIGHTS_INSTRUMENTATIONKEY",
          "value": "07560567-15f9-4713-acb3-d4051957a0b6"
        },
        {
          "name": "AzureWebJobsStorage",
          "value": "DefaultEndpointsProtocol=https;AccountName=1storageaccount123test;AccountKey=oR9ENklr143J4Ec+oabMYXCCNCScJN1wll56if7/fl64TFhIa0bKIpzbfp1K6+vNyguPolr5YAi/+ASthPl1hg==;EndpointSuffix=core.windows.net"
        },
        {
          "name": "AzureWebJobsDashboard",
          "value": "DefaultEndpointsProtocol=https;AccountName=1storageaccount123test;AccountKey=oR9ENklr143J4Ec+oabMYXCCNCScJN1wll56if7/fl64TFhIa0bKIpzbfp1K6+vNyguPolr5YAi/+ASthPl1hg==;EndpointSuffix=core.windows.net"
        },
        {
          "name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
          "value": "DefaultEndpointsProtocol=https;AccountName=1storageaccount123test;AccountKey=oR9ENklr143J4Ec+oabMYXCCNCScJN1wll56if7/fl64TFhIa0bKIpzbfp1K6+vNyguPolr5YAi/+ASthPl1hg==;EndpointSuffix=core.windows.net"
        },
        {
          "name": "FUNCTIONS_EXTENSION_VERSION",
          "value": "~4"
        },
        {
          "name": "FUNCTIONS_WORKER_RUNTIME",
          "value": "dotnet"
        }
      ],
      "alwaysOn": false,
      "javaVersion": ""
    }
  }
}

DEBUG: BeforeCall: 
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Conflict

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 498
x-ms-request-id               : 9c1e53ee-16b6-4229-a268-b39608db913c
x-ms-correlation-request-id   : 9c1e53ee-16b6-4229-a268-b39608db913c
x-ms-routing-request-id       : JIOINDIAWEST:20220324T162413Z:9c1e53ee-16b6-4229-a268-b39608db913c
X-Content-Type-Options        : nosniff
Date                          : Thu, 24 Mar 2022 16:24:13 GMT

Body:
{
  "Code": "Conflict",
  "Message": "Cannot change the site test123funcapp to the App Service Plan EastUSPlan due to hosting constraints.",
  "Target": null,
  "Details": [
    {
      "Message": "Cannot change the site test123funcapp to the App Service Plan EastUSPlan due to hosting constraints."
    },
    {
      "Code": "Conflict"
    },
    {
      "ErrorEntity": {
        "ExtendedCode": "59602",
        "MessageTemplate": "Cannot change the site {0} to the App Service Plan {1} due to hosting constraints.",
        "Parameters": [
          "test123funcapp",
          "EastUSPlan"
        ],
        "Code": "Conflict",
        "Message": "Cannot change the site test123funcapp to the App Service Plan EastUSPlan due to hosting constraints."
      }
    }
  ],
  "Innererror": null
}

DEBUG: ResponseCreated: 
DEBUG: BeforeResponseDispatch: 
Set-AzFunctionApp_Update: /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326
Line |
 326 |  …             Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The server responded with a Request Error, Status: Conflict

DEBUG: [Finally]: Getting exception 'Microsoft.Azure.Commands.Common.Exceptions.AzPSCloudException: InternalException' from response
DEBUG: Finally: 
DEBUG: CmdletAfterAPICall: 
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd: 
DEBUG: CmdletProcessRecordEnd: 
DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Set-AzFunctionApp_Update; PSVersion: 7.2.1; IsSuccess: False; Duration: 00:00:00; Exception: InternalException;
DEBUG: Finish sending metric.
DEBUG: CmdletEndProcessing:

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Linux 5.4.0-1073-azure #76~18.04.1-Ubuntu SMP Thu Mar 10 11:17:35 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.7.3                 Az.Accounts                         {Add-AzEnvironment, Clear-AzContext, Clear-AzDefaul…
Script     4.24.0                Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditional…
Script     4.0.1                 Az.Functions                        {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocat…
Script     4.15.0                Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate,…
Script     5.4.0                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get…
Script     4.3.0                 Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAc…
Script     0.0.0.10              AzureAD.Standard.Preview            {Add-AzureADApplicationOwner, Add-AzureADDeviceRegi…
Script     0.9.3                 AzurePSDrive

Error output

DEBUG: 4:26:33 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 4:26:33 PM - using account id 'MSI@50342'...
WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' :
The `Resolve-Error` alias will be removed in a future release.  Please change any scripts that use this alias to use `Resolve-AzError` instead.
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.

   HistoryId: 17

Message        : The server responded with a Request Error, Status: Conflict
StackTrace     : 
Exception      : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets.
                 Functions.Models.Api20190801.IDefaultErrorResponse]
InvocationInfo : {Set-AzFunctionApp_Update}
Line           :                         Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25
                 + …             Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 17

   HistoryId: 15

Message        : The server responded with a Request Error, Status: Conflict
StackTrace     : 
Exception      : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets.
                 Functions.Models.Api20190801.IDefaultErrorResponse]
InvocationInfo : {Set-AzFunctionApp_Update}
Line           :                         Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25
                 + …             Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 15

   HistoryId: -1

Message        : Function name 'test123funcapp' is not available.  Please try a different name.
StackTrace     : 
Exception      : System.InvalidOperationException
InvocationInfo : {}
Line           :     throw $errorRecord

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:807 char:5
                 +     throw $errorRecord
                 +     ~~~~~~~~~~~~~~~~~~
HistoryId      : -1

   HistoryId: 11

Message        : The storage account named 1storageaccount123test is already taken. (Parameter 'Name')
StackTrace     :    at Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOr
                 AsJob>b__3_0(T c)
                    at 
                 Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T 
                 cmdlet, Action`1 executor)
                    at 
                 Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T 
                 cmdlet)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : System.ArgumentException
InvocationInfo : {New-AzStorageAccount}
Line           : New-AzStorageAccount -ResourceGroupName "Testing123-RG" -Name "1storageaccount123test" -Location "East 
                 US" -SkuName "Standard_LRS" -Kind "Storage" -AllowBlobPublicAccess $false
Position       : At line:1 char:1
                 + New-AzStorageAccount -ResourceGroupName "Testing123-RG" -Name "1stora …
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 11

   HistoryId: 10

Message        : The term '======' is not recognized as a name of a cmdlet, function, script file, or executable program.
                 Check the spelling of the name, or if a path was included, verify that the path is correct and try 
                 again.
StackTrace     :    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes 
                 commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, 
                 ExecutionContext context)
                    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandOrigin 
                 commandOrigin, ExecutionContext context)
                    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandOrigin 
                 commandOrigin)
                    at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, 
                 CommandOrigin commandOrigin, Nullable`1 useLocalScope)
                    at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
                    at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, 
                 CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] 
                 redirections, ExecutionContext context)
                    at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, 
                 CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] 
                 commandRedirections, FunctionContext funcContext)
                    at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame 
                 frame)
Exception      : System.Management.Automation.CommandNotFoundException
InvocationInfo : {}
Line           : ======
Position       : At line:1 char:1
                 + ======
                 + ~~~~~~
HistoryId      : 10

   HistoryId: -1

Message        : Function name 'abcfunctionapp' is not available.  Please try a different name.
StackTrace     : 
Exception      : System.InvalidOperationException
InvocationInfo : {}
Line           :     throw $errorRecord

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:807 char:5
                 +     throw $errorRecord
                 +     ~~~~~~~~~~~~~~~~~~
HistoryId      : -1

   HistoryId: 8

Message        : The storage account named abcstorageaccount123 is already taken. (Parameter 'Name')
StackTrace     :    at Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOr
                 AsJob>b__3_0(T c)
                    at 
                 Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T 
                 cmdlet, Action`1 executor)
                    at 
                 Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T 
                 cmdlet)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : System.ArgumentException
InvocationInfo : {New-AzStorageAccount}
Line           : New-AzStorageAccount -ResourceGroupName "ABC123-RG" -Name "abcstorageaccount123" -Location "East US" 
                 -SkuName "Standard_LRS" -Kind "Storage" -AllowBlobPublicAccess $false
Position       : At line:1 char:1
                 + New-AzStorageAccount -ResourceGroupName "ABC123-RG" -Name "abcstorage …
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 8

   HistoryId: 7

Message        : The server responded with a Request Error, Status: Conflict
StackTrace     : 
Exception      : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets.
                 Functions.Models.Api20190801.IDefaultErrorResponse]
InvocationInfo : {Set-AzFunctionApp_Update}
Line           :                         Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25
                 + …             Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 7

   HistoryId: 6

Message        : The server responded with a Request Error, Status: Conflict
StackTrace     : 
Exception      : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets.
                 Functions.Models.Api20190801.IDefaultErrorResponse]
InvocationInfo : {Set-AzFunctionApp_Update}
Line           :                         Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25
                 + …             Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 6

   HistoryId: 1

Message        : Cannot find a variable with the name 'RuntimeToFormattedName'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'DefaultFunctionsVersion'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'ReservedFunctionAppSettingNames'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'RuntimeToDefaultOSType'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'RequiredStorageEndpoints'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'SupportedFunctionsVersion'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'FunctionsNoV2Version'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'AllowedStorageTypes'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))

Position       : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15
                 + …   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.

DEBUG: AzureQoSEvent: Module: Az.Accounts:2.7.3; CommandName: Resolve-AzError; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00.0320471
DEBUG: Finish sending metric.
DEBUG: 4:26:34 PM - ResolveError end processing.
ghost commented 2 years ago

Thank you for your feedback. This has been routed to the support team for assistance.

dingmeng-xue commented 2 years ago

Thanks for reporting. We will look into it.

SatishBoddu-MSFT commented 2 years ago

Hi @rakhshandakhan Routing this to service team's attention!

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ahmedelnably, @fabiocav.

Issue Details
### Description When trying to switch the Function App Plan from Premium to Consumption using the PowerShell commands, I am unable to do that and getting the error as "Cannot change the site {function-app-name} to the App Service Plan {consumption-plan-name} due to hosting constraints.". I understand that this error comes when the webspace of the plan and the function app is different, but the issue comes even when you have the plan and function app is in the same webspace. This is because I already have an existing consumption plan with same name in a different Resource group. It is when you have same plan name in different resource group it always picks the first lexical order name and send the webspace id of that plan instead of the one just created within same Webspace. Steps to reproduce the issue with Azure PowerShell Commands: 1: Create a new resource group called "ABC123-RG" under location East US 2: Create a new storage account abcstorageaccount123 3: Create a function app in Consumption plan Model under East US (or any) location under resource group created in step 1. This should create an App Service Plan Name "EastUSPlan" in the Resource Group "ABC123-RG" 4: Create a new resource group called "Testing123-RG" under same location East US 5: Create a new storage account teststorageaccount123 6: create a new premium plan 7: create a function app in consumption plan 8: Update function app to premium plan 9: Update the function app to consumption plan. => This will fail and give error as stated above. If we check the HTTP request content for this, we will find the ServerFarmId being passed as with the resource group ABC123-RG. But it should have been Testing123-RG [Powershell_Script_commands.txt](https://github.com/Azure/azure-powershell/files/8343557/Powershell_Script_commands.txt) ### Issue script & Debug output ```PowerShell Command Ran: Update-AzFunctionApp -Name test123funcapp -ResourceGroupName Testing123-RG -PlanName EastUSPlan -Force -Debug ======================================= DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkCertificate/providers/Microsoft.Web/serverfarms/ASP-rkCertificate-b165?api-version=2019-08-01 Headers: x-ms-unique-id : 95 x-ms-client-request-id : b089d2d3-01ce-4590-9753-626bbad80678 CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : 76ec710d-fb5a-4435-94cc-c0b9c4704942 Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11972 x-ms-correlation-request-id : 4b2417d0-b9e3-4b66-ae07-47edec8c5dc1 x-ms-routing-request-id : JIOINDIAWEST:20220324T162336Z:4b2417d0-b9e3-4b66-ae07-47edec8c5dc1 X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:23:35 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkCertificate/providers/Microsoft.Web/serverfarms/ASP-rkCertificate-b165", "name": "ASP-rkCertificate-b165", "type": "Microsoft.Web/serverfarms", "kind": "linux", "location": "Central US", "properties": { "serverFarmId": 23453, "name": "ASP-rkCertificate-b165", "workerSize": "D1", "workerSizeId": 3, "workerTierName": null, "numberOfWorkers": 1, "currentWorkerSize": "D1", "currentWorkerSizeId": 3, "currentNumberOfWorkers": 1, "status": "Ready", "webSpace": "rkCertificate-CentralUSwebspace-Linux", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 30, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Dedicated", "siteMode": null, "geoRegion": "Central US", "perSiteScaling": false, "elasticScaleEnabled": false, "maximumElasticWorkerCount": 1, "numberOfSites": 1, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": "2021-12-25T07:18:00", "tags": null, "kind": "linux", "resourceGroup": "rkCertificate", "reserved": true, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-dm1-191_23453", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "P1v2", "tier": "PremiumV2", "size": "P1v2", "family": "Pv2", "capacity": 1 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp?api-version=2019-08-01 Headers: x-ms-unique-id : 96 x-ms-client-request-id : 619eb7b7-ebfe-483a-9a8c-5731201bbd2e CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : 987304d2-5210-47d4-bc70-96c3544b389e Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11971 x-ms-correlation-request-id : 25810f67-96d3-4fc0-9e8f-90e55617b29c x-ms-routing-request-id : JIOINDIAWEST:20220324T162341Z:25810f67-96d3-4fc0-9e8f-90e55617b29c X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:23:40 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/rkConfigTraining/providers/Microsoft.Web/serverfarms/rkconfigasp", "name": "rkconfigasp", "type": "Microsoft.Web/serverfarms", "kind": "app", "location": "Central US", "properties": { "serverFarmId": 20902, "name": "rkconfigasp", "workerSize": "Default", "workerSizeId": 0, "workerTierName": null, "numberOfWorkers": 1, "currentWorkerSize": "Default", "currentWorkerSizeId": 0, "currentNumberOfWorkers": 1, "status": "Ready", "webSpace": "rkConfigTraining-CentralUSwebspace", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 3, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Dedicated", "siteMode": null, "geoRegion": "Central US", "perSiteScaling": false, "elasticScaleEnabled": false, "maximumElasticWorkerCount": 1, "numberOfSites": 2, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": null, "tags": null, "kind": "app", "resourceGroup": "rkConfigTraining", "reserved": false, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-dm1-239_20902", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "B1", "tier": "Basic", "size": "B1", "family": "B", "capacity": 1 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp?api-version=2019-08-01 Headers: x-ms-unique-id : 97 x-ms-client-request-id : 12323850-d123-4ba2-8202-c6bdefc52c45 CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : 3a5ba33a-b2b1-428e-9e8a-eaf78705926a Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11970 x-ms-correlation-request-id : 85722151-4deb-43c9-b92b-925c1e0e3da3 x-ms-routing-request-id : JIOINDIAWEST:20220324T162346Z:85722151-4deb-43c9-b92b-925c1e0e3da3 X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:23:45 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/vsLabrg/providers/Microsoft.Web/serverfarms/funcappdediasp", "name": "funcappdediasp", "type": "Microsoft.Web/serverfarms", "kind": "app", "location": "Central US", "properties": { "serverFarmId": 88311, "name": "funcappdediasp", "workerSize": "Default", "workerSizeId": 0, "workerTierName": null, "numberOfWorkers": 0, "currentWorkerSize": "Default", "currentWorkerSizeId": 0, "currentNumberOfWorkers": 0, "status": "Ready", "webSpace": "vsLabrg-CentralUSwebspace", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 1, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Shared", "siteMode": "Limited", "geoRegion": "Central US", "perSiteScaling": false, "elasticScaleEnabled": false, "maximumElasticWorkerCount": 1, "numberOfSites": 1, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": null, "tags": null, "kind": "app", "resourceGroup": "vsLabrg", "reserved": false, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-dm1-187_88311", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "F1", "tier": "Free", "size": "F1", "family": "F", "capacity": 0 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01 Headers: x-ms-unique-id : 98 x-ms-client-request-id : 00a85272-f638-417b-953e-bbfe3fd17cad CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : 3f709114-4323-4a5e-a3b6-9367a15d8f57 Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11969 x-ms-correlation-request-id : c6cc21d6-156f-45c4-80eb-45859d638277 x-ms-routing-request-id : JIOINDIAWEST:20220324T162351Z:c6cc21d6-156f-45c4-80eb-45859d638277 X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:23:51 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan", "name": "EastUSPlan", "type": "Microsoft.Web/serverfarms", "kind": "functionapp", "location": "East US", "properties": { "serverFarmId": 4744, "name": "EastUSPlan", "workerSize": "Default", "workerSizeId": 0, "workerTierName": null, "numberOfWorkers": 0, "currentWorkerSize": "Default", "currentWorkerSizeId": 0, "currentNumberOfWorkers": 0, "status": "Ready", "webSpace": "ABC123-RG-EastUSwebspace", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 0, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Dynamic", "siteMode": null, "geoRegion": "East US", "perSiteScaling": false, "elasticScaleEnabled": false, "maximumElasticWorkerCount": 1, "numberOfSites": 1, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": null, "tags": null, "kind": "functionapp", "resourceGroup": "ABC123-RG", "reserved": false, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-blu-303_4744", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "Y1", "tier": "Dynamic", "size": "Y1", "family": "Y", "capacity": 0 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan?api-version=2019-08-01 Headers: x-ms-unique-id : 99 x-ms-client-request-id : dff4b740-caf4-4efd-b323-dd85c5e191d7 CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : 81f13961-117b-4bf3-b1b1-832e74813eca Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11968 x-ms-correlation-request-id : a29ab389-b1f5-4843-a35a-41f285ae2e4d x-ms-routing-request-id : JIOINDIAWEST:20220324T162355Z:a29ab389-b1f5-4843-a35a-41f285ae2e4d X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:23:55 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan", "name": "EastUSPlan", "type": "Microsoft.Web/serverfarms", "kind": "functionapp", "location": "East US", "properties": { "serverFarmId": 10480, "name": "EastUSPlan", "workerSize": "Default", "workerSizeId": 0, "workerTierName": null, "numberOfWorkers": 0, "currentWorkerSize": "Default", "currentWorkerSizeId": 0, "currentNumberOfWorkers": 0, "status": "Ready", "webSpace": "Testing123-RG-EastUSwebspace", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 0, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Dynamic", "siteMode": null, "geoRegion": "East US", "perSiteScaling": false, "elasticScaleEnabled": false, "maximumElasticWorkerCount": 1, "numberOfSites": 0, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": null, "tags": null, "kind": "functionapp", "resourceGroup": "Testing123-RG", "reserved": false, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-blu-321_10480", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "Y1", "tier": "Dynamic", "size": "Y1", "family": "Y", "capacity": 0 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01 Headers: x-ms-unique-id : 100 x-ms-client-request-id : 6c832479-27b9-40ff-a38a-252f05795358 CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : ce733ba5-a153-47a3-ac42-5411c4749618 Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11967 x-ms-correlation-request-id : ab55e2a3-e4a2-4f8e-9306-8d38925abb7c x-ms-routing-request-id : JIOINDIAWEST:20220324T162400Z:ab55e2a3-e4a2-4f8e-9306-8d38925abb7c X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:23:59 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan", "name": "testfuncapplan", "type": "Microsoft.Web/serverfarms", "kind": "elastic", "location": "East US", "properties": { "serverFarmId": 10478, "name": "testfuncapplan", "workerSize": "D1", "workerSizeId": 3, "workerTierName": null, "numberOfWorkers": 1, "currentWorkerSize": "D1", "currentWorkerSizeId": 3, "currentNumberOfWorkers": 1, "status": "Ready", "webSpace": "Testing123-RG-EastUSwebspace", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 20, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Dedicated", "siteMode": null, "geoRegion": "East US", "perSiteScaling": false, "elasticScaleEnabled": true, "maximumElasticWorkerCount": 2, "numberOfSites": 1, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": null, "tags": null, "kind": "elastic", "resourceGroup": "Testing123-RG", "reserved": false, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-blu-321_10478", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "EP1", "tier": "ElasticPremium", "size": "EP1", "family": "EP", "capacity": 1 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Get-AzFunctionAppPlan_Get' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan?api-version=2019-08-01 Headers: x-ms-unique-id : 101 x-ms-client-request-id : 087442d9-13e8-42e2-9944-dc75288c9391 CommandName : Az.Functions.internal\Get-AzFunctionAppPlan FullCommandName : Get-AzFunctionAppPlan_Get ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains x-ms-request-id : d9724fd7-76b8-4e4b-b23e-e0c6b3b7ba9c Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-reads: 11966 x-ms-correlation-request-id : 90c6ec30-348b-4a6a-85d4-e7c1faa91329 x-ms-routing-request-id : JIOINDIAWEST:20220324T162403Z:90c6ec30-348b-4a6a-85d4-e7c1faa91329 X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:24:02 GMT Body: { "id": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/serverfarms/testfuncapplan", "name": "testfuncapplan", "type": "Microsoft.Web/serverfarms", "kind": "elastic", "location": "East US", "properties": { "serverFarmId": 10478, "name": "testfuncapplan", "workerSize": "D1", "workerSizeId": 3, "workerTierName": null, "numberOfWorkers": 1, "currentWorkerSize": "D1", "currentWorkerSizeId": 3, "currentNumberOfWorkers": 1, "status": "Ready", "webSpace": "Testing123-RG-EastUSwebspace", "subscription": "c02db5d4-fcdf-47d8-8a33-1980962XXXXX", "adminSiteName": null, "hostingEnvironment": null, "hostingEnvironmentProfile": null, "maximumNumberOfWorkers": 20, "planName": "VirtualDedicatedPlan", "adminRuntimeSiteName": null, "computeMode": "Dedicated", "siteMode": null, "geoRegion": "East US", "perSiteScaling": false, "elasticScaleEnabled": true, "maximumElasticWorkerCount": 2, "numberOfSites": 1, "hostingEnvironmentId": null, "isSpot": false, "spotExpirationTime": null, "freeOfferExpirationTime": null, "tags": null, "kind": "elastic", "resourceGroup": "Testing123-RG", "reserved": false, "isXenon": false, "hyperV": false, "mdmId": "waws-prod-blu-321_10478", "targetWorkerCount": 0, "targetWorkerSizeId": 0, "provisioningState": "Succeeded", "webSiteId": null, "existingServerFarmIds": null, "kubeEnvironmentProfile": null, "zoneRedundant": false }, "sku": { "name": "EP1", "tier": "ElasticPremium", "size": "EP1", "family": "EP", "capacity": 1 } } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Get-AzFunctionAppPlan_Get; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00 DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: Confirm Are you sure you want to perform this action? Performing the operation "Updating function app" on target "test123funcapp". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A DEBUG: [CmdletBeginProcessing]: Starting command DEBUG: CmdletBeginProcessing: DEBUG: CmdletProcessRecordStart: Confirm Are you sure you want to perform this action? Performing the operation "Set-AzFunctionApp_Update" on target "Call remote 'WebAppsCreateOrUpdate' operation". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A DEBUG: [CmdletProcessRecordAsyncStart]: Created new QosEvent for command 'Set-AzFunctionApp_Update' DEBUG: CmdletProcessRecordAsyncStart: DEBUG: CmdletGetPipeline: DEBUG: CmdletBeforeAPICall: DEBUG: URLCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/sites/test123funcapp?api-version=2019-08-01 DEBUG: RequestCreated: /subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/sites/test123funcapp?api-version=2019-08-01 DEBUG: HeaderParametersAdded: DEBUG: BodyContentSet: DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: PUT Absolute Uri: https://management.azure.com/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/Testing123-RG/providers/Microsoft.Web/sites/test123funcapp?api-version=2019-08-01 Headers: x-ms-unique-id : 102 x-ms-client-request-id : ef1d7f87-d1fa-4e9d-9b77-4711e6bb2929 CommandName : Az.Functions.internal\Set-AzFunctionApp FullCommandName : Set-AzFunctionApp_Update ParameterSetName : __AllParameterSets User-Agent : AzurePowershell/v7.3.0,PSVersion/v7.2.1,Az.Functions/4.0.1 Body: { "kind": "functionapp", "location": "East US", "properties": { "serverFarmId": "/subscriptions/c02db5d4-fcdf-47d8-8a33-1980962XXXXX/resourceGroups/ABC123-RG/providers/Microsoft.Web/serverfarms/EastUSPlan", "reserved": false, "siteConfig": { "powerShellVersion": "", "linuxFxVersion": "", "appSettings": [ { "name": "WEBSITE_CONTENTSHARE", "value": "test123funcapp0g84mm8g" }, { "name": "APPINSIGHTS_INSTRUMENTATIONKEY", "value": "07560567-15f9-4713-acb3-d4051957a0b6" }, { "name": "AzureWebJobsStorage", "value": "DefaultEndpointsProtocol=https;AccountName=1storageaccount123test;AccountKey=oR9ENklr143J4Ec+oabMYXCCNCScJN1wll56if7/fl64TFhIa0bKIpzbfp1K6+vNyguPolr5YAi/+ASthPl1hg==;EndpointSuffix=core.windows.net" }, { "name": "AzureWebJobsDashboard", "value": "DefaultEndpointsProtocol=https;AccountName=1storageaccount123test;AccountKey=oR9ENklr143J4Ec+oabMYXCCNCScJN1wll56if7/fl64TFhIa0bKIpzbfp1K6+vNyguPolr5YAi/+ASthPl1hg==;EndpointSuffix=core.windows.net" }, { "name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING", "value": "DefaultEndpointsProtocol=https;AccountName=1storageaccount123test;AccountKey=oR9ENklr143J4Ec+oabMYXCCNCScJN1wll56if7/fl64TFhIa0bKIpzbfp1K6+vNyguPolr5YAi/+ASthPl1hg==;EndpointSuffix=core.windows.net" }, { "name": "FUNCTIONS_EXTENSION_VERSION", "value": "~4" }, { "name": "FUNCTIONS_WORKER_RUNTIME", "value": "dotnet" } ], "alwaysOn": false, "javaVersion": "" } } } DEBUG: BeforeCall: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: Conflict Headers: Cache-Control : no-cache Pragma : no-cache Strict-Transport-Security : max-age=31536000; includeSubDomains Server : Microsoft-IIS/10.0 X-AspNet-Version : 4.0.30319 X-Powered-By : ASP.NET x-ms-ratelimit-remaining-subscription-resource-requests: 498 x-ms-request-id : 9c1e53ee-16b6-4229-a268-b39608db913c x-ms-correlation-request-id : 9c1e53ee-16b6-4229-a268-b39608db913c x-ms-routing-request-id : JIOINDIAWEST:20220324T162413Z:9c1e53ee-16b6-4229-a268-b39608db913c X-Content-Type-Options : nosniff Date : Thu, 24 Mar 2022 16:24:13 GMT Body: { "Code": "Conflict", "Message": "Cannot change the site test123funcapp to the App Service Plan EastUSPlan due to hosting constraints.", "Target": null, "Details": [ { "Message": "Cannot change the site test123funcapp to the App Service Plan EastUSPlan due to hosting constraints." }, { "Code": "Conflict" }, { "ErrorEntity": { "ExtendedCode": "59602", "MessageTemplate": "Cannot change the site {0} to the App Service Plan {1} due to hosting constraints.", "Parameters": [ "test123funcapp", "EastUSPlan" ], "Code": "Conflict", "Message": "Cannot change the site test123funcapp to the App Service Plan EastUSPlan due to hosting constraints." } } ], "Innererror": null } DEBUG: ResponseCreated: DEBUG: BeforeResponseDispatch: Set-AzFunctionApp_Update: /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 Line | 326 | … Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The server responded with a Request Error, Status: Conflict DEBUG: [Finally]: Getting exception 'Microsoft.Azure.Commands.Common.Exceptions.AzPSCloudException: InternalException' from response DEBUG: Finally: DEBUG: CmdletAfterAPICall: DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process DEBUG: CmdletProcessRecordAsyncEnd: DEBUG: CmdletProcessRecordEnd: DEBUG: AzureQoSEvent: Module: Az.Functions:4.0.1; CommandName: Set-AzFunctionApp_Update; PSVersion: 7.2.1; IsSuccess: False; Duration: 00:00:00; Exception: InternalException; DEBUG: Finish sending metric. DEBUG: CmdletEndProcessing: ``` ### Environment data ```PowerShell Name Value ---- ----- PSVersion 7.2.1 PSEdition Core GitCommitId 7.2.1 OS Linux 5.4.0-1073-azure #76~18.04.1-Ubuntu SMP Thu Mar 10 11:17:35 UTC 2022 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 ``` ### Module versions ```PowerShell ModuleType Version PreRelease Name ExportedCommands ---------- ------- ---------- ---- ---------------- Script 2.7.3 Az.Accounts {Add-AzEnvironment, Clear-AzContext, Clear-AzDefaul… Script 4.24.0 Az.Compute {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditional… Script 4.0.1 Az.Functions {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocat… Script 4.15.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate,… Script 5.4.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get… Script 4.3.0 Az.Storage {Add-AzRmStorageContainerLegalHold, Add-AzStorageAc… Script 0.0.0.10 AzureAD.Standard.Preview {Add-AzureADApplicationOwner, Add-AzureADDeviceRegi… Script 0.9.3 AzurePSDrive ``` ### Error output ```PowerShell DEBUG: 4:26:33 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'. DEBUG: 4:26:33 PM - using account id 'MSI@50342'... WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' : The `Resolve-Error` alias will be removed in a future release. Please change any scripts that use this alias to use `Resolve-AzError` instead. Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. HistoryId: 17 Message : The server responded with a Request Error, Status: Conflict StackTrace : Exception : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets. Functions.Models.Api20190801.IDefaultErrorResponse] InvocationInfo : {Set-AzFunctionApp_Update} Line : Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25 + … Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 17 HistoryId: 15 Message : The server responded with a Request Error, Status: Conflict StackTrace : Exception : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets. Functions.Models.Api20190801.IDefaultErrorResponse] InvocationInfo : {Set-AzFunctionApp_Update} Line : Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25 + … Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 15 HistoryId: -1 Message : Function name 'test123funcapp' is not available. Please try a different name. StackTrace : Exception : System.InvalidOperationException InvocationInfo : {} Line : throw $errorRecord Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:807 char:5 + throw $errorRecord + ~~~~~~~~~~~~~~~~~~ HistoryId : -1 HistoryId: 11 Message : The storage account named 1storageaccount123test is already taken. (Parameter 'Name') StackTrace : at Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand.ExecuteCmdlet() at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.b__3_0(T c) at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor) at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet) at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() Exception : System.ArgumentException InvocationInfo : {New-AzStorageAccount} Line : New-AzStorageAccount -ResourceGroupName "Testing123-RG" -Name "1storageaccount123test" -Location "East US" -SkuName "Standard_LRS" -Kind "Storage" -AllowBlobPublicAccess $false Position : At line:1 char:1 + New-AzStorageAccount -ResourceGroupName "Testing123-RG" -Name "1stora … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 11 HistoryId: 10 Message : The term '======' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. StackTrace : at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context) at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandOrigin commandOrigin, ExecutionContext context) at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandOrigin commandOrigin) at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope) at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource) at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) Exception : System.Management.Automation.CommandNotFoundException InvocationInfo : {} Line : ====== Position : At line:1 char:1 + ====== + ~~~~~~ HistoryId : 10 HistoryId: -1 Message : Function name 'abcfunctionapp' is not available. Please try a different name. StackTrace : Exception : System.InvalidOperationException InvocationInfo : {} Line : throw $errorRecord Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:807 char:5 + throw $errorRecord + ~~~~~~~~~~~~~~~~~~ HistoryId : -1 HistoryId: 8 Message : The storage account named abcstorageaccount123 is already taken. (Parameter 'Name') StackTrace : at Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand.ExecuteCmdlet() at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.b__3_0(T c) at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor) at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet) at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() Exception : System.ArgumentException InvocationInfo : {New-AzStorageAccount} Line : New-AzStorageAccount -ResourceGroupName "ABC123-RG" -Name "abcstorageaccount123" -Location "East US" -SkuName "Standard_LRS" -Kind "Storage" -AllowBlobPublicAccess $false Position : At line:1 char:1 + New-AzStorageAccount -ResourceGroupName "ABC123-RG" -Name "abcstorage … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 8 HistoryId: 7 Message : The server responded with a Request Error, Status: Conflict StackTrace : Exception : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets. Functions.Models.Api20190801.IDefaultErrorResponse] InvocationInfo : {Set-AzFunctionApp_Update} Line : Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25 + … Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 7 HistoryId: 6 Message : The server responded with a Request Error, Status: Conflict StackTrace : Exception : Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.RestException`1[Microsoft.Azure.PowerShell.Cmdlets. Functions.Models.Api20190801.IDefaultErrorResponse] InvocationInfo : {Set-AzFunctionApp_Update} Line : Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/Update-AzFunctionApp.ps1:326 char:25 + … Az.Functions.internal\Set-AzFunctionApp @PSBoundParameter … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 6 HistoryId: 1 Message : Cannot find a variable with the name 'RuntimeToFormattedName'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'DefaultFunctionsVersion'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'ReservedFunctionAppSettingNames'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'RuntimeToDefaultOSType'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'RequiredStorageEndpoints'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'SupportedFunctionsVersion'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'FunctionsNoV2Version'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 Message : Cannot find a variable with the name 'AllowedStorageTypes'. StackTrace : Exception : System.Management.Automation.ItemNotFoundException InvocationInfo : {Get-Variable} Line : if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) Position : At /usr/local/share/powershell/Modules/Az.Functions/4.0.1/custom/HelperFunctions.ps1:47 char:15 + … if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR. DEBUG: AzureQoSEvent: Module: Az.Accounts:2.7.3; CommandName: Resolve-AzError; PSVersion: 7.2.1; IsSuccess: True; Duration: 00:00:00.0320471 DEBUG: Finish sending metric. DEBUG: 4:26:34 PM - ResolveError end processing. ```
Author: rakhshandakhan
Assignees: -
Labels: `Service Attention`, `Functions`, `bug`, `customer-reported`
Milestone: -
Francisco-Gamino commented 2 years ago

Hello @stefanushinardi -- Could you please check if this operation is allowed in the Az CLI? Thanks.

rakhshandakhan commented 2 years ago

Hi @Francisco-Gamino and @stefanushinardi,

I have checked in the Azure CLI and it's working correctly there. This issue is only with Azure PowerShell. Thanks!

rakhshandakhan commented 2 years ago

Hi Team, Any updates on this?

stefanushinardi commented 2 years ago

Thanks @rakhshandakhan for the verification. We are going to estimate the work and get the priority for this work. In the mean time, please to az CLI for workaround.