diff --git a/src/Functions/Az.Functions.format.ps1xml b/src/Functions/Az.Functions.format.ps1xml
index 9fc387a46b95..61bf26386c70 100644
--- a/src/Functions/Az.Functions.format.ps1xml
+++ b/src/Functions/Az.Functions.format.ps1xml
@@ -2059,6 +2059,12 @@
+
+
+
+
+
+
@@ -2077,6 +2083,9 @@
+
+
+
@@ -2099,6 +2108,12 @@
AccessTier
+
+ AllowBlobPublicAccess
+
+
+ AllowSharedKeyAccess
+ CreationTime
@@ -2117,6 +2132,9 @@
LastGeoFailoverTime
+
+ MinimumTlsVersion
+ PrimaryLocation
@@ -2147,6 +2165,12 @@
+
+
+
+
+
+
@@ -2156,6 +2180,9 @@
+
+
+
@@ -2163,6 +2190,12 @@
AccessTier
+
+ AllowBlobPublicAccess
+
+
+ AllowSharedKeyAccess
+ EnableHttpsTrafficOnly
@@ -2172,6 +2205,9 @@
LargeFileSharesState
+
+ MinimumTlsVersion
+
@@ -2187,12 +2223,21 @@
+
+
+
+
+
+
+
+
+
@@ -2200,12 +2245,21 @@
AccessTier
+
+ AllowBlobPublicAccess
+
+
+ AllowSharedKeyAccess
+ EnableHttpsTrafficOnlyLargeFileSharesState
+
+ MinimumTlsVersion
+
@@ -6695,6 +6749,84 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingCredentialsPoliciesCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingCredentialsPoliciesCollection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Kind
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingCredentialsPoliciesEntity
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingCredentialsPoliciesEntity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Kind
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingCredentialsPoliciesEntityProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingCredentialsPoliciesEntityProperties
+
+
+
+
+
+
+
+
+
+
+
+ Allow
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.CsmPublishingProfileOptions
@@ -13564,6 +13696,12 @@
+
+
+
+
+
+
@@ -13691,6 +13829,12 @@
+
+ AcrUseManagedIdentityCred
+
+
+ AcrUserManagedIdentityId
+ AlwaysOn
diff --git a/src/Functions/Az.Functions.psd1 b/src/Functions/Az.Functions.psd1
index 81e9643dc174..839e0604abd1 100644
--- a/src/Functions/Az.Functions.psd1
+++ b/src/Functions/Az.Functions.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 3/31/2022
+# Generated on: 5/17/2022
#
@{
@@ -115,7 +115,7 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Exposed PowerShell 7.2 stack definition for function app creation in Functions V4 only'
+ # ReleaseNotes = ''
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/Functions/Az.Functions.psm1 b/src/Functions/Az.Functions.psm1
index 60229ca9f170..3f016a66c29d 100644
--- a/src/Functions/Az.Functions.psm1
+++ b/src/Functions/Az.Functions.psm1
@@ -25,17 +25,17 @@
}
}
if(-not $accountsModule) {
- $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
if($hasAdequateVersion) {
- $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
}
}
}
if(-not $accountsModule) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
- } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Write-Information "Loaded Module '$($accountsModule.Name)'"
@@ -50,6 +50,10 @@
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
# Tweaks the pipeline per call
diff --git a/src/Functions/ChangeLog.md b/src/Functions/ChangeLog.md
index 63f039029be0..dc277500dc50 100644
--- a/src/Functions/ChangeLog.md
+++ b/src/Functions/ChangeLog.md
@@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
+* Fixed an issue that New-AzFunctionApp cmdlet should write a warning message when setting default values for parameters that are not provided.
## Version 4.0.2
* Exposed PowerShell 7.2 stack definition for function app creation in Functions V4 only
diff --git a/src/Functions/Functions.sln b/src/Functions/Functions.sln
index 1f54f934dd80..d5426368c802 100644
--- a/src/Functions/Functions.sln
+++ b/src/Functions/Functions.sln
@@ -3,17 +3,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{7B8EBA26-BA09-4DA8-9401-41D548053C78}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{C38891CA-C59B-4380-930B-8E2A31A21568}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{5E18030B-9F9C-4841-B978-196F9CFA3932}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{06E5EB89-4532-4AE8-B10C-44587C5FDA87}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{634797F7-1197-49EB-ACE6-F5E10E6BF277}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A1AF8367-9F9C-4D40-A491-394A19362F11}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{B51271AF-188B-47B0-B644-B3623CC5924E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{19F9BACF-B8CC-421E-A1A5-73D6636AEE75}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Functions", "Az.Functions.csproj", "{3D65839B-6170-4D51-A8D9-D872E18D2A7A}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Functions", "Az.Functions.csproj", "{5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -28,77 +28,77 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Debug|x64.ActiveCfg = Debug|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Debug|x64.Build.0 = Debug|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Debug|x86.ActiveCfg = Debug|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Debug|x86.Build.0 = Debug|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Release|Any CPU.Build.0 = Release|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Release|x64.ActiveCfg = Release|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Release|x64.Build.0 = Release|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Release|x86.ActiveCfg = Release|Any CPU
- {69E0CD7E-0CB8-4E58-B6BC-E81DB043CFD4}.Release|x86.Build.0 = Release|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Debug|x64.ActiveCfg = Debug|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Debug|x64.Build.0 = Debug|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Debug|x86.ActiveCfg = Debug|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Debug|x86.Build.0 = Debug|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Release|Any CPU.Build.0 = Release|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Release|x64.ActiveCfg = Release|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Release|x64.Build.0 = Release|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Release|x86.ActiveCfg = Release|Any CPU
- {7B8EBA26-BA09-4DA8-9401-41D548053C78}.Release|x86.Build.0 = Release|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Debug|x64.ActiveCfg = Debug|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Debug|x64.Build.0 = Debug|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Debug|x86.ActiveCfg = Debug|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Debug|x86.Build.0 = Debug|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Release|Any CPU.Build.0 = Release|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Release|x64.ActiveCfg = Release|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Release|x64.Build.0 = Release|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Release|x86.ActiveCfg = Release|Any CPU
- {5E18030B-9F9C-4841-B978-196F9CFA3932}.Release|x86.Build.0 = Release|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Debug|x64.ActiveCfg = Debug|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Debug|x64.Build.0 = Debug|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Debug|x86.ActiveCfg = Debug|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Debug|x86.Build.0 = Debug|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Release|Any CPU.Build.0 = Release|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Release|x64.ActiveCfg = Release|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Release|x64.Build.0 = Release|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Release|x86.ActiveCfg = Release|Any CPU
- {634797F7-1197-49EB-ACE6-F5E10E6BF277}.Release|x86.Build.0 = Release|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Debug|x64.ActiveCfg = Debug|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Debug|x64.Build.0 = Debug|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Debug|x86.ActiveCfg = Debug|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Debug|x86.Build.0 = Debug|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Release|Any CPU.Build.0 = Release|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Release|x64.ActiveCfg = Release|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Release|x64.Build.0 = Release|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Release|x86.ActiveCfg = Release|Any CPU
- {B51271AF-188B-47B0-B644-B3623CC5924E}.Release|x86.Build.0 = Release|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Debug|x64.ActiveCfg = Debug|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Debug|x64.Build.0 = Debug|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Debug|x86.ActiveCfg = Debug|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Debug|x86.Build.0 = Debug|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Release|Any CPU.Build.0 = Release|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Release|x64.ActiveCfg = Release|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Release|x64.Build.0 = Release|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Release|x86.ActiveCfg = Release|Any CPU
- {3D65839B-6170-4D51-A8D9-D872E18D2A7A}.Release|x86.Build.0 = Release|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Debug|x64.Build.0 = Debug|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Debug|x86.Build.0 = Debug|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Release|x64.ActiveCfg = Release|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Release|x64.Build.0 = Release|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Release|x86.ActiveCfg = Release|Any CPU
+ {B05057AE-D060-4EB3-88B3-4A0ED7EDEA0D}.Release|x86.Build.0 = Release|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Debug|x64.Build.0 = Debug|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Debug|x86.Build.0 = Debug|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Release|x64.ActiveCfg = Release|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Release|x64.Build.0 = Release|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Release|x86.ActiveCfg = Release|Any CPU
+ {C38891CA-C59B-4380-930B-8E2A31A21568}.Release|x86.Build.0 = Release|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Debug|x64.Build.0 = Debug|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Debug|x86.Build.0 = Debug|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Release|Any CPU.Build.0 = Release|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Release|x64.ActiveCfg = Release|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Release|x64.Build.0 = Release|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Release|x86.ActiveCfg = Release|Any CPU
+ {06E5EB89-4532-4AE8-B10C-44587C5FDA87}.Release|x86.Build.0 = Release|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Debug|x64.Build.0 = Debug|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Debug|x86.Build.0 = Debug|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Release|x64.ActiveCfg = Release|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Release|x64.Build.0 = Release|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Release|x86.ActiveCfg = Release|Any CPU
+ {A1AF8367-9F9C-4D40-A491-394A19362F11}.Release|x86.Build.0 = Release|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Debug|x64.Build.0 = Debug|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Debug|x86.Build.0 = Debug|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Release|Any CPU.Build.0 = Release|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Release|x64.ActiveCfg = Release|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Release|x64.Build.0 = Release|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Release|x86.ActiveCfg = Release|Any CPU
+ {19F9BACF-B8CC-421E-A1A5-73D6636AEE75}.Release|x86.Build.0 = Release|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Debug|x64.Build.0 = Debug|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Debug|x86.Build.0 = Debug|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Release|x64.ActiveCfg = Release|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Release|x64.Build.0 = Release|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Release|x86.ActiveCfg = Release|Any CPU
+ {5B123267-DA9F-47DC-BBCF-B8EDE98D21AC}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/src/Functions/README.md b/src/Functions/README.md
index c299ced7c63f..506110ba6937 100644
--- a/src/Functions/README.md
+++ b/src/Functions/README.md
@@ -17,7 +17,7 @@ This directory contains the PowerShell module for the Functions service.
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
## Module Requirements
-- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -65,7 +65,7 @@ directive:
```
``` yaml
-branch: powershell-function
+branch: main
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
diff --git a/src/Functions/check-dependencies.ps1 b/src/Functions/check-dependencies.ps1
index b02ae9135957..c29591c7bfe1 100644
--- a/src/Functions/check-dependencies.ps1
+++ b/src/Functions/check-dependencies.ps1
@@ -25,7 +25,7 @@ if(-not $Isolated) {
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
if($predicate) {
$module = Get-Module -ListAvailable -Name $moduleName
- if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
$null = New-Item -ItemType Directory -Force -Path $path
Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
if ($requiredVersion) {
@@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) {
$env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
}
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3'
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
$tools = Join-Path $PSScriptRoot 'tools'
diff --git a/src/Functions/custom/HelperFunctions.ps1 b/src/Functions/custom/HelperFunctions.ps1
index 62d9deb71562..3b1b93179f62 100644
--- a/src/Functions/custom/HelperFunctions.ps1
+++ b/src/Functions/custom/HelperFunctions.ps1
@@ -42,6 +42,8 @@ $constants["FunctionsNoV2Version"] = @(
"USSec East"
)
+$constants["SetDefaultValueParameterWarningMessage"] = "This default value is subject to change over time. Please set this value explicitly to ensure the behavior is not accidentally impacted by future changes."
+
foreach ($variableName in $constants.Keys)
{
if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
@@ -1018,7 +1020,7 @@ function GetRuntimeJsonDefinition
$RuntimeVersion = $latestVersion.ToString()
}
- Write-Verbose "RuntimeVersion not specified. Setting default runtime version for '$Runtime' to '$RuntimeVersion'." -Verbose
+ Write-Warning "RuntimeVersion not specified. Setting default value to '$RuntimeVersion'. $SetDefaultValueParameterWarningMessage"
}
# Get the RuntimeJsonDefinition
diff --git a/src/Functions/custom/New-AzFunctionApp.ps1 b/src/Functions/custom/New-AzFunctionApp.ps1
index 77378f3e8f40..12b41b93e1b8 100644
--- a/src/Functions/custom/New-AzFunctionApp.ps1
+++ b/src/Functions/custom/New-AzFunctionApp.ps1
@@ -266,7 +266,7 @@ function New-AzFunctionApp {
}
$FunctionsVersion = $DefaultFunctionsVersion
- Write-Verbose "FunctionsVersion not specified. Setting default FunctionsVersion to '$FunctionsVersion'." -Verbose
+ Write-Warning "FunctionsVersion not specified. Setting default value to '$FunctionsVersion'. $SetDefaultValueParameterWarningMessage"
}
ValidateFunctionsVersion -FunctionsVersion $FunctionsVersion
@@ -284,7 +284,7 @@ function New-AzFunctionApp {
if (-not $OSType)
{
$OSType = GetDefaultOSType -Runtime $Runtime
- Write-Verbose "OSType for $Runtime is '$OSType'." -Verbose
+ Write-Warning "OSType not specified. Setting default value to '$OSType'. $SetDefaultValueParameterWarningMessage"
}
$runtimeJsonDefintion = GetRuntimeJsonDefinition -FunctionsVersion $FunctionsVersion -Runtime $Runtime -RuntimeVersion $RuntimeVersion -OSType $OSType
diff --git a/src/Functions/examples/Get-AzWebAppBasicPublishingCredentialsPolicy.md b/src/Functions/examples/Get-AzWebAppBasicPublishingCredentialsPolicy.md
new file mode 100644
index 000000000000..6ee1a83db970
--- /dev/null
+++ b/src/Functions/examples/Get-AzWebAppBasicPublishingCredentialsPolicy.md
@@ -0,0 +1,22 @@
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
diff --git a/src/Functions/examples/Get-AzWebAppFtpAllowed.md b/src/Functions/examples/Get-AzWebAppFtpAllowed.md
new file mode 100644
index 000000000000..6ee1a83db970
--- /dev/null
+++ b/src/Functions/examples/Get-AzWebAppFtpAllowed.md
@@ -0,0 +1,22 @@
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
diff --git a/src/Functions/examples/Get-AzWebAppScmAllowed.md b/src/Functions/examples/Get-AzWebAppScmAllowed.md
new file mode 100644
index 000000000000..6ee1a83db970
--- /dev/null
+++ b/src/Functions/examples/Get-AzWebAppScmAllowed.md
@@ -0,0 +1,22 @@
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
diff --git a/src/Functions/examples/New-AzFunctionApp.md b/src/Functions/examples/New-AzFunctionApp.md
index 6711c56c3f92..76f430d36162 100644
--- a/src/Functions/examples/New-AzFunctionApp.md
+++ b/src/Functions/examples/New-AzFunctionApp.md
@@ -4,7 +4,7 @@
New-AzFunctionApp -Name MyUniqueFunctionAppName `
-ResourceGroupName MyResourceGroupName `
-Location centralUS `
- -StorageAccount MyStorageAccountName `
+ -StorageAccountName MyStorageAccountName `
-Runtime PowerShell
```
@@ -17,7 +17,7 @@ This command creates a consumption PowerShell function app in Central US.
New-AzFunctionApp -Name MyUniqueFunctionAppName `
-ResourceGroupName MyResourceGroupName `
-PlanName MyPlanName `
- -StorageAccount MyStorageAccountName `
+ -StorageAccountName MyStorageAccountName `
-Runtime PowerShell
```
@@ -31,7 +31,7 @@ Note that the service plan and storage account must exist before this operation.
New-AzFunctionApp -Name MyUniqueFunctionAppName `
-ResourceGroupName MyResourceGroupName `
-PlanName MyPlanName `
- -StorageAccount MyStorageAccountName `
+ -StorageAccountName MyStorageAccountName `
-DockerImageName myacr.azurecr.io/myimage:tag
```
diff --git a/src/Functions/examples/Set-AzWebAppFtpAllowed.md b/src/Functions/examples/Set-AzWebAppFtpAllowed.md
new file mode 100644
index 000000000000..6ee1a83db970
--- /dev/null
+++ b/src/Functions/examples/Set-AzWebAppFtpAllowed.md
@@ -0,0 +1,22 @@
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
diff --git a/src/Functions/examples/Set-AzWebAppScmAllowed.md b/src/Functions/examples/Set-AzWebAppScmAllowed.md
new file mode 100644
index 000000000000..6ee1a83db970
--- /dev/null
+++ b/src/Functions/examples/Set-AzWebAppScmAllowed.md
@@ -0,0 +1,22 @@
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
diff --git a/src/Functions/exports/Get-AzFunctionApp.ps1 b/src/Functions/exports/Get-AzFunctionApp.ps1
index b6b5066f4789..a2749b587d74 100644
--- a/src/Functions/exports/Get-AzFunctionApp.ps1
+++ b/src/Functions/exports/Get-AzFunctionApp.ps1
@@ -120,6 +120,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
GetAll = 'Az.Functions.custom\Get-AzFunctionApp';
ByLocation = 'Az.Functions.custom\Get-AzFunctionApp';
@@ -136,6 +154,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -144,15 +163,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzFunctionAppAvailableLocation.ps1 b/src/Functions/exports/Get-AzFunctionAppAvailableLocation.ps1
index a3dee8cac85d..21b0ba7b133b 100644
--- a/src/Functions/exports/Get-AzFunctionAppAvailableLocation.ps1
+++ b/src/Functions/exports/Get-AzFunctionAppAvailableLocation.ps1
@@ -106,6 +106,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
__AllParameterSets = 'Az.Functions.custom\Get-AzFunctionAppAvailableLocation';
}
@@ -119,6 +137,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -127,15 +146,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzFunctionAppPlan.ps1 b/src/Functions/exports/Get-AzFunctionAppPlan.ps1
index ed5fa628d627..115e7a176497 100644
--- a/src/Functions/exports/Get-AzFunctionAppPlan.ps1
+++ b/src/Functions/exports/Get-AzFunctionAppPlan.ps1
@@ -112,6 +112,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
GetAll = 'Az.Functions.custom\Get-AzFunctionAppPlan';
ByLocation = 'Az.Functions.custom\Get-AzFunctionAppPlan';
@@ -128,6 +146,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -136,15 +155,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzFunctionAppSetting.ps1 b/src/Functions/exports/Get-AzFunctionAppSetting.ps1
index 0c468fb8c0af..628b0dffd393 100644
--- a/src/Functions/exports/Get-AzFunctionAppSetting.ps1
+++ b/src/Functions/exports/Get-AzFunctionAppSetting.ps1
@@ -52,6 +52,8 @@ INPUTOBJECT :
[CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}.
[CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist.
[Config ]: Configuration of the app.
+ [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull
+ [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId
[ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action
[ActionType ]: Predefined action to be taken.
[AlwaysOn ]: true if Always On is enabled; otherwise, false.
@@ -267,6 +269,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
ByName = 'Az.Functions.custom\Get-AzFunctionAppSetting';
ByObjectInput = 'Az.Functions.custom\Get-AzFunctionAppSetting';
@@ -281,6 +301,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -289,15 +310,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzSystemAssignedIdentity.ps1 b/src/Functions/exports/Get-AzSystemAssignedIdentity.ps1
index df738c878282..29f1a3b123e3 100644
--- a/src/Functions/exports/Get-AzSystemAssignedIdentity.ps1
+++ b/src/Functions/exports/Get-AzSystemAssignedIdentity.ps1
@@ -166,6 +166,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Functions.private\Get-AzSystemAssignedIdentity_Get';
GetViaIdentity = 'Az.Functions.private\Get-AzSystemAssignedIdentity_GetViaIdentity';
@@ -177,6 +195,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -185,15 +204,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzWebAppBasicPublishingCredentialsPolicy.ps1 b/src/Functions/exports/Get-AzWebAppBasicPublishingCredentialsPolicy.ps1
new file mode 100644
index 000000000000..2be0cc7cda26
--- /dev/null
+++ b/src/Functions/exports/Get-AzWebAppBasicPublishingCredentialsPolicy.ps1
@@ -0,0 +1,252 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site.
+.Description
+Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site.
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesCollection
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [AnalysisName ]: Analysis Name
+ [AppSettingKey ]: App Setting key name.
+ [Authprovider ]: The auth provider for the users.
+ [BackupId ]: ID of the backup.
+ [BaseAddress ]: Module base address.
+ [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
+ [CertificateOrderName ]: Name of the certificate order..
+ [ContainerName ]: The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345
+ [DetectorName ]: Detector Resource Name
+ [DiagnosticCategory ]: Diagnostic Category
+ [DiagnosticsName ]: Name of the diagnostics item.
+ [DomainName ]: Name of the domain.
+ [DomainOwnershipIdentifierName ]: Name of domain ownership identifier.
+ [EntityName ]: Name of the hybrid connection.
+ [FunctionName ]: Function name.
+ [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary".
+ [HostName ]: Hostname in the hostname binding.
+ [HostingEnvironmentName ]: Name of the hosting environment.
+ [Id ]: Deployment ID.
+ [Id1 ]: Resource identity path
+ [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
+ [Instance ]: Name of the instance in the multi-role pool.
+ [InstanceId ]:
+ [KeyId ]: The API Key ID. This is unique within a Application Insights component.
+ [KeyName ]: The name of the key.
+ [KeyType ]: The type of host key.
+ [Location ]:
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [Name ]: Name of the certificate.
+ [NamespaceName ]: The namespace for this hybrid connection.
+ [OperationId ]: GUID of the operation.
+ [PrId ]: The stage site identifier.
+ [PremierAddOnName ]: Add-on name.
+ [PrivateEndpointConnectionName ]:
+ [ProcessId ]: PID.
+ [PublicCertificateName ]: Public certificate name.
+ [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned.
+ [RelayName ]: The relay name for this hybrid connection.
+ [ResourceGroupName ]: Name of the resource group to which the resource belongs.
+ [ResourceName ]: The name of the Application Insights component resource.
+ [RouteName ]: Name of the Virtual Network route.
+ [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities.
+ [SiteExtensionId ]: Site extension name.
+ [SiteName ]: Site Name
+ [Slot ]: Slot Name
+ [SnapshotId ]: The ID of the snapshot to read.
+ [SourceControlType ]: Type of source control
+ [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ [Userid ]: The user id of the user.
+ [View ]: The type of view. This can either be "summary" or "detailed".
+ [VnetName ]: Name of the virtual network.
+ [WebJobName ]: Name of Web Job.
+ [WorkerName ]: Name of worker machine, which typically starts with RD.
+ [WorkerPoolName ]: Name of the worker pool.
+.Link
+https://docs.microsoft.com/powershell/module/az.functions/get-azwebappbasicpublishingcredentialspolicy
+#>
+function Get-AzWebAppBasicPublishingCredentialsPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesCollection])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [System.String]
+ # Name of the app.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [System.String]
+ # Name of the resource group to which the resource belongs.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Your Azure subscription ID.
+ # This is a GUID-formatted string (e.g.
+ # 00000000-0000-0000-0000-000000000000).
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Functions.private\Get-AzWebAppBasicPublishingCredentialsPolicy_Get';
+ GetViaIdentity = 'Az.Functions.private\Get-AzWebAppBasicPublishingCredentialsPolicy_GetViaIdentity';
+ }
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Functions/exports/Get-AzWebAppFtpAllowed.ps1 b/src/Functions/exports/Get-AzWebAppFtpAllowed.ps1
new file mode 100644
index 000000000000..39cd6d9f3632
--- /dev/null
+++ b/src/Functions/exports/Get-AzWebAppFtpAllowed.ps1
@@ -0,0 +1,252 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns whether FTP is allowed on the site or not.
+.Description
+Returns whether FTP is allowed on the site or not.
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesEntity
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [AnalysisName ]: Analysis Name
+ [AppSettingKey ]: App Setting key name.
+ [Authprovider ]: The auth provider for the users.
+ [BackupId ]: ID of the backup.
+ [BaseAddress ]: Module base address.
+ [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
+ [CertificateOrderName ]: Name of the certificate order..
+ [ContainerName ]: The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345
+ [DetectorName ]: Detector Resource Name
+ [DiagnosticCategory ]: Diagnostic Category
+ [DiagnosticsName ]: Name of the diagnostics item.
+ [DomainName ]: Name of the domain.
+ [DomainOwnershipIdentifierName ]: Name of domain ownership identifier.
+ [EntityName ]: Name of the hybrid connection.
+ [FunctionName ]: Function name.
+ [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary".
+ [HostName ]: Hostname in the hostname binding.
+ [HostingEnvironmentName ]: Name of the hosting environment.
+ [Id ]: Deployment ID.
+ [Id1 ]: Resource identity path
+ [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
+ [Instance ]: Name of the instance in the multi-role pool.
+ [InstanceId ]:
+ [KeyId ]: The API Key ID. This is unique within a Application Insights component.
+ [KeyName ]: The name of the key.
+ [KeyType ]: The type of host key.
+ [Location ]:
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [Name ]: Name of the certificate.
+ [NamespaceName ]: The namespace for this hybrid connection.
+ [OperationId ]: GUID of the operation.
+ [PrId ]: The stage site identifier.
+ [PremierAddOnName ]: Add-on name.
+ [PrivateEndpointConnectionName ]:
+ [ProcessId ]: PID.
+ [PublicCertificateName ]: Public certificate name.
+ [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned.
+ [RelayName ]: The relay name for this hybrid connection.
+ [ResourceGroupName ]: Name of the resource group to which the resource belongs.
+ [ResourceName ]: The name of the Application Insights component resource.
+ [RouteName ]: Name of the Virtual Network route.
+ [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities.
+ [SiteExtensionId ]: Site extension name.
+ [SiteName ]: Site Name
+ [Slot ]: Slot Name
+ [SnapshotId ]: The ID of the snapshot to read.
+ [SourceControlType ]: Type of source control
+ [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ [Userid ]: The user id of the user.
+ [View ]: The type of view. This can either be "summary" or "detailed".
+ [VnetName ]: Name of the virtual network.
+ [WebJobName ]: Name of Web Job.
+ [WorkerName ]: Name of worker machine, which typically starts with RD.
+ [WorkerPoolName ]: Name of the worker pool.
+.Link
+https://docs.microsoft.com/powershell/module/az.functions/get-azwebappftpallowed
+#>
+function Get-AzWebAppFtpAllowed {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesEntity])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [System.String]
+ # Name of the app.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [System.String]
+ # Name of the resource group to which the resource belongs.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Your Azure subscription ID.
+ # This is a GUID-formatted string (e.g.
+ # 00000000-0000-0000-0000-000000000000).
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Functions.private\Get-AzWebAppFtpAllowed_Get';
+ GetViaIdentity = 'Az.Functions.private\Get-AzWebAppFtpAllowed_GetViaIdentity';
+ }
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Functions/exports/Get-AzWebAppFunctionKey.ps1 b/src/Functions/exports/Get-AzWebAppFunctionKey.ps1
index 432e8998204f..a95e7812ceb3 100644
--- a/src/Functions/exports/Get-AzWebAppFunctionKey.ps1
+++ b/src/Functions/exports/Get-AzWebAppFunctionKey.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Description for Get function keys for a function in a web site, or a deployment slot.
+Get function keys for a function in a web site, or a deployment slot.
.Description
-Description for Get function keys for a function in a web site, or a deployment slot.
+Get function keys for a function in a web site, or a deployment slot.
.Example
{{ Add code here }}
.Example
@@ -115,6 +115,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
List = 'Az.Functions.private\Get-AzWebAppFunctionKey_List';
}
@@ -128,6 +146,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -136,15 +155,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzWebAppFunctionKeySlot.ps1 b/src/Functions/exports/Get-AzWebAppFunctionKeySlot.ps1
index 12a3a8efbcad..227740e8ac16 100644
--- a/src/Functions/exports/Get-AzWebAppFunctionKeySlot.ps1
+++ b/src/Functions/exports/Get-AzWebAppFunctionKeySlot.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Description for Get function keys for a function in a web site, or a deployment slot.
+Get function keys for a function in a web site, or a deployment slot.
.Description
-Description for Get function keys for a function in a web site, or a deployment slot.
+Get function keys for a function in a web site, or a deployment slot.
.Example
{{ Add code here }}
.Example
@@ -121,6 +121,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
List = 'Az.Functions.private\Get-AzWebAppFunctionKeySlot_List';
}
@@ -134,6 +152,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -142,15 +161,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzWebAppScmAllowed.ps1 b/src/Functions/exports/Get-AzWebAppScmAllowed.ps1
new file mode 100644
index 000000000000..72ee1fa504d0
--- /dev/null
+++ b/src/Functions/exports/Get-AzWebAppScmAllowed.ps1
@@ -0,0 +1,252 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns whether Scm basic auth is allowed on the site or not.
+.Description
+Returns whether Scm basic auth is allowed on the site or not.
+.Example
+{{ Add code here }}
+.Example
+{{ Add code here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesEntity
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [AnalysisName ]: Analysis Name
+ [AppSettingKey ]: App Setting key name.
+ [Authprovider ]: The auth provider for the users.
+ [BackupId ]: ID of the backup.
+ [BaseAddress ]: Module base address.
+ [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
+ [CertificateOrderName ]: Name of the certificate order..
+ [ContainerName ]: The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345
+ [DetectorName ]: Detector Resource Name
+ [DiagnosticCategory ]: Diagnostic Category
+ [DiagnosticsName ]: Name of the diagnostics item.
+ [DomainName ]: Name of the domain.
+ [DomainOwnershipIdentifierName ]: Name of domain ownership identifier.
+ [EntityName ]: Name of the hybrid connection.
+ [FunctionName ]: Function name.
+ [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary".
+ [HostName ]: Hostname in the hostname binding.
+ [HostingEnvironmentName ]: Name of the hosting environment.
+ [Id ]: Deployment ID.
+ [Id1 ]: Resource identity path
+ [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
+ [Instance ]: Name of the instance in the multi-role pool.
+ [InstanceId ]:
+ [KeyId ]: The API Key ID. This is unique within a Application Insights component.
+ [KeyName ]: The name of the key.
+ [KeyType ]: The type of host key.
+ [Location ]:
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [Name ]: Name of the certificate.
+ [NamespaceName ]: The namespace for this hybrid connection.
+ [OperationId ]: GUID of the operation.
+ [PrId ]: The stage site identifier.
+ [PremierAddOnName ]: Add-on name.
+ [PrivateEndpointConnectionName ]:
+ [ProcessId ]: PID.
+ [PublicCertificateName ]: Public certificate name.
+ [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned.
+ [RelayName ]: The relay name for this hybrid connection.
+ [ResourceGroupName ]: Name of the resource group to which the resource belongs.
+ [ResourceName ]: The name of the Application Insights component resource.
+ [RouteName ]: Name of the Virtual Network route.
+ [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities.
+ [SiteExtensionId ]: Site extension name.
+ [SiteName ]: Site Name
+ [Slot ]: Slot Name
+ [SnapshotId ]: The ID of the snapshot to read.
+ [SourceControlType ]: Type of source control
+ [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ [Userid ]: The user id of the user.
+ [View ]: The type of view. This can either be "summary" or "detailed".
+ [VnetName ]: Name of the virtual network.
+ [WebJobName ]: Name of Web Job.
+ [WorkerName ]: Name of worker machine, which typically starts with RD.
+ [WorkerPoolName ]: Name of the worker pool.
+.Link
+https://docs.microsoft.com/powershell/module/az.functions/get-azwebappscmallowed
+#>
+function Get-AzWebAppScmAllowed {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesEntity])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [System.String]
+ # Name of the app.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [System.String]
+ # Name of the resource group to which the resource belongs.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # Your Azure subscription ID.
+ # This is a GUID-formatted string (e.g.
+ # 00000000-0000-0000-0000-000000000000).
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Functions.private\Get-AzWebAppScmAllowed_Get';
+ GetViaIdentity = 'Az.Functions.private\Get-AzWebAppScmAllowed_GetViaIdentity';
+ }
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Functions/exports/Get-AzWebAppSettingKeyVaultReference.ps1 b/src/Functions/exports/Get-AzWebAppSettingKeyVaultReference.ps1
index 68db26d2dd1f..670913973a85 100644
--- a/src/Functions/exports/Get-AzWebAppSettingKeyVaultReference.ps1
+++ b/src/Functions/exports/Get-AzWebAppSettingKeyVaultReference.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Description for Gets the config reference app settings and status of an app
+Gets the config reference app settings and status of an app
.Description
-Description for Gets the config reference app settings and status of an app
+Gets the config reference app settings and status of an app
.Example
{{ Add code here }}
.Example
@@ -192,6 +192,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReference_Get';
Get1 = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReference_Get1';
@@ -208,6 +226,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -216,15 +235,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzWebAppSyncStatus.ps1 b/src/Functions/exports/Get-AzWebAppSyncStatus.ps1
index e4c2dfe6c48c..ad5cc36d82d5 100644
--- a/src/Functions/exports/Get-AzWebAppSyncStatus.ps1
+++ b/src/Functions/exports/Get-AzWebAppSyncStatus.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Description for This is to allow calling via powershell and ARM template.
+This is to allow calling via powershell and ARM template.
.Description
-Description for This is to allow calling via powershell and ARM template.
+This is to allow calling via powershell and ARM template.
.Example
{{ Add code here }}
.Example
@@ -115,6 +115,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
List = 'Az.Functions.private\Get-AzWebAppSyncStatus_List';
}
@@ -128,6 +146,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -136,15 +155,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Get-AzWebAppSyncStatusSlot.ps1 b/src/Functions/exports/Get-AzWebAppSyncStatusSlot.ps1
index 7f68abeb6395..24471fb538bf 100644
--- a/src/Functions/exports/Get-AzWebAppSyncStatusSlot.ps1
+++ b/src/Functions/exports/Get-AzWebAppSyncStatusSlot.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Description for This is to allow calling via powershell and ARM template.
+This is to allow calling via powershell and ARM template.
.Description
-Description for This is to allow calling via powershell and ARM template.
+This is to allow calling via powershell and ARM template.
.Example
{{ Add code here }}
.Example
@@ -121,6 +121,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
List = 'Az.Functions.private\Get-AzWebAppSyncStatusSlot_List';
}
@@ -134,6 +152,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -142,15 +161,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/Move-Az.ps1 b/src/Functions/exports/Move-Az.ps1
index 62045be1e6a3..51b0defe680b 100644
--- a/src/Functions/exports/Move-Az.ps1
+++ b/src/Functions/exports/Move-Az.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Description for Move resources between resource groups.
+Move resources between resource groups.
.Description
-Description for Move resources between resource groups.
+Move resources between resource groups.
.Example
{{ Add code here }}
.Example
@@ -212,6 +212,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Move = 'Az.Functions.private\Move-Az_Move';
MoveExpanded = 'Az.Functions.private\Move-Az_MoveExpanded';
@@ -228,6 +246,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -236,15 +255,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/New-AzFunctionApp.ps1 b/src/Functions/exports/New-AzFunctionApp.ps1
index 5ee86a168aed..4e4eabbd96d2 100644
--- a/src/Functions/exports/New-AzFunctionApp.ps1
+++ b/src/Functions/exports/New-AzFunctionApp.ps1
@@ -23,19 +23,19 @@ Creates a function app.
New-AzFunctionApp -Name MyUniqueFunctionAppName `
-ResourceGroupName MyResourceGroupName `
-Location centralUS `
- -StorageAccount MyStorageAccountName `
+ -StorageAccountName MyStorageAccountName `
-Runtime PowerShell
.Example
New-AzFunctionApp -Name MyUniqueFunctionAppName `
-ResourceGroupName MyResourceGroupName `
-PlanName MyPlanName `
- -StorageAccount MyStorageAccountName `
+ -StorageAccountName MyStorageAccountName `
-Runtime PowerShell
.Example
New-AzFunctionApp -Name MyUniqueFunctionAppName `
-ResourceGroupName MyResourceGroupName `
-PlanName MyPlanName `
- -StorageAccount MyStorageAccountName `
+ -StorageAccountName MyStorageAccountName `
-DockerImageName myacr.azurecr.io/myimage:tag
.Outputs
@@ -253,6 +253,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Consumption = 'Az.Functions.custom\New-AzFunctionApp';
CustomDockerImage = 'Az.Functions.custom\New-AzFunctionApp';
@@ -268,6 +286,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -276,15 +295,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/New-AzFunctionAppPlan.ps1 b/src/Functions/exports/New-AzFunctionAppPlan.ps1
index 686d77bbb87f..a083a9740b24 100644
--- a/src/Functions/exports/New-AzFunctionAppPlan.ps1
+++ b/src/Functions/exports/New-AzFunctionAppPlan.ps1
@@ -160,6 +160,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
__AllParameterSets = 'Az.Functions.custom\New-AzFunctionAppPlan';
}
@@ -173,6 +191,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -181,15 +200,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Functions/exports/ProxyCmdletDefinitions.ps1 b/src/Functions/exports/ProxyCmdletDefinitions.ps1
index dc3768b372ae..cc586e25706f 100644
--- a/src/Functions/exports/ProxyCmdletDefinitions.ps1
+++ b/src/Functions/exports/ProxyCmdletDefinitions.ps1
@@ -166,6 +166,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Functions.private\Get-AzSystemAssignedIdentity_Get';
GetViaIdentity = 'Az.Functions.private\Get-AzSystemAssignedIdentity_GetViaIdentity';
@@ -177,6 +195,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -185,63 +204,132 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
.Synopsis
-Description for Get function keys for a function in a web site, or a deployment slot.
+Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site.
.Description
-Description for Get function keys for a function in a web site, or a deployment slot.
+Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site.
.Example
{{ Add code here }}
.Example
{{ Add code here }}
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStringDictionary
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesCollection
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [AnalysisName ]: Analysis Name
+ [AppSettingKey ]: App Setting key name.
+ [Authprovider ]: The auth provider for the users.
+ [BackupId ]: ID of the backup.
+ [BaseAddress ]: Module base address.
+ [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
+ [CertificateOrderName ]: Name of the certificate order..
+ [ContainerName ]: The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345
+ [DetectorName ]: Detector Resource Name
+ [DiagnosticCategory ]: Diagnostic Category
+ [DiagnosticsName ]: Name of the diagnostics item.
+ [DomainName ]: Name of the domain.
+ [DomainOwnershipIdentifierName ]: Name of domain ownership identifier.
+ [EntityName ]: Name of the hybrid connection.
+ [FunctionName ]: Function name.
+ [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary".
+ [HostName ]: Hostname in the hostname binding.
+ [HostingEnvironmentName ]: Name of the hosting environment.
+ [Id ]: Deployment ID.
+ [Id1 ]: Resource identity path
+ [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
+ [Instance ]: Name of the instance in the multi-role pool.
+ [InstanceId ]:
+ [KeyId ]: The API Key ID. This is unique within a Application Insights component.
+ [KeyName ]: The name of the key.
+ [KeyType ]: The type of host key.
+ [Location ]:
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [Name ]: Name of the certificate.
+ [NamespaceName ]: The namespace for this hybrid connection.
+ [OperationId ]: GUID of the operation.
+ [PrId ]: The stage site identifier.
+ [PremierAddOnName ]: Add-on name.
+ [PrivateEndpointConnectionName ]:
+ [ProcessId ]: PID.
+ [PublicCertificateName ]: Public certificate name.
+ [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned.
+ [RelayName ]: The relay name for this hybrid connection.
+ [ResourceGroupName ]: Name of the resource group to which the resource belongs.
+ [ResourceName ]: The name of the Application Insights component resource.
+ [RouteName ]: Name of the Virtual Network route.
+ [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities.
+ [SiteExtensionId ]: Site extension name.
+ [SiteName ]: Site Name
+ [Slot ]: Slot Name
+ [SnapshotId ]: The ID of the snapshot to read.
+ [SourceControlType ]: Type of source control
+ [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ [Userid ]: The user id of the user.
+ [View ]: The type of view. This can either be "summary" or "detailed".
+ [VnetName ]: Name of the virtual network.
+ [WebJobName ]: Name of Web Job.
+ [WorkerName ]: Name of worker machine, which typically starts with RD.
+ [WorkerPoolName ]: Name of the worker pool.
.Link
-https://docs.microsoft.com/powershell/module/az.functions/get-azwebappfunctionkeyslot
+https://docs.microsoft.com/powershell/module/az.functions/get-azwebappbasicpublishingcredentialspolicy
#>
-function Get-AzWebAppFunctionKeySlot {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStringDictionary])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzWebAppBasicPublishingCredentialsPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesCollection])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
- [System.String]
- # Function name.
- ${FunctionName},
-
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
[System.String]
- # Site name.
+ # Name of the app.
${Name},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
[System.String]
# Name of the resource group to which the resource belongs.
${ResourceGroupName},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
- [System.String]
- # Name of the deployment slot.
- ${Slot},
-
- [Parameter()]
+ [Parameter(ParameterSetName='Get')]
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
@@ -250,6 +338,13 @@ param(
# 00000000-0000-0000-0000-000000000000).
${SubscriptionId},
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -305,10 +400,29 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
- List = 'Az.Functions.private\Get-AzWebAppFunctionKeySlot_List';
+ Get = 'Az.Functions.private\Get-AzWebAppBasicPublishingCredentialsPolicy_Get';
+ GetViaIdentity = 'Az.Functions.private\Get-AzWebAppBasicPublishingCredentialsPolicy_GetViaIdentity';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -318,6 +432,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -326,57 +441,132 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
.Synopsis
-Description for Get function keys for a function in a web site, or a deployment slot.
+Returns whether FTP is allowed on the site or not.
.Description
-Description for Get function keys for a function in a web site, or a deployment slot.
+Returns whether FTP is allowed on the site or not.
.Example
{{ Add code here }}
.Example
{{ Add code here }}
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IStringDictionary
+Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.ICsmPublishingCredentialsPoliciesEntity
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [AnalysisName ]: Analysis Name
+ [AppSettingKey ]: App Setting key name.
+ [Authprovider ]: The auth provider for the users.
+ [BackupId ]: ID of the backup.
+ [BaseAddress ]: Module base address.
+ [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default'
+ [CertificateOrderName ]: Name of the certificate order..
+ [ContainerName ]: The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345
+ [DetectorName