azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

You forgot to add support for NFS to New-AzWebAppAzureStoragePath

Open caroysMSFT opened this issue 1 year ago • 0 comments

Description

Per:

https://learn.microsoft.com/en-us/powershell/module/az.websites/new-azwebappazurestoragepath?view=azps-11.5.0

There is no protocol flag for New-AzWebAppAzureStoragePath, which then defaults to SMB. This needs to have a flag added for NFS, because now NFS is supported and works via the REST API:

https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/update-azure-storage-accounts?view=rest-appservice-2023-12-01&tabs=HTTP#request-body

You can see from the verbose cmdlet output it is tagging it as SMB with no option to change it to NFS:

"properties": { "storage1": { "type": "AzureFiles", "accountName": "carypremium", "shareName": "carynfsshare", "accessKey": "", "mountPath": "/media/mnt2", "state": "NotValidated", "protocol": "Smb" } }

Issue script & Debug output

$path = New-AzWebAppAzureStoragePath -Name storage1 -Type AzureFiles -AccountName carypremium -ShareName carynfsshare -AccessKey (redacted) -MountPath /media/mnt2 -Debug -Verbose

DEBUG: 4:35:04 PM - NewAzureRmWebAppAzureStoragePath begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 4:35:06 PM - using account id '[email protected]'...
DEBUG: 4:35:06 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:35:06 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 4:35:06 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:35:06 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Websites:3.2.0; CommandName: New-AzWebAppAzureStoragePath; PSVersion: 5.1.22621.2506; IsSuccess: True; Duration: 00:00:01.2541137
DEBUG: 4:35:06 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:35:06 PM - NewAzureRmWebAppAzureStoragePath end processing.

$app = Set-AzWebApp -ResourceGroupName resourcegroup -Name carylinux -AzureStoragePath  $storage1 -Debug -Verbose
DEBUG: 4:35:09 PM - SetAzureWebAppCmdlet begin processing with ParameterSet 'S1'.
DEBUG: 4:35:10 PM - using account id '[email protected]'...
DEBUG: 4:35:10 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: '[email protected]', environment: 'AzureCloud', tenant: '16b3c013-d300-468d-ac64-7eda0820b6d3'
DEBUG: 4:35:10 PM - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 4:35:10 PM - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 4:35:10 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'16b3c013-d300-468d-ac64-7eda0820b6d3', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'ht
tps://login.microsoftonline.com/', UserId:'[email protected]'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: 
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - fe404bb4-24e1-4dc1-84cf-ece1aba934ea] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - fe404bb4-24e1-4dc1-84cf-ece1aba934ea] [Region discovery] Not using a regional authority. 
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - fe404bb4-24e1-4dc1-84cf-ece1aba934ea] [Region discovery] Not using a regional authority. 
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - fe404bb4-24e1-4dc1-84cf-ece1aba934ea] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - fe404bb4-24e1-4dc1-84cf-ece1aba934ea] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z] Found 1 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z] Returning 1 accounts
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] MSAL MSAL.CoreCLR with assembly version '4.56.0.0'. Corre
lationId(f36bec38-faaa-477a-ac06-6727fd26f761)
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] LoginHint provided: False
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] Account provided: True
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] ForceRefresh: False
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] 
=== 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 - f36bec38-faaa-477a-ac06-6727fd26f761
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured: 

DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] === Token Acquisition (SilentRequest) started:
	 Scopes: https://management.core.windows.net//.default
	Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] [Region discovery] Not using a regional authority. 
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] Access token is not expired. Returning the found cache en
try. [Current time (04/25/2024 21:35:10) - Expiration Time (04/25/2024 22:59:26 +00:00) - Extended Expiration Time (04/25/2024 22:59:26 +00:00)]
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] Returning access token found in cache. RefreshOn exists ?
 False
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] [Region discovery] Not using a regional authority. 
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761] 
	=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.9232.0 Microsoft Windows 10.0.22631  [2024-04-25 21:35:10Z - f36bec38-faaa-477a-ac06-6727fd26f761]  AT expiration time: 4/25/2024 10:59:26 PM +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: 2024-04-25T22:59:26.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '16b3c013-d300-468d-ac64-7eda0820b6d3', UserId: '[email protected]'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:


Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : aebc4c22-3089-4056-8434-bd60f2f6f9c4
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id   : 6fe6df2b-5dbd-48f3-b93e-a7010686e7d1
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213513Z:6fe6df2b-5dbd-48f3-b93e-a7010686e7d1
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: D09B0E1AA9164AEEB9C2F4652471B3A7 Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:11Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:12 GMT
ETag                          : "1DA97584737B3C0"
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET

