Azure / Azure/azure-powershell

Publish-AzWebapp gives error "Deployment failed with status code Forbidden" when publishing to an Azure Managed Application I have contributor in

Open
#22,582 3 comments 0 reactions 0 assignees View on GitHub
act-observability-squad App Services bug Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

I need to update a deployed WebApp that resides inside a customers managed application resource group, I have the Contributor role on the web application, inherited from a group.

When I run this command:
Publish-AzWebapp -ResourceGroupName $currentFunctionApp.ResourceGroupName -Name $currentFunctionApp.Name -ArchivePath $currentFile -Clean -Verbose -Force

I get an error stating Publish-AzWebApp: Deployment failed with status code Forbidden.

This used to work fine in a previous version.

### Issue script & Debug output

```PowerShell
DEBUG: 12.37.20 - PublishAzureWebAppCmdlet begin processing with ParameterSet 'FromResourceName'.
DEBUG: 12.37.20 - using account id 'me@myaccount.io'...
DEBUG: 12.37.20 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: 'me@myaccount.io', environment: 'AzureCloud', tenant: 'd141be11-d9b3-4883-892a-2144f03289b2'
DEBUG: 12.37.20 - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [False].
VERBOSE: Performing the operation "The web app has been deployed." on target "WebAppNameHere".
DEBUG: 12.37.20 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'d141be11-d9b3-4883-892a-2144f03289b2', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'me@myaccount.io'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - db8a9218-103e-44d8-9293-ead93e8a1e72] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - db8a9218-103e-44d8-9293-ead93e8a1e72] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - db8a9218-103e-44d8-9293-ead93e8a1e72] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - db8a9218-103e-44d8-9293-ead93e8a1e72] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - db8a9218-103e-44d8-9293-ead93e8a1e72] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z] Found 1 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z] Returning 1 accounts
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] MSAL MSAL.NetCore with assembly version '4.49.1.0'. CorrelationId(d0f6813f-1ca8-4b5c-94fe-6631227ca416)
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] LoginHint provided: False
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] Account provided: True
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] ForceRefresh: False
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - d0f6813f-1ca8-4b5c-94fe-6631227ca416
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:

DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] Access token is not expired. Returning the found cache entry. [Current time (08/15/2023 10:37:20) - Expiration Time (08/15/2023 11:22:19 +00:00) - Extended Expiration Time (08/15/2023 11:22:19 +00:00)]
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - d0f6813f-1ca8-4b5c-94fe-6631227ca416] AT expiration time: 15.08.2023 11.22.19 +00:00, scopes: https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default. source: Cache
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2023-08-15T11:22:19.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: 'd141be11-d9b3-4883-892a-2144f03289b2', UserId: 'me@myaccount.io'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/publishingcredentials/list?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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 : ae4dd478-e9db-4643-bb30-cb2d9acb9514
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11998
x-ms-correlation-request-id : a09d48de-62ed-499e-bfd6-77319e037c1f
x-ms-routing-request-id : NORWAYEAST:20230815T103722Z:a09d48de-62ed-499e-bfd6-77319e037c1f
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:21 GMT

Body:
{
"id": "/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/publishingcredentials/$WebAppNameHere",
"name": "WebAppNameHere",
"type": "Microsoft.Web/sites/publishingcredentials",
"location": "Norway East",
"tags": {
"hidden-link: /app-insights-resource-id": "/subscriptions/resourceurihere/providers/microsoft.insights/components/appinhere",
"hidden-link: /app-insights-instrumentation-key": " ",
"hidden-link: /app-insights-conn-string": " ivediagnostics.monitor.azure.com/"
},
"properties": {
"name": null,
"publishingUserName": "$WebAppNameHere",
"publishingPassword": "",
"publishingPasswordHash": null,
"publishingPasswordHashSalt": null,
"metadata": null,
"isDeleted": false,
"scmUri": ""
}
}

DEBUG: 12.37.20 - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 12.37.20 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'d141be11-d9b3-4883-892a-2144f03289b2', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'me@myaccount.io'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - aca687e0-50d0-4c84-87cc-52f9a739e06d] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - aca687e0-50d0-4c84-87cc-52f9a739e06d] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - aca687e0-50d0-4c84-87cc-52f9a739e06d] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - aca687e0-50d0-4c84-87cc-52f9a739e06d] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - aca687e0-50d0-4c84-87cc-52f9a739e06d] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z] Found 1 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z] Returning 1 accounts
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] MSAL MSAL.NetCore with assembly version '4.49.1.0'. CorrelationId(dad2417b-1c6c-4acf-ab74-dde25fc64a64)
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] LoginHint provided: False
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] Account provided: True
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] ForceRefresh: False
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - dad2417b-1c6c-4acf-ab74-dde25fc64a64
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:

DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] Access token is not expired. Returning the found cache entry. [Current time (08/15/2023 10:37:20) - Expiration Time (08/15/2023 11:22:19 +00:00) - Extended Expiration Time (08/15/2023 11:22:19 +00:00)]
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.49.1.0 MSAL.NetCore .NET 7.0.9 Microsoft Windows 10.0.22621 [2023-08-15 10:37:20Z - dad2417b-1c6c-4acf-ab74-dde25fc64a64] AT expiration time: 15.08.2023 11.22.19 +00:00, scopes: https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default. source: Cache
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2023-08-15T11:22:19.0000000+00:00
DEBUG: 12.37.21 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
Publish-AzWebApp: Deployment failed with status code Forbidden
DEBUG: 12.37.21 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
ETag : "1D9CF637802C660"
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : c2e9a0e6-59c7-48bc-b1cd-adbe3e7e0611
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11989
x-ms-correlation-request-id : ba7f4e53-eeec-4f53-9439-e6601a20a129
x-ms-routing-request-id : NORWAYEAST:20230815T103722Z:ba7f4e53-eeec-4f53-9439-e6601a20a129
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:22 GMT

Body:
{
redacted, was all the info about the web app and settings
}

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

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/web?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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 : ca31636d-114b-41fb-817f-49e3682437d7
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11988
x-ms-correlation-request-id : 97615edf-bf98-4b4a-b9a4-80b6e1c0ea9b
x-ms-routing-request-id : NORWAYEAST:20230815T103723Z:97615edf-bf98-4b4a-b9a4-80b6e1c0ea9b
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:22 GMT

Body:
{
redacted
}

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

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/appsettings/list?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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 : a00ef42e-751d-4015-9aa2-f7d4bd0b7b84
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11997
x-ms-correlation-request-id : 2e70cbd6-9c34-436c-96c4-982bc388c234
x-ms-routing-request-id : NORWAYEAST:20230815T103723Z:2e70cbd6-9c34-436c-96c4-982bc388c234
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:22 GMT

Body:
{
"id": "/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/appsettings",
"name": "appsettings",
"type": "Microsoft.Web/sites/config",
"location": "Norway East",
"tags": {
"hidden-link: /app-insights-resource-id": "/subscriptions/resourceurihere/providers/microsoft.insights/components/appinhere",
"hidden-link: /app-insights-instrumentation-key": "",
"hidden-link: /app-insights-conn-string": ""
},
"properties": {
"AzureWebJobsStorage": "",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": "",
"WEBSITE_CONTENTSHARE": "WebAppNameHere",
"FUNCTIONS_EXTENSION_VERSION": "~4",
"APPLICATIONINSIGHTS_CONNECTION_STRING": "",
"FUNCTIONS_WORKER_RUNTIME": "powershell",
"FUNCTIONS_WORKER_RUNTIME_VERSION": "7.2",
}
}

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

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/connectionstrings/list?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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 : 96d60c43-dc7b-47be-98b4-93c8ab765a82
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11996
x-ms-correlation-request-id : 4f517b80-f813-4baf-abaf-2d73a46f7de4
x-ms-routing-request-id : NORWAYEAST:20230815T103723Z:4f517b80-f813-4baf-abaf-2d73a46f7de4
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:23 GMT

Body:
{
"id": "/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/connectionstrings",
"name": "connectionstrings",
"type": "Microsoft.Web/sites/config",
"location": "Norway East",
"tags": {
"hidden-link: /app-insights-resource-id": "/subscriptions/resourceurihere/providers/microsoft.insights/components/appinhere",
"hidden-link: /app-insights-instrumentation-key": "",
"hidden-link: /app-insights-conn-string": ""
},
"properties": {}
}

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

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/azurestorageaccounts/list?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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 : 1a3bbdda-53b7-4dbd-891e-e91c468b0cc7
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11995
x-ms-correlation-request-id : cba248ba-8e93-4e1f-bb9c-6b4f696c8dee
x-ms-routing-request-id : NORWAYEAST:20230815T103723Z:cba248ba-8e93-4e1f-bb9c-6b4f696c8dee
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:23 GMT

Body:
{
"id": "/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/config/appsettings",
"name": "azurestorageaccounts",
"type": "Microsoft.Web/sites/config",
"location": "Norway East",
"tags": {
"hidden-link: /app-insights-resource-id": "/subscriptions/resourceurihere/providers/microsoft.insights/components/appinhere",
"hidden-link: /app-insights-instrumentation-key": "",
"hidden-link: /app-insights-conn-string": ""
},
"properties": {}
}

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

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/resourceurihere/providers/Microsoft.Web/sites/WebAppNameHere/virtualNetworkConnections?api-version=2021-01-15

Headers:
Accept-Language : en-US
x-ms-client-request-id : 7b9da9a0-fd42-4ae9-8a44-e7080f5fd9ed

Body:

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 : d593c2d1-56cb-4d92-a96f-c7a786ea9246
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11987
x-ms-correlation-request-id : 67fdc9f8-6906-4a8b-8f7a-c860ecb585f8
x-ms-routing-request-id : NORWAYEAST:20230815T103723Z:67fdc9f8-6906-4a8b-8f7a-c860ecb585f8
X-Content-Type-Options : nosniff
Date : Tue, 15 Aug 2023 10:37:23 GMT

Body:
[]

DEBUG: 12.37.22 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Websites:3.1.0; CommandName: Publish-AzWebApp; PSVersion: 7.3.6; IsSuccess: False; Duration: 00:00:02.2988394; Exception: Deployment failed with status code Forbidden;
DEBUG: 12.37.22 - PublishAzureWebAppCmdlet end processing.
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 7.3.6
PSEdition Core
GitCommitId 7.3.6
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
get-module az*

ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.12.5 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 4.0.6 Az.Functions {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting…}
Script 4.10.1 Az.KeyVault {Add-AzKeyVaultCertificate, Add-AzKeyVaultCertificateContact, Add-AzKeyVaultKey, Add-AzKeyVaultManagedStorageAccount…}
Script 6.9.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script 5.9.0 Az.Storage {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageFileHandle…}
Script 3.1.0 Az.Websites {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Get-AzAppServiceEnvironment…}

listavailable
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 10.2.0 Az Core,Desk
Script 2.12.5 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave…}
Script 2.0.0 Az.Advisor Core,Desk {Disable-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration, Get-AzAdvisorRecommendation…}
Script 5.5.1 Az.Aks Core,Desk {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential…}
Script 1.1.4 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer…}
Script 4.0.2 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion…}
Script 1.3.0 Az.AppConfiguration Core,Desk {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore, New-AzAppConfigurationStoreKey…}
Script 2.2.2 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, Get-AzApplicationInsightsApiKey, Get-AzApplicationInsightsContinuousExport, Get-AzApplicationInsightsLinkedStorageAccount…}
Script 2.0.0 Az.Attestation Core,Desk {Get-AzAttestationPolicy, Set-AzAttestationPolicy, Reset-AzAttestationPolicy, Get-AzAttestationPolicySigners…}
Script 1.0.0 Az.Automanage Core,Desk {Get-AzAutomanageBestPractice, Get-AzAutomanageConfigProfile, Get-AzAutomanageConfigProfileAssignment, Get-AzAutomanageConfigProfileHciAssignment…}
Script 1.9.1 Az.Automation Core,Desk {Set-AzAutomationPython3Package, New-AzAutomationPython3Package, Remove-AzAutomationPython3Package, Get-AzAutomationPython3Package…}
Script 3.5.0 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…}
Script 2.0.3 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget…}
Script 3.1.0 Az.Cdn Core,Desk {Clear-AzCdnEndpointContent, Clear-AzFrontDoorCdnEndpointContent, Disable-AzCdnCustomDomainCustomHttps, Enable-AzCdnCustomDomainCustomHttps…}
Script 1.2.0 Az.CloudService Core,Desk {Get-AzCloudService, Get-AzCloudServiceInstanceView, Get-AzCloudServiceNetworkInterface, Get-AzCloudServiceOSFamily…}
Script 1.14.0 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType…}
Script 6.2.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet…}
Script 1.0.0 Az.ConfidentialLedger Core,Desk {Get-AzConfidentialLedger, New-AzConfidentialLedger, New-AzConfidentialLedgerAADBasedSecurityPrincipalObject, New-AzConfidentialLedgerCertBasedSecurityPrincipalObject…}
Script 3.2.0 Az.ContainerInstance Core,Desk {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability…}
Script 4.1.0 Az.ContainerRegistry Core,Desk {Connect-AzContainerRegistry, Get-AzContainerRegistryRepository, Remove-AzContainerRegistryRepository, Update-AzContainerRegistryRepository…}
Script 1.11.2 Az.CosmosDB Core,Desk {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDatabase, Get-AzCosmosDBSqlDatabaseThroughput…}
Script 1.1.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice…}
Script 1.7.0 Az.Databricks Core,Desk {Get-AzDatabricksAccessConnector, Get-AzDatabricksOutboundNetworkDependenciesEndpoint, Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace…}
Script 1.17.0 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2…}
Script 1.0.2 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential…}
Script 1.3.0 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider…}
Script 2.0.0 Az.DataProtection Core,Desk {Backup-AzDataProtectionBackupInstanceAdhoc, Edit-AzDataProtectionPolicyRetentionRuleClientObject, Edit-AzDataProtectionPolicyTagClientObject, Edit-AzDataProtectionPolicyTriggerClientObject…}
Script 1.0.1 Az.DataShare Core,Desk {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare…}
Script 1.1.0 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource…}
Script 4.0.0 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplicationGroup…}
Script 1.0.2 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy…}
Script 1.1.3 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…}
Script 1.6.0 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey…}
Script 4.0.0 Az.EventHub Core,Desk {New-AzEventHubAuthorizationRuleSASToken, Approve-AzEventHubPrivateEndpointConnection, Deny-AzEventHubPrivateEndpointConnection, Get-AzEventHub…}
Script 1.10.0 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…}
Script 4.0.6 Az.Functions Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting…}
Script 6.0.0 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition…}
Script 2.0.0 Az.HealthcareApis Core,Desk {Get-AzHealthcareApisService, Get-AzHealthcareApisWorkspace, Get-AzHealthcareDicomService, Get-AzHealthcareFhirDestination…}
Script 2.7.5 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob…}
Script 4.10.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation…}
Script 2.2.0 Az.Kusto Core,Desk {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster…}
Script 1.0.0 Az.LoadTesting Core,Desk {Get-AzLoad, New-AzLoad, Remove-AzLoad, Update-AzLoad}
Script 1.5.0 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl…}
Script 1.1.3 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan…}
Script 1.0.0 Az.MachineLearningServices Core,Desk {Get-AzMLServiceQuota, Get-AzMLServiceUsage, Get-AzMLServiceVMSize, Get-AzMLWorkspace…}
Script 1.3.0 Az.Maintenance Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenanceUpdate…}
Script 1.1.1 Az.ManagedServiceIdentity Core,Desk {Get-AzFederatedIdentityCredentials, Get-AzSystemAssignedIdentity, Get-AzUserAssignedIdentity, Get-AzUserAssignedIdentityAssociatedResource…}
Script 3.0.0 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, Get-AzManagedServicesDefinition, Get-AzManagedServicesMarketplaceDefinition, New-AzManagedServicesAssignment…}
Script 2.0.0 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Invoke-AzMarketplaceSignTerms, Set-AzMarketplaceTerms, Stop-AzMarketplaceTerms}
Script 1.1.1 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability…}
Script 2.2.0 Az.Migrate Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicationFabric…}
Script 4.5.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…}
Script 1.1.1 Az.MySql Core,Desk {Get-AzMySqlConfiguration, Get-AzMySqlConnectionString, Get-AzMySqlFirewallRule, Get-AzMySqlFlexibleServer…}
Script 6.1.1 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationCertif…
Script 1.1.1 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential…}
Script 3.2.0 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsIISLogCollection…}
Script 1.6.2 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…}
Script 1.1.0 Az.PostgreSql Core,Desk {Get-AzPostgreSqlConfiguration, Get-AzPostgreSqlConnectionString, Get-AzPostgreSqlFirewallRule, Get-AzPostgreSqlFlexibleServer…}
Script 1.2.1 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace…}
Script 1.0.4 Az.PrivateDns Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone…}
Script 6.5.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault…}
Script 1.8.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule…}
Script 1.2.0 Az.RedisEnterpriseCache Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase, Get-AzRedisEnterpriseCacheKey…}
Script 2.0.0 Az.Relay Core,Desk {Get-AzRelayAuthorizationRule, Get-AzRelayHybridConnection, Get-AzRelayKey, Get-AzRelayNamespace…}
Script 1.1.0 Az.ResourceMover Core,Desk {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequiredForResources…}
Script 6.9.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment…}
Script 1.4.0 Az.Security Core,Desk {Get-AzSecuritySolution, Get-AzSecuritySolutionsReferenceData, New-AzAlertsSuppressionRuleScope, Get-AzAlertsSuppressionRule…}
Script 3.0.1 Az.SecurityInsights Core,Desk {Get-AzSentinelAlertRule, Get-AzSentinelAlertRuleAction, Get-AzSentinelAlertRuleTemplate, Get-AzSentinelAutomationRule…}
Script 3.0.0 Az.ServiceBus Core,Desk {New-AzServiceBusAuthorizationRuleSASToken, Test-AzServiceBusNameAvailability, Approve-AzServiceBusPrivateEndpointConnection, Complete-AzServiceBusMigration…}
Script 3.2.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeType, Get-AzServiceFabricCluster…}
Script 2.0.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…}
Script 4.9.0 Az.Sql Core,Desk {Invoke-AzSqlServerExternalGovernanceStatusRefresh, Get-AzSqlDatabaseTransparentDataEncryption, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHint…}
Script 2.0.0 Az.SqlVirtualMachine Core,Desk {Get-AzAvailabilityGroupListener, Get-AzSqlVM, Get-AzSqlVMGroup, Invoke-AzRedeploySqlVM…}
Script 2.1.0 Az.StackHCI Core,Desk {Add-AzStackHCIVMAttestation, Disable-AzStackHCIAttestation, Disable-AzStackHCIRemoteSupport, Enable-AzStackHCIAttestation…}
Script 5.9.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey…}
Script 1.0.1 Az.StorageMover Core,Desk {Get-AzStorageMover, Get-AzStorageMoverAgent, Get-AzStorageMoverEndpoint, Get-AzStorageMoverJobDefinition…}
Script 2.0.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Set-AzStorageSyncService…}
Script 2.0.0 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzStreamAnalyticsFunction…}
Script 1.0.0 Az.Support Core,Desk {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportTicketCommunication…}
Script 3.0.2 Az.Synapse Core,Desk {Get-AzSynapseSparkJob, Stop-AzSynapseSparkJob, Submit-AzSynapseSparkJob, Wait-AzSynapseSparkJob…}
Script 1.2.1 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeaderFromProfile…}
Script 3.1.0 Az.Websites
```

