Skip to content

Commit f6e2038

Browse files
Sanitize Functions.Autorest recordings to resolve CSCAN-AZURE0071
1 parent 2b6ae0a commit f6e2038

7 files changed

+223
-216
lines changed

src/Functions/Functions.Autorest/test/Get-AzFunctionApp.Recording.json

Lines changed: 14 additions & 13 deletions
Large diffs are not rendered by default.

src/Functions/Functions.Autorest/test/Get-Update-Remove-AzFunctionAppSetting.Recording.json

Lines changed: 25 additions & 24 deletions
Large diffs are not rendered by default.

src/Functions/Functions.Autorest/test/New-AzFunctionApp.FlexConsumption.Recording.json

Lines changed: 59 additions & 58 deletions
Large diffs are not rendered by default.

src/Functions/Functions.Autorest/test/New-AzFunctionApp.Recording.json

Lines changed: 53 additions & 52 deletions
Large diffs are not rendered by default.

src/Functions/Functions.Autorest/test/New-Update-Remove-AzFunctionApp.Tests.Recording.json

Lines changed: 31 additions & 30 deletions
Large diffs are not rendered by default.

src/Functions/Functions.Autorest/test/Remove-AzFunctionApp.Recording.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@
845845
"Request": {
846846
"Method": "PUT",
847847
"RequestUri": "https://management.azure.com/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/sites/Func-PowerShell-NewTest4-5id68b7s4u?api-version=2023-12-01",
848-
"Content": "{\r\n \"kind\": \"functionapp\",\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"serverFarmId\": \"/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/serverfarms/Functions-MyTestPlan2-kr06eymqwb\",\r\n \"siteConfig\": {\r\n \"netFrameworkVersion\": \"v8.0\",\r\n \"powerShellVersion\": \"7.4\",\r\n \"appSettings\": [\r\n {\r\n \"name\": \"FUNCTIONS_WORKER_RUNTIME\",\r\n \"value\": \"powershell\"\r\n },\r\n {\r\n \"name\": \"AzureWebJobsStorage\",\r\n \"value\": \"DefaultEndpointsProtocol=https;AccountName=functionswinstorage9nh;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\"\r\n },\r\n {\r\n \"name\": \"FUNCTIONS_EXTENSION_VERSION\",\r\n \"value\": \"~4\"\r\n },\r\n {\r\n \"name\": \"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING\",\r\n \"value\": \"DefaultEndpointsProtocol=https;AccountName=functionswinstorage9nh;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\"\r\n },\r\n {\r\n \"name\": \"WEBSITE_CONTENTSHARE\",\r\n \"value\": \"func-powershell-newtest4-5id68b7s4u\"\r\n },\r\n {\r\n \"name\": \"APPLICATIONINSIGHTS_CONNECTION_STRING\",\r\n \"value\": \"InstrumentationKey=AI-INSTRUMENTATION-KEY-REDACTED;IngestionEndpoint=https://redacted.ingest/;LiveEndpoint=https://redacted.live/;ApplicationId=APP-INSIGHTS-APPID-REDACTED\"\r\n }\r\n ],\r\n \"use32BitWorkerProcess\": true\r\n }\r\n }\r\n}",
848+
"Content": "{\r\n \"kind\": \"functionapp\",\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"serverFarmId\": \"/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/serverfarms/Functions-MyTestPlan2-kr06eymqwb\",\r\n \"siteConfig\": {\r\n \"netFrameworkVersion\": \"v8.0\",\r\n \"powerShellVersion\": \"7.4\",\r\n \"appSettings\": [\r\n {\r\n \"name\": \"FUNCTIONS_WORKER_RUNTIME\",\r\n \"value\": \"powershell\"\r\n },\r\n {\r\n \"name\": \"AzureWebJobsStorage\",\r\n \"value\": \"DefaultEndpointsProtocol=https;AccountName=REDACTEDACCOUNT;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\"\r\n },\r\n {\r\n \"name\": \"FUNCTIONS_EXTENSION_VERSION\",\r\n \"value\": \"~4\"\r\n },\r\n {\r\n \"name\": \"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING\",\r\n \"value\": \"DefaultEndpointsProtocol=https;AccountName=REDACTEDACCOUNT;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\"\r\n },\r\n {\r\n \"name\": \"WEBSITE_CONTENTSHARE\",\r\n \"value\": \"func-powershell-newtest4-5id68b7s4u\"\r\n },\r\n {\r\n \"name\": \"APPLICATIONINSIGHTS_CONNECTION_STRING\",\r\n \"value\": \"InstrumentationKey=AI-INSTRUMENTATION-KEY-REDACTED;IngestionEndpoint=https://redacted.ingest/;LiveEndpoint=https://redacted.live/;ApplicationId=APP-INSIGHTS-APPID-REDACTED\"\r\n }\r\n ],\r\n \"use32BitWorkerProcess\": true\r\n }\r\n }\r\n}",
849849
"isContentBase64": false,
850850
"Headers": {
851851
},
@@ -1015,7 +1015,7 @@
10151015
"Content-Type": [ "application/json" ],
10161016
"Expires": [ "-1" ]
10171017
},
1018-
"Content": "{\"id\":\"/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/sites/Func-PowerShell-NewTest4-5id68b7s4u/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"Central US\",\"properties\":{\"FUNCTIONS_WORKER_RUNTIME\":\"powershell\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=functionswinstorage9nh;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"FUNCTIONS_EXTENSION_VERSION\":\"~4\",\"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING\":\"DefaultEndpointsProtocol=https;AccountName=functionswinstorage9nh;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"WEBSITE_CONTENTSHARE\":\"func-powershell-newtest4-5id68b7s4u\",\"APPLICATIONINSIGHTS_CONNECTION_STRING\":\"InstrumentationKey=AI-INSTRUMENTATION-KEY-REDACTED;IngestionEndpoint=https://redacted.ingest/;LiveEndpoint=https://redacted.live/;ApplicationId=APP-INSIGHTS-APPID-REDACTED\"}}",
1018+
"Content": "{\"id\":\"/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/sites/Func-PowerShell-NewTest4-5id68b7s4u/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"Central US\",\"properties\":{\"FUNCTIONS_WORKER_RUNTIME\":\"powershell\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=REDACTEDACCOUNT;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"FUNCTIONS_EXTENSION_VERSION\":\"~4\",\"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING\":\"DefaultEndpointsProtocol=https;AccountName=REDACTEDACCOUNT;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"WEBSITE_CONTENTSHARE\":\"func-powershell-newtest4-5id68b7s4u\",\"APPLICATIONINSIGHTS_CONNECTION_STRING\":\"InstrumentationKey=AI-INSTRUMENTATION-KEY-REDACTED;IngestionEndpoint=https://redacted.ingest/;LiveEndpoint=https://redacted.live/;ApplicationId=APP-INSIGHTS-APPID-REDACTED\"}}",
10191019
"isContentBase64": false
10201020
}
10211021
},
@@ -1152,7 +1152,7 @@
11521152
"Content-Type": [ "application/json" ],
11531153
"Expires": [ "-1" ]
11541154
},
1155-
"Content": "{\"id\":\"/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/sites/Func-PowerShell-NewTest4-5id68b7s4u/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"Central US\",\"properties\":{\"FUNCTIONS_WORKER_RUNTIME\":\"powershell\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=functionswinstorage9nh;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"FUNCTIONS_EXTENSION_VERSION\":\"~4\",\"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING\":\"DefaultEndpointsProtocol=https;AccountName=functionswinstorage9nh;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"WEBSITE_CONTENTSHARE\":\"func-powershell-newtest4-5id68b7s4u\",\"APPLICATIONINSIGHTS_CONNECTION_STRING\":\"InstrumentationKey=AI-INSTRUMENTATION-KEY-REDACTED;IngestionEndpoint=https://redacted.ingest/;LiveEndpoint=https://redacted.live/;ApplicationId=APP-INSIGHTS-APPID-REDACTED\"}}",
1155+
"Content": "{\"id\":\"/subscriptions/26cfabf6-eb15-4de5-ae51-f2218958bd5f/resourceGroups/Functions-Test-Windows-Premium-rs70mo/providers/Microsoft.Web/sites/Func-PowerShell-NewTest4-5id68b7s4u/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"Central US\",\"properties\":{\"FUNCTIONS_WORKER_RUNTIME\":\"powershell\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=REDACTEDACCOUNT;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"FUNCTIONS_EXTENSION_VERSION\":\"~4\",\"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING\":\"DefaultEndpointsProtocol=https;AccountName=REDACTEDACCOUNT;AccountKey=STORAGE-ACCOUNT-KEY-REDACTED;EndpointSuffix=core.windows.net\",\"WEBSITE_CONTENTSHARE\":\"func-powershell-newtest4-5id68b7s4u\",\"APPLICATIONINSIGHTS_CONNECTION_STRING\":\"InstrumentationKey=AI-INSTRUMENTATION-KEY-REDACTED;IngestionEndpoint=https://redacted.ingest/;LiveEndpoint=https://redacted.live/;ApplicationId=APP-INSIGHTS-APPID-REDACTED\"}}",
11561156
"isContentBase64": false
11571157
}
11581158
},
@@ -1471,3 +1471,4 @@
14711471
}
14721472
}
14731473
}
1474+

0 commit comments

Comments
 (0)