Body:
{
  "id": "/providers/Microsoft.Web/sites/carylinux",
  "name": "carylinux",
  "type": "Microsoft.Web/sites",
  "kind": "functionapp,linux",
  "location": "East US",
  "tags": {
    "hidden-link: /app-insights-resource-id": "/providers/Microsoft.Insights/components/carylinux20240425942"
  },
  "properties": {
    "name": "carylinux",
    "state": "Running",
    "hostNames": [
      "carylinux.azurewebsites.net"
    ],

    "repositorySiteName": "carylinux",
    "owner": null,
    "usageState": "Normal",
    "enabled": true,
    "adminEnabled": true,
    "afdEnabled": false,
    "enabledHostNames": [
      "carylinux.azurewebsites.net",
      "carylinux.scm.azurewebsites.net"
    ],
    "siteProperties": {
      "metadata": null,
      "properties": [
        {
          "name": "LinuxFxVersion",
          "value": "DOTNET-ISOLATED|8.0"
        },
        {
          "name": "WindowsFxVersion",
          "value": null
        }
      ],
      "appSettings": null
    },
    "availabilityState": "Normal",
    "sslCertificates": null,
    "csrs": [],
    "cers": null,
    "siteMode": null,
    "hostNameSslStates": [
      {
        "name": "carylinux.azurewebsites.net",
        "sslState": "Disabled",
        "ipBasedSslResult": null,
        "virtualIP": null,
        "virtualIPv6": null,
        "thumbprint": null,
        "certificateResourceId": null,
        "toUpdate": null,
        "toUpdateIpBasedSsl": null,
        "ipBasedSslState": "NotConfigured",
        "hostType": "Standard"
      },
      {
        "name": "carylinux.scm.azurewebsites.net",
        "sslState": "Disabled",
        "ipBasedSslResult": null,
        "virtualIP": null,
        "virtualIPv6": null,
        "thumbprint": null,
        "certificateResourceId": null,
        "toUpdate": null,
        "toUpdateIpBasedSsl": null,
        "ipBasedSslState": "NotConfigured",
        "hostType": "Repository"
      }
    ],
    "computeMode": null,
    "serverFarm": null,

    "reserved": true,
    "isXenon": false,
    "hyperV": false,
    "lastModifiedTimeUtc": "2024-04-25T21:33:56.86",
    "storageRecoveryDefaultState": "Running",
    "contentAvailabilityState": "Normal",
    "runtimeAvailabilityState": "Normal",
    "dnsConfiguration": {},
    "vnetRouteAllEnabled": false,
    "containerAllocationSubnet": null,
    "useContainerLocalhostBindings": null,
    "vnetImagePullEnabled": false,
    "vnetContentShareEnabled": false,
    "siteConfig": {
      "numberOfWorkers": 1,
      "defaultDocuments": null,
      "netFrameworkVersion": null,
      "phpVersion": null,
      "pythonVersion": null,
      "nodeVersion": null,
      "powerShellVersion": null,
      "linuxFxVersion": "DOTNET-ISOLATED|8.0",
      "windowsFxVersion": null,
      "windowsConfiguredStacks": null,
      "requestTracingEnabled": null,
      "remoteDebuggingEnabled": null,
      "remoteDebuggingVersion": null,
      "httpLoggingEnabled": null,
      "azureMonitorLogCategories": null,
      "acrUseManagedIdentityCreds": false,
      "acrUserManagedIdentityID": null,
      "logsDirectorySizeLimit": null,
      "detailedErrorLoggingEnabled": null,
      "publishingUsername": null,
      "publishingPassword": null,
      "appSettings": null,
      "metadata": null,
      "connectionStrings": null,
      "machineKey": null,
      "handlerMappings": null,
      "documentRoot": null,
      "scmType": null,
      "use32BitWorkerProcess": null,
      "webSocketsEnabled": null,
      "alwaysOn": false,
      "javaVersion": null,
      "javaContainer": null,
      "javaContainerVersion": null,
      "appCommandLine": null,
      "managedPipelineMode": null,
      "virtualApplications": null,
      "winAuthAdminState": null,
      "winAuthTenantState": null,
      "customAppPoolIdentityAdminState": null,
      "customAppPoolIdentityTenantState": null,
      "runtimeADUser": null,
      "runtimeADUserPassword": null,
      "loadBalancing": null,
      "routingRules": null,
      "experiments": null,
      "limits": null,
      "autoHealEnabled": null,
      "autoHealRules": null,
      "tracingOptions": null,
      "vnetName": null,
      "vnetRouteAllEnabled": null,
      "vnetPrivatePortsCount": null,
      "publicNetworkAccess": null,
      "cors": null,
      "push": null,
      "apiDefinition": null,
      "apiManagementConfig": null,
      "autoSwapSlotName": null,
      "localMySqlEnabled": null,
      "managedServiceIdentityId": null,
      "xManagedServiceIdentityId": null,
      "keyVaultReferenceIdentity": null,
      "ipSecurityRestrictions": null,
      "ipSecurityRestrictionsDefaultAction": null,
      "scmIpSecurityRestrictions": null,
      "scmIpSecurityRestrictionsDefaultAction": null,
      "scmIpSecurityRestrictionsUseMain": null,
      "http20Enabled": false,
      "minTlsVersion": null,
      "minTlsCipherSuite": null,
      "supportedTlsCipherSuites": null,
      "scmMinTlsVersion": null,
      "ftpsState": null,
      "preWarmedInstanceCount": null,
      "functionAppScaleLimit": 0,
      "elasticWebAppScaleLimit": null,
      "healthCheckPath": null,
      "fileChangeAuditEnabled": null,
      "functionsRuntimeScaleMonitoringEnabled": null,
      "websiteTimeZone": null,
      "minimumElasticInstanceCount": 1,
      "azureStorageAccounts": null,
      "http20ProxyFlag": null,
      "sitePort": null,
      "antivirusScanEnabled": null,
      "storageType": null,
      "sitePrivateLinkHostEnabled": null,
      "clusteringEnabled": false
    },
    "functionAppConfig": null,
    "daprConfig": null,
    "deploymentId": "carylinux",
    "slotName": null,
    "trafficManagerHostNames": null,
    "sku": "ElasticPremium",
    "scmSiteAlsoStopped": false,
    "targetSwapSlot": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "clientAffinityEnabled": false,
    "clientCertEnabled": false,
    "clientCertMode": "Required",
    "clientCertExclusionPaths": null,
    "hostNamesDisabled": false,
    "ipMode": "IPv4",
    "vnetBackupRestoreEnabled": false,
    "domainVerificationIdentifiers": null,
    "customDomainVerificationId": "46CB081C4272A6D1C395B04B5F9F4625AFB20DEB36FC357F4E5ED10872CF8B2C",
    "kind": "functionapp,linux",
    "managedEnvironmentId": null,
    "workloadProfileName": null,
    "resourceConfig": null,
    "inboundIpAddress": "20.119.8.51",
    "possibleInboundIpAddresses": "20.119.8.51",
    "ftpUsername": "carylinux\\$carylinux",
    "ftpsHostName": "ftps://waws-prod-blu-581.ftp.azurewebsites.windows.net/site/wwwroot",
    "outboundIpAddresses": "172.212.45.73,172.212.45.88,172.212.45.210,172.212.45.239,172.212.46.25,172.212.46.51,20.119.8.51",
    "possibleOutboundIpAddresses": "172.212.46.165,172.212.46.179,172.212.43.128,172.212.46.185,172.212.43.151,172.212.45.231,172.212.45.9,172.212.41.181,172.212.45.37,172.212.45.48,172.212.45.58,172.212.45.69,172.2
12.45.73,172.212.45.88,172.212.45.210,172.212.45.239,172.212.46.25,172.212.46.51,172.212.46.54,172.212.46.83,172.212.46.89,172.212.46.108,172.212.46.130,172.212.46.132,172.212.46.165,172.212.46.179,172.212.43.128,17
2.212.46.185,172.212.43.151,172.212.45.231,172.212.46.218,172.212.45.223,172.212.44.35,172.212.46.240,172.212.47.0,172.212.47.4,20.119.8.51",
    "containerSize": 1536,
    "dailyMemoryTimeQuota": 0,
    "suspendedTill": null,
    "siteDisabledReason": 0,
    "functionExecutionUnitsCache": null,
    "maxNumberOfWorkers": null,
    "homeStamp": "waws-prod-blu-581",
    "cloningInfo": null,
    "hostingEnvironmentId": null,
    "tags": {

    },
    "defaultHostName": "carylinux.azurewebsites.net",
    "slotSwapStatus": null,
    "httpsOnly": true,
    "endToEndEncryptionEnabled": false,
    "functionsRuntimeAdminIsolationEnabled": false,
    "redundancyMode": "None",
    "inProgressOperationId": null,
    "geoDistributions": null,
    "privateEndpointConnections": [],
    "publicNetworkAccess": "Enabled",
    "buildVersion": null,
    "targetBuildVersion": null,
    "migrationState": null,
    "eligibleLogCategories": "FunctionAppLogs",
    "inFlightFeatures": [
      "SiteContainers"
    ],
    "storageAccountRequired": false,

    "keyVaultReferenceIdentity": "SystemAssigned",
    "autoGeneratedDomainNameLabelScope": null,
    "defaultHostNameScope": "Global",
    "privateLinkIdentifiers": null,
    "sshEnabled": null
  }
}


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

