internal/latest-2019-04-30/ProxyCmdletDefinitions.ps1
<# .Synopsis Creates a backup of an app. .Description Creates a backup of an app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/backup-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IBackupItem .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. DATABASE <IDatabaseBackupSetting[]>: Databases included in the backup. DatabaseType <DatabaseType>: Database type (e.g. SqlAzure / MySql). [ConnectionString <String>]: Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one. [ConnectionStringName <String>]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. [Name <String>]: INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. REQUEST <IBackupRequest>: Description of a backup which will be performed. BackupScheduleFrequencyInterval <Int32>: How often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day) BackupScheduleFrequencyUnit <FrequencyUnit>: The unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7) BackupScheduleKeepAtLeastOneBackup <Boolean>: True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise. BackupScheduleRetentionPeriodInDay <Int32>: After how many days backups should be deleted. StorageAccountUrl <String>: SAS URL to the container. [Kind <String>]: Kind of resource. [BackupName <String>]: Name of the backup. [BackupScheduleStartTime <DateTime?>]: When the schedule should start working. [Database <IDatabaseBackupSetting[]>]: Databases included in the backup. DatabaseType <DatabaseType>: Database type (e.g. SqlAzure / MySql). [ConnectionString <String>]: Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one. [ConnectionStringName <String>]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. [Name <String>]: [Enabled <Boolean?>]: True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/backup-azfunctionapp #> function Backup-AzFunctionApp { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IBackupItem])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Backup', Mandatory)] [Parameter(ParameterSetName='BackupExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(ParameterSetName='Backup', Mandatory)] [Parameter(ParameterSetName='BackupExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Backup')] [Parameter(ParameterSetName='BackupExpanded')] [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='BackupViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='BackupViaIdentityExpanded', 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(ParameterSetName='Backup', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='BackupViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IBackupRequest] # Description of a backup which will be performed. # To construct, see NOTES section for REQUEST properties and create a hash table. ${Request}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of the backup. ${BackupName}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # How often the backup should be executed (e.g. # for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day) ${BackupScheduleFrequencyInterval}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FrequencyUnit])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FrequencyUnit] # The unit of time for how often the backup should be executed (e.g. # for weekly backup, this should be set to Day and FrequencyInterval should be set to 7) ${BackupScheduleFrequencyUnit}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise. ${BackupScheduleKeepAtLeastOneBackup}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # After how many days backups should be deleted. ${BackupScheduleRetentionPeriodInDay}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # When the schedule should start working. ${BackupScheduleStartTime}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IDatabaseBackupSetting[]] # Databases included in the backup. # To construct, see NOTES section for DATABASE properties and create a hash table. ${Database}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. ${Enabled}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='BackupExpanded')] [Parameter(ParameterSetName='BackupViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # SAS URL to the container. ${StorageAccountUrl}, [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 $mapping = @{ Backup = 'Az.Functions.private\Backup-AzFunctionApp_Backup'; BackupExpanded = 'Az.Functions.private\Backup-AzFunctionApp_BackupExpanded'; BackupViaIdentity = 'Az.Functions.private\Backup-AzFunctionApp_BackupViaIdentity'; BackupViaIdentityExpanded = 'Az.Functions.private\Backup-AzFunctionApp_BackupViaIdentityExpanded'; } if (('Backup', 'BackupExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get the API Key for this key id. .Description Get the API Key for this key id. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azappinsightsapikey .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentApiKey .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azappinsightsapikey #> function Get-AzAppInsightsApiKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentApiKey])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The API Key ID. # This is unique within a Application Insights component. ${KeyId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the Application Insights component resource. ${ResourceName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${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 $mapping = @{ Get = 'Az.Functions.private\Get-AzAppInsightsApiKey_Get'; GetViaIdentity = 'Az.Functions.private\Get-AzAppInsightsApiKey_GetViaIdentity'; List = 'Az.Functions.private\Get-AzAppInsightsApiKey_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Returns an Application Insights component. .Description Returns an Application Insights component. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azappinsights .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azappinsights #> function Get-AzAppInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the Application Insights component resource. ${ResourceName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${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 $mapping = @{ Get = 'Az.Functions.private\Get-AzAppInsights_Get'; GetViaIdentity = 'Az.Functions.private\Get-AzAppInsights_GetViaIdentity'; List = 'Az.Functions.private\Get-AzAppInsights_List'; List1 = 'Az.Functions.private\Get-AzAppInsights_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get a list of available geographical regions. .Description Get a list of available geographical regions. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunctionappavailablelocation .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IGeoRegion .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunctionappavailablelocation #> function Get-AzFunctionAppAvailableLocation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IGeoRegion])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter()] [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. ${LinuxDynamicWorkersEnabled}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify <code>true</code> if you want to filter to only regions that support Linux workers. ${LinuxWorkersEnabled}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuName])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuName] # Name of SKU used to filter the regions. ${Sku}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify <code>true</code> if you want to filter to only regions that support Xenon workers. ${XenonWorkersEnabled}, [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 $mapping = @{ List1 = 'Az.Functions.private\Get-AzFunctionAppAvailableLocation_List1'; } if (('List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get an App Service plan. .Description Get an App Service plan. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunctionappplan .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunctionappplan #> function Get-AzFunctionAppPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the App Service plan. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='List1')] [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(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify <code>true</code> to return all App Service plan properties. # The default is <code>false</code>, which returns a subset of the properties. # Retrieval of all properties may increase the API latency. ${Detailed}, [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(ParameterSetName='Get')] [Parameter(ParameterSetName='GetViaIdentity')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Get = 'Az.Functions.private\Get-AzFunctionAppPlan_Get'; GetViaIdentity = 'Az.Functions.private\Get-AzFunctionAppPlan_GetViaIdentity'; List = 'Az.Functions.private\Get-AzFunctionAppPlan_List'; List1 = 'Az.Functions.private\Get-AzFunctionAppPlan_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets the details of a web, mobile, or API app. .Description Gets the details of a web, mobile, or API app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunctionapp #> function Get-AzFunctionApp { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='List1')] [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(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify <strong>true</strong> to include deployment slots in results. # The default is false, which only gives you the production slot of all apps. ${IncludeSlot}, [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(ParameterSetName='Get')] [Parameter(ParameterSetName='GetViaIdentity')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Get = 'Az.Functions.private\Get-AzFunctionApp_Get'; GetViaIdentity = 'Az.Functions.private\Get-AzFunctionApp_GetViaIdentity'; List = 'Az.Functions.private\Get-AzFunctionApp_List'; List1 = 'Az.Functions.private\Get-AzFunctionApp_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Get function information by its ID for web site, or a deployment slot. .Description Get function information by its ID for web site, or a deployment slot. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunction .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IFunctionEnvelope .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azfunction #> function Get-AzFunction { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IFunctionEnvelope])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Site name. ${FunctionAppName}, [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Function name. ${FunctionName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Get = 'Az.Functions.private\Get-AzFunction_Get'; GetViaIdentity = 'Az.Functions.private\Get-AzFunction_GetViaIdentity'; List = 'Az.Functions.private\Get-AzFunction_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Lists the access keys for the specified storage account. .Description Lists the access keys for the specified storage account. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azstorageaccountkey .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20171001.IStorageAccountKey .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azstorageaccountkey #> function Get-AzStorageAccountKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20171001.IStorageAccountKey])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # 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. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the resource group within the user's subscription. # The name is case insensitive. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${SubscriptionId}, [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 $mapping = @{ List = 'Az.Functions.private\Get-AzStorageAccountKey_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. .Description Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azstorageaccount .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IStorageAccount .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azstorageaccount #> function Get-AzStorageAccount { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IStorageAccount])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the resource group within the user's subscription. # The name is case insensitive. ${ResourceGroupName}, [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 $mapping = @{ List = 'Az.Functions.private\Get-AzStorageAccount_List'; List1 = 'Az.Functions.private\Get-AzStorageAccount_List1'; } if (('List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets the application settings of an app. .Description Gets the application settings of an app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azwebappapplicationsettingslot .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azwebappapplicationsettingslot #> function Get-AzWebAppApplicationSettingSlot { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(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. # If a slot is not specified, the API will get the application settings for the production slot. ${Slot}, [Parameter()] [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()] [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 $mapping = @{ List = 'Az.Functions.private\Get-AzWebAppApplicationSettingSlot_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets the application settings of an app. .Description Gets the application settings of an app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azwebappapplicationsetting .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/get-azwebappapplicationsetting #> function Get-AzWebAppApplicationSetting { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter()] [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()] [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 $mapping = @{ List = 'Az.Functions.private\Get-AzWebAppApplicationSetting_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. .Description Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azappinsights .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. INSIGHTPROPERTY <IApplicationInsightsComponent>: An Application Insights component definition. Location <String>: Resource location ApplicationType <ApplicationType>: Type of application being monitored. Kind <String>: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone. [Tag <IComponentsResourceTags>]: Resource tags [(Any) <String>]: This indicates any property can be added to this object. [FlowType <FlowType?>]: Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API. [HockeyAppId <String>]: The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp. [RequestSource <RequestSource?>]: Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'. [SamplingPercentage <Double?>]: Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azappinsights #> function New-AzAppInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # The name of the Application Insights component resource. ${ResourceName}, [Parameter(ParameterSetName='Create')] [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', 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(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent] # An Application Insights component definition. # To construct, see NOTES section for INSIGHTPROPERTY properties and create a hash table. ${InsightProperty}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # The kind of application that this component refers to, used to customize UI. # This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone. ${Kind}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource location ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ApplicationType])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ApplicationType] # Type of application being monitored. ${ApplicationType}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FlowType])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FlowType] # Used by the Application Insights system to determine what kind of flow this component was created by. # This is to be set to 'Bluefield' when creating/updating a component via the REST API. ${FlowType}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp. ${HockeyAppId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RequestSource])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RequestSource] # Describes what tool created this Application Insights component. # Customers using this API should set this to the default 'rest'. ${RequestSource}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Double] # Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry. ${SamplingPercentage}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IComponentsResourceTags]))] [System.Collections.Hashtable] # Resource tags ${Tag}, [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 $mapping = @{ Create = 'Az.Functions.private\New-AzAppInsights_Create'; CreateExpanded = 'Az.Functions.private\New-AzAppInsights_CreateExpanded'; CreateViaIdentity = 'Az.Functions.private\New-AzAppInsights_CreateViaIdentity'; CreateViaIdentityExpanded = 'Az.Functions.private\New-AzAppInsights_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates or updates an App Service Plan. .Description Creates or updates an App Service Plan. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azfunctionappplan .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan .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. APPSERVICEPLAN <IAppServicePlan>: App Service plan. Location <String>: Resource Location. [Kind <String>]: Kind of resource. [Tag <IResourceTags>]: Resource tags. [(Any) <String>]: This indicates any property can be added to this object. [Capacity <Int32?>]: Current number of instances assigned to the resource. [FreeOfferExpirationTime <DateTime?>]: The time when the server farm free offer expires. [HostingEnvironmentProfileId <String>]: Resource ID of the App Service Environment. [HyperV <Boolean?>]: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. [IsSpot <Boolean?>]: If <code>true</code>, this App Service Plan owns spot instances. [IsXenon <Boolean?>]: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. [MaximumElasticWorkerCount <Int32?>]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan [PerSiteScaling <Boolean?>]: If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. [Reserved <Boolean?>]: If Linux app service plan <code>true</code>, <code>false</code> otherwise. [SkuCapability <ICapability[]>]: Capabilities of the SKU, e.g., is traffic manager enabled? [Name <String>]: Name of the SKU capability. [Reason <String>]: Reason of the SKU capability. [Value <String>]: Value of the SKU capability. [SkuCapacityDefault <Int32?>]: Default number of workers for this App Service plan SKU. [SkuCapacityMaximum <Int32?>]: Maximum number of workers for this App Service plan SKU. [SkuCapacityMinimum <Int32?>]: Minimum number of workers for this App Service plan SKU. [SkuCapacityScaleType <String>]: Available scale configurations for an App Service plan. [SkuFamily <String>]: Family code of the resource SKU. [SkuLocation <String[]>]: Locations of the SKU. [SkuName <String>]: Name of the resource SKU. [SkuSize <String>]: Size specifier of the resource SKU. [SkuTier <String>]: Service tier of the resource SKU. [SpotExpirationTime <DateTime?>]: The time when the server farm expires. Valid only if it is a spot server farm. [TargetWorkerCount <Int32?>]: Scaling worker count. [TargetWorkerSizeId <Int32?>]: Scaling worker size ID. [WorkerTierName <String>]: Target worker tier assigned to the App Service plan. INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. SKUCAPABILITY <ICapability[]>: Capabilities of the SKU, e.g., is traffic manager enabled [Name <String>]: Name of the SKU capability. [Reason <String>]: Reason of the SKU capability. [Value <String>]: Value of the SKU capability. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azfunctionappplan #> function New-AzFunctionAppPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the App Service plan. ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] [Parameter(ParameterSetName='CreateExpanded')] [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='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', 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(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan] # App Service plan. # To construct, see NOTES section for APPSERVICEPLAN properties and create a hash table. ${AppServicePlan}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource Location. ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Current number of instances assigned to the resource. ${Capacity}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # The time when the server farm free offer expires. ${FreeOfferExpirationTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the App Service Environment. ${HostingEnvironmentProfileId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. ${HyperV}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code>, this App Service Plan owns spot instances. ${IsSpot}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. ${IsXenon}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan ${MaximumElasticWorkerCount}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code>, apps assigned to this App Service plan can be scaled independently.If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. ${PerSiteScaling}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If Linux app service plan <code>true</code>, <code>false</code> otherwise. ${Reserved}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.ICapability[]] # Capabilities of the SKU, e.g., is traffic manager enabled # To construct, see NOTES section for SKUCAPABILITY properties and create a hash table. ${SkuCapability}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Default number of workers for this App Service plan SKU. ${SkuCapacityDefault}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum number of workers for this App Service plan SKU. ${SkuCapacityMaximum}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Minimum number of workers for this App Service plan SKU. ${SkuCapacityMinimum}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Available scale configurations for an App Service plan. ${SkuCapacityScaleType}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Family code of the resource SKU. ${SkuFamily}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String[]] # Locations of the SKU. ${SkuLocation}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of the resource SKU. ${SkuName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Size specifier of the resource SKU. ${SkuSize}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Service tier of the resource SKU. ${SkuTier}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # The time when the server farm expires. # Valid only if it is a spot server farm. ${SpotExpirationTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801Preview.IResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Scaling worker count. ${TargetWorkerCount}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Scaling worker size ID. ${TargetWorkerSizeId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Target worker tier assigned to the App Service plan. ${WorkerTierName}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [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 $mapping = @{ Create = 'Az.Functions.private\New-AzFunctionAppPlan_Create'; CreateExpanded = 'Az.Functions.private\New-AzFunctionAppPlan_CreateExpanded'; CreateViaIdentity = 'Az.Functions.private\New-AzFunctionAppPlan_CreateViaIdentity'; CreateViaIdentityExpanded = 'Az.Functions.private\New-AzFunctionAppPlan_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. .Description Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite .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. GEODISTRIBUTION <IGeoDistribution[]>: GeoDistributions for this site [Location <String>]: Location. [NumberOfWorker <Int32?>]: NumberOfWorkers. HOSTNAMESSLSTATE <IHostNameSslState[]>: Hostname SSL states are used to manage the SSL bindings for app's hostnames. [HostType <HostType?>]: Indicates whether the hostname is a standard or repository hostname. [Name <String>]: Hostname. [SslState <SslState?>]: SSL type. [Thumbprint <String>]: SSL certificate thumbprint. [ToUpdate <Boolean?>]: Set to <code>true</code> to update existing hostname. [VirtualIP <String>]: Virtual IP address assigned to the hostname if IP based SSL is enabled. INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. SITECONFIG <ISiteConfig>: Configuration of the app. ActionType <AutoHealActionType>: ActionType - predefined action to be taken IsPushEnabled <Boolean>: Gets or sets a flag indicating whether the Push endpoint is enabled. [ActionMinProcessExecutionTime <String>]: MinProcessExecutionTime - minimum time the process must execute before taking the action [AlwaysOn <Boolean?>]: <code>true</code> if Always On is enabled; otherwise, <code>false</code>. [ApiDefinitionUrl <String>]: The URL of the API definition. [AppCommandLine <String>]: App command line to launch. [AppSetting <INameValuePair[]>]: Application settings. [Name <String>]: Pair name. [Value <String>]: Pair value. [AutoHealEnabled <Boolean?>]: <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. [AutoSwapSlotName <String>]: Auto-swap slot name. [AzureStorageAccount <ISiteConfigAzureStorageAccounts>]: User-provided Azure storage accounts. [(Any) <IAzureStorageInfoValue>]: This indicates any property can be added to this object. [ConnectionString <IConnStringInfo[]>]: Connection strings. [ConnectionString <String>]: Connection string value. [Name <String>]: Name of connection string. [Type <ConnectionStringType?>]: Type of database. [CorAllowedOrigin <String[]>]: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. [CorSupportCredentials <Boolean?>]: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. [CustomActionExe <String>]: Executable to be run. [CustomActionParameter <String>]: Parameters for the executable. [DefaultDocument <String[]>]: Default documents. [DetailedErrorLoggingEnabled <Boolean?>]: <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. [DocumentRoot <String>]: Document root. [DynamicTagsJson <String>]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. [ExperimentRampUpRule <IRampUpRule[]>]: List of ramp-up rules. [ActionHostName <String>]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. [ChangeDecisionCallbackUrl <String>]: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/ [ChangeIntervalInMinute <Int32?>]: Specifies interval in minutes to reevaluate ReroutePercentage. [ChangeStep <Double?>]: In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. [MaxReroutePercentage <Double?>]: Specifies upper boundary below which ReroutePercentage will stay. [MinReroutePercentage <Double?>]: Specifies lower boundary above which ReroutePercentage will stay. [Name <String>]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. [ReroutePercentage <Double?>]: Percentage of the traffic which will be redirected to <code>ActionHostName</code>. [FtpsState <FtpsState?>]: State of FTP / FTPS service [HandlerMapping <IHandlerMapping[]>]: Handler mappings. [Argument <String>]: Command-line arguments to be passed to the script processor. [Extension <String>]: Requests with this extension will be handled using the specified FastCGI application. [ScriptProcessor <String>]: The absolute path to the FastCGI application. [Http20Enabled <Boolean?>]: Http20Enabled: configures a web site to allow clients to connect over http2.0 [HttpLoggingEnabled <Boolean?>]: <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. [IPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for main. IPAddress <String>: IP address the security restriction is valid for. [SubnetMask <String>]: Subnet mask for the range of IP addresses the restriction is valid for. [Action <String>]: Allow or Deny access for this IP range. [Description <String>]: IP restriction rule description. [Name <String>]: IP restriction rule name. [Priority <Int32?>]: Priority of IP restriction rule. [SubnetTrafficTag <Int32?>]: (internal) Subnet traffic tag [Tag <IPFilterTag?>]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. [VnetSubnetResourceId <String>]: Virtual network resource id [VnetTrafficTag <Int32?>]: (internal) Vnet traffic tag [JavaContainer <String>]: Java container. [JavaContainerVersion <String>]: Java container version. [JavaVersion <String>]: Java version. [LimitMaxDiskSizeInMb <Int64?>]: Maximum allowed disk size usage in MB. [LimitMaxMemoryInMb <Int64?>]: Maximum allowed memory usage in MB. [LimitMaxPercentageCpu <Double?>]: Maximum allowed CPU usage percentage. [LinuxFxVersion <String>]: Linux App Framework and version [LoadBalancing <SiteLoadBalancing?>]: Site load balancing. [LocalMySqlEnabled <Boolean?>]: <code>true</code> to enable local MySQL; otherwise, <code>false</code>. [LogsDirectorySizeLimit <Int32?>]: HTTP logs directory size limit. [MachineKeyDecryption <String>]: Algorithm used for decryption. [MachineKeyDecryptionKey <String>]: Decryption key. [MachineKeyValidation <String>]: MachineKey validation. [MachineKeyValidationKey <String>]: Validation key. [ManagedPipelineMode <ManagedPipelineMode?>]: Managed pipeline mode. [ManagedServiceIdentityId <Int32?>]: Managed Service Identity Id [MinTlsVersion <SupportedTlsVersions?>]: MinTlsVersion: configures the minimum version of TLS required for SSL requests [NetFrameworkVersion <String>]: .NET Framework version. [NodeVersion <String>]: Version of Node.js. [NumberOfWorker <Int32?>]: Number of workers. [PhpVersion <String>]: Version of PHP. [PublishingUsername <String>]: Publishing user name. [PushKind <String>]: Kind of resource. [PythonVersion <String>]: Version of Python. [RemoteDebuggingEnabled <Boolean?>]: <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. [RemoteDebuggingVersion <String>]: Remote debugging version. [RequestCount <Int32?>]: Request Count. [RequestTimeInterval <String>]: Time interval. [RequestTracingEnabled <Boolean?>]: <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. [RequestTracingExpirationTime <DateTime?>]: Request tracing expiration time. [ReservedInstanceCount <Int32?>]: Number of reserved instances. This setting only applies to the Consumption Plan [ScmIPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for scm. [ScmIPSecurityRestrictionsUseMain <Boolean?>]: IP security restrictions for scm to use main. [ScmType <ScmType?>]: SCM type. [SlowRequestCount <Int32?>]: Request Count. [SlowRequestTimeInterval <String>]: Time interval. [SlowRequestTimeTaken <String>]: Time taken. [TagWhitelistJson <String>]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. [TagsRequiringAuth <String>]: Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. Tags can consist of alphanumeric characters and the following: '_', '@', '#', '.', ':', '-'. Validation should be performed at the PushRequestHandler. [TracingOption <String>]: Tracing options. [TriggerPrivateBytesInKb <Int32?>]: A rule based on private bytes. [TriggerStatusCode <IStatusCodesBasedTrigger[]>]: A rule based on status codes. [Count <Int32?>]: Request Count. [Status <Int32?>]: HTTP status code. [SubStatus <Int32?>]: Request Sub Status. [TimeInterval <String>]: Time interval. [Win32Status <Int32?>]: Win32 error code. [Use32BitWorkerProcess <Boolean?>]: <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. [VirtualApplication <IVirtualApplication[]>]: Virtual applications. [PhysicalPath <String>]: Physical path. [PreloadEnabled <Boolean?>]: <code>true</code> if preloading is enabled; otherwise, <code>false</code>. [VirtualDirectory <IVirtualDirectory[]>]: Virtual directories for virtual application. [PhysicalPath <String>]: Physical path. [VirtualPath <String>]: Path to virtual application. [VirtualPath <String>]: Virtual path. [VnetName <String>]: Virtual Network name. [WebSocketsEnabled <Boolean?>]: <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. [WindowsFxVersion <String>]: Xenon App Framework and version [XManagedServiceIdentityId <Int32?>]: Explicit Managed Service Identity Id SITEENVELOPE <ISite>: A web app, a mobile app backend, or an API app. Location <String>: Resource Location. CloningInfoSourceWebAppId <String>: ARM resource ID of the source app. App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. [Kind <String>]: Kind of resource. [Tag <IResourceTags>]: Resource tags. [(Any) <String>]: This indicates any property can be added to this object. [ClientAffinityEnabled <Boolean?>]: <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>. [ClientCertEnabled <Boolean?>]: <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>. [ClientCertExclusionPath <String>]: client certificate authentication comma-separated exclusion paths [CloningInfoAppSettingsOverride <ICloningInfoAppSettingsOverrides>]: Application setting overrides for cloned app. If specified, these settings override the settings cloned from source app. Otherwise, application settings from source app are retained. [(Any) <String>]: This indicates any property can be added to this object. [CloningInfoCloneCustomHostName <Boolean?>]: <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. [CloningInfoCloneSourceControl <Boolean?>]: <code>true</code> to clone source control from source app; otherwise, <code>false</code>. [CloningInfoConfigureLoadBalancing <Boolean?>]: <code>true</code> to configure load balancing for source and destination app. [CloningInfoCorrelationId <String>]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. [CloningInfoHostingEnvironment <String>]: App Service Environment. [CloningInfoOverwrite <Boolean?>]: <code>true</code> to overwrite destination app; otherwise, <code>false</code>. [CloningInfoSourceWebAppLocation <String>]: Location of source app ex: West US or North Europe [CloningInfoTrafficManagerProfileId <String>]: 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 <String>]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. [Config <ISiteConfig>]: Configuration of the app. ActionType <AutoHealActionType>: ActionType - predefined action to be taken IsPushEnabled <Boolean>: Gets or sets a flag indicating whether the Push endpoint is enabled. [ActionMinProcessExecutionTime <String>]: MinProcessExecutionTime - minimum time the process must execute before taking the action [AlwaysOn <Boolean?>]: <code>true</code> if Always On is enabled; otherwise, <code>false</code>. [ApiDefinitionUrl <String>]: The URL of the API definition. [AppCommandLine <String>]: App command line to launch. [AppSetting <INameValuePair[]>]: Application settings. [Name <String>]: Pair name. [Value <String>]: Pair value. [AutoHealEnabled <Boolean?>]: <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. [AutoSwapSlotName <String>]: Auto-swap slot name. [AzureStorageAccount <ISiteConfigAzureStorageAccounts>]: User-provided Azure storage accounts. [(Any) <IAzureStorageInfoValue>]: This indicates any property can be added to this object. [ConnectionString <IConnStringInfo[]>]: Connection strings. [ConnectionString <String>]: Connection string value. [Name <String>]: Name of connection string. [Type <ConnectionStringType?>]: Type of database. [CorAllowedOrigin <String[]>]: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. [CorSupportCredentials <Boolean?>]: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. [CustomActionExe <String>]: Executable to be run. [CustomActionParameter <String>]: Parameters for the executable. [DefaultDocument <String[]>]: Default documents. [DetailedErrorLoggingEnabled <Boolean?>]: <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. [DocumentRoot <String>]: Document root. [DynamicTagsJson <String>]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. [ExperimentRampUpRule <IRampUpRule[]>]: List of ramp-up rules. [ActionHostName <String>]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. [ChangeDecisionCallbackUrl <String>]: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/ [ChangeIntervalInMinute <Int32?>]: Specifies interval in minutes to reevaluate ReroutePercentage. [ChangeStep <Double?>]: In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. [MaxReroutePercentage <Double?>]: Specifies upper boundary below which ReroutePercentage will stay. [MinReroutePercentage <Double?>]: Specifies lower boundary above which ReroutePercentage will stay. [Name <String>]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. [ReroutePercentage <Double?>]: Percentage of the traffic which will be redirected to <code>ActionHostName</code>. [FtpsState <FtpsState?>]: State of FTP / FTPS service [HandlerMapping <IHandlerMapping[]>]: Handler mappings. [Argument <String>]: Command-line arguments to be passed to the script processor. [Extension <String>]: Requests with this extension will be handled using the specified FastCGI application. [ScriptProcessor <String>]: The absolute path to the FastCGI application. [Http20Enabled <Boolean?>]: Http20Enabled: configures a web site to allow clients to connect over http2.0 [HttpLoggingEnabled <Boolean?>]: <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. [IPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for main. IPAddress <String>: IP address the security restriction is valid for. [SubnetMask <String>]: Subnet mask for the range of IP addresses the restriction is valid for. [Action <String>]: Allow or Deny access for this IP range. [Description <String>]: IP restriction rule description. [Name <String>]: IP restriction rule name. [Priority <Int32?>]: Priority of IP restriction rule. [SubnetTrafficTag <Int32?>]: (internal) Subnet traffic tag [Tag <IPFilterTag?>]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. [VnetSubnetResourceId <String>]: Virtual network resource id [VnetTrafficTag <Int32?>]: (internal) Vnet traffic tag [JavaContainer <String>]: Java container. [JavaContainerVersion <String>]: Java container version. [JavaVersion <String>]: Java version. [LimitMaxDiskSizeInMb <Int64?>]: Maximum allowed disk size usage in MB. [LimitMaxMemoryInMb <Int64?>]: Maximum allowed memory usage in MB. [LimitMaxPercentageCpu <Double?>]: Maximum allowed CPU usage percentage. [LinuxFxVersion <String>]: Linux App Framework and version [LoadBalancing <SiteLoadBalancing?>]: Site load balancing. [LocalMySqlEnabled <Boolean?>]: <code>true</code> to enable local MySQL; otherwise, <code>false</code>. [LogsDirectorySizeLimit <Int32?>]: HTTP logs directory size limit. [MachineKeyDecryption <String>]: Algorithm used for decryption. [MachineKeyDecryptionKey <String>]: Decryption key. [MachineKeyValidation <String>]: MachineKey validation. [MachineKeyValidationKey <String>]: Validation key. [ManagedPipelineMode <ManagedPipelineMode?>]: Managed pipeline mode. [ManagedServiceIdentityId <Int32?>]: Managed Service Identity Id [MinTlsVersion <SupportedTlsVersions?>]: MinTlsVersion: configures the minimum version of TLS required for SSL requests [NetFrameworkVersion <String>]: .NET Framework version. [NodeVersion <String>]: Version of Node.js. [NumberOfWorker <Int32?>]: Number of workers. [PhpVersion <String>]: Version of PHP. [PublishingUsername <String>]: Publishing user name. [PushKind <String>]: Kind of resource. [PythonVersion <String>]: Version of Python. [RemoteDebuggingEnabled <Boolean?>]: <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. [RemoteDebuggingVersion <String>]: Remote debugging version. [RequestCount <Int32?>]: Request Count. [RequestTimeInterval <String>]: Time interval. [RequestTracingEnabled <Boolean?>]: <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. [RequestTracingExpirationTime <DateTime?>]: Request tracing expiration time. [ReservedInstanceCount <Int32?>]: Number of reserved instances. This setting only applies to the Consumption Plan [ScmIPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for scm. [ScmIPSecurityRestrictionsUseMain <Boolean?>]: IP security restrictions for scm to use main. [ScmType <ScmType?>]: SCM type. [SlowRequestCount <Int32?>]: Request Count. [SlowRequestTimeInterval <String>]: Time interval. [SlowRequestTimeTaken <String>]: Time taken. [TagWhitelistJson <String>]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. [TagsRequiringAuth <String>]: Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. Tags can consist of alphanumeric characters and the following: '_', '@', '#', '.', ':', '-'. Validation should be performed at the PushRequestHandler. [TracingOption <String>]: Tracing options. [TriggerPrivateBytesInKb <Int32?>]: A rule based on private bytes. [TriggerStatusCode <IStatusCodesBasedTrigger[]>]: A rule based on status codes. [Count <Int32?>]: Request Count. [Status <Int32?>]: HTTP status code. [SubStatus <Int32?>]: Request Sub Status. [TimeInterval <String>]: Time interval. [Win32Status <Int32?>]: Win32 error code. [Use32BitWorkerProcess <Boolean?>]: <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. [VirtualApplication <IVirtualApplication[]>]: Virtual applications. [PhysicalPath <String>]: Physical path. [PreloadEnabled <Boolean?>]: <code>true</code> if preloading is enabled; otherwise, <code>false</code>. [VirtualDirectory <IVirtualDirectory[]>]: Virtual directories for virtual application. [PhysicalPath <String>]: Physical path. [VirtualPath <String>]: Path to virtual application. [VirtualPath <String>]: Virtual path. [VnetName <String>]: Virtual Network name. [WebSocketsEnabled <Boolean?>]: <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. [WindowsFxVersion <String>]: Xenon App Framework and version [XManagedServiceIdentityId <Int32?>]: Explicit Managed Service Identity Id [ContainerSize <Int32?>]: Size of the function container. [DailyMemoryTimeQuota <Int32?>]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). [Enabled <Boolean?>]: <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline). [GeoDistribution <IGeoDistribution[]>]: GeoDistributions for this site [Location <String>]: Location. [NumberOfWorker <Int32?>]: NumberOfWorkers. [HostNameSslState <IHostNameSslState[]>]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. [HostType <HostType?>]: Indicates whether the hostname is a standard or repository hostname. [Name <String>]: Hostname. [SslState <SslState?>]: SSL type. [Thumbprint <String>]: SSL certificate thumbprint. [ToUpdate <Boolean?>]: Set to <code>true</code> to update existing hostname. [VirtualIP <String>]: Virtual IP address assigned to the hostname if IP based SSL is enabled. [HostNamesDisabled <Boolean?>]: <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. If <code>true</code>, the app is only accessible via API management process. [HostingEnvironmentProfileId <String>]: Resource ID of the App Service Environment. [HttpsOnly <Boolean?>]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests [HyperV <Boolean?>]: Hyper-V sandbox. [IdentityType <ManagedServiceIdentityType?>]: Type of managed service identity. [IdentityUserAssignedIdentity <IManagedServiceIdentityUserAssignedIdentities>]: The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} [(Any) <IComponentsSchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties>]: This indicates any property can be added to this object. [IsXenon <Boolean?>]: Obsolete: Hyper-V sandbox. [RedundancyMode <RedundancyMode?>]: Site redundancy mode [Reserved <Boolean?>]: <code>true</code> if reserved; otherwise, <code>false</code>. [ScmSiteAlsoStopped <Boolean?>]: <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>. [ServerFarmId <String>]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azfunctionapp #> function New-AzFunctionApp { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Unique name of the app to create or update. # To create or update a deployment slot, use the {slot} parameter. ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] [Parameter(ParameterSetName='CreateExpanded')] [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='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', 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(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite] # A web app, a mobile app backend, or an API app. # To construct, see NOTES section for SITEENVELOPE properties and create a hash table. ${SiteEnvelope}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource Location. ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. # Default is <code>true</code>. ${ClientAffinityEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. # Default is <code>false</code>. ${ClientCertEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # client certificate authentication comma-separated exclusion paths ${ClientCertExclusionPath}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801.ICloningInfoAppSettingsOverrides]))] [System.Collections.Hashtable] # Application setting overrides for cloned app. # If specified, these settings override the settings cloned from source app. # Otherwise, application settings from source app are retained. ${CloningInfoAppSettingsOverride}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. ${CloningInfoCloneCustomHostName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to clone source control from source app; otherwise, <code>false</code>. ${CloningInfoCloneSourceControl}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to configure load balancing for source and destination app. ${CloningInfoConfigureLoadBalancing}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Correlation ID of cloning operation. # This ID ties multiple cloning operationstogether to use the same snapshot. ${CloningInfoCorrelationId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # App Service Environment. ${CloningInfoHostingEnvironment}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to overwrite destination app; otherwise, <code>false</code>. ${CloningInfoOverwrite}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # ARM resource ID of the source app. # App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. ${CloningInfoSourceWebAppId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Location of source app ex: West US or North Europe ${CloningInfoSourceWebAppLocation}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # 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}. ${CloningInfoTrafficManagerProfileId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of Traffic Manager profile to create. # This is only needed if Traffic Manager profile does not already exist. ${CloningInfoTrafficManagerProfileName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Size of the function container. ${ContainerSize}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum allowed daily memory-time quota (applicable on dynamic apps only). ${DailyMemoryTimeQuota}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if the app is enabled; otherwise, <code>false</code>. # Setting this value to false disables the app (takes the app offline). ${Enabled}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IGeoDistribution[]] # GeoDistributions for this site # To construct, see NOTES section for GEODISTRIBUTION properties and create a hash table. ${GeoDistribution}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.IHostNameSslState[]] # Hostname SSL states are used to manage the SSL bindings for app's hostnames. # To construct, see NOTES section for HOSTNAMESSLSTATE properties and create a hash table. ${HostNameSslState}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. # If <code>true</code>, the app is only accessible via API management process. ${HostNamesDisabled}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the App Service Environment. ${HostingEnvironmentProfileId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # HttpsOnly: configures a web site to accept only https requests. # Issues redirect forhttp requests ${HttpsOnly}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Hyper-V sandbox. ${HyperV}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] # Type of managed service identity. ${IdentityType}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IManagedServiceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user assigned identities associated with the resource. # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} ${IdentityUserAssignedIdentity}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Obsolete: Hyper-V sandbox. ${IsXenon}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RedundancyMode])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RedundancyMode] # Site redundancy mode ${RedundancyMode}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if reserved; otherwise, <code>false</code>. ${Reserved}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. # The default is <code>false</code>. ${ScmSiteAlsoStopped}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ${ServerFarmId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISiteConfig] # Configuration of the app. # To construct, see NOTES section for SITECONFIG properties and create a hash table. ${SiteConfig}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801Preview.IResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [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 $mapping = @{ Create = 'Az.Functions.private\New-AzFunctionApp_Create'; CreateExpanded = 'Az.Functions.private\New-AzFunctionApp_CreateExpanded'; CreateViaIdentity = 'Az.Functions.private\New-AzFunctionApp_CreateViaIdentity'; CreateViaIdentityExpanded = 'Az.Functions.private\New-AzFunctionApp_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create function for web site, or a deployment slot. .Description Create function for web site, or a deployment slot. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azfunction .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IFunctionEnvelope .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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. FUNCTIONENVELOPE <IFunctionEnvelope>: Web Job Information. [Kind <String>]: Kind of resource. [Config <IFunctionEnvelopePropertiesConfig>]: Config information. [ConfigHref <String>]: Config URI. [File <IFunctionEnvelopePropertiesFiles>]: File list. [(Any) <String>]: This indicates any property can be added to this object. [FunctionAppId <String>]: Function App ID. [Href <String>]: Function URI. [ScriptHref <String>]: Script URI. [ScriptRootPathHref <String>]: Script root path URI. [SecretsFileHref <String>]: Secrets file URI. [TestData <String>]: Test data used when testing via the Azure Portal. INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/new-azfunction #> function New-AzFunction { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Site name. ${FunctionAppName}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Function name. ${FunctionName}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Create')] [Parameter(ParameterSetName='CreateExpanded')] [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='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', 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(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IFunctionEnvelope] # Web Job Information. # To construct, see NOTES section for FUNCTIONENVELOPE properties and create a hash table. ${FunctionEnvelope}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IFunctionEnvelopePropertiesConfig] # Config information. ${Config}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Config URI. ${ConfigHref}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IFunctionEnvelopePropertiesFiles]))] [System.Collections.Hashtable] # File list. ${File}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Function App ID. ${FunctionAppId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Function URI. ${Href}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Script URI. ${ScriptHref}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Script root path URI. ${ScriptRootPathHref}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Secrets file URI. ${SecretsFileHref}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Test data used when testing via the Azure Portal. ${TestData}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [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 $mapping = @{ Create = 'Az.Functions.private\New-AzFunction_Create'; CreateExpanded = 'Az.Functions.private\New-AzFunction_CreateExpanded'; CreateViaIdentity = 'Az.Functions.private\New-AzFunction_CreateViaIdentity'; CreateViaIdentityExpanded = 'Az.Functions.private\New-AzFunction_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete an App Service plan. .Description Delete an App Service plan. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/remove-azfunctionappplan .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/remove-azfunctionappplan #> function Remove-AzFunctionAppPlan { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the App Service plan. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [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='DeleteViaIdentity', 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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Delete = 'Az.Functions.private\Remove-AzFunctionAppPlan_Delete'; DeleteViaIdentity = 'Az.Functions.private\Remove-AzFunctionAppPlan_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Deletes a web, mobile, or API app, or one of the deployment slots. .Description Deletes a web, mobile, or API app, or one of the deployment slots. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/remove-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/remove-azfunctionapp #> function Remove-AzFunctionApp { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app to delete. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [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='DeleteViaIdentity', 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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. # By default, the empty App Service plan is not deleted. ${DeleteEmptyServerFarm}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # If true, web app metrics are also deleted. ${DeleteMetric}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Delete = 'Az.Functions.private\Remove-AzFunctionApp_Delete'; DeleteViaIdentity = 'Az.Functions.private\Remove-AzFunctionApp_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Delete a function for web site, or a deployment slot. .Description Delete a function for web site, or a deployment slot. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/remove-azfunction .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/remove-azfunction #> function Remove-AzFunction { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Site name. ${FunctionAppName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Function name. ${FunctionName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [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='DeleteViaIdentity', 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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Delete = 'Az.Functions.private\Remove-AzFunction_Delete'; DeleteViaIdentity = 'Az.Functions.private\Remove-AzFunction_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Restarts an app (or deployment slot, if specified). .Description Restarts an app (or deployment slot, if specified). .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/restart-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/restart-azfunctionapp #> function Restart-AzFunctionApp { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Restart', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(ParameterSetName='Restart', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Restart')] [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='RestartViaIdentity', 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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify true to apply the configuration settings and restarts the app only if necessary. # By default, the API always restarts and reprovisions the app. ${SoftRestart}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] [System.Management.Automation.SwitchParameter] # Specify true to block until the app is restarted. # By default, it is set to false, and the API responds immediately (asynchronous). ${Synchronou}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Restart = 'Az.Functions.private\Restart-AzFunctionApp_Restart'; RestartViaIdentity = 'Az.Functions.private\Restart-AzFunctionApp_RestartViaIdentity'; } if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Recovers a web app to a previous snapshot. .Description Recovers a web app to a previous snapshot. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/restore-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.ISnapshotRecoveryRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IRestoreRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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. DATABASE <IDatabaseBackupSetting[]>: Collection of databases which should be restored. This list has to match the list of databases included in the backup. DatabaseType <DatabaseType>: Database type (e.g. SqlAzure / MySql). [ConnectionString <String>]: Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one. [ConnectionStringName <String>]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. [Name <String>]: INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. RECOVERYENTITY <ISnapshotRecoveryRequest>: Details about app recovery operation. Overwrite <Boolean>: If <code>true</code> the recovery operation can overwrite source app; otherwise, <code>false</code>. [Kind <String>]: Kind of resource. [IgnoreConflictingHostName <Boolean?>]: If true, custom hostname conflicts will be ignored when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled. [RecoverConfiguration <Boolean?>]: If true, site configuration, in addition to content, will be reverted. [RecoveryTargetId <String>]: ARM resource ID of the target app. /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. [RecoveryTargetLocation <String>]: Geographical location of the target web app, e.g. SouthEastAsia, SouthCentralUS [SnapshotTime <String>]: Point in time in which the app recovery should be attempted, formatted as a DateTime string. REQUEST <IRestoreRequest>: Description of a restore request. Overwrite <Boolean>: <code>true</code> if the restore operation can overwrite target app; otherwise, <code>false</code>. <code>true</code> is needed if trying to restore over an existing app. StorageAccountUrl <String>: SAS URL to the container. [Kind <String>]: Kind of resource. [AdjustConnectionString <Boolean?>]: <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>. [AppServicePlan <String>]: Specify app service plan that will own restored site. [BlobName <String>]: Name of a blob which contains the backup. [Database <IDatabaseBackupSetting[]>]: Collection of databases which should be restored. This list has to match the list of databases included in the backup. DatabaseType <DatabaseType>: Database type (e.g. SqlAzure / MySql). [ConnectionString <String>]: Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one. [ConnectionStringName <String>]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. [Name <String>]: [HostingEnvironment <String>]: App Service Environment name, if needed (only when restoring an app to an App Service Environment). [IgnoreConflictingHostName <Boolean?>]: Changes a logic when restoring an app with custom domains. <code>true</code> to remove custom domains automatically. If <code>false</code>, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation. [IgnoreDatabase <Boolean?>]: Ignore the databases and only restore the site content [OperationType <BackupRestoreOperationType?>]: Operation type. [SiteName <String>]: Name of an app. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/restore-azfunctionapp #> function Restore-AzFunctionApp { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='RecoverExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Recover', Mandatory)] [Parameter(ParameterSetName='RecoverExpanded', Mandatory)] [Parameter(ParameterSetName='Restore', Mandatory)] [Parameter(ParameterSetName='RestoreExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of web app. ${Name}, [Parameter(ParameterSetName='Recover', Mandatory)] [Parameter(ParameterSetName='RecoverExpanded', Mandatory)] [Parameter(ParameterSetName='Restore', Mandatory)] [Parameter(ParameterSetName='RestoreExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Recover')] [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='Restore')] [Parameter(ParameterSetName='RestoreExpanded')] [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='RecoverViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RecoverViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RestoreViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RestoreViaIdentityExpanded', 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(ParameterSetName='Restore', Mandatory)] [Parameter(ParameterSetName='RestoreExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # ID of the backup. ${BackupId}, [Parameter(ParameterSetName='Recover', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RecoverViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.ISnapshotRecoveryRequest] # Details about app recovery operation. # To construct, see NOTES section for RECOVERYENTITY properties and create a hash table. ${RecoveryEntity}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If true, custom hostname conflicts will be ignored when recovering to a target web app.This setting is only necessary when RecoverConfiguration is enabled. ${IgnoreConflictingHostName}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code> the recovery operation can overwrite source app; otherwise, <code>false</code>. ${Overwrite}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If true, site configuration, in addition to content, will be reverted. ${RecoverConfiguration}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # ARM resource ID of the target app. # /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. ${RecoveryTargetId}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Geographical location of the target web app, e.g. # SouthEastAsia, SouthCentralUS ${RecoveryTargetLocation}, [Parameter(ParameterSetName='RecoverExpanded')] [Parameter(ParameterSetName='RecoverViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Point in time in which the app recovery should be attempted, formatted as a DateTime string. ${SnapshotTime}, [Parameter(ParameterSetName='Restore', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RestoreViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IRestoreRequest] # Description of a restore request. # To construct, see NOTES section for REQUEST properties and create a hash table. ${Request}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if SiteConfig.ConnectionStrings should be set in new app; otherwise, <code>false</code>. ${AdjustConnectionString}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Specify app service plan that will own restored site. ${AppServicePlan}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of a blob which contains the backup. ${BlobName}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IDatabaseBackupSetting[]] # Collection of databases which should be restored. # This list has to match the list of databases included in the backup. # To construct, see NOTES section for DATABASE properties and create a hash table. ${Database}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # App Service Environment name, if needed (only when restoring an app to an App Service Environment). ${HostingEnvironment}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Ignore the databases and only restore the site content ${IgnoreDatabase}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.BackupRestoreOperationType])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.BackupRestoreOperationType] # Operation type. ${OperationType}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of an app. ${SiteName}, [Parameter(ParameterSetName='RestoreExpanded')] [Parameter(ParameterSetName='RestoreViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # SAS URL to the container. ${StorageAccountUrl}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Recover = 'Az.Functions.private\Restore-AzFunctionApp_Recover'; RecoverExpanded = 'Az.Functions.private\Restore-AzFunctionApp_RecoverExpanded'; RecoverViaIdentity = 'Az.Functions.private\Restore-AzFunctionApp_RecoverViaIdentity'; RecoverViaIdentityExpanded = 'Az.Functions.private\Restore-AzFunctionApp_RecoverViaIdentityExpanded'; Restore = 'Az.Functions.private\Restore-AzFunctionApp_Restore'; RestoreExpanded = 'Az.Functions.private\Restore-AzFunctionApp_RestoreExpanded'; RestoreViaIdentity = 'Az.Functions.private\Restore-AzFunctionApp_RestoreViaIdentity'; RestoreViaIdentityExpanded = 'Az.Functions.private\Restore-AzFunctionApp_RestoreViaIdentityExpanded'; } if (('Recover', 'RecoverExpanded', 'Restore', 'RestoreExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates or updates an App Service Plan. .Description Creates or updates an App Service Plan. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azfunctionappplan .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan .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. APPSERVICEPLAN <IAppServicePlan>: App Service plan. Location <String>: Resource Location. [Kind <String>]: Kind of resource. [Tag <IResourceTags>]: Resource tags. [(Any) <String>]: This indicates any property can be added to this object. [Capacity <Int32?>]: Current number of instances assigned to the resource. [FreeOfferExpirationTime <DateTime?>]: The time when the server farm free offer expires. [HostingEnvironmentProfileId <String>]: Resource ID of the App Service Environment. [HyperV <Boolean?>]: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. [IsSpot <Boolean?>]: If <code>true</code>, this App Service Plan owns spot instances. [IsXenon <Boolean?>]: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. [MaximumElasticWorkerCount <Int32?>]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan [PerSiteScaling <Boolean?>]: If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. [Reserved <Boolean?>]: If Linux app service plan <code>true</code>, <code>false</code> otherwise. [SkuCapability <ICapability[]>]: Capabilities of the SKU, e.g., is traffic manager enabled? [Name <String>]: Name of the SKU capability. [Reason <String>]: Reason of the SKU capability. [Value <String>]: Value of the SKU capability. [SkuCapacityDefault <Int32?>]: Default number of workers for this App Service plan SKU. [SkuCapacityMaximum <Int32?>]: Maximum number of workers for this App Service plan SKU. [SkuCapacityMinimum <Int32?>]: Minimum number of workers for this App Service plan SKU. [SkuCapacityScaleType <String>]: Available scale configurations for an App Service plan. [SkuFamily <String>]: Family code of the resource SKU. [SkuLocation <String[]>]: Locations of the SKU. [SkuName <String>]: Name of the resource SKU. [SkuSize <String>]: Size specifier of the resource SKU. [SkuTier <String>]: Service tier of the resource SKU. [SpotExpirationTime <DateTime?>]: The time when the server farm expires. Valid only if it is a spot server farm. [TargetWorkerCount <Int32?>]: Scaling worker count. [TargetWorkerSizeId <Int32?>]: Scaling worker size ID. [WorkerTierName <String>]: Target worker tier assigned to the App Service plan. SKUCAPABILITY <ICapability[]>: Capabilities of the SKU, e.g., is traffic manager enabled [Name <String>]: Name of the SKU capability. [Reason <String>]: Reason of the SKU capability. [Value <String>]: Value of the SKU capability. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azfunctionappplan #> function Set-AzFunctionAppPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the App Service plan. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter()] [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='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan] # App Service plan. # To construct, see NOTES section for APPSERVICEPLAN properties and create a hash table. ${AppServicePlan}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource Location. ${Location}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Current number of instances assigned to the resource. ${Capacity}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # The time when the server farm free offer expires. ${FreeOfferExpirationTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the App Service Environment. ${HostingEnvironmentProfileId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. ${HyperV}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code>, this App Service Plan owns spot instances. ${IsSpot}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. ${IsXenon}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan ${MaximumElasticWorkerCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code>, apps assigned to this App Service plan can be scaled independently.If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. ${PerSiteScaling}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If Linux app service plan <code>true</code>, <code>false</code> otherwise. ${Reserved}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.ICapability[]] # Capabilities of the SKU, e.g., is traffic manager enabled # To construct, see NOTES section for SKUCAPABILITY properties and create a hash table. ${SkuCapability}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Default number of workers for this App Service plan SKU. ${SkuCapacityDefault}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum number of workers for this App Service plan SKU. ${SkuCapacityMaximum}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Minimum number of workers for this App Service plan SKU. ${SkuCapacityMinimum}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Available scale configurations for an App Service plan. ${SkuCapacityScaleType}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Family code of the resource SKU. ${SkuFamily}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String[]] # Locations of the SKU. ${SkuLocation}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of the resource SKU. ${SkuName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Size specifier of the resource SKU. ${SkuSize}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Service tier of the resource SKU. ${SkuTier}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # The time when the server farm expires. # Valid only if it is a spot server farm. ${SpotExpirationTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801Preview.IResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Scaling worker count. ${TargetWorkerCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Scaling worker size ID. ${TargetWorkerSizeId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Target worker tier assigned to the App Service plan. ${WorkerTierName}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [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 $mapping = @{ Update = 'Az.Functions.private\Set-AzFunctionAppPlan_Update'; UpdateExpanded = 'Az.Functions.private\Set-AzFunctionAppPlan_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. .Description Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite .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. GEODISTRIBUTION <IGeoDistribution[]>: GeoDistributions for this site [Location <String>]: Location. [NumberOfWorker <Int32?>]: NumberOfWorkers. HOSTNAMESSLSTATE <IHostNameSslState[]>: Hostname SSL states are used to manage the SSL bindings for app's hostnames. [HostType <HostType?>]: Indicates whether the hostname is a standard or repository hostname. [Name <String>]: Hostname. [SslState <SslState?>]: SSL type. [Thumbprint <String>]: SSL certificate thumbprint. [ToUpdate <Boolean?>]: Set to <code>true</code> to update existing hostname. [VirtualIP <String>]: Virtual IP address assigned to the hostname if IP based SSL is enabled. SITECONFIG <ISiteConfig>: Configuration of the app. ActionType <AutoHealActionType>: ActionType - predefined action to be taken IsPushEnabled <Boolean>: Gets or sets a flag indicating whether the Push endpoint is enabled. [ActionMinProcessExecutionTime <String>]: MinProcessExecutionTime - minimum time the process must execute before taking the action [AlwaysOn <Boolean?>]: <code>true</code> if Always On is enabled; otherwise, <code>false</code>. [ApiDefinitionUrl <String>]: The URL of the API definition. [AppCommandLine <String>]: App command line to launch. [AppSetting <INameValuePair[]>]: Application settings. [Name <String>]: Pair name. [Value <String>]: Pair value. [AutoHealEnabled <Boolean?>]: <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. [AutoSwapSlotName <String>]: Auto-swap slot name. [AzureStorageAccount <ISiteConfigAzureStorageAccounts>]: User-provided Azure storage accounts. [(Any) <IAzureStorageInfoValue>]: This indicates any property can be added to this object. [ConnectionString <IConnStringInfo[]>]: Connection strings. [ConnectionString <String>]: Connection string value. [Name <String>]: Name of connection string. [Type <ConnectionStringType?>]: Type of database. [CorAllowedOrigin <String[]>]: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. [CorSupportCredentials <Boolean?>]: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. [CustomActionExe <String>]: Executable to be run. [CustomActionParameter <String>]: Parameters for the executable. [DefaultDocument <String[]>]: Default documents. [DetailedErrorLoggingEnabled <Boolean?>]: <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. [DocumentRoot <String>]: Document root. [DynamicTagsJson <String>]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. [ExperimentRampUpRule <IRampUpRule[]>]: List of ramp-up rules. [ActionHostName <String>]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. [ChangeDecisionCallbackUrl <String>]: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/ [ChangeIntervalInMinute <Int32?>]: Specifies interval in minutes to reevaluate ReroutePercentage. [ChangeStep <Double?>]: In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. [MaxReroutePercentage <Double?>]: Specifies upper boundary below which ReroutePercentage will stay. [MinReroutePercentage <Double?>]: Specifies lower boundary above which ReroutePercentage will stay. [Name <String>]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. [ReroutePercentage <Double?>]: Percentage of the traffic which will be redirected to <code>ActionHostName</code>. [FtpsState <FtpsState?>]: State of FTP / FTPS service [HandlerMapping <IHandlerMapping[]>]: Handler mappings. [Argument <String>]: Command-line arguments to be passed to the script processor. [Extension <String>]: Requests with this extension will be handled using the specified FastCGI application. [ScriptProcessor <String>]: The absolute path to the FastCGI application. [Http20Enabled <Boolean?>]: Http20Enabled: configures a web site to allow clients to connect over http2.0 [HttpLoggingEnabled <Boolean?>]: <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. [IPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for main. IPAddress <String>: IP address the security restriction is valid for. [SubnetMask <String>]: Subnet mask for the range of IP addresses the restriction is valid for. [Action <String>]: Allow or Deny access for this IP range. [Description <String>]: IP restriction rule description. [Name <String>]: IP restriction rule name. [Priority <Int32?>]: Priority of IP restriction rule. [SubnetTrafficTag <Int32?>]: (internal) Subnet traffic tag [Tag <IPFilterTag?>]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. [VnetSubnetResourceId <String>]: Virtual network resource id [VnetTrafficTag <Int32?>]: (internal) Vnet traffic tag [JavaContainer <String>]: Java container. [JavaContainerVersion <String>]: Java container version. [JavaVersion <String>]: Java version. [LimitMaxDiskSizeInMb <Int64?>]: Maximum allowed disk size usage in MB. [LimitMaxMemoryInMb <Int64?>]: Maximum allowed memory usage in MB. [LimitMaxPercentageCpu <Double?>]: Maximum allowed CPU usage percentage. [LinuxFxVersion <String>]: Linux App Framework and version [LoadBalancing <SiteLoadBalancing?>]: Site load balancing. [LocalMySqlEnabled <Boolean?>]: <code>true</code> to enable local MySQL; otherwise, <code>false</code>. [LogsDirectorySizeLimit <Int32?>]: HTTP logs directory size limit. [MachineKeyDecryption <String>]: Algorithm used for decryption. [MachineKeyDecryptionKey <String>]: Decryption key. [MachineKeyValidation <String>]: MachineKey validation. [MachineKeyValidationKey <String>]: Validation key. [ManagedPipelineMode <ManagedPipelineMode?>]: Managed pipeline mode. [ManagedServiceIdentityId <Int32?>]: Managed Service Identity Id [MinTlsVersion <SupportedTlsVersions?>]: MinTlsVersion: configures the minimum version of TLS required for SSL requests [NetFrameworkVersion <String>]: .NET Framework version. [NodeVersion <String>]: Version of Node.js. [NumberOfWorker <Int32?>]: Number of workers. [PhpVersion <String>]: Version of PHP. [PublishingUsername <String>]: Publishing user name. [PushKind <String>]: Kind of resource. [PythonVersion <String>]: Version of Python. [RemoteDebuggingEnabled <Boolean?>]: <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. [RemoteDebuggingVersion <String>]: Remote debugging version. [RequestCount <Int32?>]: Request Count. [RequestTimeInterval <String>]: Time interval. [RequestTracingEnabled <Boolean?>]: <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. [RequestTracingExpirationTime <DateTime?>]: Request tracing expiration time. [ReservedInstanceCount <Int32?>]: Number of reserved instances. This setting only applies to the Consumption Plan [ScmIPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for scm. [ScmIPSecurityRestrictionsUseMain <Boolean?>]: IP security restrictions for scm to use main. [ScmType <ScmType?>]: SCM type. [SlowRequestCount <Int32?>]: Request Count. [SlowRequestTimeInterval <String>]: Time interval. [SlowRequestTimeTaken <String>]: Time taken. [TagWhitelistJson <String>]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. [TagsRequiringAuth <String>]: Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. Tags can consist of alphanumeric characters and the following: '_', '@', '#', '.', ':', '-'. Validation should be performed at the PushRequestHandler. [TracingOption <String>]: Tracing options. [TriggerPrivateBytesInKb <Int32?>]: A rule based on private bytes. [TriggerStatusCode <IStatusCodesBasedTrigger[]>]: A rule based on status codes. [Count <Int32?>]: Request Count. [Status <Int32?>]: HTTP status code. [SubStatus <Int32?>]: Request Sub Status. [TimeInterval <String>]: Time interval. [Win32Status <Int32?>]: Win32 error code. [Use32BitWorkerProcess <Boolean?>]: <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. [VirtualApplication <IVirtualApplication[]>]: Virtual applications. [PhysicalPath <String>]: Physical path. [PreloadEnabled <Boolean?>]: <code>true</code> if preloading is enabled; otherwise, <code>false</code>. [VirtualDirectory <IVirtualDirectory[]>]: Virtual directories for virtual application. [PhysicalPath <String>]: Physical path. [VirtualPath <String>]: Path to virtual application. [VirtualPath <String>]: Virtual path. [VnetName <String>]: Virtual Network name. [WebSocketsEnabled <Boolean?>]: <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. [WindowsFxVersion <String>]: Xenon App Framework and version [XManagedServiceIdentityId <Int32?>]: Explicit Managed Service Identity Id SITEENVELOPE <ISite>: A web app, a mobile app backend, or an API app. Location <String>: Resource Location. CloningInfoSourceWebAppId <String>: ARM resource ID of the source app. App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. [Kind <String>]: Kind of resource. [Tag <IResourceTags>]: Resource tags. [(Any) <String>]: This indicates any property can be added to this object. [ClientAffinityEnabled <Boolean?>]: <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>. [ClientCertEnabled <Boolean?>]: <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>. [ClientCertExclusionPath <String>]: client certificate authentication comma-separated exclusion paths [CloningInfoAppSettingsOverride <ICloningInfoAppSettingsOverrides>]: Application setting overrides for cloned app. If specified, these settings override the settings cloned from source app. Otherwise, application settings from source app are retained. [(Any) <String>]: This indicates any property can be added to this object. [CloningInfoCloneCustomHostName <Boolean?>]: <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. [CloningInfoCloneSourceControl <Boolean?>]: <code>true</code> to clone source control from source app; otherwise, <code>false</code>. [CloningInfoConfigureLoadBalancing <Boolean?>]: <code>true</code> to configure load balancing for source and destination app. [CloningInfoCorrelationId <String>]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. [CloningInfoHostingEnvironment <String>]: App Service Environment. [CloningInfoOverwrite <Boolean?>]: <code>true</code> to overwrite destination app; otherwise, <code>false</code>. [CloningInfoSourceWebAppLocation <String>]: Location of source app ex: West US or North Europe [CloningInfoTrafficManagerProfileId <String>]: 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 <String>]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. [Config <ISiteConfig>]: Configuration of the app. ActionType <AutoHealActionType>: ActionType - predefined action to be taken IsPushEnabled <Boolean>: Gets or sets a flag indicating whether the Push endpoint is enabled. [ActionMinProcessExecutionTime <String>]: MinProcessExecutionTime - minimum time the process must execute before taking the action [AlwaysOn <Boolean?>]: <code>true</code> if Always On is enabled; otherwise, <code>false</code>. [ApiDefinitionUrl <String>]: The URL of the API definition. [AppCommandLine <String>]: App command line to launch. [AppSetting <INameValuePair[]>]: Application settings. [Name <String>]: Pair name. [Value <String>]: Pair value. [AutoHealEnabled <Boolean?>]: <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. [AutoSwapSlotName <String>]: Auto-swap slot name. [AzureStorageAccount <ISiteConfigAzureStorageAccounts>]: User-provided Azure storage accounts. [(Any) <IAzureStorageInfoValue>]: This indicates any property can be added to this object. [ConnectionString <IConnStringInfo[]>]: Connection strings. [ConnectionString <String>]: Connection string value. [Name <String>]: Name of connection string. [Type <ConnectionStringType?>]: Type of database. [CorAllowedOrigin <String[]>]: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. [CorSupportCredentials <Boolean?>]: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. [CustomActionExe <String>]: Executable to be run. [CustomActionParameter <String>]: Parameters for the executable. [DefaultDocument <String[]>]: Default documents. [DetailedErrorLoggingEnabled <Boolean?>]: <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. [DocumentRoot <String>]: Document root. [DynamicTagsJson <String>]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. [ExperimentRampUpRule <IRampUpRule[]>]: List of ramp-up rules. [ActionHostName <String>]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. [ChangeDecisionCallbackUrl <String>]: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/ [ChangeIntervalInMinute <Int32?>]: Specifies interval in minutes to reevaluate ReroutePercentage. [ChangeStep <Double?>]: In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. [MaxReroutePercentage <Double?>]: Specifies upper boundary below which ReroutePercentage will stay. [MinReroutePercentage <Double?>]: Specifies lower boundary above which ReroutePercentage will stay. [Name <String>]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. [ReroutePercentage <Double?>]: Percentage of the traffic which will be redirected to <code>ActionHostName</code>. [FtpsState <FtpsState?>]: State of FTP / FTPS service [HandlerMapping <IHandlerMapping[]>]: Handler mappings. [Argument <String>]: Command-line arguments to be passed to the script processor. [Extension <String>]: Requests with this extension will be handled using the specified FastCGI application. [ScriptProcessor <String>]: The absolute path to the FastCGI application. [Http20Enabled <Boolean?>]: Http20Enabled: configures a web site to allow clients to connect over http2.0 [HttpLoggingEnabled <Boolean?>]: <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. [IPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for main. IPAddress <String>: IP address the security restriction is valid for. [SubnetMask <String>]: Subnet mask for the range of IP addresses the restriction is valid for. [Action <String>]: Allow or Deny access for this IP range. [Description <String>]: IP restriction rule description. [Name <String>]: IP restriction rule name. [Priority <Int32?>]: Priority of IP restriction rule. [SubnetTrafficTag <Int32?>]: (internal) Subnet traffic tag [Tag <IPFilterTag?>]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. [VnetSubnetResourceId <String>]: Virtual network resource id [VnetTrafficTag <Int32?>]: (internal) Vnet traffic tag [JavaContainer <String>]: Java container. [JavaContainerVersion <String>]: Java container version. [JavaVersion <String>]: Java version. [LimitMaxDiskSizeInMb <Int64?>]: Maximum allowed disk size usage in MB. [LimitMaxMemoryInMb <Int64?>]: Maximum allowed memory usage in MB. [LimitMaxPercentageCpu <Double?>]: Maximum allowed CPU usage percentage. [LinuxFxVersion <String>]: Linux App Framework and version [LoadBalancing <SiteLoadBalancing?>]: Site load balancing. [LocalMySqlEnabled <Boolean?>]: <code>true</code> to enable local MySQL; otherwise, <code>false</code>. [LogsDirectorySizeLimit <Int32?>]: HTTP logs directory size limit. [MachineKeyDecryption <String>]: Algorithm used for decryption. [MachineKeyDecryptionKey <String>]: Decryption key. [MachineKeyValidation <String>]: MachineKey validation. [MachineKeyValidationKey <String>]: Validation key. [ManagedPipelineMode <ManagedPipelineMode?>]: Managed pipeline mode. [ManagedServiceIdentityId <Int32?>]: Managed Service Identity Id [MinTlsVersion <SupportedTlsVersions?>]: MinTlsVersion: configures the minimum version of TLS required for SSL requests [NetFrameworkVersion <String>]: .NET Framework version. [NodeVersion <String>]: Version of Node.js. [NumberOfWorker <Int32?>]: Number of workers. [PhpVersion <String>]: Version of PHP. [PublishingUsername <String>]: Publishing user name. [PushKind <String>]: Kind of resource. [PythonVersion <String>]: Version of Python. [RemoteDebuggingEnabled <Boolean?>]: <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. [RemoteDebuggingVersion <String>]: Remote debugging version. [RequestCount <Int32?>]: Request Count. [RequestTimeInterval <String>]: Time interval. [RequestTracingEnabled <Boolean?>]: <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. [RequestTracingExpirationTime <DateTime?>]: Request tracing expiration time. [ReservedInstanceCount <Int32?>]: Number of reserved instances. This setting only applies to the Consumption Plan [ScmIPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for scm. [ScmIPSecurityRestrictionsUseMain <Boolean?>]: IP security restrictions for scm to use main. [ScmType <ScmType?>]: SCM type. [SlowRequestCount <Int32?>]: Request Count. [SlowRequestTimeInterval <String>]: Time interval. [SlowRequestTimeTaken <String>]: Time taken. [TagWhitelistJson <String>]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. [TagsRequiringAuth <String>]: Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. Tags can consist of alphanumeric characters and the following: '_', '@', '#', '.', ':', '-'. Validation should be performed at the PushRequestHandler. [TracingOption <String>]: Tracing options. [TriggerPrivateBytesInKb <Int32?>]: A rule based on private bytes. [TriggerStatusCode <IStatusCodesBasedTrigger[]>]: A rule based on status codes. [Count <Int32?>]: Request Count. [Status <Int32?>]: HTTP status code. [SubStatus <Int32?>]: Request Sub Status. [TimeInterval <String>]: Time interval. [Win32Status <Int32?>]: Win32 error code. [Use32BitWorkerProcess <Boolean?>]: <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. [VirtualApplication <IVirtualApplication[]>]: Virtual applications. [PhysicalPath <String>]: Physical path. [PreloadEnabled <Boolean?>]: <code>true</code> if preloading is enabled; otherwise, <code>false</code>. [VirtualDirectory <IVirtualDirectory[]>]: Virtual directories for virtual application. [PhysicalPath <String>]: Physical path. [VirtualPath <String>]: Path to virtual application. [VirtualPath <String>]: Virtual path. [VnetName <String>]: Virtual Network name. [WebSocketsEnabled <Boolean?>]: <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. [WindowsFxVersion <String>]: Xenon App Framework and version [XManagedServiceIdentityId <Int32?>]: Explicit Managed Service Identity Id [ContainerSize <Int32?>]: Size of the function container. [DailyMemoryTimeQuota <Int32?>]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). [Enabled <Boolean?>]: <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline). [GeoDistribution <IGeoDistribution[]>]: GeoDistributions for this site [Location <String>]: Location. [NumberOfWorker <Int32?>]: NumberOfWorkers. [HostNameSslState <IHostNameSslState[]>]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. [HostType <HostType?>]: Indicates whether the hostname is a standard or repository hostname. [Name <String>]: Hostname. [SslState <SslState?>]: SSL type. [Thumbprint <String>]: SSL certificate thumbprint. [ToUpdate <Boolean?>]: Set to <code>true</code> to update existing hostname. [VirtualIP <String>]: Virtual IP address assigned to the hostname if IP based SSL is enabled. [HostNamesDisabled <Boolean?>]: <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. If <code>true</code>, the app is only accessible via API management process. [HostingEnvironmentProfileId <String>]: Resource ID of the App Service Environment. [HttpsOnly <Boolean?>]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests [HyperV <Boolean?>]: Hyper-V sandbox. [IdentityType <ManagedServiceIdentityType?>]: Type of managed service identity. [IdentityUserAssignedIdentity <IManagedServiceIdentityUserAssignedIdentities>]: The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} [(Any) <IComponentsSchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties>]: This indicates any property can be added to this object. [IsXenon <Boolean?>]: Obsolete: Hyper-V sandbox. [RedundancyMode <RedundancyMode?>]: Site redundancy mode [Reserved <Boolean?>]: <code>true</code> if reserved; otherwise, <code>false</code>. [ScmSiteAlsoStopped <Boolean?>]: <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>. [ServerFarmId <String>]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azfunctionapp #> function Set-AzFunctionApp { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Unique name of the app to create or update. # To create or update a deployment slot, use the {slot} parameter. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter()] [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='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite] # A web app, a mobile app backend, or an API app. # To construct, see NOTES section for SITEENVELOPE properties and create a hash table. ${SiteEnvelope}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource Location. ${Location}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. # Default is <code>true</code>. ${ClientAffinityEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. # Default is <code>false</code>. ${ClientCertEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # client certificate authentication comma-separated exclusion paths ${ClientCertExclusionPath}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801.ICloningInfoAppSettingsOverrides]))] [System.Collections.Hashtable] # Application setting overrides for cloned app. # If specified, these settings override the settings cloned from source app. # Otherwise, application settings from source app are retained. ${CloningInfoAppSettingsOverride}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. ${CloningInfoCloneCustomHostName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to clone source control from source app; otherwise, <code>false</code>. ${CloningInfoCloneSourceControl}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to configure load balancing for source and destination app. ${CloningInfoConfigureLoadBalancing}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Correlation ID of cloning operation. # This ID ties multiple cloning operationstogether to use the same snapshot. ${CloningInfoCorrelationId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # App Service Environment. ${CloningInfoHostingEnvironment}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to overwrite destination app; otherwise, <code>false</code>. ${CloningInfoOverwrite}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # ARM resource ID of the source app. # App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. ${CloningInfoSourceWebAppId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Location of source app ex: West US or North Europe ${CloningInfoSourceWebAppLocation}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # 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}. ${CloningInfoTrafficManagerProfileId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of Traffic Manager profile to create. # This is only needed if Traffic Manager profile does not already exist. ${CloningInfoTrafficManagerProfileName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Size of the function container. ${ContainerSize}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum allowed daily memory-time quota (applicable on dynamic apps only). ${DailyMemoryTimeQuota}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if the app is enabled; otherwise, <code>false</code>. # Setting this value to false disables the app (takes the app offline). ${Enabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IGeoDistribution[]] # GeoDistributions for this site # To construct, see NOTES section for GEODISTRIBUTION properties and create a hash table. ${GeoDistribution}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.IHostNameSslState[]] # Hostname SSL states are used to manage the SSL bindings for app's hostnames. # To construct, see NOTES section for HOSTNAMESSLSTATE properties and create a hash table. ${HostNameSslState}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. # If <code>true</code>, the app is only accessible via API management process. ${HostNamesDisabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the App Service Environment. ${HostingEnvironmentProfileId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # HttpsOnly: configures a web site to accept only https requests. # Issues redirect forhttp requests ${HttpsOnly}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Hyper-V sandbox. ${HyperV}, [Parameter(ParameterSetName='UpdateExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] # Type of managed service identity. ${IdentityType}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IManagedServiceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user assigned identities associated with the resource. # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} ${IdentityUserAssignedIdentity}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Obsolete: Hyper-V sandbox. ${IsXenon}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='UpdateExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RedundancyMode])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RedundancyMode] # Site redundancy mode ${RedundancyMode}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if reserved; otherwise, <code>false</code>. ${Reserved}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. # The default is <code>false</code>. ${ScmSiteAlsoStopped}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ${ServerFarmId}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISiteConfig] # Configuration of the app. # To construct, see NOTES section for SITECONFIG properties and create a hash table. ${SiteConfig}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801Preview.IResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [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 $mapping = @{ Update = 'Az.Functions.private\Set-AzFunctionApp_Update'; UpdateExpanded = 'Az.Functions.private\Set-AzFunctionApp_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Replaces the application settings of an app. .Description Replaces the application settings of an app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azwebappapplicationsettingslot .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary .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. APPSETTING <IStringDictionary>: String dictionary resource. [Kind <String>]: Kind of resource. [Property <IStringDictionaryProperties>]: Settings. [(Any) <String>]: This indicates any property can be added to this object. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azwebappapplicationsettingslot #> function Set-AzWebAppApplicationSettingSlot { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(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. # If a slot is not specified, the API will update the application settings for the production slot. ${Slot}, [Parameter()] [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='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary] # String dictionary resource. # To construct, see NOTES section for APPSETTING properties and create a hash table. ${AppSetting}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801.IStringDictionaryProperties]))] [System.Collections.Hashtable] # Settings. ${Property}, [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 $mapping = @{ Update = 'Az.Functions.private\Set-AzWebAppApplicationSettingSlot_Update'; UpdateExpanded = 'Az.Functions.private\Set-AzWebAppApplicationSettingSlot_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Replaces the application settings of an app. .Description Replaces the application settings of an app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azwebappapplicationsetting .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary .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. APPSETTING <IStringDictionary>: String dictionary resource. [Kind <String>]: Kind of resource. [Property <IStringDictionaryProperties>]: Settings. [(Any) <String>]: This indicates any property can be added to this object. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/set-azwebappapplicationsetting #> function Set-AzWebAppApplicationSetting { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter()] [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='Update', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160801.IStringDictionary] # String dictionary resource. # To construct, see NOTES section for APPSETTING properties and create a hash table. ${AppSetting}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801.IStringDictionaryProperties]))] [System.Collections.Hashtable] # Settings. ${Property}, [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 $mapping = @{ Update = 'Az.Functions.private\Set-AzWebAppApplicationSetting_Update'; UpdateExpanded = 'Az.Functions.private\Set-AzWebAppApplicationSetting_UpdateExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Starts an app (or deployment slot, if specified). .Description Starts an app (or deployment slot, if specified). .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/start-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/start-azfunctionapp #> function Start-AzFunctionApp { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Start', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(ParameterSetName='Start', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Start')] [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='StartViaIdentity', 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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Start = 'Az.Functions.private\Start-AzFunctionApp_Start'; StartViaIdentity = 'Az.Functions.private\Start-AzFunctionApp_StartViaIdentity'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Stops an app (or deployment slot, if specified). .Description Stops an app (or deployment slot, if specified). .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/stop-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs System.Boolean .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/stop-azfunctionapp #> function Stop-AzFunctionApp { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the app. ${Name}, [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Stop')] [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='StopViaIdentity', 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()] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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 $mapping = @{ Stop = 'Az.Functions.private\Stop-AzFunctionApp_Stop'; StopViaIdentity = 'Az.Functions.private\Stop-AzFunctionApp_StopViaIdentity'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Check if a resource name is available. .Description Check if a resource name is available. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/test-aznameavailability .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IResourceNameAvailabilityRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IResourceNameAvailability .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 <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. REQUEST <IResourceNameAvailabilityRequest>: Resource name availability request content. Name <String>: Resource name to verify. Type <CheckNameResourceTypes>: Resource type used for verification. [IsFqdn <Boolean?>]: Is fully qualified domain name. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/test-aznameavailability #> function Test-AzNameAvailability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IResourceNameAvailability])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Check')] [Parameter(ParameterSetName='CheckExpanded')] [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='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', 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(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IResourceNameAvailabilityRequest] # Resource name availability request content. # To construct, see NOTES section for REQUEST properties and create a hash table. ${Request}, [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource name to verify. ${Name}, [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory)] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.CheckNameResourceTypes])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.CheckNameResourceTypes] # Resource type used for verification. ${Type}, [Parameter(ParameterSetName='CheckExpanded')] [Parameter(ParameterSetName='CheckViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Is fully qualified domain name. ${IsFqdn}, [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 $mapping = @{ Check = 'Az.Functions.private\Test-AzNameAvailability_Check'; CheckExpanded = 'Az.Functions.private\Test-AzNameAvailability_CheckExpanded'; CheckViaIdentity = 'Az.Functions.private\Test-AzNameAvailability_CheckViaIdentity'; CheckViaIdentityExpanded = 'Az.Functions.private\Test-AzNameAvailability_CheckViaIdentityExpanded'; } if (('Check', 'CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates or updates an App Service Plan. .Description Creates or updates an App Service Plan. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/update-azfunctionappplan .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlanPatchResource .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan .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. APPSERVICEPLAN <IAppServicePlanPatchResource>: ARM resource for a app service plan. [Kind <String>]: Kind of resource. [FreeOfferExpirationTime <DateTime?>]: The time when the server farm free offer expires. [HostingEnvironmentProfileId <String>]: Resource ID of the App Service Environment. [HyperV <Boolean?>]: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. [IsSpot <Boolean?>]: If <code>true</code>, this App Service Plan owns spot instances. [IsXenon <Boolean?>]: Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. [MaximumElasticWorkerCount <Int32?>]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan [PerSiteScaling <Boolean?>]: If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. [Reserved <Boolean?>]: If Linux app service plan <code>true</code>, <code>false</code> otherwise. [SpotExpirationTime <DateTime?>]: The time when the server farm expires. Valid only if it is a spot server farm. [TargetWorkerCount <Int32?>]: Scaling worker count. [TargetWorkerSizeId <Int32?>]: Scaling worker size ID. [WorkerTierName <String>]: Target worker tier assigned to the App Service plan. INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/update-azfunctionappplan #> function Update-AzFunctionAppPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlan])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the App Service plan. ${Name}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Update')] [Parameter(ParameterSetName='UpdateExpanded')] [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='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IAppServicePlanPatchResource] # ARM resource for a app service plan. # To construct, see NOTES section for APPSERVICEPLAN properties and create a hash table. ${AppServicePlan}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # The time when the server farm free offer expires. ${FreeOfferExpirationTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the App Service Environment. ${HostingEnvironmentProfileId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. ${HyperV}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code>, this App Service Plan owns spot instances. ${IsSpot}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. ${IsXenon}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan ${MaximumElasticWorkerCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If <code>true</code>, apps assigned to this App Service plan can be scaled independently.If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan. ${PerSiteScaling}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # If Linux app service plan <code>true</code>, <code>false</code> otherwise. ${Reserved}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.DateTime] # The time when the server farm expires. # Valid only if it is a spot server farm. ${SpotExpirationTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Scaling worker count. ${TargetWorkerCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Scaling worker size ID. ${TargetWorkerSizeId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Target worker tier assigned to the App Service plan. ${WorkerTierName}, [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 $mapping = @{ Update = 'Az.Functions.private\Update-AzFunctionAppPlan_Update'; UpdateExpanded = 'Az.Functions.private\Update-AzFunctionAppPlan_UpdateExpanded'; UpdateViaIdentity = 'Az.Functions.private\Update-AzFunctionAppPlan_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Az.Functions.private\Update-AzFunctionAppPlan_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. .Description Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.functions/update-azfunctionapp .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISitePatchResource .Inputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite .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. GEODISTRIBUTION <IGeoDistribution[]>: GeoDistributions for this site [Location <String>]: Location. [NumberOfWorker <Int32?>]: NumberOfWorkers. HOSTNAMESSLSTATE <IHostNameSslState[]>: Hostname SSL states are used to manage the SSL bindings for app's hostnames. [HostType <HostType?>]: Indicates whether the hostname is a standard or repository hostname. [Name <String>]: Hostname. [SslState <SslState?>]: SSL type. [Thumbprint <String>]: SSL certificate thumbprint. [ToUpdate <Boolean?>]: Set to <code>true</code> to update existing hostname. [VirtualIP <String>]: Virtual IP address assigned to the hostname if IP based SSL is enabled. INPUTOBJECT <IFunctionsIdentity>: Identity Parameter [AccountName <String>]: 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 <String>]: Analysis Name [ApiName <String>]: The managed API name. [BackupId <String>]: ID of the backup. [BaseAddress <String>]: Module base address. [BlobServicesName <String>]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' [CertificateOrderName <String>]: Name of the certificate order. [ConnectionName <String>]: The connection name. [ContainerName <String>]: 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 <String>]: The numeric ID of the deleted app, e.g. 12345 [DetectorName <String>]: Detector Resource Name [DiagnosticCategory <String>]: Diagnostic Category [DiagnosticsName <String>]: Name of the diagnostics item. [DomainName <String>]: Name of the domain. [DomainOwnershipIdentifierName <String>]: Name of domain ownership identifier. [EntityName <String>]: Name of the hybrid connection. [FileServicesName <String>]: The name of the file Service within the specified storage account. File Service Name must be "default" [FunctionName <String>]: Function name. [GatewayName <String>]: Name of the gateway. Only the 'primary' gateway is supported. [HostName <String>]: Hostname in the hostname binding. [HostingEnvironmentName <String>]: Name of the hosting environment. [Id <String>]: Resource identity path [ImmutabilityPolicyName <String>]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' [Instance <String>]: Name of the instance in the multi-role pool. [InstanceId <String>]: ID of web app instance. [KeyId <String>]: The API Key ID. This is unique within a Application Insights component. [Location <String>]: [ManagementPolicyName <ManagementPolicyName?>]: The name of the Storage Account Management Policy. It should always be 'default' [Name <String>]: Name of the certificate. [NamespaceName <String>]: Name of the Service Bus namespace. [OperationId <String>]: GUID of the operation. [PremierAddOnName <String>]: Add-on name. [ProcessId <String>]: PID. [PublicCertificateName <String>]: Public certificate name. [PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned. [RelayName <String>]: Name of the Service Bus relay. [ResourceGroupName <String>]: Name of the resource group to which the resource belongs. [ResourceName <String>]: The name of the Application Insights component resource. [RouteName <String>]: Name of the Virtual Network route. [ShareName <String>]: The name of the file share within the specified storage account. File share 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. [SiteExtensionId <String>]: Site extension name. [SiteName <String>]: Site Name [Slot <String>]: Name of web app slot. If not specified then will default to production slot. [SnapshotId <String>]: The ID of the snapshot to read. [SourceControlType <String>]: Type of source control [SubscriptionId <String>]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). [ThreadId <String>]: TID. [View <String>]: The type of view. This can either be "summary" or "detailed". [VnetName <String>]: Name of the Virtual Network. [WebJobName <String>]: Name of Web Job. [WorkerName <String>]: Name of worker machine, which typically starts with RD. [WorkerPoolName <String>]: Name of the worker pool. SITECONFIG <ISiteConfig>: Configuration of the app. ActionType <AutoHealActionType>: ActionType - predefined action to be taken IsPushEnabled <Boolean>: Gets or sets a flag indicating whether the Push endpoint is enabled. [ActionMinProcessExecutionTime <String>]: MinProcessExecutionTime - minimum time the process must execute before taking the action [AlwaysOn <Boolean?>]: <code>true</code> if Always On is enabled; otherwise, <code>false</code>. [ApiDefinitionUrl <String>]: The URL of the API definition. [AppCommandLine <String>]: App command line to launch. [AppSetting <INameValuePair[]>]: Application settings. [Name <String>]: Pair name. [Value <String>]: Pair value. [AutoHealEnabled <Boolean?>]: <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. [AutoSwapSlotName <String>]: Auto-swap slot name. [AzureStorageAccount <ISiteConfigAzureStorageAccounts>]: User-provided Azure storage accounts. [(Any) <IAzureStorageInfoValue>]: This indicates any property can be added to this object. [ConnectionString <IConnStringInfo[]>]: Connection strings. [ConnectionString <String>]: Connection string value. [Name <String>]: Name of connection string. [Type <ConnectionStringType?>]: Type of database. [CorAllowedOrigin <String[]>]: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. [CorSupportCredentials <Boolean?>]: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. [CustomActionExe <String>]: Executable to be run. [CustomActionParameter <String>]: Parameters for the executable. [DefaultDocument <String[]>]: Default documents. [DetailedErrorLoggingEnabled <Boolean?>]: <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. [DocumentRoot <String>]: Document root. [DynamicTagsJson <String>]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. [ExperimentRampUpRule <IRampUpRule[]>]: List of ramp-up rules. [ActionHostName <String>]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. [ChangeDecisionCallbackUrl <String>]: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/ [ChangeIntervalInMinute <Int32?>]: Specifies interval in minutes to reevaluate ReroutePercentage. [ChangeStep <Double?>]: In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. [MaxReroutePercentage <Double?>]: Specifies upper boundary below which ReroutePercentage will stay. [MinReroutePercentage <Double?>]: Specifies lower boundary above which ReroutePercentage will stay. [Name <String>]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. [ReroutePercentage <Double?>]: Percentage of the traffic which will be redirected to <code>ActionHostName</code>. [FtpsState <FtpsState?>]: State of FTP / FTPS service [HandlerMapping <IHandlerMapping[]>]: Handler mappings. [Argument <String>]: Command-line arguments to be passed to the script processor. [Extension <String>]: Requests with this extension will be handled using the specified FastCGI application. [ScriptProcessor <String>]: The absolute path to the FastCGI application. [Http20Enabled <Boolean?>]: Http20Enabled: configures a web site to allow clients to connect over http2.0 [HttpLoggingEnabled <Boolean?>]: <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. [IPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for main. IPAddress <String>: IP address the security restriction is valid for. [SubnetMask <String>]: Subnet mask for the range of IP addresses the restriction is valid for. [Action <String>]: Allow or Deny access for this IP range. [Description <String>]: IP restriction rule description. [Name <String>]: IP restriction rule name. [Priority <Int32?>]: Priority of IP restriction rule. [SubnetTrafficTag <Int32?>]: (internal) Subnet traffic tag [Tag <IPFilterTag?>]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. [VnetSubnetResourceId <String>]: Virtual network resource id [VnetTrafficTag <Int32?>]: (internal) Vnet traffic tag [JavaContainer <String>]: Java container. [JavaContainerVersion <String>]: Java container version. [JavaVersion <String>]: Java version. [LimitMaxDiskSizeInMb <Int64?>]: Maximum allowed disk size usage in MB. [LimitMaxMemoryInMb <Int64?>]: Maximum allowed memory usage in MB. [LimitMaxPercentageCpu <Double?>]: Maximum allowed CPU usage percentage. [LinuxFxVersion <String>]: Linux App Framework and version [LoadBalancing <SiteLoadBalancing?>]: Site load balancing. [LocalMySqlEnabled <Boolean?>]: <code>true</code> to enable local MySQL; otherwise, <code>false</code>. [LogsDirectorySizeLimit <Int32?>]: HTTP logs directory size limit. [MachineKeyDecryption <String>]: Algorithm used for decryption. [MachineKeyDecryptionKey <String>]: Decryption key. [MachineKeyValidation <String>]: MachineKey validation. [MachineKeyValidationKey <String>]: Validation key. [ManagedPipelineMode <ManagedPipelineMode?>]: Managed pipeline mode. [ManagedServiceIdentityId <Int32?>]: Managed Service Identity Id [MinTlsVersion <SupportedTlsVersions?>]: MinTlsVersion: configures the minimum version of TLS required for SSL requests [NetFrameworkVersion <String>]: .NET Framework version. [NodeVersion <String>]: Version of Node.js. [NumberOfWorker <Int32?>]: Number of workers. [PhpVersion <String>]: Version of PHP. [PublishingUsername <String>]: Publishing user name. [PushKind <String>]: Kind of resource. [PythonVersion <String>]: Version of Python. [RemoteDebuggingEnabled <Boolean?>]: <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. [RemoteDebuggingVersion <String>]: Remote debugging version. [RequestCount <Int32?>]: Request Count. [RequestTimeInterval <String>]: Time interval. [RequestTracingEnabled <Boolean?>]: <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. [RequestTracingExpirationTime <DateTime?>]: Request tracing expiration time. [ReservedInstanceCount <Int32?>]: Number of reserved instances. This setting only applies to the Consumption Plan [ScmIPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for scm. [ScmIPSecurityRestrictionsUseMain <Boolean?>]: IP security restrictions for scm to use main. [ScmType <ScmType?>]: SCM type. [SlowRequestCount <Int32?>]: Request Count. [SlowRequestTimeInterval <String>]: Time interval. [SlowRequestTimeTaken <String>]: Time taken. [TagWhitelistJson <String>]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. [TagsRequiringAuth <String>]: Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. Tags can consist of alphanumeric characters and the following: '_', '@', '#', '.', ':', '-'. Validation should be performed at the PushRequestHandler. [TracingOption <String>]: Tracing options. [TriggerPrivateBytesInKb <Int32?>]: A rule based on private bytes. [TriggerStatusCode <IStatusCodesBasedTrigger[]>]: A rule based on status codes. [Count <Int32?>]: Request Count. [Status <Int32?>]: HTTP status code. [SubStatus <Int32?>]: Request Sub Status. [TimeInterval <String>]: Time interval. [Win32Status <Int32?>]: Win32 error code. [Use32BitWorkerProcess <Boolean?>]: <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. [VirtualApplication <IVirtualApplication[]>]: Virtual applications. [PhysicalPath <String>]: Physical path. [PreloadEnabled <Boolean?>]: <code>true</code> if preloading is enabled; otherwise, <code>false</code>. [VirtualDirectory <IVirtualDirectory[]>]: Virtual directories for virtual application. [PhysicalPath <String>]: Physical path. [VirtualPath <String>]: Path to virtual application. [VirtualPath <String>]: Virtual path. [VnetName <String>]: Virtual Network name. [WebSocketsEnabled <Boolean?>]: <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. [WindowsFxVersion <String>]: Xenon App Framework and version [XManagedServiceIdentityId <Int32?>]: Explicit Managed Service Identity Id SITEENVELOPE <ISitePatchResource>: ARM resource for a site. CloningInfoSourceWebAppId <String>: ARM resource ID of the source app. App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. [Kind <String>]: Kind of resource. [ClientAffinityEnabled <Boolean?>]: <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code>. [ClientCertEnabled <Boolean?>]: <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code>. [ClientCertExclusionPath <String>]: client certificate authentication comma-separated exclusion paths [CloningInfoAppSettingsOverride <ICloningInfoAppSettingsOverrides>]: Application setting overrides for cloned app. If specified, these settings override the settings cloned from source app. Otherwise, application settings from source app are retained. [(Any) <String>]: This indicates any property can be added to this object. [CloningInfoCloneCustomHostName <Boolean?>]: <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. [CloningInfoCloneSourceControl <Boolean?>]: <code>true</code> to clone source control from source app; otherwise, <code>false</code>. [CloningInfoConfigureLoadBalancing <Boolean?>]: <code>true</code> to configure load balancing for source and destination app. [CloningInfoCorrelationId <String>]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. [CloningInfoHostingEnvironment <String>]: App Service Environment. [CloningInfoOverwrite <Boolean?>]: <code>true</code> to overwrite destination app; otherwise, <code>false</code>. [CloningInfoSourceWebAppLocation <String>]: Location of source app ex: West US or North Europe [CloningInfoTrafficManagerProfileId <String>]: 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 <String>]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. [ContainerSize <Int32?>]: Size of the function container. [DailyMemoryTimeQuota <Int32?>]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). [Enabled <Boolean?>]: <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline). [GeoDistribution <IGeoDistribution[]>]: GeoDistributions for this site [Location <String>]: Location. [NumberOfWorker <Int32?>]: NumberOfWorkers. [HostNameSslState <IHostNameSslState[]>]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. [HostType <HostType?>]: Indicates whether the hostname is a standard or repository hostname. [Name <String>]: Hostname. [SslState <SslState?>]: SSL type. [Thumbprint <String>]: SSL certificate thumbprint. [ToUpdate <Boolean?>]: Set to <code>true</code> to update existing hostname. [VirtualIP <String>]: Virtual IP address assigned to the hostname if IP based SSL is enabled. [HostNamesDisabled <Boolean?>]: <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. If <code>true</code>, the app is only accessible via API management process. [HostingEnvironmentProfileId <String>]: Resource ID of the App Service Environment. [HttpsOnly <Boolean?>]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests [HyperV <Boolean?>]: Hyper-V sandbox. [IdentityType <ManagedServiceIdentityType?>]: Type of managed service identity. [IdentityUserAssignedIdentity <IManagedServiceIdentityUserAssignedIdentities>]: The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} [(Any) <IComponentsSchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties>]: This indicates any property can be added to this object. [IsXenon <Boolean?>]: Obsolete: Hyper-V sandbox. [RedundancyMode <RedundancyMode?>]: Site redundancy mode [Reserved <Boolean?>]: <code>true</code> if reserved; otherwise, <code>false</code>. [ScmSiteAlsoStopped <Boolean?>]: <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code>. [ServerFarmId <String>]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". [SiteConfig <ISiteConfig>]: Configuration of the app. ActionType <AutoHealActionType>: ActionType - predefined action to be taken IsPushEnabled <Boolean>: Gets or sets a flag indicating whether the Push endpoint is enabled. [ActionMinProcessExecutionTime <String>]: MinProcessExecutionTime - minimum time the process must execute before taking the action [AlwaysOn <Boolean?>]: <code>true</code> if Always On is enabled; otherwise, <code>false</code>. [ApiDefinitionUrl <String>]: The URL of the API definition. [AppCommandLine <String>]: App command line to launch. [AppSetting <INameValuePair[]>]: Application settings. [Name <String>]: Pair name. [Value <String>]: Pair value. [AutoHealEnabled <Boolean?>]: <code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>. [AutoSwapSlotName <String>]: Auto-swap slot name. [AzureStorageAccount <ISiteConfigAzureStorageAccounts>]: User-provided Azure storage accounts. [(Any) <IAzureStorageInfoValue>]: This indicates any property can be added to this object. [ConnectionString <IConnStringInfo[]>]: Connection strings. [ConnectionString <String>]: Connection string value. [Name <String>]: Name of connection string. [Type <ConnectionStringType?>]: Type of database. [CorAllowedOrigin <String[]>]: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. [CorSupportCredentials <Boolean?>]: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. [CustomActionExe <String>]: Executable to be run. [CustomActionParameter <String>]: Parameters for the executable. [DefaultDocument <String[]>]: Default documents. [DetailedErrorLoggingEnabled <Boolean?>]: <code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>. [DocumentRoot <String>]: Document root. [DynamicTagsJson <String>]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. [ExperimentRampUpRule <IRampUpRule[]>]: List of ramp-up rules. [ActionHostName <String>]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. [ChangeDecisionCallbackUrl <String>]: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/ [ChangeIntervalInMinute <Int32?>]: Specifies interval in minutes to reevaluate ReroutePercentage. [ChangeStep <Double?>]: In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. [MaxReroutePercentage <Double?>]: Specifies upper boundary below which ReroutePercentage will stay. [MinReroutePercentage <Double?>]: Specifies lower boundary above which ReroutePercentage will stay. [Name <String>]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. [ReroutePercentage <Double?>]: Percentage of the traffic which will be redirected to <code>ActionHostName</code>. [FtpsState <FtpsState?>]: State of FTP / FTPS service [HandlerMapping <IHandlerMapping[]>]: Handler mappings. [Argument <String>]: Command-line arguments to be passed to the script processor. [Extension <String>]: Requests with this extension will be handled using the specified FastCGI application. [ScriptProcessor <String>]: The absolute path to the FastCGI application. [Http20Enabled <Boolean?>]: Http20Enabled: configures a web site to allow clients to connect over http2.0 [HttpLoggingEnabled <Boolean?>]: <code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>. [IPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for main. IPAddress <String>: IP address the security restriction is valid for. [SubnetMask <String>]: Subnet mask for the range of IP addresses the restriction is valid for. [Action <String>]: Allow or Deny access for this IP range. [Description <String>]: IP restriction rule description. [Name <String>]: IP restriction rule name. [Priority <Int32?>]: Priority of IP restriction rule. [SubnetTrafficTag <Int32?>]: (internal) Subnet traffic tag [Tag <IPFilterTag?>]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. [VnetSubnetResourceId <String>]: Virtual network resource id [VnetTrafficTag <Int32?>]: (internal) Vnet traffic tag [JavaContainer <String>]: Java container. [JavaContainerVersion <String>]: Java container version. [JavaVersion <String>]: Java version. [LimitMaxDiskSizeInMb <Int64?>]: Maximum allowed disk size usage in MB. [LimitMaxMemoryInMb <Int64?>]: Maximum allowed memory usage in MB. [LimitMaxPercentageCpu <Double?>]: Maximum allowed CPU usage percentage. [LinuxFxVersion <String>]: Linux App Framework and version [LoadBalancing <SiteLoadBalancing?>]: Site load balancing. [LocalMySqlEnabled <Boolean?>]: <code>true</code> to enable local MySQL; otherwise, <code>false</code>. [LogsDirectorySizeLimit <Int32?>]: HTTP logs directory size limit. [MachineKeyDecryption <String>]: Algorithm used for decryption. [MachineKeyDecryptionKey <String>]: Decryption key. [MachineKeyValidation <String>]: MachineKey validation. [MachineKeyValidationKey <String>]: Validation key. [ManagedPipelineMode <ManagedPipelineMode?>]: Managed pipeline mode. [ManagedServiceIdentityId <Int32?>]: Managed Service Identity Id [MinTlsVersion <SupportedTlsVersions?>]: MinTlsVersion: configures the minimum version of TLS required for SSL requests [NetFrameworkVersion <String>]: .NET Framework version. [NodeVersion <String>]: Version of Node.js. [NumberOfWorker <Int32?>]: Number of workers. [PhpVersion <String>]: Version of PHP. [PublishingUsername <String>]: Publishing user name. [PushKind <String>]: Kind of resource. [PythonVersion <String>]: Version of Python. [RemoteDebuggingEnabled <Boolean?>]: <code>true</code> if remote debugging is enabled; otherwise, <code>false</code>. [RemoteDebuggingVersion <String>]: Remote debugging version. [RequestCount <Int32?>]: Request Count. [RequestTimeInterval <String>]: Time interval. [RequestTracingEnabled <Boolean?>]: <code>true</code> if request tracing is enabled; otherwise, <code>false</code>. [RequestTracingExpirationTime <DateTime?>]: Request tracing expiration time. [ReservedInstanceCount <Int32?>]: Number of reserved instances. This setting only applies to the Consumption Plan [ScmIPSecurityRestriction <IIPSecurityRestriction[]>]: IP security restrictions for scm. [ScmIPSecurityRestrictionsUseMain <Boolean?>]: IP security restrictions for scm to use main. [ScmType <ScmType?>]: SCM type. [SlowRequestCount <Int32?>]: Request Count. [SlowRequestTimeInterval <String>]: Time interval. [SlowRequestTimeTaken <String>]: Time taken. [TagWhitelistJson <String>]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. [TagsRequiringAuth <String>]: Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint. Tags can consist of alphanumeric characters and the following: '_', '@', '#', '.', ':', '-'. Validation should be performed at the PushRequestHandler. [TracingOption <String>]: Tracing options. [TriggerPrivateBytesInKb <Int32?>]: A rule based on private bytes. [TriggerStatusCode <IStatusCodesBasedTrigger[]>]: A rule based on status codes. [Count <Int32?>]: Request Count. [Status <Int32?>]: HTTP status code. [SubStatus <Int32?>]: Request Sub Status. [TimeInterval <String>]: Time interval. [Win32Status <Int32?>]: Win32 error code. [Use32BitWorkerProcess <Boolean?>]: <code>true</code> to use 32-bit worker process; otherwise, <code>false</code>. [VirtualApplication <IVirtualApplication[]>]: Virtual applications. [PhysicalPath <String>]: Physical path. [PreloadEnabled <Boolean?>]: <code>true</code> if preloading is enabled; otherwise, <code>false</code>. [VirtualDirectory <IVirtualDirectory[]>]: Virtual directories for virtual application. [PhysicalPath <String>]: Physical path. [VirtualPath <String>]: Path to virtual application. [VirtualPath <String>]: Virtual path. [VnetName <String>]: Virtual Network name. [WebSocketsEnabled <Boolean?>]: <code>true</code> if WebSocket is enabled; otherwise, <code>false</code>. [WindowsFxVersion <String>]: Xenon App Framework and version [XManagedServiceIdentityId <Int32?>]: Explicit Managed Service Identity Id .Link https://docs.microsoft.com/en-us/powershell/module/az.functions/update-azfunctionapp #> function Update-AzFunctionApp { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISite])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Profile('latest-2019-04-30')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Unique name of the app to create or update. # To create or update a deployment slot, use the {slot} parameter. ${Name}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] [System.String] # Name of the resource group to which the resource belongs. ${ResourceGroupName}, [Parameter(ParameterSetName='Update')] [Parameter(ParameterSetName='UpdateExpanded')] [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='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISitePatchResource] # ARM resource for a site. # To construct, see NOTES section for SITEENVELOPE properties and create a hash table. ${SiteEnvelope}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. # Default is <code>true</code>. ${ClientAffinityEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. # Default is <code>false</code>. ${ClientCertEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # client certificate authentication comma-separated exclusion paths ${ClientCertExclusionPath}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150801.ICloningInfoAppSettingsOverrides]))] [System.Collections.Hashtable] # Application setting overrides for cloned app. # If specified, these settings override the settings cloned from source app. # Otherwise, application settings from source app are retained. ${CloningInfoAppSettingsOverride}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to clone custom hostnames from source app; otherwise, <code>false</code>. ${CloningInfoCloneCustomHostName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to clone source control from source app; otherwise, <code>false</code>. ${CloningInfoCloneSourceControl}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to configure load balancing for source and destination app. ${CloningInfoConfigureLoadBalancing}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Correlation ID of cloning operation. # This ID ties multiple cloning operationstogether to use the same snapshot. ${CloningInfoCorrelationId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # App Service Environment. ${CloningInfoHostingEnvironment}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to overwrite destination app; otherwise, <code>false</code>. ${CloningInfoOverwrite}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # ARM resource ID of the source app. # App resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots. ${CloningInfoSourceWebAppId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Location of source app ex: West US or North Europe ${CloningInfoSourceWebAppLocation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # 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}. ${CloningInfoTrafficManagerProfileId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Name of Traffic Manager profile to create. # This is only needed if Traffic Manager profile does not already exist. ${CloningInfoTrafficManagerProfileName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Size of the function container. ${ContainerSize}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Int32] # Maximum allowed daily memory-time quota (applicable on dynamic apps only). ${DailyMemoryTimeQuota}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if the app is enabled; otherwise, <code>false</code>. # Setting this value to false disables the app (takes the app offline). ${Enabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IGeoDistribution[]] # GeoDistributions for this site # To construct, see NOTES section for GEODISTRIBUTION properties and create a hash table. ${GeoDistribution}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20160301.IHostNameSslState[]] # Hostname SSL states are used to manage the SSL bindings for app's hostnames. # To construct, see NOTES section for HOSTNAMESSLSTATE properties and create a hash table. ${HostNameSslState}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. # If <code>true</code>, the app is only accessible via API management process. ${HostNamesDisabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the App Service Environment. ${HostingEnvironmentProfileId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # HttpsOnly: configures a web site to accept only https requests. # Issues redirect forhttp requests ${HttpsOnly}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Hyper-V sandbox. ${HyperV}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] # Type of managed service identity. ${IdentityType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.IManagedServiceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # The list of user assigned identities associated with the resource. # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} ${IdentityUserAssignedIdentity}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # Obsolete: Hyper-V sandbox. ${IsXenon}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Kind of resource. ${Kind}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RedundancyMode])] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RedundancyMode] # Site redundancy mode ${RedundancyMode}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> if reserved; otherwise, <code>false</code>. ${Reserved}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.Management.Automation.SwitchParameter] # <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. # The default is <code>false</code>. ${ScmSiteAlsoStopped}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [System.String] # Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ${ServerFarmId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20180201.ISiteConfig] # Configuration of the app. # To construct, see NOTES section for SITECONFIG properties and create a hash table. ${SiteConfig}, [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 $mapping = @{ Update = 'Az.Functions.private\Update-AzFunctionApp_Update'; UpdateExpanded = 'Az.Functions.private\Update-AzFunctionApp_UpdateExpanded'; UpdateViaIdentity = 'Az.Functions.private\Update-AzFunctionApp_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Az.Functions.private\Update-AzFunctionApp_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # SIG # Begin signature block # MIIkWAYJKoZIhvcNAQcCoIIkSTCCJEUCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBE5vjY7D/n0JUc # QUQVxqYmDtOQAXhHxOf4MP9ll0qswKCCDYEwggX/MIID56ADAgECAhMzAAABUZ6N # j0Bxow5BAAAAAAFRMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMTkwNTAyMjEzNzQ2WhcNMjAwNTAyMjEzNzQ2WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQCVWsaGaUcdNB7xVcNmdfZiVBhYFGcn8KMqxgNIvOZWNH9JYQLuhHhmJ5RWISy1 # oey3zTuxqLbkHAdmbeU8NFMo49Pv71MgIS9IG/EtqwOH7upan+lIq6NOcw5fO6Os # +12R0Q28MzGn+3y7F2mKDnopVu0sEufy453gxz16M8bAw4+QXuv7+fR9WzRJ2CpU # 62wQKYiFQMfew6Vh5fuPoXloN3k6+Qlz7zgcT4YRmxzx7jMVpP/uvK6sZcBxQ3Wg # B/WkyXHgxaY19IAzLq2QiPiX2YryiR5EsYBq35BP7U15DlZtpSs2wIYTkkDBxhPJ # IDJgowZu5GyhHdqrst3OjkSRAgMBAAGjggF+MIIBejAfBgNVHSUEGDAWBgorBgEE # AYI3TAgBBggrBgEFBQcDAzAdBgNVHQ4EFgQUV4Iarkq57esagu6FUBb270Zijc8w # UAYDVR0RBEkwR6RFMEMxKTAnBgNVBAsTIE1pY3Jvc29mdCBPcGVyYXRpb25zIFB1 # ZXJ0byBSaWNvMRYwFAYDVQQFEw0yMzAwMTIrNDU0MTM1MB8GA1UdIwQYMBaAFEhu # ZOVQBdOCqhc3NyK1bajKdQKVMFQGA1UdHwRNMEswSaBHoEWGQ2h0dHA6Ly93d3cu # bWljcm9zb2Z0LmNvbS9wa2lvcHMvY3JsL01pY0NvZFNpZ1BDQTIwMTFfMjAxMS0w # Ny0wOC5jcmwwYQYIKwYBBQUHAQEEVTBTMFEGCCsGAQUFBzAChkVodHRwOi8vd3d3 # Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2NlcnRzL01pY0NvZFNpZ1BDQTIwMTFfMjAx # MS0wNy0wOC5jcnQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQsFAAOCAgEAWg+A # rS4Anq7KrogslIQnoMHSXUPr/RqOIhJX+32ObuY3MFvdlRElbSsSJxrRy/OCCZdS # se+f2AqQ+F/2aYwBDmUQbeMB8n0pYLZnOPifqe78RBH2fVZsvXxyfizbHubWWoUf # NW/FJlZlLXwJmF3BoL8E2p09K3hagwz/otcKtQ1+Q4+DaOYXWleqJrJUsnHs9UiL # crVF0leL/Q1V5bshob2OTlZq0qzSdrMDLWdhyrUOxnZ+ojZ7UdTY4VnCuogbZ9Zs # 9syJbg7ZUS9SVgYkowRsWv5jV4lbqTD+tG4FzhOwcRQwdb6A8zp2Nnd+s7VdCuYF # sGgI41ucD8oxVfcAMjF9YX5N2s4mltkqnUe3/htVrnxKKDAwSYliaux2L7gKw+bD # 1kEZ/5ozLRnJ3jjDkomTrPctokY/KaZ1qub0NUnmOKH+3xUK/plWJK8BOQYuU7gK # YH7Yy9WSKNlP7pKj6i417+3Na/frInjnBkKRCJ/eYTvBH+s5guezpfQWtU4bNo/j # 8Qw2vpTQ9w7flhH78Rmwd319+YTmhv7TcxDbWlyteaj4RK2wk3pY1oSz2JPE5PNu # Nmd9Gmf6oePZgy7Ii9JLLq8SnULV7b+IP0UXRY9q+GdRjM2AEX6msZvvPCIoG0aY # HQu9wZsKEK2jqvWi8/xdeeeSI9FN6K1w4oVQM4Mwggd6MIIFYqADAgECAgphDpDS # AAAAAAADMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJVUzETMBEGA1UECBMK # V2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0 # IENvcnBvcmF0aW9uMTIwMAYDVQQDEylNaWNyb3NvZnQgUm9vdCBDZXJ0aWZpY2F0 # ZSBBdXRob3JpdHkgMjAxMTAeFw0xMTA3MDgyMDU5MDlaFw0yNjA3MDgyMTA5MDla # MH4xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS # ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMT # H01pY3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBIDIwMTEwggIiMA0GCSqGSIb3DQEB # AQUAA4ICDwAwggIKAoICAQCr8PpyEBwurdhuqoIQTTS68rZYIZ9CGypr6VpQqrgG # OBoESbp/wwwe3TdrxhLYC/A4wpkGsMg51QEUMULTiQ15ZId+lGAkbK+eSZzpaF7S # 35tTsgosw6/ZqSuuegmv15ZZymAaBelmdugyUiYSL+erCFDPs0S3XdjELgN1q2jz # y23zOlyhFvRGuuA4ZKxuZDV4pqBjDy3TQJP4494HDdVceaVJKecNvqATd76UPe/7 # 4ytaEB9NViiienLgEjq3SV7Y7e1DkYPZe7J7hhvZPrGMXeiJT4Qa8qEvWeSQOy2u # M1jFtz7+MtOzAz2xsq+SOH7SnYAs9U5WkSE1JcM5bmR/U7qcD60ZI4TL9LoDho33 # X/DQUr+MlIe8wCF0JV8YKLbMJyg4JZg5SjbPfLGSrhwjp6lm7GEfauEoSZ1fiOIl # XdMhSz5SxLVXPyQD8NF6Wy/VI+NwXQ9RRnez+ADhvKwCgl/bwBWzvRvUVUvnOaEP # 6SNJvBi4RHxF5MHDcnrgcuck379GmcXvwhxX24ON7E1JMKerjt/sW5+v/N2wZuLB # l4F77dbtS+dJKacTKKanfWeA5opieF+yL4TXV5xcv3coKPHtbcMojyyPQDdPweGF # RInECUzF1KVDL3SV9274eCBYLBNdYJWaPk8zhNqwiBfenk70lrC8RqBsmNLg1oiM # CwIDAQABo4IB7TCCAekwEAYJKwYBBAGCNxUBBAMCAQAwHQYDVR0OBBYEFEhuZOVQ # BdOCqhc3NyK1bajKdQKVMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMAsGA1Ud # DwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFHItOgIxkEO5FAVO # 4eqnxzHRI4k0MFoGA1UdHwRTMFEwT6BNoEuGSWh0dHA6Ly9jcmwubWljcm9zb2Z0 # LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01pY1Jvb0NlckF1dDIwMTFfMjAxMV8wM18y # Mi5jcmwwXgYIKwYBBQUHAQEEUjBQME4GCCsGAQUFBzAChkJodHRwOi8vd3d3Lm1p # Y3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dDIwMTFfMjAxMV8wM18y # Mi5jcnQwgZ8GA1UdIASBlzCBlDCBkQYJKwYBBAGCNy4DMIGDMD8GCCsGAQUFBwIB # FjNodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2RvY3MvcHJpbWFyeWNw # cy5odG0wQAYIKwYBBQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AcABvAGwAaQBjAHkA # XwBzAHQAYQB0AGUAbQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAGfyhqWY # 4FR5Gi7T2HRnIpsLlhHhY5KZQpZ90nkMkMFlXy4sPvjDctFtg/6+P+gKyju/R6mj # 82nbY78iNaWXXWWEkH2LRlBV2AySfNIaSxzzPEKLUtCw/WvjPgcuKZvmPRul1LUd # d5Q54ulkyUQ9eHoj8xN9ppB0g430yyYCRirCihC7pKkFDJvtaPpoLpWgKj8qa1hJ # Yx8JaW5amJbkg/TAj/NGK978O9C9Ne9uJa7lryft0N3zDq+ZKJeYTQ49C/IIidYf # wzIY4vDFLc5bnrRJOQrGCsLGra7lstnbFYhRRVg4MnEnGn+x9Cf43iw6IGmYslmJ # aG5vp7d0w0AFBqYBKig+gj8TTWYLwLNN9eGPfxxvFX1Fp3blQCplo8NdUmKGwx1j # NpeG39rz+PIWoZon4c2ll9DuXWNB41sHnIc+BncG0QaxdR8UvmFhtfDcxhsEvt9B # xw4o7t5lL+yX9qFcltgA1qFGvVnzl6UJS0gQmYAf0AApxbGbpT9Fdx41xtKiop96 # eiL6SJUfq/tHI4D1nvi/a7dLl+LrdXga7Oo3mXkYS//WsyNodeav+vyL6wuA6mk7 # r/ww7QRMjt/fdW1jkT3RnVZOT7+AVyKheBEyIXrvQQqxP/uozKRdwaGIm1dxVk5I # RcBCyZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIWLTCCFikCAQEwgZUwfjELMAkG # A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx # HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z # b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAVGejY9AcaMOQQAAAAABUTAN # BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor # BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQg57uSQ8a4 # x6lw2w6cSI+g36P6JAAHU9jW6KrE1LSMBxAwQgYKKwYBBAGCNwIBDDE0MDKgFIAS # AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN # BgkqhkiG9w0BAQEFAASCAQBwpIToUadp/X39TRfrVbD5s7JA9yRrwMbOmZK2Fl2+ # lzrAC9/ELGHJh2iZqBctBcbL+rSmfyfAMQQi42s3T5uGLQ1z89GgkJEF8zzxXcqK # J6IINywW9ido6ZvS/JMNjhYo++fl+r/sVFgDNGPjTIv7qTt1OmLNR/vweJx0NuzZ # CtZOXUvHIJ4fw9MU5Qi7CSYZxSEjjXrN0X5xwcihr0f3po5fDLV9Fl9rdcFmFGsO # 7Z6+U3bklOQgPhXIarfDeF1/gT0Xxq/dJI6c4rIu+7ECwuqkujO2pql58Vjbli9f # L7kPHO2J5q2AD8ReKDta7Nw7z7ndvYV7Sgxw8vMummSzoYITtzCCE7MGCisGAQQB # gjcDAwExghOjMIITnwYJKoZIhvcNAQcCoIITkDCCE4wCAQMxDzANBglghkgBZQME # AgEFADCCAVgGCyqGSIb3DQEJEAEEoIIBRwSCAUMwggE/AgEBBgorBgEEAYRZCgMB # MDEwDQYJYIZIAWUDBAIBBQAEIFpCAtlUi17CRX04ARMyI87UGZx6e6cBjX2Vi5vv # CpJ+AgZdr09yX9QYEzIwMTkxMTA3MTcxODA5LjQwNVowBwIBAYACAfSggdSkgdEw # gc4xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS # ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsT # IE1pY3Jvc29mdCBPcGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFs # ZXMgVFNTIEVTTjpGNTI4LTM3NzctOEE3NjElMCMGA1UEAxMcTWljcm9zb2Z0IFRp # bWUtU3RhbXAgU2VydmljZaCCDx8wggT1MIID3aADAgECAhMzAAABApFjXMW0Wbk8 # AAAAAAECMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpX # YXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQg # Q29ycG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAy # MDEwMB4XDTE5MDkwNjIwNDExNloXDTIwMTIwNDIwNDExNlowgc4xCzAJBgNVBAYT # AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD # VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBP # cGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjpG # NTI4LTM3NzctOEE3NjElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vy # dmljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMR9cB7FDTMrBI8h # /TzUcyyH/WMnyW+TxPx308rF22K65K6d0Cg/VQyr3xtoT+ir0MEhZ/hvXY5sO8F4 # HSu2frknt30PYRTQW0I1gzgNc7TggbcxfY4JcXStqM0/3NGZusiKKDl8UvFV85ir # GYuiP/b36nqe6T5zk1gVIGHx5nFIdfPyHjsnoWX6gOxfqIDavfFeb/Ak7lKqZAHU # gdAZU08KCYkVKYLtZbaRyQ2W1/KA7cPfcT17u+r6dJHZNfMqnCWriLZz9sTdkpTn # QgvBr6LdLJ8b0e24taMX98ySqyenc1bBfoa49rasKev/Ao17wc3sTO1POEkJQzOi # b6OwiNcCAwEAAaOCARswggEXMB0GA1UdDgQWBBQ/AgaO19V67EZWg1gyCfv3uVC1 # tjAfBgNVHSMEGDAWgBTVYzpcijGQ80N7fEYbxTNoWoVtVTBWBgNVHR8ETzBNMEug # SaBHhkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9N # aWNUaW1TdGFQQ0FfMjAxMC0wNy0wMS5jcmwwWgYIKwYBBQUHAQEETjBMMEoGCCsG # AQUFBzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1Rp # bVN0YVBDQV8yMDEwLTA3LTAxLmNydDAMBgNVHRMBAf8EAjAAMBMGA1UdJQQMMAoG # CCsGAQUFBwMIMA0GCSqGSIb3DQEBCwUAA4IBAQCdMoMxXiGN6lYPaFv/uIVhdPr5 # 0PRE0H+4jZwUEOrTU8vJLF7ARizMeK/ZmxczuJPQhm7KSZBJXp+FmrX5jRE+gD7+ # gkPlTaRTiy+A/3jVOFJiPChh17Zxz/fSqtbKlejkG7LJv4Ptg/1u7qVI3bNGge85 # BkDt0xlTUsK8VxA2zGQSq4JfkF5TSPCGHQjmKdgJTfiZadCWQ2j/K5W0QAzPxNhr # j3QetJp9Dqlr04EiV1IvZNAhY00TUByBGGhTlEclYTCzhGG7Agv2+qGkOv1tmeRj # qLCETuF3/+WQWjxEzHfjMRsbDfhrcuAlAXZMrJktBr+87FwXNzt/81FwkOOkMIIG # cTCCBFmgAwIBAgIKYQmBKgAAAAAAAjANBgkqhkiG9w0BAQsFADCBiDELMAkGA1UE # BhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAc # BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEyMDAGA1UEAxMpTWljcm9zb2Z0 # IFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTAwHhcNMTAwNzAxMjEzNjU1 # WhcNMjUwNzAxMjE0NjU1WjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGlu # Z3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBv # cmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDCC # ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKkdDbx3EYo6IOz8E5f1+n9p # lGt0VBDVpQoAgoX77XxoSyxfxcPlYcJ2tz5mK1vwFVMnBDEfQRsalR3OCROOfGEw # WbEwRA/xYIiEVEMM1024OAizQt2TrNZzMFcmgqNFDdDq9UeBzb8kYDJYYEbyWEeG # MoQedGFnkV+BVLHPk0ySwcSmXdFhE24oxhr5hoC732H8RsEnHSRnEnIaIYqvS2SJ # UGKxXf13Hz3wV3WsvYpCTUBR0Q+cBj5nf/VmwAOWRH7v0Ev9buWayrGo8noqCjHw # 2k4GkbaICDXoeByw6ZnNPOcvRLqn9NxkvaQBwSAJk3jN/LzAyURdXhacAQVPIk0C # AwEAAaOCAeYwggHiMBAGCSsGAQQBgjcVAQQDAgEAMB0GA1UdDgQWBBTVYzpcijGQ # 80N7fEYbxTNoWoVtVTAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTALBgNVHQ8E # BAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBTV9lbLj+iiXGJo0T2U # kFvXzpoYxDBWBgNVHR8ETzBNMEugSaBHhkVodHRwOi8vY3JsLm1pY3Jvc29mdC5j # b20vcGtpL2NybC9wcm9kdWN0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcmww # WgYIKwYBBQUHAQEETjBMMEoGCCsGAQUFBzAChj5odHRwOi8vd3d3Lm1pY3Jvc29m # dC5jb20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dF8yMDEwLTA2LTIzLmNydDCBoAYD # VR0gAQH/BIGVMIGSMIGPBgkrBgEEAYI3LgMwgYEwPQYIKwYBBQUHAgEWMWh0dHA6 # Ly93d3cubWljcm9zb2Z0LmNvbS9QS0kvZG9jcy9DUFMvZGVmYXVsdC5odG0wQAYI # KwYBBQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AUABvAGwAaQBjAHkAXwBTAHQAYQB0 # AGUAbQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAAfmiFEN4sbgmD+BcQM9 # naOhIW+z66bM9TG+zwXiqf76V20ZMLPCxWbJat/15/B4vceoniXj+bzta1RXCCtR # gkQS+7lTjMz0YBKKdsxAQEGb3FwX/1z5Xhc1mCRWS3TvQhDIr79/xn/yN31aPxzy # mXlKkVIArzgPF/UveYFl2am1a+THzvbKegBvSzBEJCI8z+0DpZaPWSm8tv0E4XCf # Mkon/VWvL/625Y4zu2JfmttXQOnxzplmkIz/amJ/3cVKC5Em4jnsGUpxY517IW3D # nKOiPPp/fZZqkHimbdLhnPkd/DjYlPTGpQqWhqS9nhquBEKDuLWAmyI4ILUl5WTs # 9/S/fmNZJQ96LjlXdqJxqgaKD4kWumGnEcua2A5HmoDF0M2n0O99g/DhO3EJ3110 # mCIIYdqwUB5vvfHhAN/nMQekkzr3ZUd46PioSKv33nJ+YWtvd6mBy6cJrDm77MbL # 2IK0cs0d9LiFAR6A+xuJKlQ5slvayA1VmXqHczsI5pgt6o3gMy4SKfXAL1QnIffI # rE7aKLixqduWsqdCosnPGUFN4Ib5KpqjEWYw07t0MkvfY3v1mYovG8chr1m1rtxE # PJdQcdeh0sVV42neV8HR3jDA/czmTfsNv11P6Z0eGTgvvM9YBS7vDaBQNdrvCScc # 1bN+NR4Iuto229Nfj950iEkSoYIDrTCCApUCAQEwgf6hgdSkgdEwgc4xCzAJBgNV # BAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4w # HAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29m # dCBPcGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVT # TjpGNTI4LTM3NzctOEE3NjElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAg # U2VydmljZaIlCgEBMAkGBSsOAwIaBQADFQAX6b/thBTl/jMeKcc4lhOUcT39r6CB # 3jCB26SB2DCB1TELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAO # BgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEp # MCcGA1UECxMgTWljcm9zb2Z0IE9wZXJhdGlvbnMgUHVlcnRvIFJpY28xJzAlBgNV # BAsTHm5DaXBoZXIgTlRTIEVTTjo0REU5LTBDNUUtM0UwOTErMCkGA1UEAxMiTWlj # cm9zb2Z0IFRpbWUgU291cmNlIE1hc3RlciBDbG9jazANBgkqhkiG9w0BAQUFAAIF # AOFt+dwwIhgPMjAxOTExMDcxMDAzMDhaGA8yMDE5MTEwODEwMDMwOFowdDA6Bgor # BgEEAYRZCgQBMSwwKjAKAgUA4W353AIBADAHAgEAAgIb9zAHAgEAAgIapDAKAgUA # 4W9LXAIBADA2BgorBgEEAYRZCgQCMSgwJjAMBgorBgEEAYRZCgMBoAowCAIBAAID # FuNgoQowCAIBAAIDB6EgMA0GCSqGSIb3DQEBBQUAA4IBAQABcTWDYYnzlS53NQjE # p93sbfpqpI4vBbyKx/SuboY6500lflsRsVqzTAXf6Q915O/Db1eD/sndbeexW2Gr # Al67/ulywi/xGXdTJQj1tBMRV/dQeCKRaOmdTMz6SyEep3LtUL1u/Uy/ZqfB6h5A # vQvQgVyxn1f7cCPqpZyDe0aVanmwuHzFCQ7k7/B67SrxMEYWYO5CvqkDv8nvAHvg # tzU9L4NCV5pSy34/j4pGszJjvVhs3whea341MQYL8k25aHtlT4GCPkDSWT5F/KB4 # Ubu1q1UcZo6kJh7Nzrhmx+piQ64VoWS2KGkW2zO54x18CzGQ7xVSy1uZ4MaJu4kF # KzaQMYIC9TCCAvECAQEwgZMwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp # bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw # b3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAC # EzMAAAECkWNcxbRZuTwAAAAAAQIwDQYJYIZIAWUDBAIBBQCgggEyMBoGCSqGSIb3 # DQEJAzENBgsqhkiG9w0BCRABBDAvBgkqhkiG9w0BCQQxIgQgmTIFyxuCpjCMPEPr # kQxBqsPx0ryGr0m/Vc1SHj5dqD8wgeIGCyqGSIb3DQEJEAIMMYHSMIHPMIHMMIGx # BBQX6b/thBTl/jMeKcc4lhOUcT39rzCBmDCBgKR+MHwxCzAJBgNVBAYTAlVTMRMw # EQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVN # aWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0 # YW1wIFBDQSAyMDEwAhMzAAABApFjXMW0Wbk8AAAAAAECMBYEFJ0aFj06xtKChE2Z # 3vdaPr0+bUh8MA0GCSqGSIb3DQEBCwUABIIBAGN0UOLKnveOfWxgIDyLXa8mK6/P # ZhbwByCVWi5jyy7SHURxlCP2IhYZ1AcLb3RQbWL/+ZPyaAN62R+oN1begYYbRjIv # OSqSodUzB95j+i4LNcexFjFPhXfwPkM99c9lbw/6pIuGDo0hKtEGjwekB4ORjJkw # bZt5MRBK4GGdAv3NSriRzNk9PjpaNbCqSW/mX+cofgKLyT9Rhn1SQISenulKeqxF # paInaufZaFGSs/IqPqzN0aofCCGFETOsuXRUjQ/5MI1xNJ2IRtnlnxSIM3ZbFIxu # 4DqMOnBSx7WSNZeSSyrk6KUFO1DRpisFkFxpx238mCLA5FYVzvFDCOm+5Sg= # SIG # End signature block |