### Error output

```PowerShell
DEBUG: 12.55.43 - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 12.55.43 - using account id ' myaccount@me.io'...
DEBUG: 12.55.43 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].

HistoryId: 184

Message : Deployment failed with status code Forbidden
StackTrace :
Exception : System.Exception
InvocationInfo : {Publish-AzWebApp}
Line : Publish-AzWebapp -ResourceGroupName $currentFunctionApp.ResourceGroupName -Name $currentFunctionApp.Name -ArchivePath $currentFile -Clean -Verbose -Force | Out-Null
Position : At line:1 char:1
+ Publish-AzWebapp -ResourceGroupName $currentFunctionApp.ResourceGroup …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 184

HistoryId: 181

Message : Deployment failed with status code Forbidden
StackTrace :
Exception : System.Exception
InvocationInfo : {Publish-AzWebApp}
Line : Publish-AzWebapp -ResourceGroupName $currentFunctionApp.ResourceGroupName -Name $currentFunctionApp.Name -ArchivePath $currentFile -Clean -Verbose -Force | Out-Null
Position : At line:1 char:1
+ Publish-AzWebapp -ResourceGroupName $currentFunctionApp.ResourceGroup …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 181

DEBUG: 12.55.43 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Accounts:2.12.5; CommandName: Resolve-AzError; PSVersion: 7.3.6; IsSuccess: True; Duration: 00:00:00.0396759
DEBUG: 12.55.43 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 12.55.43 - ResolveError end processing.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.