HTTP Method:
GET


Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : dd445828-c3b7-4bfd-b49b-666eca32bb09
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id   : a34be281-a0bc-4fbf-ada9-3a080a8b5c09
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213517Z:a34be281-a0bc-4fbf-ada9-3a080a8b5c09
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 8E976FFEBF604FCEAAC17A85689AF00F Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:13Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:16 GMT
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET

Body:
{

  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "",
    "pythonVersion": "",
    "nodeVersion": "",
    "powerShellVersion": "",
    "linuxFxVersion": "DOTNET-ISOLATED|8.0",
    "windowsFxVersion": null,
    "windowsConfiguredStacks": [],
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "remoteDebuggingVersion": null,
    "httpLoggingEnabled": false,
    "azureMonitorLogCategories": null,
    "acrUseManagedIdentityCreds": false,
    "acrUserManagedIdentityID": null,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "publishingUsername": "$carylinux",
    "publishingPassword": null,
    "appSettings": null,
    "metadata": null,
    "connectionStrings": null,
    "machineKey": null,
    "handlerMappings": null,
    "documentRoot": null,
    "scmType": "None",
    "use32BitWorkerProcess": false,
    "webSocketsEnabled": false,
    "alwaysOn": false,
    "javaVersion": null,
    "javaContainer": null,
    "javaContainerVersion": null,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": false,
        "virtualDirectories": null
      }
    ],
    "winAuthAdminState": 0,
    "winAuthTenantState": 0,
    "customAppPoolIdentityAdminState": false,
    "customAppPoolIdentityTenantState": false,
    "runtimeADUser": null,
    "runtimeADUserPassword": null,
    "loadBalancing": "LeastRequests",
    "routingRules": [],
    "experiments": {
      "rampUpRules": []
    },
    "limits": null,
    "autoHealEnabled": false,
    "autoHealRules": null,
    "tracingOptions": null,
    "vnetName": "569c922d-e278-483a-b61e-e40d3b9f08f3_appservices",
    "vnetRouteAllEnabled": false,
    "vnetPrivatePortsCount": 0,
    "publicNetworkAccess": "Enabled",
    "siteAuthEnabled": false,
    "siteAuthSettings": {
      "enabled": null,
      "unauthenticatedClientAction": null,
      "tokenStoreEnabled": null,
      "allowedExternalRedirectUrls": null,
      "defaultProvider": null,
      "clientId": null,
      "clientSecret": null,
      "clientSecretSettingName": null,
      "clientSecretCertificateThumbprint": null,
      "issuer": null,
      "allowedAudiences": null,
      "additionalLoginParams": null,
      "isAadAutoProvisioned": false,
      "aadClaimsAuthorization": null,
      "googleClientId": null,
      "googleClientSecret": null,
      "googleClientSecretSettingName": null,
      "googleOAuthScopes": null,
      "facebookAppId": null,
      "facebookAppSecret": null,
      "facebookAppSecretSettingName": null,
      "facebookOAuthScopes": null,
      "gitHubClientId": null,
      "gitHubClientSecret": null,
      "gitHubClientSecretSettingName": null,
      "gitHubOAuthScopes": null,
      "twitterConsumerKey": null,
      "twitterConsumerSecret": null,
      "twitterConsumerSecretSettingName": null,
      "microsoftAccountClientId": null,
      "microsoftAccountClientSecret": null,
      "microsoftAccountClientSecretSettingName": null,
      "microsoftAccountOAuthScopes": null,
      "configVersion": null
    },
    "cors": {
      "allowedOrigins": [
        "https://portal.azure.com"
      ],
      "supportCredentials": false
    },
    "push": null,
    "apiDefinition": null,
    "apiManagementConfig": null,
    "autoSwapSlotName": null,
    "localMySqlEnabled": false,
    "managedServiceIdentityId": null,
    "xManagedServiceIdentityId": null,
    "keyVaultReferenceIdentity": null,
    "ipSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "ipSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "scmIpSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictionsUseMain": false,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "minTlsCipherSuite": null,
    "supportedTlsCipherSuites": null,
    "scmMinTlsVersion": "1.2",
    "ftpsState": "FtpsOnly",
    "preWarmedInstanceCount": 1,
    "functionAppScaleLimit": 0,
    "elasticWebAppScaleLimit": null,
    "healthCheckPath": null,
    "fileChangeAuditEnabled": false,
    "functionsRuntimeScaleMonitoringEnabled": false,
    "websiteTimeZone": null,
    "minimumElasticInstanceCount": 1,
    "azureStorageAccounts": {},
    "http20ProxyFlag": 0,
    "sitePort": null,
    "antivirusScanEnabled": false,
    "storageType": "StorageVolume",
    "sitePrivateLinkHostEnabled": false,
    "clusteringEnabled": false
  }
}


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

HTTP Method:
POST


Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 7cbadaf0-1bce-442e-9673-d7ff4d92b282
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id   : 99bf569f-6d55-4dc4-96d2-650c50ed41bd
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213519Z:99bf569f-6d55-4dc4-96d2-650c50ed41bd
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: CEC2059149FA4825AF3E9267FDDBD8B6 Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:17Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:18 GMT
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET



}


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

HTTP Method:
POST


Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 22ad3410-f25e-4dca-b51f-8e317a4d27b7
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id   : 14380c01-57c4-45ba-92c1-01454e54a1aa
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213521Z:14380c01-57c4-45ba-92c1-01454e54a1aa
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: B0CF3129B2B44D3381AF937E78F20716 Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:19Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:20 GMT
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET


  "properties": {}
}


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

HTTP Method:
POST



Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 71bf42fa-a194-4445-8fb9-d8fd61528c9f
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id   : 44192863-5051-4981-b81c-45752b9170a6
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213524Z:44192863-5051-4981-b81c-45752b9170a6
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 3BAED164D57A480992F967E985312E89 Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:21Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:23 GMT
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET


  "properties": {
    "account1": {
      "type": "AzureFiles",
      "accountName": "carypremium",
      "shareName": "carynfsshare",
      "accessKey": "",
      "mountPath": "/media/nfsshare",
      "state": "NotValidated",
      "protocol": "Nfs"
    }
  }
}


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

HTTP Method:
GET



Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : f706c84e-b4a5-408b-8658-65dee5d08ba9
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id   : 52159f10-8f43-4dd8-af14-e4adaca0a33f
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213525Z:52159f10-8f43-4dd8-af14-e4adaca0a33f
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: A860384F710B48ACA9D49185E745B1E3 Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:24Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:24 GMT
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET




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

HTTP Method:
PATCH


Headers:
x-ms-client-request-id        : 6a7c9737-9491-44e6-bc46-3f967b29109b
accept-language               : en-US

Body:
{
  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "",
    "pythonVersion": "",
    "nodeVersion": "",
    "linuxFxVersion": "DOTNET-ISOLATED|8.0",
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "httpLoggingEnabled": false,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "publishingUsername": "$carylinux",
    "appSettings": [
      {
        "name": "FUNCTIONS_EXTENSION_VERSION",
        "value": "~4"
      },
      {
        "name": "FUNCTIONS_WORKER_RUNTIME",
        "value": "dotnet-isolated"
      },
      {
        "name": "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED",
        "value": "1"
      },
      {

      },
      {
        "name": "AzureWebJobsStorage",
        "value": 
      },
      {
        "name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
        "value": 
      },
      {
        "name": "WEBSITE_CONTENTSHARE",
        "value": "carylinuxbab5"
      }
    ],
    "connectionStrings": [],
    "scmType": "None",
    "use32BitWorkerProcess": false,
    "webSocketsEnabled": false,
    "alwaysOn": false,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": false
      }
    ],
    "loadBalancing": "LeastRequests",
    "experiments": {
      "rampUpRules": []
    },
    "autoHealEnabled": false,
    "vnetName": "569c922d-e278-483a-b61e-e40d3b9f08f3_appservices",
    "vnetRouteAllEnabled": false,
    "cors": {
      "allowedOrigins": [
        "https://portal.azure.com"
      ],
      "supportCredentials": false
    },
    "localMySqlEnabled": false,
    "ipSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "scmIpSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "scmIpSecurityRestrictionsUseMain": false,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "ftpsState": "FtpsOnly"
  }
}


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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 4d9a66d7-b87a-4e74-bcec-a49073b947dd
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id   : cb502672-a2c3-4fe8-898f-098b78b741f1
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213528Z:cb502672-a2c3-4fe8-898f-098b78b741f1
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: F5720A8E56764A65AE7F8886E340D592 Ref B: CH1AA2020620045 Ref C: 2024-04-25T21:35:25Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:35:27 GMT
ETag                          : "1DA97584737B3C0"
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET


  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "",
    "pythonVersion": "",
    "nodeVersion": "",
    "powerShellVersion": "",
    "linuxFxVersion": "DOTNET-ISOLATED|8.0",
    "windowsFxVersion": null,
    "windowsConfiguredStacks": [],
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "remoteDebuggingVersion": "VS2019",
    "httpLoggingEnabled": false,
    "azureMonitorLogCategories": null,
    "acrUseManagedIdentityCreds": false,
    "acrUserManagedIdentityID": null,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "publishingUsername": "$carylinux",
    "publishingPassword": null,
    "appSettings": null,
    "metadata": null,
    "connectionStrings": null,
    "machineKey": null,
    "handlerMappings": null,
    "documentRoot": null,
    "scmType": "None",
    "use32BitWorkerProcess": false,
    "webSocketsEnabled": false,
    "alwaysOn": false,
    "javaVersion": null,
    "javaContainer": null,
    "javaContainerVersion": null,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": false,
        "virtualDirectories": null
      }
    ],
    "winAuthAdminState": 0,
    "winAuthTenantState": 0,
    "customAppPoolIdentityAdminState": false,
    "customAppPoolIdentityTenantState": false,
    "runtimeADUser": null,
    "runtimeADUserPassword": null,
    "loadBalancing": "LeastRequests",
    "routingRules": [],
    "experiments": {
      "rampUpRules": []
    },
    "limits": null,
    "autoHealEnabled": false,
    "autoHealRules": null,
    "tracingOptions": null,
    "vnetName": "569c922d-e278-483a-b61e-e40d3b9f08f3_appservices",
    "vnetRouteAllEnabled": false,
    "vnetPrivatePortsCount": 0,
    "publicNetworkAccess": "Enabled",
    "siteAuthEnabled": false,
    "siteAuthSettings": {
      "enabled": null,
      "unauthenticatedClientAction": null,
      "tokenStoreEnabled": null,
      "allowedExternalRedirectUrls": null,
      "defaultProvider": null,
      "clientId": null,
      "clientSecret": null,
      "clientSecretSettingName": null,
      "clientSecretCertificateThumbprint": null,
      "issuer": null,
      "allowedAudiences": null,
      "additionalLoginParams": null,
      "isAadAutoProvisioned": false,
      "aadClaimsAuthorization": null,
      "googleClientId": null,
      "googleClientSecret": null,
      "googleClientSecretSettingName": null,
      "googleOAuthScopes": null,
      "facebookAppId": null,
      "facebookAppSecret": null,
      "facebookAppSecretSettingName": null,
      "facebookOAuthScopes": null,
      "gitHubClientId": null,
      "gitHubClientSecret": null,
      "gitHubClientSecretSettingName": null,
      "gitHubOAuthScopes": null,
      "twitterConsumerKey": null,
      "twitterConsumerSecret": null,
      "twitterConsumerSecretSettingName": null,
      "microsoftAccountClientId": null,
      "microsoftAccountClientSecret": null,
      "microsoftAccountClientSecretSettingName": null,
      "microsoftAccountOAuthScopes": null,
      "configVersion": null
    },
    "cors": {
      "allowedOrigins": [
        "https://portal.azure.com"
      ],
      "supportCredentials": false
    },
    "push": null,
    "apiDefinition": null,
    "apiManagementConfig": null,
    "autoSwapSlotName": null,
    "localMySqlEnabled": false,
    "managedServiceIdentityId": null,
    "xManagedServiceIdentityId": null,
    "keyVaultReferenceIdentity": null,
    "ipSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "ipSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "scmIpSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictionsUseMain": false,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "minTlsCipherSuite": null,
    "supportedTlsCipherSuites": null,
    "scmMinTlsVersion": "1.2",
    "ftpsState": "FtpsOnly",
    "preWarmedInstanceCount": 1,
    "functionAppScaleLimit": 0,
    "elasticWebAppScaleLimit": null,
    "healthCheckPath": null,
    "fileChangeAuditEnabled": false,
    "functionsRuntimeScaleMonitoringEnabled": false,
    "websiteTimeZone": null,
    "minimumElasticInstanceCount": 1,
    "azureStorageAccounts": {
      "account1": {
        "type": "AzureFiles",
        "accountName": "carypremium",
        "shareName": "carynfsshare",
        "accessKey": null,
        "mountPath": "/media/nfsshare",
        "state": "Ok",
        "protocol": "Nfs"
      }
    },
    "http20ProxyFlag": 0,
    "sitePort": null,
    "antivirusScanEnabled": false,
    "storageType": "StorageVolume",
    "sitePrivateLinkHostEnabled": false,
    "clusteringEnabled": false
  }
}


(a bunch of stuff removed for 65535 char limit of this field)


Body:



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

Status Code:
OK

Headers:
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 61112c84-ba57-4819-ba16-c314ab0bf1ca
x-ms-throttling-version       : v1
x-ms-ratelimit-remaining-subscription-resource-requests: 11998
x-ms-correlation-request-id   : 081a2911-3849-4942-a4a8-4700b2b086b6
x-ms-routing-request-id       : NORTHCENTRALUS:20240425T213824Z:081a2911-3849-4942-a4a8-4700b2b086b6
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 3CD9F92328EB441B9B5E65D614C7117D Ref B: CH1AA2020620017 Ref C: 2024-04-25T21:38:24Z
Cache-Control                 : no-cache
Date                          : Thu, 25 Apr 2024 21:38:23 GMT
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET


  "properties": {
    "storage1": {
      "type": "AzureFiles",
      "accountName": "carypremium",
      "shareName": "carynfsshare",
      "accessKey": "",
      "mountPath": "/media/mnt2",
      "state": "NotValidated",
      "protocol": "Smb"
    }
  }
}

Environment data

Name                           Value                                                                                                                                                                                  
----                           -----                                                                                                                                                                                  
PSVersion                      5.1.22621.2506                                                                                                                                                                         
PSEdition                      Desktop                                                                                                                                                                                
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                
BuildVersion                   10.0.22621.2506                                                                                                                                                                        
CLRVersion                     4.0.30319.42000                                                                                                                                                                        
WSManStackVersion              3.0                                                                                                                                                                                    
PSRemotingProtocolVersion      2.3                                                                                                                                                                                    
SerializationVersion           1.1.0.1

Module versions

ModuleType Version    Name                                ExportedCommands                                                                                                                                            
---------- -------    ----                                ----------------                                                                                                                                            
Script     2.17.0     Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}                                                                                    
Script     3.2.0      Az.Websites                         {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Get-AzAppServiceEnvironment...}

Error output

Not relevant (no error - it just fails to mount on the back end because it tries to make it work with SMB when the share is NFS)

caroysMSFT avatar Apr 25 '24 21:04 caroysMSFT