diff --git a/.github/workflows/dev_api.yml b/.github/workflows/dev_api.yml index 3d92bc00c7d3..53bae27dbc81 100644 --- a/.github/workflows/dev_api.yml +++ b/.github/workflows/dev_api.yml @@ -25,6 +25,67 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false + + - name: Setup PowerShell module cache + id: cacher + uses: actions/cache@v3 + with: + path: "~/.local/share/powershell/Modules" + key: ${{ runner.os }}-ModuleBuilder + + - name: Install ModuleBuilder + if: steps.cacher.outputs.cache-hit != 'true' + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module ModuleBuilder -AllowClobber -Force + + - name: Build CIPPCore Module + shell: pwsh + run: | + $ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CIPPCore" + $OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output" + + Write-Host "Building module from: $ModulePath" + Write-Host "Output directory: $OutputPath" + + # Generate function permissions before replacing the source module + $ToolsPath = Join-Path $env:GITHUB_WORKSPACE "Tools" + $ScriptPath = Join-Path $ToolsPath "Build-FunctionPermissions.ps1" + pwsh -File $ScriptPath -ModulePath $ModulePath + + # Build the module using ModuleBuilder + Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose + + # Replace the source module with the built module + Remove-Item -Path $ModulePath -Recurse -Force + Copy-Item -Path (Join-Path $OutputPath "CIPPCore") -Destination $ModulePath -Recurse -Force + + Write-Host "Module built and replaced successfully" + + # Clean up output directory + Remove-Item -Path $OutputPath -Recurse -Force + + - name: Build CippExtensions Module + shell: pwsh + run: | + $ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CippExtensions" + $OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output" + + Write-Host "Building module from: $ModulePath" + Write-Host "Output directory: $OutputPath" + + # Build the module using ModuleBuilder + Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose + + # Replace the source module with the built module + Remove-Item -Path $ModulePath -Recurse -Force + Copy-Item -Path (Join-Path $OutputPath "CippExtensions") -Destination $ModulePath -Recurse -Force + + Write-Host "Module built and replaced successfully" + + # Clean up output directory + Remove-Item -Path $OutputPath -Recurse -Force - name: Login to Azure uses: azure/login@v2 diff --git a/.github/workflows/dev_cippahmcc.yml b/.github/workflows/dev_cippahmcc.yml deleted file mode 100644 index 545a60fa955e..000000000000 --- a/.github/workflows/dev_cippahmcc.yml +++ /dev/null @@ -1,30 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action -# More GitHub Actions for Azure: https://github.com/Azure/actions - -name: Build and deploy Powershell project to Azure Function App - cippahmcc - -on: - push: - branches: - - dev - workflow_dispatch: - -env: - AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root - -jobs: - deploy: - runs-on: windows-latest - - steps: - - name: 'Checkout GitHub Action' - uses: actions/checkout@v4 - - - name: 'Run Azure Functions Action' - uses: Azure/functions-action@v1 - id: fa - with: - app-name: 'cippahmcc' - slot-name: 'Production' - package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D6317AAB492A474D91B7A6CD29E53BA3 }} \ No newline at end of file diff --git a/.github/workflows/dev_cippmpiii.yml b/.github/workflows/dev_cippmpiii.yml deleted file mode 100644 index 6f9742a83d1d..000000000000 --- a/.github/workflows/dev_cippmpiii.yml +++ /dev/null @@ -1,30 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action -# More GitHub Actions for Azure: https://github.com/Azure/actions - -name: Build and deploy Powershell project to Azure Function App - cippmpiii - -on: - push: - branches: - - dev - workflow_dispatch: - -env: - AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: 'Checkout GitHub Action' - uses: actions/checkout@v4 - - - name: 'Run Azure Functions Action' - uses: Azure/functions-action@v1 - id: fa - with: - app-name: 'cippmpiii' - slot-name: 'Production' - package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_BC5F21E993034DF2A3793489CE4705E4 }} \ No newline at end of file diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index b1a2146b9fad..8230488fe999 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -17,7 +17,9 @@ jobs: steps: # Checkout the repository - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + persist-credentials: false # Read and Trim Version - name: Read and Trim Version @@ -68,6 +70,68 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Setup PowerShell module cache + id: cacher + uses: actions/cache@v3 + with: + path: "~/.local/share/powershell/Modules" + key: ${{ runner.os }}-ModuleBuilder + + - name: Install ModuleBuilder + if: steps.cacher.outputs.cache-hit != 'true' + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module ModuleBuilder -AllowClobber -Force + + - name: Build CIPPCore Module + shell: pwsh + run: | + $ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CIPPCore" + $OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output" + + Write-Host "Building module from: $ModulePath" + Write-Host "Output directory: $OutputPath" + + # Generate function permissions before replacing the source module + $ToolsPath = Join-Path $env:GITHUB_WORKSPACE "Tools" + $ScriptPath = Join-Path $ToolsPath "Build-FunctionPermissions.ps1" + pwsh -File $ScriptPath -ModulePath $ModulePath + + # Build the module using ModuleBuilder + Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose + + # Replace the source module with the built module + Remove-Item -Path $ModulePath -Recurse -Force + Copy-Item -Path (Join-Path $OutputPath "CIPPCore") -Destination $ModulePath -Recurse -Force + + Write-Host "Module built and replaced successfully" + + # Clean up output directory + Remove-Item -Path $OutputPath -Recurse -Force + + - name: Build CippExtensions Module + shell: pwsh + run: | + $ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CippExtensions" + $OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output" + + Write-Host "Building module from: $ModulePath" + Write-Host "Output directory: $OutputPath" + + # Build the module using ModuleBuilder + Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose + + # Replace the source module with the built module + Remove-Item -Path $ModulePath -Recurse -Force + Copy-Item -Path (Join-Path $OutputPath "CippExtensions") -Destination $ModulePath -Recurse -Force + + Write-Host "Module built and replaced successfully" + + # Clean up output directory + Remove-Item -Path $OutputPath -Recurse -Force + + # Create ZIP File in a New Source Directory - name: Prepare and Zip Release Files if: env.tag_exists == 'false' @@ -91,4 +155,4 @@ jobs: container_name: cipp-api source_folder: src/releases/ destination_folder: / - delete_if_exists: true \ No newline at end of file + delete_if_exists: true diff --git a/.github/workflows/upload_dev.yml b/.github/workflows/upload_dev.yml index 4ed3159ff8cf..85048dc9fb61 100644 --- a/.github/workflows/upload_dev.yml +++ b/.github/workflows/upload_dev.yml @@ -14,7 +14,69 @@ jobs: steps: # Checkout the repository - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Setup PowerShell module cache + id: cacher + uses: actions/cache@v3 + with: + path: "~/.local/share/powershell/Modules" + key: ${{ runner.os }}-ModuleBuilder + + - name: Install ModuleBuilder + if: steps.cacher.outputs.cache-hit != 'true' + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module ModuleBuilder -AllowClobber -Force + + - name: Build CIPPCore Module + shell: pwsh + run: | + $ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CIPPCore" + $OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output" + + Write-Host "Building module from: $ModulePath" + Write-Host "Output directory: $OutputPath" + + # Generate function permissions before replacing the source module + $ToolsPath = Join-Path $env:GITHUB_WORKSPACE "Tools" + $ScriptPath = Join-Path $ToolsPath "Build-FunctionPermissions.ps1" + pwsh -File $ScriptPath -ModulePath $ModulePath + + # Build the module using ModuleBuilder + Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose + + # Replace the source module with the built module + Remove-Item -Path $ModulePath -Recurse -Force + Copy-Item -Path (Join-Path $OutputPath "CIPPCore") -Destination $ModulePath -Recurse -Force + + Write-Host "Module built and replaced successfully" + + # Clean up output directory + Remove-Item -Path $OutputPath -Recurse -Force + + - name: Build CippExtensions Module + shell: pwsh + run: | + $ModulePath = Join-Path $env:GITHUB_WORKSPACE "Modules/CippExtensions" + $OutputPath = Join-Path $env:GITHUB_WORKSPACE "Output" + + Write-Host "Building module from: $ModulePath" + Write-Host "Output directory: $OutputPath" + + # Build the module using ModuleBuilder + Build-Module -SourcePath $ModulePath -OutputDirectory $OutputPath -Verbose + + # Replace the source module with the built module + Remove-Item -Path $ModulePath -Recurse -Force + Copy-Item -Path (Join-Path $OutputPath "CippExtensions") -Destination $ModulePath -Recurse -Force + + Write-Host "Module built and replaced successfully" + + # Clean up output directory + Remove-Item -Path $OutputPath -Recurse -Force # Create ZIP File in a New Source Directory - name: Prepare and Zip Release Files diff --git a/.gitignore b/.gitignore index 4bb4cb1069b0..b88925ba01ed 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ Logs ExcludedTenants SendNotifications/config.json .env - +Output/ # Cursor IDE .cursor/rules diff --git a/CIPPTimers.json b/CIPPTimers.json index 4bbf8518afc6..0005053fd75c 100644 --- a/CIPPTimers.json +++ b/CIPPTimers.json @@ -84,7 +84,7 @@ "Id": "4d80205c-674d-4fc1-abeb-a1ec37e0d796", "Command": "Start-DriftStandardsOrchestrator", "Description": "Orchestrator to process drift standards", - "Cron": "0 0 */1 * * *", + "Cron": "0 0 */12 * * *", "Priority": 5, "RunOnProcessor": true, "PreferredProcessor": "standards" @@ -213,5 +213,14 @@ "Priority": 20, "RunOnProcessor": true, "IsSystem": true + }, + { + "Id": "b8f3c2e1-5d4a-4f7b-9a2c-1e6d8f3b5a7c", + "Command": "Start-BackupRetentionCleanup", + "Description": "Timer to cleanup old backups based on retention policy", + "Cron": "0 0 2 * * *", + "Priority": 21, + "RunOnProcessor": true, + "IsSystem": true } ] diff --git a/Modules/Az.Accounts/4.0.2/.signature.p7s b/Modules/Az.Accounts/4.0.2/.signature.p7s deleted file mode 100644 index 9be7f47f9af7..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/.signature.p7s and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Accounts.format.ps1xml b/Modules/Az.Accounts/4.0.2/Accounts.format.ps1xml deleted file mode 100644 index 1b64518e4625..000000000000 --- a/Modules/Az.Accounts/4.0.2/Accounts.format.ps1xml +++ /dev/null @@ -1,555 +0,0 @@ - - - - - AzureErrorRecords - - Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord - Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord - Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord - - - - - - Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord - - AzureErrorRecords - - - $_.InvocationInfo.HistoryId - - - - - - - - ErrorCategory - - - ErrorDetail - - - - "{" + $_.InvocationInfo.MyCommand + "}" - - - - $_.InvocationInfo.Line - - - - $_.InvocationInfo.PositionMessage - - - - $_.InvocationInfo.BoundParameters - - - - $_.InvocationInfo.UnboundParameters - - - - $_.InvocationInfo.HistoryId - - - - - - - AzureErrorRecords - $_.GetType() -eq [Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord] - - - - - RequestId - - - Message - - - ServerMessage - - - ServerResponse - - - RequestMessage - - - - "{" + $_.InvocationInfo.MyCommand + "}" - - - - $_.InvocationInfo.Line - - - - $_.InvocationInfo.PositionMessage - - - StackTrace - - - - $_.InvocationInfo.HistoryId - - - - - - - AzureErrorRecords - $_.GetType() -eq [Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord] - - - - - Message - - - StackTrace - - - - $_.Exception.GetType() - - - - "{" + $_.InvocationInfo.MyCommand + "}" - - - - $_.InvocationInfo.Line - - - - $_.InvocationInfo.PositionMessage - - - - $_.InvocationInfo.HistoryId - - - - - - - - Microsoft.Azure.Commands.Profile.CommonModule.PSAzureServiceProfile - - Microsoft.Azure.Commands.Profile.CommonModule.PSAzureServiceProfile - - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Description - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAccessToken - - Microsoft.Azure.Commands.Profile.Models.PSAccessToken - - - - - - - Token - - - ExpiresOn - - - Type - - - TenantId - - - UserId - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscriptionPolicy - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscriptionPolicy - - - - - Left - - - - Left - - - - Left - - - - - - - - Left - locationPlacementId - - - Left - QuotaId - - - Left - SpendingLimit - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - - - - - - Id - - - Type - - - Tenants - - - Credential - - - TenantMap - - - CertificateThumbprint - - - - $_.ExtendedProperties.GetEnumerator() - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSConfig - - Microsoft.Azure.Commands.Profile.Models.PSConfig - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Key - - - Left - Value - - - Left - AppliesTo - - - Left - Scope - - - Left - HelpMessage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Accounts/4.0.2/Accounts.generated.format.ps1xml b/Modules/Az.Accounts/4.0.2/Accounts.generated.format.ps1xml deleted file mode 100644 index 1594465ce310..000000000000 --- a/Modules/Az.Accounts/4.0.2/Accounts.generated.format.ps1xml +++ /dev/null @@ -1,477 +0,0 @@ - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile - - - - - Left - - - - Left - - - - - - - - Left - if($null -ne $_.Context.Subscription.Name){$_.Context.Subscription.Name}else{$_.Context.Subscription.Id} - - - Left - if($null -ne $_.Context.Tenant.Name){$_.Context.Tenant.Name}else{$_.Context.Tenant.Id} - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - $_.Subscription.Name - - - Left - $_.Subscription.Id - - - Left - Account - - - Left - Environment - - - - - - - if([System.String]::IsNullOrEmpty($_.Tenant.Name)){$_.Tenant.Id}else{"$($_.Tenant.Name) ($($_.Tenant.Id))"} - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment - - Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment - - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - ResourceManagerUrl - - - Left - ActiveDirectoryAuthority - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Id - - - Left - State - - - - - - - TenantId - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Id - - - Left - TenantCategory - - - Left - Domains - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSHttpResponse - - Microsoft.Azure.Commands.Profile.Models.PSHttpResponse - - - - - - - StatusCode - - - - Content - - - - [Microsoft.Rest.HttpExtensions]::ToJson($_.Headers).ToString() - - - - Method - - - - RequestUri - - - - Version - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Accounts/4.0.2/Accounts.types.ps1xml b/Modules/Az.Accounts/4.0.2/Accounts.types.ps1xml deleted file mode 100644 index b71f31d23490..000000000000 --- a/Modules/Az.Accounts/4.0.2/Accounts.types.ps1xml +++ /dev/null @@ -1,307 +0,0 @@ - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile - - - PSStandardMembers - - - SerializationDepth - 10 - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - PSStandardMembers - - - SerializationDepth - 10 - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Core.AuthenticationStoreTokenCache - - - PSStandardMembers - - - SerializationMethod - SpecificProperties - - - PropertySerializationSet - - CacheData - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Core.ProtectedFileTokenCache - - - PSStandardMembers - - - SerializationMethod - SpecificProperties - - - PropertySerializationSet - - CacheData - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - PSStandardMembers - - - SerializationDepth - 10 - - - - - - Microsoft.Azure.Commands.Profile.Models.AzureContextConverter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Accounts/4.0.2/Az.Accounts.psd1 b/Modules/Az.Accounts/4.0.2/Az.Accounts.psd1 deleted file mode 100644 index 2ab002de9a4d..000000000000 --- a/Modules/Az.Accounts/4.0.2/Az.Accounts.psd1 +++ /dev/null @@ -1,392 +0,0 @@ -# -# Module manifest for module 'Az.Accounts' -# -# Generated by: Microsoft Corporation -# -# Generated on: 1/15/2025 -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = 'Az.Accounts.psm1' - -# Version number of this module. -ModuleVersion = '4.0.2' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = '17a2feff-488b-47f9-8729-e2cec094624c' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. - -For more information on account credential management, please visit the following: https://learn.microsoft.com/powershell/azure/authenticate-azureps' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -# RequiredModules = @() - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Microsoft.Azure.PowerShell.AssemblyLoading.dll', - 'Microsoft.Azure.PowerShell.Authentication.Abstractions.dll', - 'Microsoft.Azure.PowerShell.Authentication.dll', - 'Microsoft.Azure.PowerShell.Authenticators.dll', - 'Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll', - 'Microsoft.Azure.PowerShell.Clients.Authorization.dll', - 'Microsoft.Azure.PowerShell.Clients.Compute.dll', - 'Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll', - 'Microsoft.Azure.PowerShell.Clients.Monitor.dll', - 'Microsoft.Azure.PowerShell.Clients.Network.dll', - 'Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll', - 'Microsoft.Azure.PowerShell.Clients.ResourceManager.dll', - 'Microsoft.Azure.PowerShell.Common.dll', - 'Microsoft.Azure.PowerShell.Storage.dll', - 'Microsoft.Azure.PowerShell.Clients.Storage.Management.dll', - 'Microsoft.Azure.PowerShell.Clients.KeyVault.dll', - 'Microsoft.Azure.PowerShell.Clients.Websites.dll', - 'Hyak.Common.dll', 'Microsoft.ApplicationInsights.dll', - 'Microsoft.Azure.Common.dll', 'Microsoft.Rest.ClientRuntime.dll', - 'Microsoft.Rest.ClientRuntime.Azure.dll', - 'Microsoft.WindowsAzure.Storage.dll', - 'Microsoft.Azure.PowerShell.Clients.Aks.dll', - 'Microsoft.Azure.PowerShell.Strategies.dll', - 'Microsoft.Azure.PowerShell.Common.Share.dll', 'FuzzySharp.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'Accounts.format.ps1xml', 'Accounts.generated.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @() - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = @() - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Disable-AzDataCollection', 'Disable-AzContextAutosave', - 'Enable-AzDataCollection', 'Enable-AzContextAutosave', - 'Remove-AzEnvironment', 'Get-AzEnvironment', 'Set-AzEnvironment', - 'Add-AzEnvironment', 'Get-AzSubscription', 'Connect-AzAccount', - 'Get-AzContext', 'Set-AzContext', 'Import-AzContext', 'Save-AzContext', - 'Get-AzTenant', 'Send-Feedback', 'Resolve-AzError', 'Select-AzContext', - 'Rename-AzContext', 'Remove-AzContext', 'Clear-AzContext', - 'Disconnect-AzAccount', 'Get-AzContextAutosaveSetting', - 'Set-AzDefault', 'Get-AzDefault', 'Clear-AzDefault', - 'Register-AzModule', 'Enable-AzureRmAlias', 'Disable-AzureRmAlias', - 'Uninstall-AzureRm', 'Invoke-AzRestMethod', 'Get-AzAccessToken', - 'Open-AzSurveyLink', 'Get-AzConfig', 'Update-AzConfig', - 'Clear-AzConfig', 'Export-AzConfig', 'Import-AzConfig' - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = 'Add-AzAccount', 'Login-AzAccount', 'Remove-AzAccount', - 'Logout-AzAccount', 'Select-AzSubscription', 'Save-AzProfile', - 'Get-AzDomain', 'Invoke-AzRest', 'Set-AzConfig' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Accounts','Authentication','Environment','Subscription' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Fixed unsigned dll: - - ''System.Buffers.dll'' - - ''System.Memory.dll''' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} - - -# SIG # Begin signature block -# MIIoVQYJKoZIhvcNAQcCoIIoRjCCKEICAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDK5mtKgkmMpDXq -# ldT4F01qzQRc+NEC2lnYYNG6at2a8aCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV -# LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY -# oUhLVE+UzRihV8ooxoftsmKLb2xb7BoF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zv1NvJVOxEAFvdnPH0VC09jzXsHGcJn2O4vz -# rieeNt3/TPQKIjL3vXGJhXJULnNKyFTKNXg7ufSOcrU8XDiT4MZttfKcbT26qkWq -# PqHQfXqKe1WoAsRp5EgTvJncxu51KhPCApQ0LE8Lm4AB1vgc2pjlaFs5PZs6A2dP -# 4jEyCLzkm9wBA9QVYTj9Xzmh3Aalit4Uja13YdbO+5e5FNnBZzsVugv6p3K/pJca -# TvM3ykY3poxXPSUtzomZ/9T4E4YkHfef/YXDn5uQFN7oRyntmZ6YeN6gbTVv5cNP -# jHenOmojF45YY+wmhUrw0UgAgKPTgAsUQCQK576aolo9OCugLKUlJNPIH8Bhoan+ -# kaTwRxGd9M3O7AYFmfqGQ4UJbOS+Vb/jkMR1x5UjvaFTuXnSWcUkatMnCg33ZWkK -# iekRiX0Wtme+RLiBtUUFChE9aTU/65Dxe5VEYi6vgn3x02JJNAzbQ5qdAr3i+H5z -# 5nzxyfPSgoAWmczsWiJo4T8PRZtc/FmrwmpA3TjYihPm8lA+Are5XG+WZiJQe9OY -# dFS1z/xdasRU -# SIG # End signature block diff --git a/Modules/Az.Accounts/4.0.2/Az.Accounts.psm1 b/Modules/Az.Accounts/4.0.2/Az.Accounts.psm1 deleted file mode 100644 index d241cbf09f01..000000000000 --- a/Modules/Az.Accounts/4.0.2/Az.Accounts.psm1 +++ /dev/null @@ -1,358 +0,0 @@ -# -# Script module for module 'Az.Accounts' that is executed when 'Az.Accounts' is imported in a PowerShell session. -# -# Generated by: Microsoft Corporation -# -# Generated on: 01/15/2025 04:43:49 -# - -$PSDefaultParameterValues.Clear() -Set-StrictMode -Version Latest - -function Test-DotNet -{ - try - { - if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | Where-Object { $_ -ge 461808 }))) - { - throw ".NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher." - } - } - catch [System.Management.Automation.DriveNotFoundException] - { - Write-Verbose ".NET Framework version check failed." - } -} - -function Preload-Assembly { - param ( - [string] - $AssemblyDirectory - ) - if($PSEdition -eq 'Desktop' -and (Test-Path $AssemblyDirectory -ErrorAction Ignore)) - { - try - { - Get-ChildItem -ErrorAction Stop -Path $AssemblyDirectory -Filter "*.dll" | ForEach-Object { - try - { - Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null - } - catch { - Write-Verbose $_ - } - } - } - catch {} - } -} - -if ($true -and ($PSEdition -eq 'Desktop')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'5.1') - { - throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher." - } - - Test-DotNet -} - - - -if (Test-Path -Path "$PSScriptRoot\StartupScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\StartupScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -# [windows powershell] preload assemblies -if ($PSEdition -eq "Desktop") { - [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyProvider]::GetAssemblies().Values | ForEach-Object { - $path = $_.Item1 - try { - Add-Type -Path $path -ErrorAction Ignore | Out-Null - } - catch { - Write-Verbose "Could not preload $path" - } - } -} - -# [windows powershell] preload module alc assemblies -$preloadPath = (Join-Path $PSScriptRoot -ChildPath "ModuleAlcAssemblies") -Preload-Assembly -AssemblyDirectory $preloadPath - -if (Get-Module AzureRM.profile -ErrorAction Ignore) -{ - Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") - throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") -} - -Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll) - - -if (Test-Path -Path "$PSScriptRoot\PostImportScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\PostImportScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -$FilteredCommands = @() - -if ($Env:ACC_CLOUD -eq $null) -{ - $FilteredCommands | ForEach-Object { - - $existingDefault = $false - foreach ($key in $global:PSDefaultParameterValues.Keys) - { - if ($_ -like "$key") - { - $existingDefault = $true - } - } - - if (!$existingDefault) - { - $global:PSDefaultParameterValues.Add($_, - { - if ((Get-Command Get-AzContext -ErrorAction Ignore) -eq $null) - { - $context = Get-AzureRmContext - } - else - { - $context = Get-AzContext - } - if (($context -ne $null) -and $context.ExtendedProperties.ContainsKey("Default Resource Group")) { - $context.ExtendedProperties["Default Resource Group"] - } - }) - } - } -} - -[Microsoft.Azure.Commands.Profile.Utilities.CommandNotFoundHelper]::RegisterCommandNotFoundAction($ExecutionContext.InvokeCommand) - -# SIG # Begin signature block -# MIIoVQYJKoZIhvcNAQcCoIIoRjCCKEICAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBwt70oVUrtNYG0 -# GEoxxpfM/NAFTlcmfziPbVQ6V7MS36CCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgY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Ili8jgDNVdtqULQwasDF6RfCfqN+y3SLZ -# T4PNlqoz3O6D -# SIG # End signature block diff --git a/Modules/Az.Accounts/4.0.2/FuzzySharp.dll b/Modules/Az.Accounts/4.0.2/FuzzySharp.dll deleted file mode 100644 index 701466a04d5e..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/FuzzySharp.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Hyak.Common.dll b/Modules/Az.Accounts/4.0.2/Hyak.Common.dll deleted file mode 100644 index 18a53248894f..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Hyak.Common.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.ApplicationInsights.dll b/Modules/Az.Accounts/4.0.2/Microsoft.ApplicationInsights.dll deleted file mode 100644 index 8ef5eef2989d..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.ApplicationInsights.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.Common.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.Common.dll deleted file mode 100644 index 1c9d8e2a0ef5..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.Common.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.AssemblyLoading.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.AssemblyLoading.dll deleted file mode 100644 index 619254b637cd..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.AssemblyLoading.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll deleted file mode 100644 index e40edefc86e3..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll deleted file mode 100644 index dd57fdc38ae0..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.dll deleted file mode 100644 index 20b86e1ea990..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authentication.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll deleted file mode 100644 index 2396df000cc2..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authenticators.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authenticators.dll deleted file mode 100644 index e280f81e6722..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Authenticators.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Aks.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Aks.dll deleted file mode 100644 index e9dc594738ec..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Aks.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Authorization.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Authorization.dll deleted file mode 100644 index 7669ecfcddcf..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Authorization.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Compute.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Compute.dll deleted file mode 100644 index ce750e245544..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Compute.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll deleted file mode 100644 index 7060d4efbaac..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.KeyVault.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.KeyVault.dll deleted file mode 100644 index 0862ab671f22..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.KeyVault.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Monitor.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Monitor.dll deleted file mode 100644 index a66810241270..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Monitor.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Network.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Network.dll deleted file mode 100644 index 30d7293ef10e..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Network.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll deleted file mode 100644 index 7daf481f40b6..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll deleted file mode 100644 index 82ad5ee131a1..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll deleted file mode 100644 index 48429f19a340..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Websites.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Websites.dll deleted file mode 100644 index 95f075434894..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Clients.Websites.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll deleted file mode 100644 index f98315f4fff3..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml deleted file mode 100644 index b8018518d840..000000000000 --- a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml +++ /dev/null @@ -1,14218 +0,0 @@ - - - - - Add-AzEnvironment - Add - AzEnvironment - - Adds endpoints and metadata for an instance of Azure Resource Manager. - - - - The Add-AzEnvironment cmdlet adds endpoints and metadata to enable Azure Resource Manager cmdlets to connect with a new instance of Azure Resource Manager. The built-in environments AzureCloud and AzureChinaCloud target existing public instances of Azure Resource Manager. - - - - Add-AzEnvironment - - Name - - Specifies the name of the environment to add. - - System.String - - System.String - - - None - - - PublishSettingsFileUrl - - Specifies the URL from which .publishsettings files can be downloaded. - - System.String - - System.String - - - None - - - AzureKeyVaultDnsSuffix - - Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net - - System.String - - System.String - - - None - - - AzureKeyVaultServiceEndpointResourceId - - Resource identifier of Azure Key Vault data service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - TrafficManagerDnsSuffix - - Specifies the domain-name suffix for Azure Traffic Manager services. - - System.String - - System.String - - - None - - - SqlDatabaseDnsSuffix - - Specifies the domain-name suffix for Azure SQL Database servers. - - System.String - - System.String - - - None - - - AzureDataLakeStoreFileSystemEndpointSuffix - - Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net - - System.String - - System.String - - - None - - - AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix - - Dns Suffix of Azure Data Lake Analytics job and catalog services - - System.String - - System.String - - - None - - - EnableAdfsAuthentication - - Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. - - - System.Management.Automation.SwitchParameter - - - False - - - AdTenant - - Specifies the default Active Directory tenant. - - System.String - - System.String - - - None - - - GraphAudience - - The audience for tokens authenticating with the AD Graph Endpoint. - - System.String - - System.String - - - None - - - DataLakeAudience - - The audience for tokens authenticating with the AD Data Lake services Endpoint. - - System.String - - System.String - - - None - - - ServiceEndpoint - - Specifies the endpoint for Service Management (RDFE) requests. - - System.String - - System.String - - - None - - - BatchEndpointResourceId - - The resource identifier of the Azure Batch service that is the recipient of the requested token - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpointResourceId - - The audience for tokens authenticating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpoint - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - ManagementPortalUrl - - Specifies the URL for the Management Portal. - - System.String - - System.String - - - None - - - StorageEndpoint - - Specifies the endpoint for storage (blob, table, queue, and file) access. - - System.String - - System.String - - - None - - - ActiveDirectoryEndpoint - - Specifies the base authority for Azure Active Directory authentication. - - System.String - - System.String - - - None - - - ResourceManagerEndpoint - - Specifies the URL for Azure Resource Manager requests. - - System.String - - System.String - - - None - - - GalleryEndpoint - - Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. - - System.String - - System.String - - - None - - - ActiveDirectoryServiceEndpointResourceId - - Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. - - System.String - - System.String - - - None - - - GraphEndpoint - - Specifies the URL for Graph (Active Directory metadata) requests. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointResourceId - - The resource identifier of the Azure Analysis Services resource. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointSuffix - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointResourceId - - The resource identifier of the Azure Attestation service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointSuffix - - Dns suffix of Azure Attestation service. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointResourceId - - The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointSuffix - - Dns suffix of Azure Synapse Analytics. - - System.String - - System.String - - - None - - - ContainerRegistryEndpointSuffix - - Suffix of Azure Container Registry. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MicrosoftGraphEndpointResourceId - - The resource identifier of Microsoft Graph - - System.String - - System.String - - - None - - - MicrosoftGraphUrl - - Microsoft Graph Url - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzEnvironment - - Name - - Specifies the name of the environment to add. - - System.String - - System.String - - - None - - - ARMEndpoint - - The Azure Resource Manager endpoint - - System.String - - System.String - - - None - - - AzureKeyVaultDnsSuffix - - Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net - - System.String - - System.String - - - None - - - AzureKeyVaultServiceEndpointResourceId - - Resource identifier of Azure Key Vault data service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - DataLakeAudience - - The audience for tokens authenticating with the AD Data Lake services Endpoint. - - System.String - - System.String - - - None - - - BatchEndpointResourceId - - The resource identifier of the Azure Batch service that is the recipient of the requested token - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpointResourceId - - The audience for tokens authenticating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpoint - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - StorageEndpoint - - Specifies the endpoint for storage (blob, table, queue, and file) access. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointResourceId - - The resource identifier of the Azure Analysis Services resource. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointSuffix - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointResourceId - - The resource identifier of the Azure Attestation service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointSuffix - - Dns suffix of Azure Attestation service. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointResourceId - - The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointSuffix - - Dns suffix of Azure Synapse Analytics. - - System.String - - System.String - - - None - - - ContainerRegistryEndpointSuffix - - Suffix of Azure Container Registry. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzEnvironment - - AutoDiscover - - Discovers environments via default or configured endpoint. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Uri - - Specifies URI of the internet resource to fetch environments. - - System.Uri - - System.Uri - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ActiveDirectoryEndpoint - - Specifies the base authority for Azure Active Directory authentication. - - System.String - - System.String - - - None - - - ActiveDirectoryServiceEndpointResourceId - - Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. - - System.String - - System.String - - - None - - - AdTenant - - Specifies the default Active Directory tenant. - - System.String - - System.String - - - None - - - ARMEndpoint - - The Azure Resource Manager endpoint - - System.String - - System.String - - - None - - - AutoDiscover - - Discovers environments via default or configured endpoint. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - AzureAnalysisServicesEndpointResourceId - - The resource identifier of the Azure Analysis Services resource. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointSuffix - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointResourceId - - The resource identifier of the Azure Attestation service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointSuffix - - Dns suffix of Azure Attestation service. - - System.String - - System.String - - - None - - - AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix - - Dns Suffix of Azure Data Lake Analytics job and catalog services - - System.String - - System.String - - - None - - - AzureDataLakeStoreFileSystemEndpointSuffix - - Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net - - System.String - - System.String - - - None - - - AzureKeyVaultDnsSuffix - - Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net - - System.String - - System.String - - - None - - - AzureKeyVaultServiceEndpointResourceId - - Resource identifier of Azure Key Vault data service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpoint - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpointResourceId - - The audience for tokens authenticating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointResourceId - - The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointSuffix - - Dns suffix of Azure Synapse Analytics. - - System.String - - System.String - - - None - - - BatchEndpointResourceId - - The resource identifier of the Azure Batch service that is the recipient of the requested token - - System.String - - System.String - - - None - - - ContainerRegistryEndpointSuffix - - Suffix of Azure Container Registry. - - System.String - - System.String - - - None - - - DataLakeAudience - - The audience for tokens authenticating with the AD Data Lake services Endpoint. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableAdfsAuthentication - - Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - GalleryEndpoint - - Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. - - System.String - - System.String - - - None - - - GraphAudience - - The audience for tokens authenticating with the AD Graph Endpoint. - - System.String - - System.String - - - None - - - GraphEndpoint - - Specifies the URL for Graph (Active Directory metadata) requests. - - System.String - - System.String - - - None - - - ManagementPortalUrl - - Specifies the URL for the Management Portal. - - System.String - - System.String - - - None - - - MicrosoftGraphEndpointResourceId - - The resource identifier of Microsoft Graph - - System.String - - System.String - - - None - - - MicrosoftGraphUrl - - Microsoft Graph Url - - System.String - - System.String - - - None - - - Name - - Specifies the name of the environment to add. - - System.String - - System.String - - - None - - - PublishSettingsFileUrl - - Specifies the URL from which .publishsettings files can be downloaded. - - System.String - - System.String - - - None - - - ResourceManagerEndpoint - - Specifies the URL for Azure Resource Manager requests. - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - ServiceEndpoint - - Specifies the endpoint for Service Management (RDFE) requests. - - System.String - - System.String - - - None - - - SqlDatabaseDnsSuffix - - Specifies the domain-name suffix for Azure SQL Database servers. - - System.String - - System.String - - - None - - - StorageEndpoint - - Specifies the endpoint for storage (blob, table, queue, and file) access. - - System.String - - System.String - - - None - - - TrafficManagerDnsSuffix - - Specifies the domain-name suffix for Azure Traffic Manager services. - - System.String - - System.String - - - None - - - Uri - - Specifies URI of the internet resource to fetch environments. - - System.Uri - - System.Uri - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Management.Automation.SwitchParameter - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment - - - - - - - - - - - - - - ----- Example 1: Creating and modifying a new environment ----- - Add-AzEnvironment -Name TestEnvironment ` - -ActiveDirectoryEndpoint TestADEndpoint ` - -ActiveDirectoryServiceEndpointResourceId TestADApplicationId ` - -ResourceManagerEndpoint TestRMEndpoint ` - -GalleryEndpoint TestGalleryEndpoint ` - -GraphEndpoint TestGraphEndpoint - -Name Resource Manager Url ActiveDirectory Authority ----- -------------------- ------------------------- -TestEnvironment TestRMEndpoint TestADEndpoint/ - -Set-AzEnvironment -Name TestEnvironment ` - -ActiveDirectoryEndpoint NewTestADEndpoint ` - -GraphEndpoint NewTestGraphEndpoint | Format-List - -Name : TestEnvironment -EnableAdfsAuthentication : False -OnPremise : False -ActiveDirectoryServiceEndpointResourceId : TestADApplicationId -AdTenant : -GalleryUrl : TestGalleryEndpoint -ManagementPortalUrl : -ServiceManagementUrl : -PublishSettingsFileUrl : -ResourceManagerUrl : TestRMEndpoint -SqlDatabaseDnsSuffix : -StorageEndpointSuffix : -ActiveDirectoryAuthority : NewTestADEndpoint -GraphUrl : NewTestGraphEndpoint -GraphEndpointResourceId : -TrafficManagerDnsSuffix : -AzureKeyVaultDnsSuffix : -DataLakeEndpointResourceId : -AzureDataLakeStoreFileSystemEndpointSuffix : -AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : -AzureKeyVaultServiceEndpointResourceId : -AzureOperationalInsightsEndpointResourceId : -AzureOperationalInsightsEndpoint : -AzureAnalysisServicesEndpointSuffix : -AzureAttestationServiceEndpointSuffix : -AzureAttestationServiceEndpointResourceId : -AzureSynapseAnalyticsEndpointSuffix : -AzureSynapseAnalyticsEndpointResourceId : -VersionProfiles : {} -ExtendedProperties : {} -BatchEndpointResourceId : - - In this example we are creating a new Azure environment with sample endpoints using Add-AzEnvironment, and then we are changing the value of the ActiveDirectoryEndpoint and GraphEndpoint attributes of the created environment using the cmdlet Set-AzEnvironment. - - - - - - ------- Example 2: Discovering a new environment via Uri ------- - <# -Uri https://configuredmetadata.net returns an array of environment metadata. The following example contains a payload for the AzureCloud default environment. - -[ - { - "portal": "https://portal.azure.com", - "authentication": { - "loginEndpoint": "https://login.microsoftonline.com/", - "audiences": [ - "https://management.core.windows.net/" - ], - "tenant": "common", - "identityProvider": "AAD" - }, - "media": "https://rest.media.azure.net", - "graphAudience": "https://graph.windows.net/", - "graph": "https://graph.windows.net/", - "name": "AzureCloud", - "suffixes": { - "azureDataLakeStoreFileSystem": "azuredatalakestore.net", - "acrLoginServer": "azurecr.io", - "sqlServerHostname": ".database.windows.net", - "azureDataLakeAnalyticsCatalogAndJob": "azuredatalakeanalytics.net", - "keyVaultDns": "vault.azure.net", - "storage": "core.windows.net", - "azureFrontDoorEndpointSuffix": "azurefd.net" - }, - "batch": "https://batch.core.windows.net/", - "resourceManager": "https://management.azure.com/", - "vmImageAliasDoc": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json", - "activeDirectoryDataLake": "https://datalake.azure.net/", - "sqlManagement": "https://management.core.windows.net:8443/", - "gallery": "https://gallery.azure.com/" - }, -…… -] -#> - -Add-AzEnvironment -AutoDiscover -Uri https://configuredmetadata.net - -Name Resource Manager Url ActiveDirectory Authority ----- -------------------- ------------------------- -TestEnvironment TestRMEndpoint TestADEndpoint/ - - In this example, we are discovering a new Azure environment from the `https://configuredmetadata.net` Uri. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/add-azenvironment - - - Get-AzEnvironment - - - - Remove-AzEnvironment - - - - Set-AzEnvironment - - - - - - - Clear-AzConfig - Clear - AzConfig - - Clears the values of configs that are set by the user. - - - - Clears the values of configs that are set by the user. By default all the configs will be cleared. You can also specify keys of configs to clear. - - - - Clear-AzConfig - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - CheckForUpgrade - - When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value is true. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSubscriptionForLogin - - Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. - - - System.Management.Automation.SwitchParameter - - - False - - - DisableInstanceDiscovery - - Set it to true to disable both instance discovery and authority validation. This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack. The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority. By setting this to true, the validation of the authority is disabled. As a result, it is crucial to ensure that the configured authority host is valid and trustworthy. - - - System.Management.Automation.SwitchParameter - - - False - - - DisplayBreakingChangeWarning - - Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. - - - System.Management.Automation.SwitchParameter - - - False - - - DisplayRegionIdentified - - When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. - - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySecretsWarning - - When enabled, a warning message will be displayed when the cmdlet output contains secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844 - - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySurveyMessage - - When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableDataCollection - - When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy - - - System.Management.Automation.SwitchParameter - - - False - - - EnableErrorRecordsPersistence - - When enabled, error records will be written to ~/.Azure/ErrorRecords. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLoginByWam - - [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue - - - System.Management.Automation.SwitchParameter - - - False - - - LoginExperienceV2 - - Only active when authenticating interactively, allows the user to choose the subscription and tenant used in subsequent commands. Possible values ad 'On' (Default) and 'Off'. 'On' requires user's input. 'Off' will use the first tenant and subscription returned by Azure, can change without notice and lead to command execution in an unwanted context (not recommended). - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns true if cmdlet executes correctly. - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - - CurrentUser - Process - Default - Environment - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Clear-AzConfig - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation when clearing all configs. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns true if cmdlet executes correctly. - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - - CurrentUser - Process - Default - Environment - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - CheckForUpgrade - - When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value is true. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSubscriptionForLogin - - Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisableInstanceDiscovery - - Set it to true to disable both instance discovery and authority validation. This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack. The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority. By setting this to true, the validation of the authority is disabled. As a result, it is crucial to ensure that the configured authority host is valid and trustworthy. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplayBreakingChangeWarning - - Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplayRegionIdentified - - When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySecretsWarning - - When enabled, a warning message will be displayed when the cmdlet output contains secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844 - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySurveyMessage - - When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableDataCollection - - When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableErrorRecordsPersistence - - When enabled, error records will be written to ~/.Azure/ErrorRecords. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableLoginByWam - - [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Do not ask for confirmation when clearing all configs. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - LoginExperienceV2 - - Only active when authenticating interactively, allows the user to choose the subscription and tenant used in subsequent commands. Possible values ad 'On' (Default) and 'Off'. 'On' requires user's input. 'Off' will use the first tenant and subscription returned by Azure, can change without notice and lead to command execution in an unwanted context (not recommended). - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns true if cmdlet executes correctly. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Clear-AzConfig -Force - - Clear all the configs. `-Force` suppresses the prompt for confirmation. - - - - - - -------------------------- Example 2 -------------------------- - Clear-AzConfig -EnableDataCollection - - Clear the "EnableDataCollection" config. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/clear-azconfig - - - - - - Clear-AzContext - Clear - AzContext - - Remove all Azure credentials, account, and subscription information. - - - - Remove all Azure Credentials, account, and subscription information. - - - - Clear-AzContext - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Delete all users and groups from the global scope without prompting - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Return a value indicating success or failure - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Clear the context only for the current PowerShell session, or for all sessions. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Delete all users and groups from the global scope without prompting - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Return a value indicating success or failure - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Clear the context only for the current PowerShell session, or for all sessions. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - --------------- Example 1: Clear global context --------------- - Clear-AzContext -Scope CurrentUser - - Remove all account, subscription, and credential information for any powershell session. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/clear-azcontext - - - - - - Clear-AzDefault - Clear - AzDefault - - Clears the defaults set by the user in the current context. - - - - The Clear-AzDefault cmdlet removes the defaults set by the user depending on the switch parameters specified by the user. - - - - Clear-AzDefault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Remove all defaults if no default is specified - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroup - - Clear Default Resource Group - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Remove all defaults if no default is specified - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - {{Fill PassThru Description}} - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroup - - Clear Default Resource Group - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.Management.Automation.SwitchParameter - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Clear-AzDefault - - This command removes all the defaults set by the user in the current context. - - - - - - -------------------------- Example 2 -------------------------- - Clear-AzDefault -ResourceGroup - - This command removes the default resource group set by the user in the current context. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/clear-azdefault - - - - - - Connect-AzAccount - Connect - AzAccount - - Connect to Azure with an authenticated account for use with cmdlets from the Az PowerShell modules. - - - - The `Connect-AzAccount` cmdlet connects to Azure with an authenticated account for use with cmdlets from the Az PowerShell modules. You can use this authenticated account only with Azure Resource Manager requests. To add an authenticated account for use with Service Management, use the `Add-AzureAccount` cmdlet from the Azure PowerShell module. If no context is found for the current user, the user's context list is populated with a context for each of their first 25 subscriptions. The list of contexts created for the user can be found by running `Get-AzContext -ListAvailable`. To skip this context population, specify the SkipContextPopulation switch parameter. After executing this cmdlet, you can disconnect from an Azure account using `Disconnect-AzAccount`. - - - - Connect-AzAccount - - AccessToken - - Specifies an access token. - > [!CAUTION] > Access tokens are a type of credential. You should take the appropriate security precautions to > keep them confidential. Access tokens also timeout and may prevent long running tasks from > completing. - - System.String - - System.String - - - None - - - AccountId - - Id for Account, associated with your access token. In User authentication flows, the AccountId is user name / user id; In AccessToken flow, it is the AccountId for the access token; In ManagedService flow, it is the associated client Id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - GraphAccessToken - - AccessToken for Graph Service. - - System.String - - System.String - - - None - - - KeyVaultAccessToken - - AccessToken for KeyVault Service. - - System.String - - System.String - - - None - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - MicrosoftGraphAccessToken - - Access token to Microsoft Graph - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - SkipValidation - - Skip validation for access token. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - AccountId - - Id for Account, associated with your access token. In User authentication flows, the AccountId is user name / user id; In AccessToken flow, it is the AccountId for the access token; In ManagedService flow, it is the associated client Id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank. - - System.String - - System.String - - - None - - - AuthScope - - Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - UseDeviceAuthentication - - Use device code authentication instead of a browser control. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - AccountId - - Id for Account, associated with your access token. In User authentication flows, the AccountId is user name / user id; In AccessToken flow, it is the AccountId for the access token; In ManagedService flow, it is the associated client Id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank. - - System.String - - System.String - - - None - - - AuthScope - - Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - Identity - - Login using a Managed Service Identity. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - ApplicationId - - Application ID of the service principal. - - System.String - - System.String - - - None - - - AuthScope - - Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. - - System.String - - System.String - - - None - - - CertificateThumbprint - - Certificate Hash or Thumbprint. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SendCertificateChain - - Specifies if the x5c claim (public key of the certificate) should be sent to the STS to achieve easy certificate rollover in Azure AD. - - - System.Management.Automation.SwitchParameter - - - False - - - ServicePrincipal - - Indicates that this account authenticates by providing service principal credentials. - - - System.Management.Automation.SwitchParameter - - - False - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - ApplicationId - - Application ID of the service principal. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - FederatedToken - - Specifies a token provided by another identity provider. The issuer and subject in this token must be first configured to be trusted by the ApplicationId. - > [!CAUTION] > Federated tokens are a type of credential. You should take the appropriate security precautions to keep them confidential. Federated tokens also timeout and may prevent long running tasks from completing. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - ServicePrincipal - - Indicates that this account authenticates by providing service principal credentials. - - - System.Management.Automation.SwitchParameter - - - False - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - ApplicationId - - Application ID of the service principal. - - System.String - - System.String - - - None - - - CertificatePassword - - The password required to access the pkcs#12 certificate file. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - CertificatePath - - The path of certficate file in pkcs#12 format. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SendCertificateChain - - Specifies if the x5c claim (public key of the certificate) should be sent to the STS to achieve easy certificate rollover in Azure AD. - - - System.Management.Automation.SwitchParameter - - - False - - - ServicePrincipal - - Indicates that this account authenticates by providing service principal credentials. - - - System.Management.Automation.SwitchParameter - - - False - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - AuthScope - - Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - Credential - - Specifies a PSCredential object. For more information about the PSCredential object, type `Get-Help Get-Credential`. The PSCredential object provides the user ID and password for organizational ID credentials, or the application ID and secret for service principal credentials. - - System.Management.Automation.PSCredential - - System.Management.Automation.PSCredential - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - ServicePrincipal - - Indicates that this account authenticates by providing service principal credentials. - - - System.Management.Automation.SwitchParameter - - - False - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Connect-AzAccount - - AuthScope - - Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - Credential - - Specifies a PSCredential object. For more information about the PSCredential object, type `Get-Help Get-Credential`. The PSCredential object provides the user ID and password for organizational ID credentials, or the application ID and secret for service principal credentials. - - System.Management.Automation.PSCredential - - System.Management.Automation.PSCredential - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SkipContextPopulation - - Skips context population if no contexts are found. - - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccessToken - - Specifies an access token. - > [!CAUTION] > Access tokens are a type of credential. You should take the appropriate security precautions to > keep them confidential. Access tokens also timeout and may prevent long running tasks from > completing. - - System.String - - System.String - - - None - - - AccountId - - Id for Account, associated with your access token. In User authentication flows, the AccountId is user name / user id; In AccessToken flow, it is the AccountId for the access token; In ManagedService flow, it is the associated client Id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank. - - System.String - - System.String - - - None - - - ApplicationId - - Application ID of the service principal. - - System.String - - System.String - - - None - - - AuthScope - - Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. - - System.String - - System.String - - - None - - - CertificatePassword - - The password required to access the pkcs#12 certificate file. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - CertificatePath - - The path of certficate file in pkcs#12 format. - - System.String - - System.String - - - None - - - CertificateThumbprint - - Certificate Hash or Thumbprint. - - System.String - - System.String - - - None - - - ContextName - - Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). - - System.String - - System.String - - - None - - - Credential - - Specifies a PSCredential object. For more information about the PSCredential object, type `Get-Help Get-Credential`. The PSCredential object provides the user ID and password for organizational ID credentials, or the application ID and secret for service principal credentials. - - System.Management.Automation.PSCredential - - System.Management.Automation.PSCredential - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Environment - - Environment containing the Azure account. - - System.String - - System.String - - - None - - - FederatedToken - - Specifies a token provided by another identity provider. The issuer and subject in this token must be first configured to be trusted by the ApplicationId. - > [!CAUTION] > Federated tokens are a type of credential. You should take the appropriate security precautions to keep them confidential. Federated tokens also timeout and may prevent long running tasks from completing. - - System.String - - System.String - - - None - - - Force - - Overwrite the existing context with the same name without prompting. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - GraphAccessToken - - AccessToken for Graph Service. - - System.String - - System.String - - - None - - - Identity - - Login using a Managed Service Identity. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - KeyVaultAccessToken - - AccessToken for KeyVault Service. - - System.String - - System.String - - - None - - - MaxContextPopulation - - Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. - - System.Int32 - - System.Int32 - - - None - - - MicrosoftGraphAccessToken - - Access token to Microsoft Graph - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SendCertificateChain - - Specifies if the x5c claim (public key of the certificate) should be sent to the STS to achieve easy certificate rollover in Azure AD. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServicePrincipal - - Indicates that this account authenticates by providing service principal credentials. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - SkipContextPopulation - - Skips context population if no contexts are found. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - SkipValidation - - Skip validation for access token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Subscription - - Subscription Name or ID. - - System.String - - System.String - - - None - - - Tenant - - Optional tenant name or ID. - > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. - - System.String - - System.String - - - None - - - UseDeviceAuthentication - - Use device code authentication instead of a browser control. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile - - - - - - - - - - - - - - ------------ Example 1: Connect to an Azure account ------------ - Connect-AzAccount - -Please select the account you want to login with. - -Retrieving subscriptions for the selection... -[Tenant and subscription selection] - -No Subscription name Subscription ID Tenant domain name ----- ------------------------------------ ---------------------------------------- -------------------------- -[1] Subscription1 xxxx-xxxx-xxxx-xxxx xxxxxxxxx.xxxxxxxxxxx.com -[2] Subscription2 xxxx-xxxx-xxxx-xxxx xxxxxxxxx.xxxxxxxxxxx.com -... -[9] Subscription9 xxxx-xxxx-xxxx-xxxx xxxxxxxxx.xxxxxxxxxxx.com - -Select a tenant and subscription: 1 <requires user's input here> - -Subscription name Tenant domain name ------------------------------------- -------------------------- -Subscription1 xxxxxxxxx.xxxxxxxxxxx.com - -[Announcements] -Share your feedback regarding your experience with `Connect-AzAccount` at: https://aka.ms/azloginfeedback - -If you encounter any problem, please open an issue at: https://aka.ms/azpsissue - -SubscriptionName Tenant ------------------ ------ -Subscription1 xxxxxxxxx.xxxxxxxxxxx.com - - - - - - - - Example 2: Connect to Azure using organizational ID credentials - $Credential = Get-Credential -Connect-AzAccount -Credential $Credential - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - - - - - - - Example 3: Connect to Azure using a service principal account - $SecurePassword = Read-Host -Prompt 'Enter a Password' -AsSecureString -$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' -$ApplicationId = 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz' -$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $ApplicationId, $SecurePassword -Connect-AzAccount -ServicePrincipal -TenantId $TenantId -Credential $Credential - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -xxxx-xxxx-xxxx-xxxx Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - - - - - - - Example 4: Use an interactive login to connect to a specific tenant and subscription - Connect-AzAccount -Tenant 'xxxx-xxxx-xxxx-xxxx' -SubscriptionId 'yyyy-yyyy-yyyy-yyyy' - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - - - - - - - ----- Example 5: Connect using a Managed Service Identity ----- - Connect-AzAccount -Identity -Set-AzContext -Subscription Subscription1 - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -MSI@50342 Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - - - - - - - Example 6: Connect using Managed Service Identity login and ClientId - $identity = Get-AzUserAssignedIdentity -ResourceGroupName 'myResourceGroup' -Name 'myUserAssignedIdentity' -Get-AzVM -ResourceGroupName contoso -Name testvm | Update-AzVM -IdentityType UserAssigned -IdentityId $identity.Id -Connect-AzAccount -Identity -AccountId $identity.ClientId # Run on the virtual machine - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -yyyy-yyyy-yyyy-yyyy Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - - - - - - - ------------ Example 7: Connect using certificates ------------ - $Thumbprint = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' -$ApplicationId = '00000000-0000-0000-0000-00000000' -Connect-AzAccount -CertificateThumbprint $Thumbprint -ApplicationId $ApplicationId -Tenant $TenantId -ServicePrincipal - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -xxxxxxxx-xxxx-xxxx-xxxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud - -Account : xxxxxxxx-xxxx-xxxx-xxxxxxxx -SubscriptionName : MyTestSubscription -SubscriptionId : zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz -TenantId : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy -Environment : AzureCloud - - - - - - - - -------------- Example 8: Connect with AuthScope -------------- - Connect-AzAccount -AuthScope Storage - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -yyyy-yyyy-yyyy-yyyy Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - - - - - - - ---------- Example 9: Connect using certificate file ---------- - $SecurePassword = ConvertTo-SecureString -String "****" -AsPlainText -Force -$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' -$ApplicationId = 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz' -Connect-AzAccount -ServicePrincipal -ApplicationId $ApplicationId -TenantId $TenantId -CertificatePath './certificatefortest.pfx' -CertificatePassword $securePassword - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -xxxxxxxx-xxxx-xxxx-xxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud - - - - - - - - --------- Example 10: Connect interactively using WAM --------- - Update-AzConfig -EnableLoginByWam $true -Connect-AzAccount - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -xxxxxxxx-xxxx-xxxx-xxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/connect-azaccount - - - - - - Disable-AzContextAutosave - Disable - AzContextAutosave - - Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window - - - - Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window - - - - Disable-AzContextAutosave - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings - - - - - - - - - - - - - - ---------- Example 1: Disable autosaving the context ---------- - Disable-AzContextAutosave - - Disable autosave for the current user. - - - - - - -------------------------- Example 2 -------------------------- - Disable-AzContextAutosave -Scope Process - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/disable-azcontextautosave - - - - - - Disable-AzDataCollection - Disable - AzDataCollection - - Opts out of collecting data to improve the Azure PowerShell cmdlets. Data is collected by default unless you explicitly opt out. - - - - The `Disable-AzDataCollection` cmdlet is used to opt out of data collection. Azure PowerShell automatically collects telemetry data by default. To disable data collection, you must explicitly opt-out. Microsoft aggregates collected data to identify patterns of usage, to identify common issues, and to improve the experience of Azure PowerShell. Microsoft Azure PowerShell doesn't collect any private or personal data. If you've previously opted out, run the `Enable-AzDataCollection` cmdlet to re-enable data collection for the current user on the current machine. - - - - Disable-AzDataCollection - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Void - - - - - - - - - - - - - - -- Example 1: Disabling data collection for the current user -- - Disable-AzDataCollection - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/disable-azdatacollection - - - Enable-AzDataCollection - - - - - - - Disable-AzureRmAlias - Disable - AzureRmAlias - - Disables AzureRm prefix aliases for Az modules. - - - - Disables AzureRm prefix aliases for Az modules. If -Module is specified, only modules listed will have aliases disabled. Otherwise all AzureRm aliases are disabled. - - - - Disable-AzureRmAlias - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Module - - Indicates which modules to disable aliases for. If none are specified, default is all enabled modules. - - System.String[] - - System.String[] - - - None - - - PassThru - - If specified, cmdlet will return all disabled aliases - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Indicates what scope aliases should be disabled for. Default is 'Process' - - - Process - CurrentUser - LocalMachine - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Module - - Indicates which modules to disable aliases for. If none are specified, default is all enabled modules. - - System.String[] - - System.String[] - - - None - - - PassThru - - If specified, cmdlet will return all disabled aliases - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Indicates what scope aliases should be disabled for. Default is 'Process' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.String - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Disable-AzureRmAlias - - Disables all AzureRm prefixes for the current PowerShell session. - - - - - - -------------------------- Example 2 -------------------------- - Disable-AzureRmAlias -Module Az.Accounts -Scope CurrentUser - - Disables AzureRm aliases for the Az.Accounts module for both the current process and for the current user. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/disable-azurermalias - - - - - - Disconnect-AzAccount - Disconnect - AzAccount - - Disconnects a connected Azure account and removes all credentials and contexts associated with that account. - - - - The Disconnect-AzAccount cmdlet disconnects a connected Azure account and removes all credentials and contexts (subscription and tenant information) associated with that account. After executing this cmdlet, you will need to login again using Connect-AzAccount. - - - - Disconnect-AzAccount - - ApplicationId - - ServicePrincipal id (globally unique id) - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - TenantId - - Tenant id (globally unique id) - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not executed. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disconnect-AzAccount - - AzureContext - - Context - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not executed. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disconnect-AzAccount - - ContextName - - Name of the context to log out of - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not executed. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disconnect-AzAccount - - InputObject - - The account object to remove - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not executed. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disconnect-AzAccount - - Username - - User name of the form 'user@contoso.org' - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not executed. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ApplicationId - - ServicePrincipal id (globally unique id) - - System.String - - System.String - - - None - - - AzureContext - - Context - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - ContextName - - Name of the context to log out of - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - The account object to remove - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - TenantId - - Tenant id (globally unique id) - - System.String - - System.String - - - None - - - Username - - User name of the form 'user@contoso.org' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not executed. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount - - - - - - - - - - - - - - ----------- Example 1: Logout of the current account ----------- - Disconnect-AzAccount - - Logs out of the Azure account associated with the current context. - - - - - - Example 2: Logout of the account associated with a particular context - Get-AzContext "Work" | Disconnect-AzAccount -Scope CurrentUser - - Logs out the account associated with the given context (named 'Work'). Because this uses the 'CurrentUser' scope, all credentials and contexts will be permanently deleted. - - - - - - ------------- Example 3: Log out a particular user ------------- - Disconnect-AzAccount -Username 'user1@contoso.org' - - Logs out the 'user1@contoso.org' user - all credentials and all contexts associated with this user will be removed. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/disconnect-azaccount - - - - - - Enable-AzContextAutosave - Enable - AzContextAutosave - - Azure contexts are PowerShell objects representing your active subscription to run commands against, and the authentication information needed to connect to an Azure cloud. With Azure contexts, Azure PowerShell doesn't need to reauthenticate your account each time you switch subscriptions. For more information, see Azure PowerShell context objects (https://learn.microsoft.com/powershell/azure/context-persistence). - This cmdlet allows the Azure context information to be saved and automatically loaded when you start a PowerShell process. For example, when opening a new window. - - - - Allows the Azure context information to be saved and automatically loaded when a PowerShell process starts. The context is saved at the end of the execution of any cmdlet that affects the context. For example, any profile cmdlet. If you're using user authentication, then tokens can be updated during the course of running any cmdlet. - - - - Enable-AzContextAutosave - - DefaultProfile - - The credentials, tenant, and subscription used for communication with Azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes. For example, whether changes apply only to the current process, or to all sessions started by this user. Changes made with the scope `CurrentUser` will affect all PowerShell sessions started by the user. If a particular session needs to have different settings, use the scope `Process`. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - CurrentUser - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet isn't run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with Azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes. For example, whether changes apply only to the current process, or to all sessions started by this user. Changes made with the scope `CurrentUser` will affect all PowerShell sessions started by the user. If a particular session needs to have different settings, use the scope `Process`. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - CurrentUser - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet isn't run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings - - - - - - - - - - - - - - Example 1: Enable autosaving credentials for the current user - Enable-AzContextAutosave - - - - - - - - -------------------------- Example 2 -------------------------- - Enable-AzContextAutosave -Scope Process - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/enable-azcontextautosave - - - - - - Enable-AzDataCollection - Enable - AzDataCollection - - Enables Azure PowerShell to collect data to improve the user experience with the Azure PowerShell cmdlets. Executing this cmdlet opts in to data collection for the current user on the current machine. Data is collected by default unless you explicitly opt out. - - - - The `Enable-AzDataCollection` cmdlet is used to opt in to data collection. Azure PowerShell automatically collects telemetry data by default. Microsoft aggregates collected data to identify patterns of usage, to identify common issues, and to improve the experience of Azure PowerShell. Microsoft Azure PowerShell doesn't collect any private or personal data. To disable data collection, you must explicitly opt out by executing `Disable-AzDataCollection`. - - - - Enable-AzDataCollection - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Void - - - - - - - - - - - - - - --- Example 1: Enabling data collection for the current user --- - Enable-AzDataCollection - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/enable-azdatacollection - - - Disable-AzDataCollection - - - - - - - Enable-AzureRmAlias - Enable - AzureRmAlias - - Enables AzureRm prefix aliases for Az modules. - - - - Enables AzureRm prefix aliases for Az modules. If -Module is specified, only modules listed will have aliases enabled. Otherwise all AzureRm aliases are enabled. - - - - Enable-AzureRmAlias - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Module - - Indicates which modules to enable aliases for. If none are specified, default is all modules. - - System.String[] - - System.String[] - - - None - - - PassThru - - If specified, cmdlet will return all aliases enabled - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Indicates what scope aliases should be enabled for. Default is 'Local' - - - Local - Process - CurrentUser - LocalMachine - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Module - - Indicates which modules to enable aliases for. If none are specified, default is all modules. - - System.String[] - - System.String[] - - - None - - - PassThru - - If specified, cmdlet will return all aliases enabled - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Indicates what scope aliases should be enabled for. Default is 'Local' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.String - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Enable-AzureRmAlias - - Enables all AzureRm prefixes for the current PowerShell session. - - - - - - -------------------------- Example 2 -------------------------- - Enable-AzureRmAlias -Module Az.Accounts -Scope CurrentUser - - Enables AzureRm aliases for the Az.Accounts module for both the current process and for the current user. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/enable-azurermalias - - - - - - Export-AzConfig - Export - AzConfig - - Exports all the configs into a file so that it can be imported on another machine. - - - - The `Export-AzConfig` cmdlet exports all the configs that are set at the "CurrentUser" scope into a file at given path in JSON format. The file can then be imported by `Import-AzConfig` for example on another machine. - - - - Export-AzConfig - - Path - - Specifies the path of the file to which to save the configs. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrites the given file if it exists. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns a boolean value indicating success or failure. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrites the given file if it exists. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns a boolean value indicating success or failure. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of the file to which to save the configs. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Export-AzConfig -Path ./config.json - - This example exports the configs to `./config.json` file which can later be imported via `Import-AzConfig`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/export-azconfig - - - Import-AzConfig - - - - - - - Get-AzAccessToken - Get - AzAccessToken - - Get secure raw access token. When using -ResourceUrl, please make sure the value does match current Azure environment. You may refer to the value of `(Get-AzContext).Environment`. > _NOTE:_ The current default output token type is going to be changed from plain text `String` to `SecureString` for security. Please use `-AsSecureString` to migrate to the secure behaviour before the breaking change takes effects. - - - - Get access token - - - - Get-AzAccessToken - - AsSecureString - - Specifiy to convert output token as a secure string. Please always use the parameter for security purpose and to avoid the upcoming breaking chang and refer to Frequently asked questions about Azure PowerShell (https://learn.microsoft.com/en-us/powershell/azure/faq)for how to convert from `SecureString` to plain text. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceTypeName - - Optional resource type name, supported values: AadGraph, AnalysisServices, AppConfiguration, Arm, Attestation, Batch, CommunicationEmail, DataLake, KeyVault, MSGraph, OperationalInsights, ResourceManager, Storage, Synapse. Default value is Arm if not specified. - - System.String - - System.String - - - None - - - TenantId - - Optional Tenant Id. Use tenant id of default context if not specified. - - System.String - - System.String - - - None - - - - Get-AzAccessToken - - AsSecureString - - Specifiy to convert output token as a secure string. Please always use the parameter for security purpose and to avoid the upcoming breaking chang and refer to Frequently asked questions about Azure PowerShell (https://learn.microsoft.com/en-us/powershell/azure/faq)for how to convert from `SecureString` to plain text. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceUrl - - Resource url for that you're requesting token, e.g. 'https://graph.microsoft.com/'. - - System.String - - System.String - - - None - - - TenantId - - Optional Tenant Id. Use tenant id of default context if not specified. - - System.String - - System.String - - - None - - - - - - AsSecureString - - Specifiy to convert output token as a secure string. Please always use the parameter for security purpose and to avoid the upcoming breaking chang and refer to Frequently asked questions about Azure PowerShell (https://learn.microsoft.com/en-us/powershell/azure/faq)for how to convert from `SecureString` to plain text. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceTypeName - - Optional resource type name, supported values: AadGraph, AnalysisServices, AppConfiguration, Arm, Attestation, Batch, CommunicationEmail, DataLake, KeyVault, MSGraph, OperationalInsights, ResourceManager, Storage, Synapse. Default value is Arm if not specified. - - System.String - - System.String - - - None - - - ResourceUrl - - Resource url for that you're requesting token, e.g. 'https://graph.microsoft.com/'. - - System.String - - System.String - - - None - - - TenantId - - Optional Tenant Id. Use tenant id of default context if not specified. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAccessToken - - - The output type is going to be deprecate. - - - - - Microsoft.Azure.Commands.Profile.Models.PSSecureAccessToken - - - Use `-AsSecureString` to get the token as `SecureString`. - - - - - - - - - - - ------- Example 1 Get the access token for ARM endpoint ------- - Get-AzAccessToken -AsSecureString - - Get access token of current account for ResourceManager endpoint - - - - - - - Example 2 Get the access token for Microsoft Graph endpoint - - Get-AzAccessToken -AsSecureString -ResourceTypeName MSGraph - - Get access token of Microsoft Graph endpoint for current account - - - - - - - Example 3 Get the access token for Microsoft Graph endpoint - - Get-AzAccessToken -AsSecureString -ResourceUrl "https://graph.microsoft.com/" - - Get access token of Microsoft Graph endpoint for current account - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azaccesstoken - - - - - - Get-AzConfig - Get - AzConfig - - Gets the configs of Azure PowerShell. - - - - Gets the configs of Azure PowerShell. By default it lists all the configs. You can filter the result using various parameters. - > [!NOTE] > Configs have priorities. Generally speaking, Process scope has higher priority than CurrentUser scope; a config that applies to a certain cmdlet has higher priority than that applies to a module, again higher than Az. > To reduce confusion, the result of `Get-AzConfig` shows those configs that are taking effect. It is a combination of all the configs, but not literally all the configs. However, you could always view them by applying different filter parameters, such as `-Scope`. - - - - Get-AzConfig - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - CheckForUpgrade - - When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value is true. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSubscriptionForLogin - - Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. - - - System.Management.Automation.SwitchParameter - - - False - - - DisableInstanceDiscovery - - Set it to true to disable both instance discovery and authority validation. This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack. The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority. By setting this to true, the validation of the authority is disabled. As a result, it is crucial to ensure that the configured authority host is valid and trustworthy. - - - System.Management.Automation.SwitchParameter - - - False - - - DisplayBreakingChangeWarning - - Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. - - - System.Management.Automation.SwitchParameter - - - False - - - DisplayRegionIdentified - - When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. - - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySecretsWarning - - When enabled, a warning message will be displayed when the cmdlet output contains secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844 - - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySurveyMessage - - When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableDataCollection - - When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy - - - System.Management.Automation.SwitchParameter - - - False - - - EnableErrorRecordsPersistence - - When enabled, error records will be written to ~/.Azure/ErrorRecords. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLoginByWam - - [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue - - - System.Management.Automation.SwitchParameter - - - False - - - LoginExperienceV2 - - Only active when authenticating interactively, allows the user to choose the subscription and tenant used in subsequent commands. Possible values ad 'On' (Default) and 'Off'. 'On' requires user's input. 'Off' will use the first tenant and subscription returned by Azure, can change without notice and lead to command execution in an unwanted context (not recommended). - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - - CurrentUser - Process - Default - Environment - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - - - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - CheckForUpgrade - - When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value is true. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSubscriptionForLogin - - Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisableInstanceDiscovery - - Set it to true to disable both instance discovery and authority validation. This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack. The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority. By setting this to true, the validation of the authority is disabled. As a result, it is crucial to ensure that the configured authority host is valid and trustworthy. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplayBreakingChangeWarning - - Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplayRegionIdentified - - When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySecretsWarning - - When enabled, a warning message will be displayed when the cmdlet output contains secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844 - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisplaySurveyMessage - - When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableDataCollection - - When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableErrorRecordsPersistence - - When enabled, error records will be written to ~/.Azure/ErrorRecords. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableLoginByWam - - [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - LoginExperienceV2 - - Only active when authenticating interactively, allows the user to choose the subscription and tenant used in subsequent commands. Possible values ad 'On' (Default) and 'Off'. 'On' requires user's input. 'Off' will use the first tenant and subscription returned by Azure, can change without notice and lead to command execution in an unwanted context (not recommended). - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSConfig - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzConfig - -Key Value Applies To Scope Help Message ---- ----- ---------- ----- ------------ -EnableDataCollection False Az CurrentUser When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the custom… -DefaultSubscriptionForLogin Az Default Subscription name or GUID. Sets the default context for Azure PowerShell when logging in with… -DisplayBreakingChangeWarning True Az Default Controls if warning messages for breaking changes are displayed or suppressed. When enabled, … - - Gets all the configs. - - - - - - -------------------------- Example 2 -------------------------- - Get-AzConfig -EnableDataCollection - -Key Value Applies To Scope Help Message ---- ----- ---------- ----- ------------ -EnableDataCollection False Az CurrentUser When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the custom… - - Gets the "EnableDataCollection" config. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azconfig - - - - - - Get-AzContext - Get - AzContext - - Gets the metadata used to authenticate Azure Resource Manager requests. - - - - The Get-AzContext cmdlet gets the current metadata used to authenticate Azure Resource Manager requests. This cmdlet gets the Active Directory account, Active Directory tenant, Azure subscription, and the targeted Azure environment. Azure Resource Manager cmdlets use these settings by default when making Azure Resource Manager requests. When the available amount of subscription exceeds the default limit of 25, some subscriptions may not show up in the results of `Get-AzContext -ListAvailable`. Please run `Connect-AzAccount -MaxContextPopulation <int>` to get more contexts. - - - - Get-AzContext - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ListAvailable - - List all available contexts in the current session. - - - System.Management.Automation.SwitchParameter - - - False - - - RefreshContextFromTokenCache - - Refresh contexts from token cache - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzContext - - Name - - The name of the context - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ListAvailable - - List all available contexts in the current session. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - The name of the context - - System.String - - System.String - - - None - - - RefreshContextFromTokenCache - - Refresh contexts from token cache - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - - - - - ------------ Example 1: Getting the current context ------------ - Connect-AzAccount -Get-AzContext - -Name Account SubscriptionName Environment TenantId ----- ------- ---------------- ----------- -------- -Subscription1 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... - - In this example we are logging into our account with an Azure subscription using Connect-AzAccount, and then we are getting the context of the current session by calling Get-AzContext. - - - - - - ---------- Example 2: Listing all available contexts ---------- - Get-AzContext -ListAvailable - -Name Account SubscriptionName Environment TenantId ----- ------- ---------------- ----------- -------- -Subscription1 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... -Subscription2 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription2 AzureCloud xxxxxxxx-x... -Subscription3 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription3 AzureCloud xxxxxxxx-x... - - In this example, all currently available contexts are displayed. The user may select one of these contexts using Select-AzContext. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azcontext - - - Set-AzContext - - - - Connect-AzAccount - - - - - - - Get-AzContextAutosaveSetting - Get - AzContextAutosaveSetting - - Display metadata about the context autosave feature, including whether the context is automatically saved, and where saved context and credential information can be found. - - - - Display metadata about the context autosave feature, including whether the context is automatically saved, and where saved context and credential information can be found. - - - - Get-AzContextAutosaveSetting - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings - - - - - - - - - - - - - - - Example 1: Get context save metadata for the current session - - Get-AzContextAutosaveSetting - -Mode : Process -ContextDirectory : None -ContextFile : None -CacheDirectory : None -CacheFile : None -Settings : {} - - Get details about whether and where the context is saved. In the above example, the autosave feature has been disabled. - - - - - - -- Example 2: Get context save metadata for the current user -- - Get-AzContextAutosaveSetting -Scope CurrentUser - -Mode : CurrentUser -ContextDirectory : C:\Users\contoso\AppData\Roaming\Windows Azure Powershell -ContextFile : AzureRmContext.json -CacheDirectory : C:\Users\contoso\AppData\Roaming\Windows Azure Powershell -CacheFile : TokenCache.dat -Settings : {} - - Get details about whether and where the context is saved by default for the current user. Note that this may be different than the settings that are active in the current session. In the above example, the autosave feature has been enabled, and data is saved to the default location. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azcontextautosavesetting - - - - - - Get-AzDefault - Get - AzDefault - - Get the defaults set by the user in the current context. - - - - The Get-AzDefault cmdlet gets the Resource Group that the user has set as default in the current context. - - - - Get-AzDefault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroup - - Display Default Resource Group - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroup - - Display Default Resource Group - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.Management.Automation.SwitchParameter - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSResourceGroup - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzDefault - -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup -Name : myResourceGroup -Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties -Location : eastus -ManagedBy : -Tags : - - This command returns the current defaults if there are defaults set, or returns nothing if no default is set. - - - - - - -------------------------- Example 2 -------------------------- - Get-AzDefault -ResourceGroup - -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup -Name : myResourceGroup -Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties -Location : eastus -ManagedBy : -Tags : - - This command returns the current default Resource Group if there is a default set, or returns nothing if no default is set. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azdefault - - - - - - Get-AzEnvironment - Get - AzEnvironment - - Get endpoints and metadata for an instance of Azure services. `GalleryUrl` will be removed from ArmMetadata and so Azure PowerShell will no longer provide for its value in `PSAzureEnvironment`. Currently `GalleryUrl` is not used in Azure PowerShell products. Please do not reply on `GalleryUrl` anymore. - - - - The Get-AzEnvironment cmdlet gets endpoints and metadata for an instance of Azure services. - - - - Get-AzEnvironment - - Name - - Specifies the name of the Azure instance to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the Azure instance to get. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment - - - - - - - - - - - - - - ---------- Example 1: Getting all Azure environments ---------- - Get-AzEnvironment - -Name Resource Manager Url ActiveDirectory Authority Type ----- -------------------- ------------------------- ---- -AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in -AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in -AzureChinaCloud https://management.chinacloudapi.cn/ https://login.chinacloudapi.cn/ Built-in - - This example shows how to get the endpoints and metadata for the AzureCloud (default) environment. - - - - - - -------- Example 2: Getting the AzureCloud environment -------- - Get-AzEnvironment -Name AzureCloud - -Name Resource Manager Url ActiveDirectory Authority Type ----- -------------------- ------------------------- ---- -AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in - - This example shows how to get the endpoints and metadata for the AzureCloud (default) environment. - - - - - - ------ Example 3: Getting the AzureChinaCloud environment ------ - Get-AzEnvironment -Name AzureChinaCloud | Format-List - -Name : AzureChinaCloud -Type : Built-in -EnableAdfsAuthentication : False -OnPremise : False -ActiveDirectoryServiceEndpointResourceId : https://management.core.chinacloudapi.cn/ -AdTenant : Common -GalleryUrl : https://gallery.azure.com/ -ManagementPortalUrl : https://go.microsoft.com/fwlink/?LinkId=301902 -ServiceManagementUrl : https://management.core.chinacloudapi.cn/ -PublishSettingsFileUrl : https://go.microsoft.com/fwlink/?LinkID=301776 -ResourceManagerUrl : https://management.chinacloudapi.cn/ -SqlDatabaseDnsSuffix : .database.chinacloudapi.cn -StorageEndpointSuffix : core.chinacloudapi.cn -ActiveDirectoryAuthority : https://login.chinacloudapi.cn/ -GraphUrl : https://graph.chinacloudapi.cn/ -GraphEndpointResourceId : https://graph.chinacloudapi.cn/ -TrafficManagerDnsSuffix : trafficmanager.cn -AzureKeyVaultDnsSuffix : vault.azure.cn -DataLakeEndpointResourceId : -AzureDataLakeStoreFileSystemEndpointSuffix : -AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : -AzureKeyVaultServiceEndpointResourceId : https://vault.azure.cn -ContainerRegistryEndpointSuffix : azurecr.cn -AzureOperationalInsightsEndpointResourceId : -AzureOperationalInsightsEndpoint : -AzureAnalysisServicesEndpointSuffix : asazure.chinacloudapi.cn -AnalysisServicesEndpointResourceId : https://region.asazure.chinacloudapi.cn -AzureAttestationServiceEndpointSuffix : -AzureAttestationServiceEndpointResourceId : -AzureSynapseAnalyticsEndpointSuffix : dev.azuresynapse.azure.cn -AzureSynapseAnalyticsEndpointResourceId : https://dev.azuresynapse.azure.cn - - This example shows how to get the endpoints and metadata for the AzureChinaCloud environment. - - - - - - ----- Example 4: Getting the AzureUSGovernment environment ----- - Get-AzEnvironment -Name AzureUSGovernment - -Name Resource Manager Url ActiveDirectory Authority Type ----- -------------------- ------------------------- ---- -AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in - - This example shows how to get the endpoints and metadata for the AzureUSGovernment environment. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azenvironment - - - Add-AzEnvironment - - - - Remove-AzEnvironment - - - - Set-AzEnvironment - - - - - - - Get-AzSubscription - Get - AzSubscription - - Get subscriptions that the current account can access. - - - - The Get-AzSubscription cmdlet gets the subscription ID, subscription name, and home tenant for subscriptions that the current account can access. - - - - Get-AzSubscription - - AsJob - - Run cmdlet in the background and return a Job to track progress. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - Specifies the ID of the subscription to get. - - System.String - - System.String - - - None - - - TenantId - - Specifies the ID of the tenant that contains subscriptions to get. - - System.String - - System.String - - - None - - - - Get-AzSubscription - - AsJob - - Run cmdlet in the background and return a Job to track progress. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionName - - Specifies the name of the subscription to get. - - System.String - - System.String - - - None - - - TenantId - - Specifies the ID of the tenant that contains subscriptions to get. - - System.String - - System.String - - - None - - - - - - AsJob - - Run cmdlet in the background and return a Job to track progress. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - Specifies the ID of the subscription to get. - - System.String - - System.String - - - None - - - SubscriptionName - - Specifies the name of the subscription to get. - - System.String - - System.String - - - None - - - TenantId - - Specifies the ID of the tenant that contains subscriptions to get. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - - - - - - - - - - - - - ------- Example 1: Get all subscriptions in all tenants ------- - Get-AzSubscription - -Name Id TenantId State ----- -- -------- ----- -Subscription1 yyyy-yyyy-yyyy-yyyy aaaa-aaaa-aaaa-aaaa Enabled -Subscription2 xxxx-xxxx-xxxx-xxxx aaaa-aaaa-aaaa-aaaa Enabled -Subscription3 zzzz-zzzz-zzzz-zzzz bbbb-bbbb-bbbb-bbbb Enabled - - This command gets all subscriptions in all tenants that are authorized for the current account. - - - - - - ---- Example 2: Get all subscriptions for a specific tenant ---- - Get-AzSubscription -TenantId "aaaa-aaaa-aaaa-aaaa" - -Name Id TenantId State ----- -- -------- ----- -Subscription1 yyyy-yyyy-yyyy-yyyy aaaa-aaaa-aaaa-aaaa Enabled -Subscription2 xxxx-xxxx-xxxx-xxxx aaaa-aaaa-aaaa-aaaa Enabled - - List all subscriptions in the given tenant that are authorized for the current account. - - - - - - ---- Example 3: Get all subscriptions in the current tenant ---- - Get-AzSubscription -TenantId (Get-AzContext).Tenant - -Name Id TenantId State ----- -- -------- ----- -Subscription1 yyyy-yyyy-yyyy-yyyy aaaa-aaaa-aaaa-aaaa Enabled -Subscription2 xxxx-xxxx-xxxx-xxxx aaaa-aaaa-aaaa-aaaa Enabled - - This command gets all subscriptions in the current tenant that are authorized for the current user. - - - - - - Example 4: Change the current context to use a specific subscription - Get-AzSubscription -SubscriptionId "xxxx-xxxx-xxxx-xxxx" -TenantId "yyyy-yyyy-yyyy-yyyy" | Set-AzContext - -Name Account SubscriptionName Environment TenantId ----- ------- ---------------- ----------- -------- -Subscription1 (xxxx-xxxx-xxxx-xxxx) azureuser@micros... Subscription1 AzureCloud yyyy-yyyy-yyyy-yyyy - - This command gets the specified subscription, and then sets the current context to use it. All subsequent cmdlets in this session use the new subscription (Contoso Subscription 1) by default. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-azsubscription - - - - - - Get-AzTenant - Get - AzTenant - - Gets tenants that are authorized for the current user. - - - - The Get-AzTenant cmdlet gets tenants authorized for the current user. - - - - Get-AzTenant - - TenantId - - Specifies the ID of the tenant that this cmdlet gets. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - TenantId - - Specifies the ID of the tenant that this cmdlet gets. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - - - - - - - - - - - - - ---------------- Example 1: Getting all tenants ---------------- - Connect-AzAccount -Get-AzTenant - -Id Name Category Domains --- ----------- -------- ------- -xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft Home {test0.com, test1.com, test2.microsoft.com, test3.microsoft.com...} -yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy Testhost Home testhost.onmicrosoft.com - - This example shows how to get all of the authorized tenants of an Azure account. - - - - - - ------------- Example 2: Getting a specific tenant ------------- - Connect-AzAccount -Get-AzTenant -TenantId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - -Id Name Category Domains --- ----------- -------- ------- -xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft Home {test0.com, test1.com, test2.microsoft.com, test3.microsoft.com...} - - This example shows how to get a specific authorized tenant of an Azure account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/get-aztenant - - - - - - Import-AzConfig - Import - AzConfig - - Imports configs from a file that was previously exported by `Export-AzConfig`. - - - - The `Import-AzConfig` cmdlet imports all the configs from a file that was previously exported by `Export-AzConfig`. The imported configs will be set at the "CurrentUser" scope, so they are consistent across PowerShell sessions. - During importing, if a config that is to be imported has already been set, its value will be overwritten. - - - - Import-AzConfig - - Path - - Specifies the path to configuration saved by using Export-AzConfig. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns a boolean value indicating success or failure. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns a boolean value indicating success or failure. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path to configuration saved by using Export-AzConfig. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Import-AzConfig -Path ./config.json - - This example imports configs from file `./config.json`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/import-azconfig - - - Export-AzConfig - - - - - - - Import-AzContext - Import - AzContext - - Loads Azure authentication information from a file. - - - - The Import-AzContext cmdlet loads authentication information from a file to set the Azure environment and context. Cmdlets that you run in the current session use this information to authenticate requests to Azure Resource Manager. - - - - Import-AzContext - - AzureContext - - {{Fill AzureContext Description}} - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzContext - - Path - - Specifies the path to context information saved by using Save-AzContext. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AzureContext - - {{Fill AzureContext Description}} - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Path - - Specifies the path to context information saved by using Save-AzContext. - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile - - - - - - - - - - - - - - ----- Example 1: Importing a context from a AzureRmProfile ----- - Import-AzContext -AzContext (Connect-AzAccount) - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - This example imports a context from a PSAzureProfile that is passed through to the cmdlet. - - - - - - ------- Example 2: Importing a context from a JSON file ------- - Import-AzContext -Path C:\test.json - -Account SubscriptionName TenantId Environment -------- ---------------- -------- ----------- -azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud - - This example selects a context from a JSON file that is passed through to the cmdlet. This JSON file can be created from Save-AzContext. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/import-azcontext - - - - - - Invoke-AzRestMethod - Invoke - AzRestMethod - - Construct and perform HTTP request to Azure resource management endpoint only - - - - Construct and perform HTTP request to Azure resource management endpoint only - - - - Invoke-AzRestMethod - - ApiVersion - - Api Version - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FinalResultFrom - - Specifies the header for final GET result after the long-running operation completes. - - - FinalStateVia - Location - OriginalUri - Operation-Location - - System.String - - System.String - - - None - - - Method - - Http Method - - - GET - POST - PUT - PATCH - DELETE - - System.String - - System.String - - - None - - - Name - - list of Target Resource Name - - System.String[] - - System.String[] - - - None - - - Payload - - JSON format payload - - System.String - - System.String - - - None - - - PollFrom - - Specifies the polling header (to fetch from) for long-running operation status. - - - AzureAsyncLocation - Location - OriginalUri - Operation-Location - - System.String - - System.String - - - None - - - ResourceGroupName - - Target Resource Group Name - - System.String - - System.String - - - None - - - ResourceProviderName - - Target Resource Provider Name - - System.String - - System.String - - - None - - - ResourceType - - List of Target Resource Type - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - Target Subscription Id - - System.String - - System.String - - - None - - - WaitForCompletion - - Waits for the long-running operation to complete before returning the result. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzRestMethod - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FinalResultFrom - - Specifies the header for final GET result after the long-running operation completes. - - - FinalStateVia - Location - OriginalUri - Operation-Location - - System.String - - System.String - - - None - - - Method - - Http Method - - - GET - POST - PUT - PATCH - DELETE - - System.String - - System.String - - - None - - - Path - - Path of target resource URL. Hostname of Resource Manager should not be added. - - System.String - - System.String - - - None - - - Payload - - JSON format payload - - System.String - - System.String - - - None - - - PollFrom - - Specifies the polling header (to fetch from) for long-running operation status. - - - AzureAsyncLocation - Location - OriginalUri - Operation-Location - - System.String - - System.String - - - None - - - WaitForCompletion - - Waits for the long-running operation to complete before returning the result. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzRestMethod - - Uri - - Uniform Resource Identifier of the Azure resources. The target resource needs to support Azure AD authentication and the access token is derived according to resource id. If resource id is not set, its value is derived according to built-in service suffixes in current Azure Environment. - - System.Uri - - System.Uri - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FinalResultFrom - - Specifies the header for final GET result after the long-running operation completes. - - - FinalStateVia - Location - OriginalUri - Operation-Location - - System.String - - System.String - - - None - - - Method - - Http Method - - - GET - POST - PUT - PATCH - DELETE - - System.String - - System.String - - - None - - - Payload - - JSON format payload - - System.String - - System.String - - - None - - - PollFrom - - Specifies the polling header (to fetch from) for long-running operation status. - - - AzureAsyncLocation - Location - OriginalUri - Operation-Location - - System.String - - System.String - - - None - - - ResourceId - - Identifier URI specified by the REST API you are calling. It shouldn't be the resource id of Azure Resource Manager. - - System.Uri - - System.Uri - - - None - - - WaitForCompletion - - Waits for the long-running operation to complete before returning the result. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ApiVersion - - Api Version - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FinalResultFrom - - Specifies the header for final GET result after the long-running operation completes. - - System.String - - System.String - - - None - - - Method - - Http Method - - System.String - - System.String - - - None - - - Name - - list of Target Resource Name - - System.String[] - - System.String[] - - - None - - - Path - - Path of target resource URL. Hostname of Resource Manager should not be added. - - System.String - - System.String - - - None - - - Payload - - JSON format payload - - System.String - - System.String - - - None - - - PollFrom - - Specifies the polling header (to fetch from) for long-running operation status. - - System.String - - System.String - - - None - - - ResourceGroupName - - Target Resource Group Name - - System.String - - System.String - - - None - - - ResourceId - - Identifier URI specified by the REST API you are calling. It shouldn't be the resource id of Azure Resource Manager. - - System.Uri - - System.Uri - - - None - - - ResourceProviderName - - Target Resource Provider Name - - System.String - - System.String - - - None - - - ResourceType - - List of Target Resource Type - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - Target Subscription Id - - System.String - - System.String - - - None - - - Uri - - Uniform Resource Identifier of the Azure resources. The target resource needs to support Azure AD authentication and the access token is derived according to resource id. If resource id is not set, its value is derived according to built-in service suffixes in current Azure Environment. - - System.Uri - - System.Uri - - - None - - - WaitForCompletion - - Waits for the long-running operation to complete before returning the result. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.string - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSHttpResponse - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Invoke-AzRestMethod -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}?api-version={API}" -Method GET - -Headers : {[Cache-Control, System.String[]], [Pragma, System.String[]], [x-ms-request-id, System.String[]], [Strict-Transport-Security, System.String[]]…} -Version : 1.1 -StatusCode : 200 -Method : GET -Content : { - "properties": { - "source": "Azure", - "customerId": "{customerId}", - "provisioningState": "Succeeded", - "sku": { - "name": "pergb2018", - "maxCapacityReservationLevel": 3000, - "lastSkuUpdate": "Mon, 25 May 2020 11:10:01 GMT" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "Thu, 18 Jun 2020 05:00:00 GMT", - "dataIngestionStatus": "RespectQuota" - }, - "enableFailover": false, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "Mon, 25 May 2020 11:10:01 GMT", - "modifiedDate": "Mon, 25 May 2020 11:10:02 GMT" - }, - "id": "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}", - "name": "{workspace}", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "eastasia", - "tags": {} - } - - Get log analytics workspace by path. It only supports management plane API and Hostname of Azure Resource Manager is added according to Azure environment setting. - - - - - - - -------------------------- Example 2 -------------------------- - Invoke-AzRestMethod https://graph.microsoft.com/v1.0/me - -Headers : {[Date, System.String[]], [Cache-Control, System.String[]], [Transfer-Encoding, System.String[]], [Strict-Transport-Security, System.String[]]…} -Version : 1.1 -StatusCode : 200 -Method : GET -Content : {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":["......} - - Get current signed in user via MicrosoftGraph API. This example is equivalent to `Get-AzADUser -SignedIn`. - - - - - - -------------------------- Example 3 -------------------------- - $subscriptionId = (Get-AzContext).Subscription.ID -Invoke-AzRestMethod -SubscriptionId $subscriptionId -ResourceGroupName "test-group" -ResourceProviderName Microsoft.AppPlatform -ResourceType Spring,apps -Name "test-spring-service" -ApiVersion 2020-07-01 -Method GET - -Headers : {[Cache-Control, System.String[]], [Pragma, System.String[]], [Vary, System.String[]], [x-ms-request-id, - System.String[]]…} -Version : 1.1 -StatusCode : 200 -Method : GET -Content : {"value":[{"properties":{"public":true,"url":"https://test-spring-service-demo.azuremicroservices.io","provisioni - ngState":"Succeeded","activeDeploymentName":"default","fqdn":"test-spring-service.azuremicroservices.io","httpsOn - ly":false,"createdTime":"2022-06-22T02:57:13.272Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"pers - istentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity - ":null,"location":"eastus","id":"/subscriptions/$subscriptionId/resourceGroups/test-group/providers/Microsoft.AppPlatform/Spring/test-spring-service/apps/demo","name":"demo"},{"properties":{"publ - ic":false,"provisioningState":"Succeeded","activeDeploymentName":"deploy01","fqdn":"test-spring-service.azuremicr - oservices.io","httpsOnly":false,"createdTime":"2022-06-22T07:46:54.9Z","temporaryDisk":{"sizeInGB":5,"moun - tPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Sp - ring/apps","identity":null,"location":"eastus","id":"/subscriptions/$subscriptionId/r - esourceGroups/test-group/providers/Microsoft.AppPlatform/Spring/test-spring-service/apps/pwsh01","name":"pwsh0 - 1"}]} - - List apps under spring service "test-spring-service" - - - - - - -------------------------- Example 4 -------------------------- - $subscriptionId = (Get-AzContext).Subscription.ID -Invoke-AzRestMethod -SubscriptionId $subscriptionId -ResourceGroupName "test-group" -ResourceProviderName Microsoft.AppPlatform -ResourceType Spring -Name "test-spring-service","demo" -ApiVersion 2020-07-01 -Method GET - -Headers : {[Cache-Control, System.String[]], [Pragma, System.String[]], [Vary, System.String[]], [x-ms-request-id, - System.String[]]…} -Version : 1.1 -StatusCode : 200 -Method : GET -Content : {"properties":{"public":true,"url":"https://test-spring-service-demo.azuremicroservices.io","provisioningState":" - Succeeded","activeDeploymentName":"default","fqdn":"test-spring-service.azuremicroservices.io","httpsOnly":false, - "createdTime":"2022-06-22T02:57:13.272Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk - ":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"lo - cation":"eastus","id":"/subscriptions/$subscriptionId/resourceGroups/test-group/pr - oviders/Microsoft.AppPlatform/Spring/test-spring-service/apps/demo","name":"demo"} - - Get app "demo" under Spring cloud service "test-spring-service" - - - - - - -------------------------- Example 5 -------------------------- - # Replace *** with real values -$payload = @{principalId="***"; resourceId="***"; appRoleId="***"} | ConvertTo-Json -Depth 3 -Invoke-AzRestMethod -Method POST -Uri https://graph.microsoft.com/v1.0/servicePrincipals/***/appRoleAssignedTo -Payload $payload - - Call Microsoft Graph API to assign App Role by constructing a hashtable, converting to a JSON string, and passing the payload to `Invoke-AzRestMethod`. - - - - - - -------------------------- Example 5 -------------------------- - # This example demonstrates creating or updating a resource with a long-running PUT request. -Invoke-AzRestMethod -Method PUT -Uri "https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.KeyVault/managedHSMs/{hsm-name}?api-version=2023-07-01" ` - -Payload (@{ - location = "eastus"; - properties = @{ - softDeleteRetentionDays = 7; - tenantId = "{tenant-id}"; - initialAdminObjectIds = @("{admin-object-id}") - }; - sku = @{ - name = "Standard_B1"; - family = "B" - } - } | ConvertTo-Json -Depth 10) ` - -WaitForCompletion - -StatusCode : 200 -Content : { - "sku": { - "family": "B", - "name": "Standard_B1" - }, - "id": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.KeyVault/managedHSMs/{hsm-name}", - "name": "{hsm-name}", - "type": "Microsoft.KeyVault/managedHSMs", - "location": "{region}", - "tags": {}, - "systemData": { - "createdBy": "{user-email}", - "createdByType": "User", - "createdAt": "2024-10-29T05:05:49.229Z", - "lastModifiedBy": "{user-email}", - "lastModifiedByType": "User", - "lastModifiedAt": "2024-10-29T05:05:49.229Z" - }, - "properties": { - "tenantId": "{tenant-id}", - "hsmUri": "https://{hsm-name}.managedhsm.azure.net/", - "initialAdminObjectIds": [ - "{admin-object-id}" - ], - "enableSoftDelete": true, - "softDeleteRetentionInDays": 90, - "enablePurgeProtection": false, - "provisioningState": "Succeeded", - "statusMessage": "The Managed HSM is provisioned and ready to use.", - "networkAcls": { - "bypass": "AzureServices", - "defaultAction": "Allow", - "ipRules": [], - "virtualNetworkRules": [] - }, - "publicNetworkAccess": "Enabled", - "regions": [], - "securityDomainProperties": { - "activationStatus": "NotActivated", - "activationStatusMessage": "Your HSM has been provisioned, but cannot be used for cryptographic operations until it is activated. To activate the HSM, download the security domain." - } - } - } -Headers : { - "Cache-Control": "no-cache", - "Pragma": "no-cache", - "x-ms-client-request-id": "{client-request-id}", - "x-ms-keyvault-service-version": "1.5.1361.0", - "x-ms-request-id": "{request-id}", - "x-ms-ratelimit-remaining-subscription-reads": "249", - "x-ms-ratelimit-remaining-subscription-global-reads": "3749", - "x-ms-correlation-request-id": "{correlation-request-id}", - "x-ms-routing-request-id": "{routing-request-id}", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Date": "Tue, 29 Oct 2024 05:18:44 GMT" - } -Method : GET -RequestUri : https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.KeyVault/managedHSMs/{hsm-name}?api-version=2023-07-01 -Version : 1.1 - - Sends a long-running PUT request to create or update a Managed HSM resource in Azure, polling until completion if the operation requires it. This example uses placeholders ({subscription-id}, {resource-group}, {hsm-name}, {tenant-id}, and {admin-object-id}) that the user should replace with their specific values. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/invoke-azrestmethod - - - - - - Open-AzSurveyLink - Open - AzSurveyLink - - Open survey link in default browser. - - - - Open survey link in default browser. - - - - Open-AzSurveyLink - - - - - - - None - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Open-AzSurveyLink - -Opening the default browser to https://aka.ms/azpssurvey?Q_CHL=INTERCEPT - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/open-azsurveylink - - - - - - Register-AzModule - Register - AzModule - - FOR INTERNAL USE ONLY - Provide Runtime Support for AutoRest Generated cmdlets - - - - FOR INTERNAL USE ONLY - Provide Runtime Support for AutoRest Generated cmdlets - - - - Register-AzModule - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Object - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Register-AzModule - - Used Internally by AutoRest-generated cmdlets - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/register-azmodule - - - - - - Remove-AzContext - Remove - AzContext - - Remove a context from the set of available contexts - - - - Remove an azure context from the set of contexts - - - - Remove-AzContext - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Remove context even if it is the default - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - A context object, normally passed through the pipeline. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - PassThru - - Return the removed context - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzContext - - Name - - The name of the context - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Remove context even if it is the default - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Return the removed context - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Remove context even if it is the default - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - A context object, normally passed through the pipeline. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - Name - - The name of the context - - System.String - - System.String - - - None - - - PassThru - - Return the removed context - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Remove-AzContext -Name Default - - Remove the context named default - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/remove-azcontext - - - - - - Remove-AzEnvironment - Remove - AzEnvironment - - Removes endpoints and metadata for connecting to a given Azure instance. - - - - The Remove-AzEnvironment cmdlet removes endpoints and metadata information for connecting to a given Azure instance. - - - - Remove-AzEnvironment - - Name - - Specifies the name of the environment to remove. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the environment to remove. - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment - - - - - - - - - - - - - - ----- Example 1: Creating and removing a test environment ----- - Add-AzEnvironment -Name TestEnvironment ` - -ActiveDirectoryEndpoint TestADEndpoint ` - -ActiveDirectoryServiceEndpointResourceId TestADApplicationId ` - -ResourceManagerEndpoint TestRMEndpoint ` - -GalleryEndpoint TestGalleryEndpoint ` - -GraphEndpoint TestGraphEndpoint - -Name Resource Manager Url ActiveDirectory Authority ----- -------------------- ------------------------- -TestEnvironment TestRMEndpoint TestADEndpoint/ - -Remove-AzEnvironment -Name TestEnvironment - -Name Resource Manager Url ActiveDirectory Authority ----- -------------------- ------------------------- -TestEnvironment TestRMEndpoint TestADEndpoint/ - - This example shows how to create an environment using Add-AzEnvironment, and then how to delete the environment using Remove-AzEnvironment. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/remove-azenvironment - - - Add-AzEnvironment - - - - Get-AzEnvironment - - - - Set-AzEnvironment - - - - - - - Rename-AzContext - Rename - AzContext - - Rename an Azure context. By default contexts are named by user account and subscription. - - - - Rename an Azure context. By default contexts are named by user account and subscription. - - - - Rename-AzContext - - TargetName - - The new name of the context - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Rename the context even if the target context already exists - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - A context object, normally passed through the pipeline. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - PassThru - - Return the renamed context. - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Rename-AzContext - - SourceName - - The name of the context - - System.String - - System.String - - - None - - - TargetName - - The new name of the context - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Rename the context even if the target context already exists - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Return the renamed context. - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Rename the context even if the target context already exists - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - A context object, normally passed through the pipeline. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - PassThru - - Return the renamed context. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - SourceName - - The name of the context - - System.String - - System.String - - - None - - - TargetName - - The new name of the context - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - - - - - ------ Example 1: Rename a context using named parameters ------ - Rename-AzContext -SourceName "[user1@contoso.org; 12345-6789-2345-3567890]" -TargetName "Work" - - Rename the context for 'user1@contoso.org' with subscription '12345-6789-2345-3567890' to 'Work'. After this command, you will be able to target the context using 'Select-AzContext Work'. Note that you can tab through the values for 'SourceName' using tab completion. - - - - - - --- Example 2: Rename a context using positional parameters --- - Rename-AzContext "My context" "Work" - - Rename the context named "My context" to "Work". After this command, you will be able to target the context using Select-AzContext Work - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/rename-azcontext - - - - - - Resolve-AzError - Resolve - AzError - - Display detailed information about PowerShell errors, with extended details for Azure PowerShell errors. - - - - Resolves and displays detailed information about errors in the current PowerShell session, including where the error occurred in script, stack trace, and all inner and aggregate exceptions. For Azure PowerShell errors provides additional detail in debugging service issues, including complete detail about the request and server response that caused the error. - - - - Resolve-AzError - - Error - - One or more error records to resolve. If no parameters are specified, all errors in the session are resolved. - - System.Management.Automation.ErrorRecord[] - - System.Management.Automation.ErrorRecord[] - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Resolve-AzError - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Last - - Resolve only the last error that occurred in the session. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Error - - One or more error records to resolve. If no parameters are specified, all errors in the session are resolved. - - System.Management.Automation.ErrorRecord[] - - System.Management.Automation.ErrorRecord[] - - - None - - - Last - - Resolve only the last error that occurred in the session. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.Management.Automation.ErrorRecord[] - - - - - - - - - - Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord - - - - - - - - Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord - - - - - - - - Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord - - - - - - - - - - - - - - -------------- Example 1: Resolve the Last Error -------------- - Resolve-AzError -Last - -HistoryId: 3 - - -Message : Run Connect-AzAccount to login. -StackTrace : at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.get_DefaultContext() in AzureRmCmdlet.cs:line 85 - at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.LogCmdletStartInvocationInfo() in AzureRmCmdlet.cs:line 269 - at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.BeginProcessing() inAzurePSCmdlet.cs:line 299 - at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.BeginProcessing() in AzureRmCmdlet.cs:line 320 - at Microsoft.Azure.Commands.Profile.GetAzureRMSubscriptionCommand.BeginProcessing() in GetAzureRMSubscription.cs:line 49 - at System.Management.Automation.Cmdlet.DoBeginProcessing() - at System.Management.Automation.CommandProcessorBase.DoBegin() -Exception : System.Management.Automation.PSInvalidOperationException -InvocationInfo : {Get-AzSubscription} -Line : Get-AzSubscription -Position : At line:1 char:1 - + Get-AzSubscription - + ~~~~~~~~~~~~~~~~~~~~~~~ -HistoryId : 3 - - Get details of the last error. - - - - - - --------- Example 2: Resolve all Errors in the Session --------- - Resolve-AzError - -HistoryId: 8 - - -RequestId : b61309e8-09c9-4f0d-ba56-08a6b28c731d -Message : Resource group 'contoso' could not be found. -ServerMessage : ResourceGroupNotFound: Resource group 'contoso' could not be found. - (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError]) -ServerResponse : {NotFound} -RequestMessage : {GET https://management.azure.com/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/co - ntoso/providers/Microsoft.Storage/storageAccounts/contoso?api-version=2016-12-01} -InvocationInfo : {Get-AzStorageAccount} -Line : Get-AzStorageAccount -ResourceGroupName contoso -Name contoso -Position : At line:1 char:1 - + Get-AzStorageAccount -ResourceGroupName contoso -Name contoso - + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -StackTrace : at Microsoft.Azure.Management.Storage.StorageAccountsOperations.<GetPropertiesWithHttpMessagesAsync - >d__8.MoveNext() - --- End of stack trace from previous location where exception was thrown --- - at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() - at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) - at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.<GetPropertiesAsync>d__7. - MoveNext() - --- End of stack trace from previous location where exception was thrown --- - at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() - at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) - at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.GetProperties(IStorageAcc - ountsOperations operations, String resourceGroupName, String accountName) - at Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand.ExecuteCmdlet() in C:\ - zd\azure-powershell\src\ResourceManager\Storage\Commands.Management.Storage\StorageAccount\GetAzureSto - rageAccount.cs:line 70 - at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() in - C:\zd\azure-powershell\src\Common\Commands.Common\AzurePSCmdlet.cs:line 642 -HistoryId : 8 - - - HistoryId: 5 - - -Message : Run Connect-AzAccount to login. -StackTrace : at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.get_DefaultContext() in C:\zd\azur - e-powershell\src\ResourceManager\Common\Commands.ResourceManager.Common\AzureRmCmdlet.cs:line 85 - at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.LogCmdletStartInvocationInfo() in - C:\zd\azure-powershell\src\ResourceManager\Common\Commands.ResourceManager.Common\AzureRmCmdlet.cs:lin - e 269 - at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.BeginProcessing() in - C:\zd\azure-powershell\src\Common\Commands.Common\AzurePSCmdlet.cs:line 299 - at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.BeginProcessing() in C:\zd\azure-p - owershell\src\ResourceManager\Common\Commands.ResourceManager.Common\AzureRmCmdlet.cs:line 320 - at Microsoft.Azure.Commands.Profile.GetAzureRMSubscriptionCommand.BeginProcessing() in C:\zd\azure- - powershell\src\ResourceManager\Profile\Commands.Profile\Subscription\GetAzureRMSubscription.cs:line 49 - at System.Management.Automation.Cmdlet.DoBeginProcessing() - at System.Management.Automation.CommandProcessorBase.DoBegin() -Exception : System.Management.Automation.PSInvalidOperationException -InvocationInfo : {Get-AzSubscription} -Line : Get-AzSubscription -Position : At line:1 char:1 - + Get-AzSubscription - + ~~~~~~~~~~~~~~~~~~~~~~~ -HistoryId : 5 - - Get details of all errors that have occurred in the current session. - - - - - - ------------- Example 3: Resolve a Specific Error ------------- - Resolve-AzError $Error[0] - -HistoryId: 8 - - -RequestId : b61309e8-09c9-4f0d-ba56-08a6b28c731d -Message : Resource group 'contoso' could not be found. -ServerMessage : ResourceGroupNotFound: Resource group 'contoso' could not be found. - (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError]) -ServerResponse : {NotFound} -RequestMessage : {GET https://management.azure.com/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/co - ntoso/providers/Microsoft.Storage/storageAccounts/contoso?api-version=2016-12-01} -InvocationInfo : {Get-AzStorageAccount} -Line : Get-AzStorageAccount -ResourceGroupName contoso -Name contoso -Position : At line:1 char:1 - + Get-AzStorageAccount -ResourceGroupName contoso -Name contoso - + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -StackTrace : at Microsoft.Azure.Management.Storage.StorageAccountsOperations.<GetPropertiesWithHttpMessagesAsync - >d__8.MoveNext() - --- End of stack trace from previous location where exception was thrown --- - at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() - at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) - at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.<GetPropertiesAsync>d__7. - MoveNext() - --- End of stack trace from previous location where exception was thrown --- - at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() - at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) - at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.GetProperties(IStorageAcc - ountsOperations operations, String resourceGroupName, String accountName) - at Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand.ExecuteCmdlet() in C:\ - zd\azure-powershell\src\ResourceManager\Storage\Commands.Management.Storage\StorageAccount\GetAzureSto - rageAccount.cs:line 70 - at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() in - C:\zd\azure-powershell\src\Common\Commands.Common\AzurePSCmdlet.cs:line 642 -HistoryId : 8 - - Get details of the specified error. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/resolve-azerror - - - - - - Save-AzContext - Save - AzContext - - Saves the current authentication information for use in other PowerShell sessions. - - - - The Save-AzContext cmdlet saves the current authentication information for use in other PowerShell sessions. - - - - Save-AzContext - - Profile - - Specifies the Azure context from which this cmdlet reads. If you do not specify a context, this cmdlet reads from the local default context. - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - - None - - - Path - - Specifies the path of the file to which to save authentication information. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - WithCredential - - Export the credentials to the file - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of the file to which to save authentication information. - - System.String - - System.String - - - None - - - Profile - - Specifies the Azure context from which this cmdlet reads. If you do not specify a context, this cmdlet reads from the local default context. - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - - None - - - WithCredential - - Export the credentials to the file - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile - - - - - - - - - - - - - - ------- Example 1: Saving the current session's context ------- - Connect-AzAccount -Save-AzContext -Path C:\test.json - - This example saves the current session's Azure context to the JSON file provided. - - - - - - -------------- Example 2: Saving a given context -------------- - Save-AzContext -Profile (Connect-AzAccount) -Path C:\test.json - - This example saves the Azure context that is passed through to the cmdlet to the JSON file provided. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/save-azcontext - - - - - - Select-AzContext - Select - AzContext - - Select a subscription and account to target in Azure PowerShell cmdlets - - - - Select a subscription to target (or account or tenant) in Azure PowerShell cmdlets. After this cmdlet, future cmdlets will target the selected context. - - - - Select-AzContext - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - A context object, normally passed through the pipeline. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Select-AzContext - - Name - - The name of the context - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, tenant and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - A context object, normally passed through the pipeline. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - Name - - The name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - - - - - -------------- Example 1: Target a named context -------------- - Select-AzContext "Work" - -Name Account SubscriptionName Environment TenantId ----- ------- ---------------- ----------- -------- -Work test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... - - Target future Azure PowerShell cmdlets at the account, tenant, and subscription in the 'Work' context. - - - - - - -------------------------- Example 2 -------------------------- - Select-AzContext -Name TestEnvironment -Scope Process - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/select-azcontext - - - - - - Send-Feedback - Send - Feedback - - Sends feedback to the Azure PowerShell team via a set of guided prompts. - - - - The Send-Feedback cmdlet sends feedback to the Azure PowerShell team. - - - - Send-Feedback - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - None - - - - - - - - - - System.Void - - - - - - - - - - - - - - -------------------------- Example 1: -------------------------- - Send-Feedback - -With zero (0) being the least and ten (10) being the most, how likely are you to recommend Azure PowerShell to a friend or colleague? - -10 - -What does Azure PowerShell do well? - -Response. - -Upon what could Azure PowerShell improve? - -Response. - -Please enter your email if you are interested in providing follow up information: - -your@email.com - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/send-feedback - - - - - - Set-AzContext - Set - AzContext - - Sets the tenant, subscription, and environment for cmdlets to use in the current session. - - - - The Set-AzContext cmdlet sets authentication information for cmdlets that you run in the current session. The context includes tenant, subscription, and environment information. - - - - Set-AzContext - - Context - - Specifies the context for the current session. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendedProperty - - Additional context properties - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - - None - - - Force - - Overwrite the existing context with the same name, if any. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzContext - - Subscription - - The name or id of the subscription that the context should be set to. This parameter has aliases to -SubscriptionName and -SubscriptionId, so, for clarity, either of these can be used instead of -Subscription when specifying name and id, respectively. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendedProperty - - Additional context properties - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - - None - - - Force - - Overwrite the existing context with the same name, if any. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Tenant - - Tenant domain name or ID - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzContext - - SubscriptionObject - - A subscription object - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendedProperty - - Additional context properties - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - - None - - - Force - - Overwrite the existing context with the same name, if any. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzContext - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendedProperty - - Additional context properties - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - - None - - - Force - - Overwrite the existing context with the same name, if any. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Tenant - - Tenant domain name or ID - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzContext - - TenantObject - - A Tenant Object - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendedProperty - - Additional context properties - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - - None - - - Force - - Overwrite the existing context with the same name, if any. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies the context for the current session. - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - None - - - DefaultProfile - - The credentials, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendedProperty - - Additional context properties - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - System.Collections.Generic.IDictionary`2[System.String,System.String] - - - None - - - Force - - Overwrite the existing context with the same name, if any. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the context - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Subscription - - The name or id of the subscription that the context should be set to. This parameter has aliases to -SubscriptionName and -SubscriptionId, so, for clarity, either of these can be used instead of -Subscription when specifying name and id, respectively. - - System.String - - System.String - - - None - - - SubscriptionObject - - A subscription object - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - - None - - - Tenant - - Tenant domain name or ID - - System.String - - System.String - - - None - - - TenantObject - - A Tenant Object - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureTenant - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext - - - - - - - - - - - - - - ----------- Example 1: Set the subscription context ----------- - Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx" - -Name Account SubscriptionName Environment TenantId ----- ------- ---------------- ----------- -------- -Work test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... - - This command sets the context to use the specified subscription. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/set-azcontext - - - Get-AzContext - - - - - - - Set-AzDefault - Set - AzDefault - - Sets a default in the current context - - - - The Set-AzDefault cmdlet adds or changes the defaults in the current context. - - - - Set-AzDefault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Create a new resource group if specified default does not exist - - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Name of the resource group being set as default - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Create a new resource group if specified default does not exist - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Name of the resource group being set as default - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSResourceGroup - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Set-AzDefault -ResourceGroupName myResourceGroup - -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup -Name : myResourceGroup -Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties -Location : eastus -ManagedBy : -Tags : - - This command sets the default resource group to the resource group specified by the user. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/set-azdefault - - - - - - Set-AzEnvironment - Set - AzEnvironment - - Sets properties for an Azure environment. - - - - The Set-AzEnvironment cmdlet sets endpoints and metadata for connecting to an instance of Azure. - - - - Set-AzEnvironment - - Name - - Specifies the name of the environment to modify. - - System.String - - System.String - - - None - - - PublishSettingsFileUrl - - Specifies the URL from which .publishsettings files can be downloaded. - - System.String - - System.String - - - None - - - AzureKeyVaultDnsSuffix - - Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net - - System.String - - System.String - - - None - - - AzureKeyVaultServiceEndpointResourceId - - Resource identifier of Azure Key Vault data service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - TrafficManagerDnsSuffix - - Specifies the domain-name suffix for Azure Traffic Manager services. - - System.String - - System.String - - - None - - - SqlDatabaseDnsSuffix - - Specifies the domain-name suffix for Azure SQL Database servers. - - System.String - - System.String - - - None - - - AzureDataLakeStoreFileSystemEndpointSuffix - - Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net - - System.String - - System.String - - - None - - - AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix - - Dns Suffix of Azure Data Lake Analytics job and catalog services - - System.String - - System.String - - - None - - - EnableAdfsAuthentication - - Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. - - - System.Management.Automation.SwitchParameter - - - False - - - AdTenant - - Specifies the default Active Directory tenant. - - System.String - - System.String - - - None - - - GraphAudience - - The audience for tokens authenticating with the AD Graph Endpoint. - - System.String - - System.String - - - None - - - DataLakeAudience - - The audience for tokens authenticating with the AD Data Lake services Endpoint. - - System.String - - System.String - - - None - - - ServiceEndpoint - - Specifies the endpoint for Service Management (RDFE) requests. - - System.String - - System.String - - - None - - - BatchEndpointResourceId - - The resource identifier of the Azure Batch service that is the recipient of the requested token - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpointResourceId - - The audience for tokens authenticating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpoint - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - ManagementPortalUrl - - Specifies the URL for the Management Portal. - - System.String - - System.String - - - None - - - StorageEndpoint - - Specifies the endpoint for storage (blob, table, queue, and file) access. - - System.String - - System.String - - - None - - - ActiveDirectoryEndpoint - - Specifies the base authority for Azure Active Directory authentication. - - System.String - - System.String - - - None - - - ResourceManagerEndpoint - - Specifies the URL for Azure Resource Manager requests. - - System.String - - System.String - - - None - - - GalleryEndpoint - - Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. - - System.String - - System.String - - - None - - - ActiveDirectoryServiceEndpointResourceId - - Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. - - System.String - - System.String - - - None - - - GraphEndpoint - - Specifies the URL for Graph (Active Directory metadata) requests. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointResourceId - - The resource identifier of the Azure Analysis Services resource. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointSuffix - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointResourceId - - The The resource identifier of the Azure Attestation service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointSuffix - - Dns suffix of Azure Attestation service. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointResourceId - - The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointSuffix - - Dns suffix of Azure Synapse Analytics. - - System.String - - System.String - - - None - - - ContainerRegistryEndpointSuffix - - Suffix of Azure Container Registry. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MicrosoftGraphEndpointResourceId - - The resource identifier of Microsoft Graph - - System.String - - System.String - - - None - - - MicrosoftGraphUrl - - Microsoft Graph Url - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzEnvironment - - Name - - Specifies the name of the environment to modify. - - System.String - - System.String - - - None - - - ARMEndpoint - - The Azure Resource Manager endpoint. - - System.String - - System.String - - - None - - - AzureKeyVaultDnsSuffix - - Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net - - System.String - - System.String - - - None - - - AzureKeyVaultServiceEndpointResourceId - - Resource identifier of Azure Key Vault data service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - DataLakeAudience - - The audience for tokens authenticating with the AD Data Lake services Endpoint. - - System.String - - System.String - - - None - - - BatchEndpointResourceId - - The resource identifier of the Azure Batch service that is the recipient of the requested token - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpointResourceId - - The audience for tokens authenticating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpoint - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - StorageEndpoint - - Specifies the endpoint for storage (blob, table, queue, and file) access. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointResourceId - - The resource identifier of the Azure Analysis Services resource. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointSuffix - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointResourceId - - The The resource identifier of the Azure Attestation service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointSuffix - - Dns suffix of Azure Attestation service. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointResourceId - - The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointSuffix - - Dns suffix of Azure Synapse Analytics. - - System.String - - System.String - - - None - - - ContainerRegistryEndpointSuffix - - Suffix of Azure Container Registry. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - - Process - CurrentUser - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ActiveDirectoryEndpoint - - Specifies the base authority for Azure Active Directory authentication. - - System.String - - System.String - - - None - - - ActiveDirectoryServiceEndpointResourceId - - Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. - - System.String - - System.String - - - None - - - AdTenant - - Specifies the default Active Directory tenant. - - System.String - - System.String - - - None - - - ARMEndpoint - - The Azure Resource Manager endpoint. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointResourceId - - The resource identifier of the Azure Analysis Services resource. - - System.String - - System.String - - - None - - - AzureAnalysisServicesEndpointSuffix - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointResourceId - - The The resource identifier of the Azure Attestation service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureAttestationServiceEndpointSuffix - - Dns suffix of Azure Attestation service. - - System.String - - System.String - - - None - - - AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix - - Dns Suffix of Azure Data Lake Analytics job and catalog services - - System.String - - System.String - - - None - - - AzureDataLakeStoreFileSystemEndpointSuffix - - Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net - - System.String - - System.String - - - None - - - AzureKeyVaultDnsSuffix - - Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net - - System.String - - System.String - - - None - - - AzureKeyVaultServiceEndpointResourceId - - Resource identifier of Azure Key Vault data service that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpoint - - The endpoint to use when communicating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureOperationalInsightsEndpointResourceId - - The audience for tokens authenticating with the Azure Log Analytics API. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointResourceId - - The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. - - System.String - - System.String - - - None - - - AzureSynapseAnalyticsEndpointSuffix - - Dns suffix of Azure Synapse Analytics. - - System.String - - System.String - - - None - - - BatchEndpointResourceId - - The resource identifier of the Azure Batch service that is the recipient of the requested token - - System.String - - System.String - - - None - - - ContainerRegistryEndpointSuffix - - Suffix of Azure Container Registry. - - System.String - - System.String - - - None - - - DataLakeAudience - - The audience for tokens authenticating with the AD Data Lake services Endpoint. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableAdfsAuthentication - - Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - GalleryEndpoint - - Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. - - System.String - - System.String - - - None - - - GraphAudience - - The audience for tokens authenticating with the AD Graph Endpoint. - - System.String - - System.String - - - None - - - GraphEndpoint - - Specifies the URL for Graph (Active Directory metadata) requests. - - System.String - - System.String - - - None - - - ManagementPortalUrl - - Specifies the URL for the Management Portal. - - System.String - - System.String - - - None - - - MicrosoftGraphEndpointResourceId - - The resource identifier of Microsoft Graph - - System.String - - System.String - - - None - - - MicrosoftGraphUrl - - Microsoft Graph Url - - System.String - - System.String - - - None - - - Name - - Specifies the name of the environment to modify. - - System.String - - System.String - - - None - - - PublishSettingsFileUrl - - Specifies the URL from which .publishsettings files can be downloaded. - - System.String - - System.String - - - None - - - ResourceManagerEndpoint - - Specifies the URL for Azure Resource Manager requests. - - System.String - - System.String - - - None - - - Scope - - Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - Microsoft.Azure.Commands.Profile.Common.ContextModificationScope - - - None - - - ServiceEndpoint - - Specifies the endpoint for Service Management (RDFE) requests. - - System.String - - System.String - - - None - - - SqlDatabaseDnsSuffix - - Specifies the domain-name suffix for Azure SQL Database servers. - - System.String - - System.String - - - None - - - StorageEndpoint - - Specifies the endpoint for storage (blob, table, queue, and file) access. - - System.String - - System.String - - - None - - - TrafficManagerDnsSuffix - - Specifies the domain-name suffix for Azure Traffic Manager services. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Management.Automation.SwitchParameter - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment - - - - - - - - - - - - - - ----- Example 1: Creating and modifying a new environment ----- - Add-AzEnvironment -Name TestEnvironment ` - -ActiveDirectoryEndpoint TestADEndpoint ` - -ActiveDirectoryServiceEndpointResourceId TestADApplicationId ` - -ResourceManagerEndpoint TestRMEndpoint ` - -GalleryEndpoint TestGalleryEndpoint ` - -GraphEndpoint TestGraphEndpoint - -Name Resource Manager Url ActiveDirectory Authority ----- -------------------- ------------------------- -TestEnvironment TestRMEndpoint TestADEndpoint/ - -Set-AzEnvironment -Name TestEnvironment ` - -ActiveDirectoryEndpoint NewTestADEndpoint ` - -GraphEndpoint NewTestGraphEndpoint | Format-List - -Name : TestEnvironment -EnableAdfsAuthentication : False -ActiveDirectoryServiceEndpointResourceId : TestADApplicationId -AdTenant : -GalleryUrl : TestGalleryEndpoint -ManagementPortalUrl : -ServiceManagementUrl : -PublishSettingsFileUrl : -ResourceManagerUrl : TestRMEndpoint -SqlDatabaseDnsSuffix : -StorageEndpointSuffix : -ActiveDirectoryAuthority : NewTestADEndpoint -GraphUrl : NewTestGraphEndpoint -GraphEndpointResourceId : -TrafficManagerDnsSuffix : -AzureKeyVaultDnsSuffix : -AzureDataLakeStoreFileSystemEndpointSuffix : -AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : -AzureKeyVaultServiceEndpointResourceId : -BatchEndpointResourceId : -AzureOperationalInsightsEndpoint : -AzureOperationalInsightsEndpointResourceId : -AzureAttestationServiceEndpointSuffix : -AzureAttestationServiceEndpointResourceId : -AzureSynapseAnalyticsEndpointSuffix : -AzureSynapseAnalyticsEndpointResourceId : - - In this example we are creating a new Azure environment with sample endpoints using Add-AzEnvironment, and then we are changing the value of the ActiveDirectoryEndpoint and GraphEndpoint attributes of the created environment using the cmdlet Set-AzEnvironment. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/set-azenvironment - - - Add-AzEnvironment - - - - Get-AzEnvironment - - - - Remove-AzEnvironment - - - - - - - Uninstall-AzureRm - Uninstall - AzureRm - - Removes all AzureRm modules from a machine. - - - - Removes all AzureRm modules from a machine. - - - - Uninstall-AzureRm - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return list of Modules removed if specified. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return list of Modules removed if specified. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.String - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Uninstall-AzureRm - - Running this command will remove all AzureRm modules from the machine for the version of PowerShell in which the cmdlet is run. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/uninstall-azurerm - - - - - - Update-AzConfig - Update - AzConfig - - Updates the configs of Azure PowerShell. - - - - Updates the configs of Azure PowerShell. Depending on which config to update, you may specify the scope where the config is persisted and to which module or cmdlet it applies to. - > [!NOTE] > It is discouraged to update configs in multiple PowerShell processes. Either do it in one process, or make sure the updates are at Process scope (`-Scope Process`) to avoid unexpected side-effects. - - - - Update-AzConfig - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - CheckForUpgrade - - When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value is true. - - System.Boolean - - System.Boolean - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSubscriptionForLogin - - Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. - - System.String - - System.String - - - None - - - DisableInstanceDiscovery - - Set it to true to disable both instance discovery and authority validation. This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack. The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority. By setting this to true, the validation of the authority is disabled. As a result, it is crucial to ensure that the configured authority host is valid and trustworthy. - - System.Boolean - - System.Boolean - - - None - - - DisplayBreakingChangeWarning - - Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. - - System.Boolean - - System.Boolean - - - None - - - DisplayRegionIdentified - - When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. - - System.Boolean - - System.Boolean - - - None - - - DisplaySecretsWarning - - When enabled, a warning message will be displayed when the cmdlet output contains secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844 - - System.Boolean - - System.Boolean - - - None - - - DisplaySurveyMessage - - When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. - - System.Boolean - - System.Boolean - - - None - - - EnableDataCollection - - When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy - - System.Boolean - - System.Boolean - - - None - - - EnableErrorRecordsPersistence - - When enabled, error records will be written to ~/.Azure/ErrorRecords. - - System.Boolean - - System.Boolean - - - None - - - EnableLoginByWam - - [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue - - System.Boolean - - System.Boolean - - - None - - - LoginExperienceV2 - - Only active when authenticating interactively, allows the user to choose the subscription and tenant used in subsequent commands. Possible values ad 'On' (Default) and 'Off'. 'On' requires user's input. 'Off' will use the first tenant and subscription returned by Azure, can change without notice and lead to command execution in an unwanted context (not recommended). - - - On - Off - - Microsoft.Azure.Commands.Common.Authentication.Config.Models.LoginExperienceConfig - - Microsoft.Azure.Commands.Common.Authentication.Config.Models.LoginExperienceConfig - - - None - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - - CurrentUser - Process - Default - Environment - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AppliesTo - - Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. - - Module name: the config applies to a certain module of Azure PowerShell. - For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". - - System.String - - System.String - - - None - - - CheckForUpgrade - - When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value is true. - - System.Boolean - - System.Boolean - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSubscriptionForLogin - - Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. - - System.String - - System.String - - - None - - - DisableInstanceDiscovery - - Set it to true to disable both instance discovery and authority validation. This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack. The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority. By setting this to true, the validation of the authority is disabled. As a result, it is crucial to ensure that the configured authority host is valid and trustworthy. - - System.Boolean - - System.Boolean - - - None - - - DisplayBreakingChangeWarning - - Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. - - System.Boolean - - System.Boolean - - - None - - - DisplayRegionIdentified - - When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. - - System.Boolean - - System.Boolean - - - None - - - DisplaySecretsWarning - - When enabled, a warning message will be displayed when the cmdlet output contains secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844 - - System.Boolean - - System.Boolean - - - None - - - DisplaySurveyMessage - - When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. - - System.Boolean - - System.Boolean - - - None - - - EnableDataCollection - - When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy - - System.Boolean - - System.Boolean - - - None - - - EnableErrorRecordsPersistence - - When enabled, error records will be written to ~/.Azure/ErrorRecords. - - System.Boolean - - System.Boolean - - - None - - - EnableLoginByWam - - [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue - - System.Boolean - - System.Boolean - - - None - - - LoginExperienceV2 - - Only active when authenticating interactively, allows the user to choose the subscription and tenant used in subsequent commands. Possible values ad 'On' (Default) and 'Off'. 'On' requires user's input. 'Off' will use the first tenant and subscription returned by Azure, can change without notice and lead to command execution in an unwanted context (not recommended). - - Microsoft.Azure.Commands.Common.Authentication.Config.Models.LoginExperienceConfig - - Microsoft.Azure.Commands.Common.Authentication.Config.Models.LoginExperienceConfig - - - None - - - Scope - - Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - Microsoft.Azure.PowerShell.Common.Config.ConfigScope - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.Boolean - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Profile.Models.PSConfig - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Update-AzConfig -DefaultSubscriptionForLogin "Name of subscription" - -Key Value Applies To Scope Help Message ---- ----- ---------- ----- ------------ -DefaultSubscriptionForLogin Name of subscription Az CurrentUser Subscription name or GUID. Sets the default context for Azure PowerShell when lo… - - Sets the "DefaultSubscriptionForLogin" config as "Name of subscription". When `Connect-AzAccount` the specified subscription will be selected as the default subscription. - - - - - - -------------------------- Example 2 -------------------------- - Update-AzConfig -DisplayBreakingChangeWarning $false -AppliesTo "Az.KeyVault" - -Key Value Applies To Scope Help Message ---- ----- ---------- ----- ------------ -DisplayBreakingChangeWarning False Az.KeyVault CurrentUser Controls if warning messages for breaking changes are displayed or suppressed. When enabled,… - - Sets the "DisplayBreakingChangeWarnings" config as "$false" for "Az.KeyVault" module. This prevents all the warning messages for upcoming breaking changes in Az.KeyVault module from prompting. - - - - - - -------------------------- Example 3 -------------------------- - Update-AzConfig -EnableDataCollection $true - -Key Value Applies To Scope Help Message ---- ----- ---------- ----- ------------ -EnableDataCollection True Az CurrentUser When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experi… - - Sets the "EnableDataCollection" config as "$true". This enables sending the telemetry data. Setting this config is equivalent to `Enable-AzDataCollection` and `Disable-AzDataCollection`. - - - - - - -------------------------- Example 4 -------------------------- - Update-AzConfig -DisplaySecretsWarning $true - -Key Value Applies To Scope Help Message ---- ----- ---------- ----- ------------ -DisplaySecretsWarning True Az CurrentUser When enabled, a warning message for secrets redaction will be displ… - - Sets the "DisplaySecretsWarning" config as "$true". This enables the secrets detection during the cmdlet execution and displays a warning message if any secrets are found in the output. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.accounts/update-azconfig - - - - \ No newline at end of file diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Common.Share.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Common.Share.dll deleted file mode 100644 index 55185ba74cd7..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Common.Share.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Common.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Common.dll deleted file mode 100644 index d5609cf9109f..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Common.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Storage.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Storage.dll deleted file mode 100644 index 0363dbdf57d8..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Storage.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Strategies.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Strategies.dll deleted file mode 100644 index ffd2dd62cda8..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Azure.PowerShell.Strategies.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Rest.ClientRuntime.Azure.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Rest.ClientRuntime.Azure.dll deleted file mode 100644 index 1d99c7015912..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Rest.ClientRuntime.Azure.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.Rest.ClientRuntime.dll b/Modules/Az.Accounts/4.0.2/Microsoft.Rest.ClientRuntime.dll deleted file mode 100644 index a4fca7488baf..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.Rest.ClientRuntime.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/Microsoft.WindowsAzure.Storage.dll b/Modules/Az.Accounts/4.0.2/Microsoft.WindowsAzure.Storage.dll deleted file mode 100644 index 70c5ed6806c6..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/Microsoft.WindowsAzure.Storage.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/PSGetModuleInfo.xml b/Modules/Az.Accounts/4.0.2/PSGetModuleInfo.xml deleted file mode 100644 index e5c37af624ce..000000000000 --- a/Modules/Az.Accounts/4.0.2/PSGetModuleInfo.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - Microsoft.PowerShell.Commands.PSRepositoryItemInfo - System.Management.Automation.PSCustomObject - System.Object - - - Az.Accounts - 4.0.2 - Module - Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core._x000D__x000A__x000D__x000A_For more information on account credential management, please visit the following: https://learn.microsoft.com/powershell/azure/authenticate-azureps - Microsoft Corporation - azure-sdk - Microsoft Corporation. All rights reserved. -
2025-01-15T06:24:11-05:00
- - - https://aka.ms/azps-license - https://github.com/Azure/azure-powershell - - - - System.Object[] - System.Array - System.Object - - - Azure - ResourceManager - ARM - Accounts - Authentication - Environment - Subscription - PSModule - PSEdition_Core - PSEdition_Desktop - - - - - System.Collections.Hashtable - System.Object - - - - RoleCapability - - - - - - - Function - - - - Cmdlet - - - - Disable-AzDataCollection - Disable-AzContextAutosave - Enable-AzDataCollection - Enable-AzContextAutosave - Remove-AzEnvironment - Get-AzEnvironment - Set-AzEnvironment - Add-AzEnvironment - Get-AzSubscription - Connect-AzAccount - Get-AzContext - Set-AzContext - Import-AzContext - Save-AzContext - Get-AzTenant - Send-Feedback - Resolve-AzError - Select-AzContext - Rename-AzContext - Remove-AzContext - Clear-AzContext - Disconnect-AzAccount - Get-AzContextAutosaveSetting - Set-AzDefault - Get-AzDefault - Clear-AzDefault - Register-AzModule - Enable-AzureRmAlias - Disable-AzureRmAlias - Uninstall-AzureRm - Invoke-AzRestMethod - Get-AzAccessToken - Open-AzSurveyLink - Get-AzConfig - Update-AzConfig - Clear-AzConfig - Export-AzConfig - Import-AzConfig - - - - - DscResource - - - - Workflow - - - - Command - - - - Disable-AzDataCollection - Disable-AzContextAutosave - Enable-AzDataCollection - Enable-AzContextAutosave - Remove-AzEnvironment - Get-AzEnvironment - Set-AzEnvironment - Add-AzEnvironment - Get-AzSubscription - Connect-AzAccount - Get-AzContext - Set-AzContext - Import-AzContext - Save-AzContext - Get-AzTenant - Send-Feedback - Resolve-AzError - Select-AzContext - Rename-AzContext - Remove-AzContext - Clear-AzContext - Disconnect-AzAccount - Get-AzContextAutosaveSetting - Set-AzDefault - Get-AzDefault - Clear-AzDefault - Register-AzModule - Enable-AzureRmAlias - Disable-AzureRmAlias - Uninstall-AzureRm - Invoke-AzRestMethod - Get-AzAccessToken - Open-AzSurveyLink - Get-AzConfig - Update-AzConfig - Clear-AzConfig - Export-AzConfig - Import-AzConfig - - - - - - - * Fixed unsigned dll:_x000D__x000A_ - 'System.Buffers.dll'_x000D__x000A_ - 'System.Memory.dll' - - - - - https://www.powershellgallery.com/api/v2 - PSGallery - NuGet - - - System.Management.Automation.PSCustomObject - System.Object - - - Microsoft Corporation. All rights reserved. - Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core._x000D__x000A__x000D__x000A_For more information on account credential management, please visit the following: https://learn.microsoft.com/powershell/azure/authenticate-azureps - True - * Fixed unsigned dll:_x000D__x000A_ - 'System.Buffers.dll'_x000D__x000A_ - 'System.Memory.dll' - True - True - 13034220 - 540474261 - 9958477 - 1/15/2025 6:24:11 AM -05:00 - 1/15/2025 6:24:11 AM -05:00 - 1/30/2025 5:40:00 PM -05:00 - Azure ResourceManager ARM Accounts Authentication Environment Subscription PSModule PSEdition_Core PSEdition_Desktop PSCmdlet_Disable-AzDataCollection PSCommand_Disable-AzDataCollection PSCmdlet_Disable-AzContextAutosave PSCommand_Disable-AzContextAutosave PSCmdlet_Enable-AzDataCollection PSCommand_Enable-AzDataCollection PSCmdlet_Enable-AzContextAutosave PSCommand_Enable-AzContextAutosave PSCmdlet_Remove-AzEnvironment PSCommand_Remove-AzEnvironment PSCmdlet_Get-AzEnvironment PSCommand_Get-AzEnvironment PSCmdlet_Set-AzEnvironment PSCommand_Set-AzEnvironment PSCmdlet_Add-AzEnvironment PSCommand_Add-AzEnvironment PSCmdlet_Get-AzSubscription PSCommand_Get-AzSubscription PSCmdlet_Connect-AzAccount PSCommand_Connect-AzAccount PSCmdlet_Get-AzContext PSCommand_Get-AzContext PSCmdlet_Set-AzContext PSCommand_Set-AzContext PSCmdlet_Import-AzContext PSCommand_Import-AzContext PSCmdlet_Save-AzContext PSCommand_Save-AzContext PSCmdlet_Get-AzTenant PSCommand_Get-AzTenant PSCmdlet_Send-Feedback PSCommand_Send-Feedback PSCmdlet_Resolve-AzError PSCommand_Resolve-AzError PSCmdlet_Select-AzContext PSCommand_Select-AzContext PSCmdlet_Rename-AzContext PSCommand_Rename-AzContext PSCmdlet_Remove-AzContext PSCommand_Remove-AzContext PSCmdlet_Clear-AzContext PSCommand_Clear-AzContext PSCmdlet_Disconnect-AzAccount PSCommand_Disconnect-AzAccount PSCmdlet_Get-AzContextAutosaveSetting PSCommand_Get-AzContextAutosaveSetting PSCmdlet_Set-AzDefault PSCommand_Set-AzDefault PSCmdlet_Get-AzDefault PSCommand_Get-AzDefault PSCmdlet_Clear-AzDefault PSCommand_Clear-AzDefault PSCmdlet_Register-AzModule PSCommand_Register-AzModule PSCmdlet_Enable-AzureRmAlias PSCommand_Enable-AzureRmAlias PSCmdlet_Disable-AzureRmAlias PSCommand_Disable-AzureRmAlias PSCmdlet_Uninstall-AzureRm PSCommand_Uninstall-AzureRm PSCmdlet_Invoke-AzRestMethod PSCommand_Invoke-AzRestMethod PSCmdlet_Get-AzAccessToken PSCommand_Get-AzAccessToken PSCmdlet_Open-AzSurveyLink PSCommand_Open-AzSurveyLink PSCmdlet_Get-AzConfig PSCommand_Get-AzConfig PSCmdlet_Update-AzConfig PSCommand_Update-AzConfig PSCmdlet_Clear-AzConfig PSCommand_Clear-AzConfig PSCmdlet_Export-AzConfig PSCommand_Export-AzConfig PSCmdlet_Import-AzConfig PSCommand_Import-AzConfig PSIncludes_Cmdlet - False - 2025-01-30T17:40:00Z - 4.0.2 - Microsoft Corporation - false - Module - Az.Accounts.nuspec|Accounts.format.ps1xml|Az.Accounts.psm1|Microsoft.Azure.PowerShell.AssemblyLoading.dll|Microsoft.Azure.PowerShell.Authenticators.dll|Microsoft.Azure.PowerShell.Clients.KeyVault.dll|Microsoft.Azure.PowerShell.Clients.Storage.Management.dll|Microsoft.Azure.PowerShell.Common.Share.dll|Microsoft.WindowsAzure.Storage.dll|lib\netfx\System.Reflection.DispatchProxy.dll|lib\netfx\System.Xml.ReaderWriter.dll|lib\netstandard2.0\Microsoft.Identity.Client.Broker.dll|lib\netstandard2.0\Microsoft.IdentityModel.Abstractions.dll|lib\netstandard2.0\System.Buffers.dll|lib\netstandard2.0\System.Net.Http.WinHttpHandler.dll|lib\netstandard2.0\System.Security.Principal.Windows.dll|PostImportScripts\LoadAuthenticators.ps1|Accounts.generated.format.ps1xml|FuzzySharp.dll|Microsoft.Azure.PowerShell.Authentication.Abstractions.dll|Microsoft.Azure.PowerShell.Clients.Aks.dll|Microsoft.Azure.PowerShell.Clients.Monitor.dll|Microsoft.Azure.PowerShell.Clients.Websites.dll|Microsoft.Azure.PowerShell.Storage.dll|en-US\about_az.help.txt|lib\netfx\System.Runtime.CompilerServices.Unsafe.dll|lib\netstandard2.0\Azure.Core.dll|lib\netstandard2.0\Microsoft.Identity.Client.dll|lib\netstandard2.0\msalruntime.dll|lib\netstandard2.0\System.ClientModel.dll|lib\netstandard2.0\System.Private.ServiceModel.dll|lib\netstandard2.0\System.ServiceModel.Primitives.dll|StartupScripts\AzError.ps1|Accounts.types.ps1xml|Hyak.Common.dll|Microsoft.Azure.PowerShell.Authentication.dll|Microsoft.Azure.PowerShell.Clients.Authorization.dll|Microsoft.Azure.PowerShell.Clients.Network.dll|Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll|Microsoft.Azure.PowerShell.Strategies.dll|lib\netfx\Newtonsoft.Json.dll|lib\netfx\System.Security.Cryptography.Cng.dll|lib\netstandard2.0\Azure.Identity.Broker.dll|lib\netstandard2.0\Microsoft.Identity.Client.Extensions.Msal.dll|lib\netstandard2.0\msalruntime_arm64.dll|lib\netstandard2.0\System.Memory.Data.dll|lib\netstandard2.0\System.Security.AccessControl.dll|lib\netstandard2.0\System.Text.Json.dll|StartupScripts\InitializeAssemblyResolver.ps1|Microsoft.ApplicationInsights.dll|Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll|Microsoft.Azure.PowerShell.Clients.Compute.dll|Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll|Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml|Microsoft.Rest.ClientRuntime.Azure.dll|lib\netfx\System.Diagnostics.DiagnosticSource.dll|lib\netfx\System.Security.Cryptography.ProtectedData.dll|lib\netstandard2.0\Azure.Identity.dll|lib\netstandard2.0\Microsoft.Identity.Client.NativeInterop.dll|lib\netstandard2.0\msalruntime_x005F_x86.dll|lib\netstandard2.0\System.Memory.dll|lib\netstandard2.0\System.Security.Permissions.dll|lib\netstandard2.0\System.Threading.Tasks.Extensions.dll|StartupScripts\InitializePSStyle.ps1|Az.Accounts.psd1|Microsoft.Azure.Common.dll|Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll|Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll|Microsoft.Azure.PowerShell.Clients.ResourceManager.dll|Microsoft.Azure.PowerShell.Common.dll|Microsoft.Rest.ClientRuntime.dll|lib\netfx\System.Numerics.Vectors.dll|lib\netfx\System.Text.Encodings.Web.dll|lib\netstandard2.0\Microsoft.Bcl.AsyncInterfaces.dll|.signature.p7s - 17a2feff-488b-47f9-8729-e2cec094624c - 5.1 - 4.7.2 - Microsoft Corporation - - - C:\GitHub\CIPP Workspace\CIPP-API\Modules\Az.Accounts\4.0.2 -
-
-
diff --git a/Modules/Az.Accounts/4.0.2/PostImportScripts/LoadAuthenticators.ps1 b/Modules/Az.Accounts/4.0.2/PostImportScripts/LoadAuthenticators.ps1 deleted file mode 100644 index aca0ecfa3ec4..000000000000 --- a/Modules/Az.Accounts/4.0.2/PostImportScripts/LoadAuthenticators.ps1 +++ /dev/null @@ -1,223 +0,0 @@ -if ($PSEdition -eq 'Desktop') { - try { - [Microsoft.Azure.Commands.Profile.Utilities.CustomAssemblyResolver]::Initialize() - } catch {} -} -# SIG # Begin signature block -# MIIoVQYJKoZIhvcNAQcCoIIoRjCCKEICAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxM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bk9xLqwK4Yu5VR1OXcguUWTCB/qaAVxCR3pJNQOmjRiVRgzmcEXL -# Go2XUnALayyiMs8rqaHZ6bPpgUnbxYB+F9YQHtEU/PjH4uaG1+bVt43tx2eeJLRA -# Wuq0FhKmRfQkVBur0FJ3J4KnJzGu+lqSZABPMYd87RwndX3cFc6IbN0Il+B0bnwr -# N9vCJpIVDC8/ -# SIG # End signature block diff --git a/Modules/Az.Accounts/4.0.2/StartupScripts/AzError.ps1 b/Modules/Az.Accounts/4.0.2/StartupScripts/AzError.ps1 deleted file mode 100644 index 234818bc266a..000000000000 --- a/Modules/Az.Accounts/4.0.2/StartupScripts/AzError.ps1 +++ /dev/null @@ -1,281 +0,0 @@ -function Write-InstallationCheckToFile -{ - Param($installationchecks) - if (Get-Module AzureRM.Profile -ListAvailable -ErrorAction Ignore) - { - Write-Warning ("Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide") - } - - $installationchecks.Add("AzSideBySideCheck","true") - try - { - if (Test-Path $pathToInstallationChecks -ErrorAction Ignore) - { - Remove-Item -Path $pathToInstallationChecks -ErrorAction Stop - } - - $pathToInstallDir = Split-Path -Path $pathToInstallationChecks -Parent -ErrorAction Stop - if (Test-Path $pathToInstallDir -ErrorAction Ignore) - { - New-Item -Path $pathToInstallationChecks -ErrorAction Stop -ItemType File -Value ($installationchecks | ConvertTo-Json -ErrorAction Stop) - } - } - catch - { - Write-Verbose "Installation checks failed to write to file." - } -} - -if (!($env:SkipAzInstallationChecks -eq "true")) -{ - $pathToInstallationChecks = Join-Path (Join-Path $HOME ".Azure") "AzInstallationChecks.json" - $installationchecks = @{} - if (!(Test-Path $pathToInstallationChecks -ErrorAction Ignore)) - { - Write-InstallationCheckToFile $installationchecks - } - else - { - try - { - ((Get-Content $pathToInstallationChecks -ErrorAction Stop) | ConvertFrom-Json -ErrorAction Stop).PSObject.Properties | Foreach { $installationchecks[$_.Name] = $_.Value } - } - catch - { - Write-InstallationCheckToFile $installationchecks - } - - if (!$installationchecks.ContainsKey("AzSideBySideCheck")) - { - Write-InstallationCheckToFile $installationchecks - } - } -} - -if (Get-Module AzureRM.profile -ErrorAction Ignore) -{ - Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") - throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") -} - -Update-TypeData -AppendPath (Join-Path (Get-Item $PSScriptRoot).Parent.FullName Accounts.types.ps1xml) -ErrorAction Ignore -# SIG # Begin signature block -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDT3s8rOGw0kP8l -# AbYXJ7G9hr2fOKBRtW5xO6fWVEOZvqCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3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MIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgT -# Cldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29m -# dCBDb3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENB -# IDIwMTACEzMAAAHzxQpDrgPMHTEAAQAAAfMwIgQg7FOb0fJffGni3GNh+rtRxX3o -# mNES5vUb6EkxuC86BIkwDQYJKoZIhvcNAQELBQAEggIAYym812YaSD/sdVUrTcv7 -# bvYv+h29d3ZCjOm5u5V0xe8bfjcO1ri6wV3rsMOTlQwAyuf4o8HDxt2VTD2BwRUy -# Rbe20O3wi3GcRdJKN8Htjwd8ZfsQ3jLyfVRmLWQOPvl2oNNKvbAkS+9Qt5eoIkG7 -# DO1wDyVWDQLLVBqDoO8grw/RtqaHoBSWXUB9QAPYRhk90kcUZ1qaFhuQNbv3oWJN -# 4gAJNNHpBkMVUjcYAk8m7nLR412caM2TRPs2M5JmYFILI7QMW6qGjyk6u9/JgFdk -# 3nwqfGSuL1/Y3motaZQ+WplENhLKlrvp11mIwQoiaKjJCC5w0F6Bq+nfHwMq1x72 -# 8GU40A98UrzWyaogrI+K4wAwzC1oHIusSmWOtPf05ZvoKoJ0cD5/DUgtgAqyFDOA -# yP/kSMFu1I0d1aHxmvKYoQ+eTrv5pims4cq0VP1cGwqrTLvK1kWTHKHOe4oovoIX -# aarejH8c/6FsxvXm6EBA/bv2R/OF5rEY+pH5Ld3870waI0TiDbjD2lR1fYBEhChl -# DF4IahrmWA0ZbhrWM1HcnzCvsgUMvHg3GStGBzy0BE/kpblaVTf8ZOFJswLXxX9N -# g6Kdabo2o1WCKgP22nqDQm9fGLMThorgS96u5/xaLNkeCbBtH0yyG2pVklzxcM5R -# oSseM1VcqxmxwEIlGLWes0Y= -# SIG # End signature block diff --git a/Modules/Az.Accounts/4.0.2/StartupScripts/InitializeAssemblyResolver.ps1 b/Modules/Az.Accounts/4.0.2/StartupScripts/InitializeAssemblyResolver.ps1 deleted file mode 100644 index 96b2731d9d1f..000000000000 --- a/Modules/Az.Accounts/4.0.2/StartupScripts/InitializeAssemblyResolver.ps1 +++ /dev/null @@ -1,243 +0,0 @@ -$assemblyRootPath = [System.IO.Path]::Combine($PSScriptRoot, "..", "lib") -Write-Debug "Initializing ConditionalAssemblyContext. PSEdition is [$($PSVersionTable.PSEdition)]. PSVersion is [$($PSVersionTable.PSVersion)]." -$conditionalAssemblyContext = [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyContext]::new($PSVersionTable.PSEdition, $PSVersionTable.PSVersion) -Write-Debug "Initializing ConditionalAssemblyProvider. AssemblyRootPath is [$assemblyRootPath]." -[Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyProvider]::Initialize($assemblyRootPath, $conditionalAssemblyContext) - -if ($PSEdition -eq 'Desktop') { - try { - [Microsoft.Azure.Commands.Profile.Utilities.CustomAssemblyResolver]::Initialize() - } - catch { - Write-Warning $_ - } -} -else { - try { - Add-Type -Path ([System.IO.Path]::Combine($PSScriptRoot, "..", "Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll")) | Out-Null - Write-Debug "Registering Az shared AssemblyLoadContext." - [Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.AzAssemblyLoadContextInitializer]::RegisterAzSharedAssemblyLoadContext() - Write-Debug "AssemblyLoadContext registered." - } - catch { - Write-Warning $_ - } -} -# SIG # Begin signature block -# MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCAe8RL2QVOwrz6 -# penupFKMe0U4FkbIX5RGfbRRPsEAcqCCDYUwggYDMIID66ADAgECAhMzAAA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yCQgAfiQKry4ZVUtA8HOKkQa12RnMzP2McOEalFKbY1redXszk -# zLC7Vo0StmN/WWxlZgIYIrTlgTqH9vaWmkjehMvOjMqYct6rTCcNkkKHqdmk01EW -# 2aBwXRx4 -# SIG # End signature block diff --git a/Modules/Az.Accounts/4.0.2/StartupScripts/InitializePSStyle.ps1 b/Modules/Az.Accounts/4.0.2/StartupScripts/InitializePSStyle.ps1 deleted file mode 100644 index 050c5e21c07e..000000000000 --- a/Modules/Az.Accounts/4.0.2/StartupScripts/InitializePSStyle.ps1 +++ /dev/null @@ -1,224 +0,0 @@ -try{ - Write-Debug "Initializing PSStyle." - [Microsoft.WindowsAzure.Commands.Common.PSStyle]::Initialize($Host) -} -catch{ - Write-Warning $_ -} -# SIG # Begin signature block -# MIIoPAYJKoZIhvcNAQcCoIIoLTCCKCkCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAicDUGs8kLtLeW -# rm0RVJ2esSWZX51RAgjtxZX5o7KQQ6CCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVN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n+ -# t1B0qSC0Bw0dakeHDJmV6DW+NmnpWc6kQvyYfmwwDQYJKoZIhvcNAQELBQAEggIA -# hM5vdmR7J4I9cOE51Qpmc9nQTWniChX6ZbJ2jKnfOyr7sDde9LEJZ6Og6qaMvJ9P -# xZo3ILpdSjGtiMjBQv5YHUvB+XqqXUd12VJMExzH8+ddbQ2m3+9nyNsT3tqx/NF5 -# onAwJjUmLjvstpNgQlodVfpTPFdCZomz/o4aFyf9AwtUoD0E1vnFydU5XZGNZz4m -# 8jK9NdvUG79GGYFomsfpPMPPq2zI+hqnDlVSRpjO2IRrW/AeeqJv/wdCVAhMMub2 -# HsfYjaw0VKy+4qcc2WsqSj2zEc1CN1pnPpBkSWIBpXQFAEhp+hAqAI9n6A+iXxWb -# YL48vrBluSYYAmGX1XXcB4n17qbU3IHGEGCxBaAvOGujCkBjgTepzVKiqSCjzM5T -# H/uE8C2e9pI0s63ujp2I4NXziPx/BvlNzGSbz0Tra5Zr5YDC7aEB8vCG12e6Ge6/ -# J/9X6mFWeXBx9CwvlVPeaOb4YOm/8G6xM2z0J48wUjfcAGRqa5l0s1aaQy9TYxOl -# jbcLRSXdE8ihX46XLbB0w7iXs+KbAXx9jp9L6g7QFuJWLemb0CCgXt2XEE327ZBW -# Qj0D22ZBGmZ5f0sNkttQt+VwXjj5mAJwh1lcY+Wzp+A3H65sS7UrW9eR8+JlxhUs -# d4KuCdsT1cpFFINgBMxqUTdwlsgoG6QmWZm7kUbc9YA= -# SIG # End signature block diff --git a/Modules/Az.Accounts/4.0.2/en-US/about_az.help.txt b/Modules/Az.Accounts/4.0.2/en-US/about_az.help.txt deleted file mode 100644 index fb4a5e9becd1..000000000000 --- a/Modules/Az.Accounts/4.0.2/en-US/about_az.help.txt +++ /dev/null @@ -1,50 +0,0 @@ -About topic for Azure PowerShell - about_az - -TOPIC - -about_Az - -SHORT DESCRIPTION - -The Azure Az PowerShell module is a set of cmdlets for managing Azure -resources directly from the PowerShell command line and in PowerShell -scripts. - -LONG DESCRIPTION - -Azure PowerShell provides cross-platform cmdlets for managing Azure -services. All Azure PowerShell cmdlets work on Windows PowerShell 5.1 and -supported versions of PowerShell 7. - -The Azure PowerShell cmdlets follow the naming convention {verb}-Az{noun}. - -- {verb} is an approved PowerShell verb reflecting the corresponding HTTP - operation. - -- {noun} matches or has a close equivalent to the name of the resource. - -The cmdlets produce .NET objects that can be piped between commands -simplifying the sequencing of commands making Azure PowerShell a powerful -solution for scripting and automation purposes. - -A PowerShell module is available for each Azure service. For convenience, -we provide a wrapper module named "Az" that comprises the stable modules. -Modules in preview must be installed independently or via the "AzPreview" -wrapper module. - -Azure PowerShell is frequently updated to include bug fixes and service -updates. It is recommended to plan to update to the most recent version -regularly (a minimum of twice a year). - -GETTING STARTED - -1. Connect to Azure using Connect-AzAccount - -2. Run your first command. For example, create a resource group in the - east US region. - - New-AzResourceGroup -Name "MyResoureGroup" -location "eastus" - -SEE ALSO - -Azure PowerShell documentation: https://learn.microsoft.com/powershell/azure diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/Newtonsoft.Json.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/Newtonsoft.Json.dll deleted file mode 100644 index 10f270ffae96..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/Newtonsoft.Json.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Diagnostics.DiagnosticSource.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Diagnostics.DiagnosticSource.dll deleted file mode 100644 index 92419a27e0c2..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Diagnostics.DiagnosticSource.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Numerics.Vectors.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Numerics.Vectors.dll deleted file mode 100644 index 08659724d4f8..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Numerics.Vectors.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Reflection.DispatchProxy.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Reflection.DispatchProxy.dll deleted file mode 100644 index 674ced0460de..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Reflection.DispatchProxy.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll deleted file mode 100644 index c5ba4e4047a1..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Security.Cryptography.Cng.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Security.Cryptography.Cng.dll deleted file mode 100644 index 4f4c30e080bd..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Security.Cryptography.Cng.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Security.Cryptography.ProtectedData.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Security.Cryptography.ProtectedData.dll deleted file mode 100644 index a7029b32f95d..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Security.Cryptography.ProtectedData.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Text.Encodings.Web.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Text.Encodings.Web.dll deleted file mode 100644 index a85aa43cfef5..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Text.Encodings.Web.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Xml.ReaderWriter.dll b/Modules/Az.Accounts/4.0.2/lib/netfx/System.Xml.ReaderWriter.dll deleted file mode 100644 index 022e63a21a86..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netfx/System.Xml.ReaderWriter.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Core.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Core.dll deleted file mode 100644 index 390182c78ad8..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Core.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Identity.Broker.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Identity.Broker.dll deleted file mode 100644 index efdd237a2113..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Identity.Broker.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Identity.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Identity.dll deleted file mode 100644 index 23654ed1c021..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Azure.Identity.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll deleted file mode 100644 index 39fd1311f266..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll deleted file mode 100644 index 1741b8db681b..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.Extensions.Msal.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.Extensions.Msal.dll deleted file mode 100644 index 8db4ae9570f6..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.Extensions.Msal.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll deleted file mode 100644 index ff53bc8ebd08..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.dll deleted file mode 100644 index 880b889c5d98..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.Identity.Client.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll deleted file mode 100644 index 96db40f55703..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Buffers.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Buffers.dll deleted file mode 100644 index c0970c078522..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Buffers.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.ClientModel.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.ClientModel.dll deleted file mode 100644 index 0cb4427b10db..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.ClientModel.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Memory.Data.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Memory.Data.dll deleted file mode 100644 index ed4f7b399813..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Memory.Data.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Memory.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Memory.dll deleted file mode 100644 index 1e6aef802063..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Memory.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Net.Http.WinHttpHandler.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Net.Http.WinHttpHandler.dll deleted file mode 100644 index 598cb6335808..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Net.Http.WinHttpHandler.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Private.ServiceModel.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Private.ServiceModel.dll deleted file mode 100644 index 3f9f84edf0ed..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Private.ServiceModel.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.AccessControl.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.AccessControl.dll deleted file mode 100644 index 36fb33af4590..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.AccessControl.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.Permissions.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.Permissions.dll deleted file mode 100644 index 2a353ee22eec..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.Permissions.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.Principal.Windows.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.Principal.Windows.dll deleted file mode 100644 index 19d0fc0e971c..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Security.Principal.Windows.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.ServiceModel.Primitives.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.ServiceModel.Primitives.dll deleted file mode 100644 index c1aa0a64f8f9..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.ServiceModel.Primitives.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Text.Json.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Text.Json.dll deleted file mode 100644 index c1df9f92f2ca..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Text.Json.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll deleted file mode 100644 index dfab23478ab4..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime.dll deleted file mode 100644 index 723572aa3ad6..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime_arm64.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime_arm64.dll deleted file mode 100644 index 713a43e6612f..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime_arm64.dll and /dev/null differ diff --git a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime_x86.dll b/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime_x86.dll deleted file mode 100644 index 69cc22280f03..000000000000 Binary files a/Modules/Az.Accounts/4.0.2/lib/netstandard2.0/msalruntime_x86.dll and /dev/null differ diff --git a/Modules/Az.Functions/4.2.0/.signature.p7s b/Modules/Az.Functions/4.2.0/.signature.p7s deleted file mode 100644 index a74e3c921128..000000000000 Binary files a/Modules/Az.Functions/4.2.0/.signature.p7s and /dev/null differ diff --git a/Modules/Az.Functions/4.2.0/Az.Functions.psd1 b/Modules/Az.Functions/4.2.0/Az.Functions.psd1 deleted file mode 100644 index 2933edb4da3f..000000000000 --- a/Modules/Az.Functions/4.2.0/Az.Functions.psd1 +++ /dev/null @@ -1,360 +0,0 @@ -# -# Module manifest for module 'Az.Functions' -# -# Generated by: Microsoft Corporation -# -# Generated on: 1/9/2025 -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = 'Az.Functions.psm1' - -# Version number of this module. -ModuleVersion = '4.2.0' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = 'eafced71-8742-4a2c-5afd-13117428dd90' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell - Azure Functions service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. - -For information on Azure Functions, please visit the following: https://learn.microsoft.com/azure/azure-functions/' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @() - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Functions.Autorest/bin/Az.Functions.private.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -ScriptsToProcess = 'Functions.Autorest/custom/HelperFunctions.ps1' - -# Type files (.ps1xml) to be loaded when importing this module -TypesToProcess = 'Functions.Autorest/custom/Functions.types.ps1xml' - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'Functions.Autorest/Az.Functions.format.ps1xml', - 'Functions.Autorest/custom/Functions.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Functions.Autorest/Az.Functions.psm1') - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzFunctionApp', 'Get-AzFunctionAppAvailableLocation', - 'Get-AzFunctionAppPlan', 'Get-AzFunctionAppSetting', - 'New-AzFunctionApp', 'New-AzFunctionAppPlan', 'Remove-AzFunctionApp', - 'Remove-AzFunctionAppPlan', 'Remove-AzFunctionAppSetting', - 'Restart-AzFunctionApp', 'Start-AzFunctionApp', 'Stop-AzFunctionApp', - 'Update-AzFunctionApp', 'Update-AzFunctionAppPlan', - 'Update-AzFunctionAppSetting' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = @() - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = @() - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -ModuleList = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Functions' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Upgraded nuget package to signed package.' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} - - -# SIG # Begin signature block -# MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDoi7Rpy37ZlGHK -# QqLlAgdi837+b2M1IGWCU6KGY+lvCaCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGE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RAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRp -# b24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAAB -# 9ZkJlLzxxlCMAAEAAAH1MCIEIILkTWtto6jyoOiQmqv3k12cmyPChV3pUGKZ5kYF -# /vZ0MA0GCSqGSIb3DQEBCwUABIICACHKZYI1HPB3pEmjnf8h7AiWfdac9mMCNFZT -# tHeO+g0HCbSOfHXAeHnySSnmmXQhZhXnJglvyaoTqGBgx1MjmrGaPKm1dYA9tHaT -# MAc6mhHanJ9XUMHGyRZk7az73tOVYLV7JLoVw6wh1nGbseikAOr3TBW6vfVXki03 -# N7QyfBqd/KOcV7wrqHtlsnKFeXQCrPoSbqNumQD3Vt0Q+KDJsyyBLPQG/50x3+H/ -# LevgBAhWh5rA3Cgtm5aL1mLBEZ3FyLmq6UxhelT0/bW56iK6BDafcJF07za9dOKP -# FcPPGxQ8vGfrlrESSyzUCUfxM+jAyfW5OuskBzNMBTd/uYll/eeUYXorBjMj/3rE -# OsX3jAyKssc8xS62wzHkP6VRJ+ryl6Rf0CeyUvrZ5iRSnwjIEw0D5xM2Tjg0nWUx -# 4Tx2TMBg8Oe8GBvS9mnRcXz7Syf62RTEgVMRcfobowIwsJeanLjvnJdjVlm0Szsi -# tHR/vkJ48V+kyxU3gHYLIVzxmMSUUMZMNJCMi8Y9ISNtTzqxtMqeAtcFIjSUf5ou -# BYNcc+uDtaOqZkqA1iDfa7iS2xWj7ukWMkTsoTbkGw/7rG0w6VjYrD3edtTEsr2/ -# aIkwPju8tmGG3ab5uDs1tzjcaPTCKwuiyhBW6VUFZFkVu6bMj4vqeyBIzPQmHZOq -# pJEw7iB5 -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Az.Functions.psm1 b/Modules/Az.Functions/4.2.0/Az.Functions.psm1 deleted file mode 100644 index 6bf1f7730127..000000000000 --- a/Modules/Az.Functions/4.2.0/Az.Functions.psm1 +++ /dev/null @@ -1,361 +0,0 @@ -# -# Script module for module 'Az.Functions' that is executed when 'Az.Functions' is imported in a PowerShell session. -# -# Generated by: Microsoft Corporation -# -# Generated on: 01/09/2025 06:20:57 -# - -$PSDefaultParameterValues.Clear() -Set-StrictMode -Version Latest - -function Test-DotNet -{ - try - { - if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | Where-Object { $_ -ge 461808 }))) - { - throw ".NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher." - } - } - catch [System.Management.Automation.DriveNotFoundException] - { - Write-Verbose ".NET Framework version check failed." - } -} - -function Preload-Assembly { - param ( - [string] - $AssemblyDirectory - ) - if($PSEdition -eq 'Desktop' -and (Test-Path $AssemblyDirectory -ErrorAction Ignore)) - { - try - { - Get-ChildItem -ErrorAction Stop -Path $AssemblyDirectory -Filter "*.dll" | ForEach-Object { - try - { - Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null - } - catch { - Write-Verbose $_ - } - } - } - catch {} - } -} - -if ($true -and ($PSEdition -eq 'Desktop')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'5.1') - { - throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher." - } - - Test-DotNet -} - -if ($true -and ($PSEdition -eq 'Core')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'6.2.4') - { - throw "Current Az version doesn't support PowerShell Core versions lower than 6.2.4. Please upgrade to PowerShell Core 6.2.4 or higher." - } -} - -if (Test-Path -Path "$PSScriptRoot\StartupScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\StartupScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -# [windows powershell] preload assemblies - - -# [windows powershell] preload module alc assemblies -$preloadPath = (Join-Path $PSScriptRoot -ChildPath "ModuleAlcAssemblies") -Preload-Assembly -AssemblyDirectory $preloadPath - -if (Get-Module AzureRM.profile -ErrorAction Ignore) -{ - Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") - throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") -} - -$module = Get-Module Az.Accounts - if ($module -ne $null -and $module.Version -lt [System.Version]"4.0.1") -{ - Write-Error "This module requires Az.Accounts version 4.0.1. An earlier version of Az.Accounts is imported in the current PowerShell session. Please open a new session before importing this module. This error could indicate that multiple incompatible versions of the Azure PowerShell cmdlets are installed on your system. Please see https://aka.ms/azps-version-error for troubleshooting information." -ErrorAction Stop -} -elseif ($module -eq $null) -{ - Import-Module Az.Accounts -MinimumVersion 4.0.1 -Scope Global -} - - -if (Test-Path -Path "$PSScriptRoot\PostImportScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\PostImportScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -$FilteredCommands = @() - -if ($Env:ACC_CLOUD -eq $null) -{ - $FilteredCommands | ForEach-Object { - - $existingDefault = $false - foreach ($key in $global:PSDefaultParameterValues.Keys) - { - if ($_ -like "$key") - { - $existingDefault = $true - } - } - - if (!$existingDefault) - { - $global:PSDefaultParameterValues.Add($_, - { - if ((Get-Command Get-AzContext -ErrorAction Ignore) -eq $null) - { - $context = Get-AzureRmContext - } - else - { - $context = Get-AzContext - } - if (($context -ne $null) -and $context.ExtendedProperties.ContainsKey("Default Resource Group")) { - $context.ExtendedProperties["Default Resource Group"] - } - }) - } - } -} - - - -# SIG # Begin signature block -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBIT6Uy09qUeDeZ -# fR4mBJDAvDhicnzmyGeuRB+OjHwKqqCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdS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FRNr3NdYwq/+p -# CZETfgloYO/Dbx3nQtnFZdUyXgoTNs6taAeJeEDo41aeEEENg7APDTkO//IhI9f4 -# Gsr+rAVlVB5DH+DLeqyyX/7Q4QsTosFl7LU3QtNVDHEF55PBSQOpBhLTL3obBiWG -# H3L8valabbR9skrl7qvtrtOwTbWPHr6gsHAKbzid9+TEF2kqzEU+luuK4cOJZks9 -# 6W5yWF/07MPjsOCbeJBYSYw6wFrWS+V1bpq6d570S8GJbceOAlbcghasNo6yOG7q -# KFV4goJ8cOae1wDmJdKAVmK0P1wa0qo9Akh48jht4RJCXmT+kP0cUh8636kqy0Xb -# quKpRZ5PMuqkwD9L2pCMwAO8kZrUmS0jKVzXnZUWUURVdN7jAT0HcSRk0Waw/bNL -# iyNpg4SmMKnDkmuQzQxBbzA= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/Az.Functions.format.ps1xml b/Modules/Az.Functions/4.2.0/Functions.Autorest/Az.Functions.format.ps1xml deleted file mode 100644 index af83b63eecd2..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/Az.Functions.format.ps1xml +++ /dev/null @@ -1,25710 +0,0 @@ - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.FunctionsIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.FunctionsIdentity - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccountName - - - ActionName - - - AnalysisName - - - AppSettingKey - - - Authprovider - - - BackupId - - - BaseAddress - - - BasicAuthName - - - BlobServicesName - - - CertificateOrderName - - - ConnectionStringKey - - - ContainerName - - - DatabaseConnectionName - - - DeletedSiteId - - - DetectorName - - - DiagnosticCategory - - - DiagnosticsName - - - DomainName - - - DomainOwnershipIdentifierName - - - EntityName - - - EnvironmentName - - - FunctionAppName - - - FunctionName - - - GatewayName - - - HistoryName - - - HostName - - - HostingEnvironmentName - - - Id1 - - - ImmutabilityPolicyName - - - Instance - - - InstanceId - - - KeyId - - - KeyName - - - KeyType - - - LinkedBackendName - - - Location - - - ManagementPolicyName - - - Name - - - NamespaceName - - - OperationId - - - PremierAddOnName - - - PrivateEndpointConnectionName - - - ProcessId - - - PublicCertificateName - - - PurgeId - - - RelayName - - - RepetitionName - - - RequestHistoryName - - - ResourceGroupName - - - ResourceName - - - RouteName - - - RunName - - - Scope - - - SiteExtensionId - - - SiteName - - - Slot - - - SnapshotId - - - SourceControlType - - - SubscriptionId - - - TriggerName - - - Userid - - - VersionId - - - View - - - VnetName - - - WebJobName - - - WorkerName - - - WorkerPoolName - - - WorkflowName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.AccountSasParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.AccountSasParameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IPAddressOrRange - - - KeyToSign - - - Permission - - - Protocol - - - ResourceType - - - Service - - - SharedAccessExpiryTime - - - SharedAccessStartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ActiveDirectoryProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ActiveDirectoryProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - AzureStorageSid - - - DomainGuid - - - DomainName - - - DomainSid - - - ForestName - - - NetBiosDomainName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.AzureFilesIdentityBasedAuthentication - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.AzureFilesIdentityBasedAuthentication - - - - - - - - - - - - DirectoryServiceOption - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobContainer - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobContainer - - - - - - - - - - - - - - - Etag - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobServiceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobServiceProperties - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobServicePropertiesAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.BlobServicePropertiesAutoGenerated - - - - - - - - - - - - - - - AutomaticSnapshotPolicyEnabled - - - DefaultServiceVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ChangeFeed - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ChangeFeed - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CheckNameAvailabilityResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CheckNameAvailabilityResult - - - - - - - - - - - - - - - - - - Message - - - NameAvailable - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ContainerProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ContainerProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HasImmutabilityPolicy - - - HasLegalHold - - - LastModifiedTime - - - LeaseDuration - - - LeaseState - - - LeaseStatus - - - PublicAccess - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ContainerPropertiesMetadata - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ContainerPropertiesMetadata - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CorsRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CorsRule - - - - - - - - - - - - - - - - - - - - - - - - AllowedHeader - - - AllowedMethod - - - AllowedOrigin - - - ExposedHeader - - - MaxAgeInSecond - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CustomDomain - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CustomDomain - - - - - - - - - - - - - - - Name - - - UseSubDomainName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterCreation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterCreation - - - - - - - - - - - - DaysAfterCreationGreaterThan - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterModification - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DateAfterModification - - - - - - - - - - - - DaysAfterModificationGreaterThan - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DeleteRetentionPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DeleteRetentionPolicy - - - - - - - - - - - - - - - Day - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DimensionAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.DimensionAutoGenerated - - - - - - - - - - - - - - - DisplayName - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Encryption - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Encryption - - - - - - - - - - - - KeySource - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.EncryptionService - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.EncryptionService - - - - - - - - - - - - - - - Enabled - - - LastEnabledTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Endpoints - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Endpoints - - - - - - - - - - - - - - - - - - - - - - - - - - - Blob - - - Df - - - File - - - Queue - - - Table - - - Web - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.GeoReplicationStats - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.GeoReplicationStats - - - - - - - - - - - - - - - - - - CanFailover - - - LastSyncTime - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Identity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Identity - - - - - - - - - - - - - - - PrincipalId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ImmutabilityPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ImmutabilityPolicy - - - - - - - - - - - - - - - - - - Etag - - - Name - - - ETag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ImmutabilityPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ImmutabilityPolicyProperties - - - - - - - - - - - - Etag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ImmutabilityPolicyProperty - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ImmutabilityPolicyProperty - - - - - - - - - - - - - - - ImmutabilityPeriodSinceCreationInDay - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IPRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IPRule - - - - - - - - - - - - - - - Action - - - IPAddressOrRange - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.KeyVaultProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.KeyVaultProperties - - - - - - - - - - - - - - - - - - KeyName - - - KeyVaultUri - - - KeyVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LeaseContainerRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LeaseContainerRequest - - - - - - - - - - - - - - - - - - - - - - - - Action - - - BreakPeriod - - - LeaseDuration - - - LeaseId - - - ProposedLeaseId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LeaseContainerResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LeaseContainerResponse - - - - - - - - - - - - - - - LeaseId - - - LeaseTimeSecond - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LegalHold - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LegalHold - - - - - - - - - - - - - - - HasLegalHold - - - Tag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LegalHoldProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LegalHoldProperties - - - - - - - - - - - - HasLegalHold - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListAccountSasResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListAccountSasResponse - - - - - - - - - - - - AccountSasToken - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListContainerItem - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListContainerItem - - - - - - - - - - - - - - - Etag - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListContainerItems - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListContainerItems - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListServiceSasResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ListServiceSasResponse - - - - - - - - - - - - ServiceSasToken - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicy - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyFilter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyFilter - - - - - - - - - - - - - - - BlobType - - - PrefixMatch - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyProperties - - - - - - - - - - - - LastModifiedTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyRule - - - - - - - - - - - - - - - Enabled - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.MetricSpecificationAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.MetricSpecificationAutoGenerated - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AggregationType - - - Category - - - DisplayDescription - - - DisplayName - - - FillGapWithZero - - - Name - - - ResourceIdDimensionNameOverride - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.NetworkRuleSet - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.NetworkRuleSet - - - - - - - - - - - - - - - Bypass - - - DefaultAction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.OperationAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.OperationAutoGenerated - - - - - - - - - - - - - - - Name - - - Origin - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.OperationDisplay - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.OperationDisplay - - - - - - - - - - - - - - - - - - - - - Description - - - Operation - - - Provider - - - Resource - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Restriction - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Restriction - - - - - - - - - - - - - - - ReasonCode - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ServiceSasParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ServiceSasParameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CacheControl - - - CanonicalizedResource - - - ContentDisposition - - - ContentEncoding - - - ContentLanguage - - - ContentType - - - IPAddressOrRange - - - Identifier - - - KeyToSign - - - PartitionKeyEnd - - - PartitionKeyStart - - - Permission - - - Protocol - - - Resource - - - RowKeyEnd - - - RowKeyStart - - - SharedAccessExpiryTime - - - SharedAccessStartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Sku - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.Sku - - - - - - - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - ResourceType - - - Tier - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.SkuCapability - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.SkuCapability - - - - - - - - - - - - - - - Name - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccount - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccount - - - - - - - - - - - - - - - - - - Location - - - Name - - - Kind - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountCheckNameAvailabilityParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountCheckNameAvailabilityParameters - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountCreateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountCreateParameters - - - - - - - - - - - - - - - Kind - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountCreateParametersTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountCreateParametersTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountKey - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountKey - - - - - - - - - - - - - - - - - - KeyName - - - Permission - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessTier - - - AllowBlobPublicAccess - - - AllowSharedKeyAccess - - - CreationTime - - - EnableHttpsTrafficOnly - - - FailoverInProgress - - - IsHnsEnabled - - - LargeFileSharesState - - - LastGeoFailoverTime - - - MinimumTlsVersion - - - PrimaryLocation - - - ProvisioningState - - - SecondaryLocation - - - StatusOfPrimary - - - StatusOfSecondary - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountPropertiesCreateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountPropertiesCreateParameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessTier - - - AllowBlobPublicAccess - - - AllowSharedKeyAccess - - - EnableHttpsTrafficOnly - - - IsHnsEnabled - - - LargeFileSharesState - - - MinimumTlsVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountPropertiesUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountPropertiesUpdateParameters - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessTier - - - AllowBlobPublicAccess - - - AllowSharedKeyAccess - - - EnableHttpsTrafficOnly - - - LargeFileSharesState - - - MinimumTlsVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountRegenerateKeyParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountRegenerateKeyParameters - - - - - - - - - - - - KeyName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountUpdateParameters - - - - - - - - - - - - Kind - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountUpdateParametersTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.StorageAccountUpdateParametersTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.TagProperty - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.TagProperty - - - - - - - - - - - - - - - - - - - - - - - - ObjectIdentifier - - - Tag - - - TenantId - - - Timestamp - - - Upn - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.UpdateHistoryProperty - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.UpdateHistoryProperty - - - - - - - - - - - - - - - - - - - - - - - - - - - ImmutabilityPeriodSinceCreationInDay - - - ObjectIdentifier - - - TenantId - - - Timestamp - - - Update - - - Upn - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.UsageAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.UsageAutoGenerated - - - - - - - - - - - - - - - - - - CurrentValue - - - Limit - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.UsageName - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.UsageName - - - - - - - - - - - - - - - LocalizedValue - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.VirtualNetworkRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.VirtualNetworkRule - - - - - - - - - - - - - - - - - - Action - - - State - - - VirtualNetworkResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.CloudErrorBody - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.CloudErrorBody - - - - - - - - - - - - - - - - - - Code - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IdentityAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IdentityAutoGenerated - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IdentityUpdate - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IdentityUpdate - - - - - - - - - - - - - - - Name - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IdentityUpdateTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IdentityUpdateTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.OperationAutoGenerated2 - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.OperationAutoGenerated2 - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.OperationDisplayAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.OperationDisplayAutoGenerated - - - - - - - - - - - - - - - - - - - - - Description - - - Operation - - - Provider - - - Resource - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.OperationListResultAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.OperationListResultAutoGenerated - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.SystemAssignedIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.SystemAssignedIdentity - - - - - - - - - - - - - - - Name - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.SystemAssignedIdentityProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.SystemAssignedIdentityProperties - - - - - - - - - - - - - - - - - - - - - ClientId - - - ClientSecretUrl - - - PrincipalId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.SystemAssignedIdentityTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.SystemAssignedIdentityTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.UserAssignedIdentitiesListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.UserAssignedIdentitiesListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.UserAssignedIdentityProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.UserAssignedIdentityProperties - - - - - - - - - - - - - - - - - - ClientId - - - PrincipalId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApiKeyRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApiKeyRequest - - - - - - - - - - - - - - - - - - LinkedReadProperty - - - LinkedWriteProperty - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponent - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponent - - - - - - - - - - - - - - - - - - Location - - - Name - - - Kind - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentApiKey - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentApiKey - - - - - - - - - - - - - - - - - - - - - - - - ApiKey - - - CreatedDate - - - LinkedReadProperty - - - LinkedWriteProperty - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ApplicationInsightsComponentProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AppId - - - ApplicationId - - - ApplicationType - - - CreationDate - - - FlowType - - - HockeyAppId - - - HockeyAppToken - - - InstrumentationKey - - - ProvisioningState - - - RequestSource - - - SamplingPercentage - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeBody - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeBody - - - - - - - - - - - - Table - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeBodyFilters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeBodyFilters - - - - - - - - - - - - - - - - - - Column - - - Key - - - Operator - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeResponse - - - - - - - - - - - - OperationId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeStatusResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentPurgeStatusResponse - - - - - - - - - - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentsResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentsResource - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentsResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.ComponentsResourceTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.TagsResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.TagsResourceTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.AzureEntityResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.AzureEntityResource - - - - - - - - - - - - - - - Name - - - Etag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.ProxyResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.ProxyResource - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.ResourceAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.ResourceAutoGenerated - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.TrackedResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.TrackedResource - - - - - - - - - - - - - - - Name - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.TrackedResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.TrackedResourceTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AbnormalTimePeriod - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AbnormalTimePeriod - - - - - - - - - - - - - - - EndTime - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Address - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Address - - - - - - - - - - - - - - - - - - - - - - - - - - - Address1 - - - Address2 - - - City - - - Country - - - PostalCode - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AddressResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AddressResponse - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AddressResponseProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AddressResponseProperties - - - - - - - - - - - - - - - - - - InternalIPAddress - - - OutboundIPAddress - - - ServiceIPAddress - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AllowedAudiencesValidation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AllowedAudiencesValidation - - - - - - - - - - - - AllowedAudience - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AllowedPrincipals - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AllowedPrincipals - - - - - - - - - - - - - - - Group - - - Identity - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AnalysisData - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AnalysisData - - - - - - - - - - - - Source - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AnalysisDefinition - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AnalysisDefinition - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AnalysisDefinitionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AnalysisDefinitionProperties - - - - - - - - - - - - Description - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiDefinitionInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiDefinitionInfo - - - - - - - - - - - - Url - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiKvReference - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiKvReference - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiKvReferenceCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiKvReferenceCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiKvReferenceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApiKvReferenceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ActiveVersion - - - Detail - - - Reference - - - SecretName - - - SecretVersion - - - Source - - - Status - - - VaultName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppInsightsWebAppStackSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppInsightsWebAppStackSettings - - - - - - - - - - - - - - - IsDefaultOff - - - IsSupported - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Apple - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Apple - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppleRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppleRegistration - - - - - - - - - - - - - - - ClientId - - - ClientSecretSettingName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApplicationStack - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApplicationStack - - - - - - - - - - - - - - - - - - Dependency - - - Display - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApplicationStackCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApplicationStackCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApplicationStackResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ApplicationStackResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppRegistration - - - - - - - - - - - - - - - AppId - - - AppSecretSettingName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificate - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificate - - - - - - - - - - - - - - - - - - KeyVaultId - - - KeyVaultSecretName - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrder - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrder - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderPatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderPatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderPatchResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderPatchResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AppServiceCertificateNotRenewableReason - - - AutoRenew - - - Csr - - - DistinguishedName - - - DomainVerificationToken - - - ExpirationTime - - - IsPrivateKeyExternal - - - KeySize - - - LastCertificateIssuanceTime - - - NextAutoRenewalTimeStamp - - - ProductType - - - ProvisioningState - - - SerialNumber - - - Status - - - ValidityInYear - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateOrderProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AppServiceCertificateNotRenewableReason - - - AutoRenew - - - Csr - - - DistinguishedName - - - DomainVerificationToken - - - ExpirationTime - - - IsPrivateKeyExternal - - - KeySize - - - LastCertificateIssuanceTime - - - NextAutoRenewalTimeStamp - - - ProductType - - - ProvisioningState - - - SerialNumber - - - Status - - - ValidityInYear - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificatePatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificatePatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceCertificateResource - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironment - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DedicatedHostCount - - - DnsSuffix - - - FrontEndScaleFactor - - - HasLinuxWorker - - - InternalLoadBalancingMode - - - IpsslAddressCount - - - MaximumNumberOfMachine - - - MultiRoleCount - - - MultiSize - - - ProvisioningState - - - Status - - - Suspended - - - UpgradeAvailability - - - UpgradePreference - - - UserWhitelistedIPRange - - - ZoneRedundant - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironmentCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironmentCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironmentPatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironmentPatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironmentResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServiceEnvironmentResource - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppserviceGithubToken - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppserviceGithubToken - - - - - - - - - - - - - - - - - - - - - - - - AccessToken - - - ErrorMessage - - - GotToken - - - Scope - - - TokenType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppserviceGithubTokenRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppserviceGithubTokenRequest - - - - - - - - - - - - - - - Code - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanPatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanPatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanPatchResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanPatchResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ElasticScaleEnabled - - - FreeOfferExpirationTime - - - GeoRegion - - - HyperV - - - IsSpot - - - IsXenon - - - MaximumElasticWorkerCount - - - MaximumNumberOfWorker - - - NumberOfSite - - - NumberOfWorker - - - PerSiteScaling - - - ProvisioningState - - - Reserved - - - ResourceGroup - - - SpotExpirationTime - - - Status - - - Subscription - - - TargetWorkerCount - - - TargetWorkerSizeId - - - WorkerTierName - - - ZoneRedundant - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlanProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ElasticScaleEnabled - - - FreeOfferExpirationTime - - - GeoRegion - - - HyperV - - - IsSpot - - - IsXenon - - - MaximumElasticWorkerCount - - - MaximumNumberOfWorker - - - NumberOfSite - - - NumberOfWorker - - - PerSiteScaling - - - ProvisioningState - - - Reserved - - - ResourceGroup - - - SpotExpirationTime - - - Status - - - Subscription - - - TargetWorkerCount - - - TargetWorkerSizeId - - - WorkerTierName - - - ZoneRedundant - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ArmPlan - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ArmPlan - - - - - - - - - - - - - - - - - - - - - - - - Name - - - Product - - - PromotionCode - - - Publisher - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseRegion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseRegion - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseRegionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseRegionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseRegionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseRegionProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - AvailableOS - - - AvailableSku - - - DedicatedHost - - - DisplayName - - - Standard - - - ZoneRedundant - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseV3NetworkingConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseV3NetworkingConfiguration - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseV3NetworkingConfigurationProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AseV3NetworkingConfigurationProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AllowNewPrivateEndpointConnection - - - ExternalInboundIPAddress - - - FtpEnabled - - - InboundIPAddressOverride - - - InternalInboundIPAddress - - - LinuxOutboundIPAddress - - - RemoteDebugEnabled - - - WindowsOutboundIPAddress - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AuthPlatform - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AuthPlatform - - - - - - - - - - - - - - - - - - ConfigFilePath - - - Enabled - - - RuntimeVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AutoHealActions - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AutoHealActions - - - - - - - - - - - - - - - ActionType - - - MinProcessExecutionTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AutoHealCustomAction - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AutoHealCustomAction - - - - - - - - - - - - - - - Exe - - - Parameter - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AutoHealTriggers - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AutoHealTriggers - - - - - - - - - - - - PrivateBytesInKb - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectory - - - - - - - - - - - - - - - Enabled - - - IsAutoProvisioned - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectoryLogin - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectoryLogin - - - - - - - - - - - - - - - DisableWwwAuthenticate - - - LoginParameter - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectoryRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectoryRegistration - - - - - - - - - - - - - - - - - - - - - - - - - - - ClientId - - - ClientSecretCertificateIssuer - - - ClientSecretCertificateSubjectAlternativeName - - - ClientSecretCertificateThumbprint - - - ClientSecretSettingName - - - OpenIdIssuer - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectoryValidation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureActiveDirectoryValidation - - - - - - - - - - - - AllowedAudience - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureBlobStorageApplicationLogsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureBlobStorageApplicationLogsConfig - - - - - - - - - - - - - - - - - - Level - - - RetentionInDay - - - SasUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureBlobStorageHttpLogsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureBlobStorageHttpLogsConfig - - - - - - - - - - - - - - - - - - Enabled - - - RetentionInDay - - - SasUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureResourceErrorInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureResourceErrorInfo - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStaticWebApps - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStaticWebApps - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStaticWebAppsRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStaticWebAppsRegistration - - - - - - - - - - - - ClientId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStorageInfoValue - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStorageInfoValue - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessKey - - - AccountName - - - MountPath - - - Protocol - - - ShareName - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStoragePropertyDictionaryResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureStoragePropertyDictionaryResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureTableStorageApplicationLogsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AzureTableStorageApplicationLogsConfig - - - - - - - - - - - - - - - Level - - - SasUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupItem - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupItem - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupItemCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupItemCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupItemProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupItemProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BackupId - - - BlobName - - - CorrelationId - - - Created - - - FinishedTimeStamp - - - LastRestoreTimeStamp - - - Log - - - Name - - - Scheduled - - - SizeInByte - - - Status - - - StorageAccountUrl - - - WebsiteSizeInByte - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupRequestProperties - - - - - - - - - - - - - - - - - - BackupName - - - Enabled - - - StorageAccountUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupSchedule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BackupSchedule - - - - - - - - - - - - - - - - - - - - - - - - - - - FrequencyInterval - - - FrequencyUnit - - - KeepAtLeastOneBackup - - - LastExecutionTime - - - RetentionPeriodInDay - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BillingMeter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BillingMeter - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BillingMeterCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BillingMeterCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BillingMeterProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BillingMeterProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BillingLocation - - - FriendlyName - - - MeterId - - - Multiplier - - - OSType - - - ResourceType - - - ShortName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BlobStorageTokenStore - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.BlobStorageTokenStore - - - - - - - - - - - - SasUrlSettingName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Capability - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Capability - - - - - - - - - - - - - - - - - - Name - - - Reason - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Certificate - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Certificate - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateDetails - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Issuer - - - NotAfter - - - NotBefore - - - RawData - - - SerialNumber - - - SignatureAlgorithm - - - Subject - - - Thumbprint - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateEmail - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateEmail - - - - - - - - - - - - - - - EmailId - - - TimeStamp - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateOrderAction - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateOrderAction - - - - - - - - - - - - - - - ActionType - - - CreatedAt - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateOrderContact - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateOrderContact - - - - - - - - - - - - - - - - - - - - - Email - - - NameFirst - - - NameLast - - - Phone - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificatePatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificatePatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificatePatchResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificatePatchResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CanonicalName - - - CerBlob - - - DomainValidationMethod - - - ExpirationDate - - - FriendlyName - - - HostName - - - IssueDate - - - Issuer - - - KeyVaultId - - - KeyVaultSecretName - - - KeyVaultSecretStatus - - - Password - - - PfxBlob - - - PublicKeyHash - - - SelfLink - - - ServerFarmId - - - SiteName - - - SubjectName - - - Thumbprint - - - Valid - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CertificateProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CanonicalName - - - CerBlob - - - DomainValidationMethod - - - ExpirationDate - - - FriendlyName - - - HostName - - - IssueDate - - - Issuer - - - KeyVaultId - - - KeyVaultSecretName - - - KeyVaultSecretStatus - - - Password - - - PfxBlob - - - PublicKeyHash - - - SelfLink - - - ServerFarmId - - - SiteName - - - SubjectName - - - Thumbprint - - - Valid - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ClientRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ClientRegistration - - - - - - - - - - - - - - - ClientId - - - ClientSecretSettingName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CloningInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CloningInfo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CloneCustomHostName - - - CloneSourceControl - - - ConfigureLoadBalancing - - - CorrelationId - - - HostingEnvironment - - - Overwrite - - - SourceWebAppId - - - SourceWebAppLocation - - - TrafficManagerProfileId - - - TrafficManagerProfileName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CloningInfoAppSettingsOverrides - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CloningInfoAppSettingsOverrides - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ConnectionStringDictionary - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ConnectionStringDictionary - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ConnStringInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ConnStringInfo - - - - - - - - - - - - - - - ConnectionString - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ConnStringValueTypePair - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ConnStringValueTypePair - - - - - - - - - - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Contact - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Contact - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Email - - - Fax - - - JobTitle - - - NameFirst - - - NameLast - - - NameMiddle - - - Organization - - - Phone - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Container - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Container - - - - - - - - - - - - - - - - - - - - - Arg - - - Command - - - Image - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerCpuStatistics - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerCpuStatistics - - - - - - - - - - - - - - - OnlineCpuCount - - - SystemCpuUsage - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerCpuUsage - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerCpuUsage - - - - - - - - - - - - - - - - - - - - - KernelModeUsage - - - PerCpuUsage - - - TotalUsage - - - UserModeUsage - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerInfo - - - - - - - - - - - - - - - - - - CurrentTimeStamp - - - Name - - - PreviousTimeStamp - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerMemoryStatistics - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerMemoryStatistics - - - - - - - - - - - - - - - - - - Limit - - - MaxUsage - - - Usage - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerNetworkInterfaceStatistics - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerNetworkInterfaceStatistics - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RxByte - - - RxDropped - - - RxError - - - RxPacket - - - TxByte - - - TxDropped - - - TxError - - - TxPacket - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerResources - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerResources - - - - - - - - - - - - - - - Cpu - - - Memory - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerThrottlingData - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContainerThrottlingData - - - - - - - - - - - - - - - - - - Period - - - ThrottledPeriod - - - ThrottledTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContentHash - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContentHash - - - - - - - - - - - - - - - Algorithm - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContentLink - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContentLink - - - - - - - - - - - - - - - - - - ContentSize - - - ContentVersion - - - Uri - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContinuousWebJob - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContinuousWebJob - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContinuousWebJobCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContinuousWebJobCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContinuousWebJobProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ContinuousWebJobProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DetailedStatus - - - Error - - - ExtraInfoUrl - - - LogUrl - - - RunCommand - - - Status - - - Url - - - UsingSdk - - - WebJobType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CookieExpiration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CookieExpiration - - - - - - - - - - - - - - - Convention - - - TimeToExpiration - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Correlation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Correlation - - - - - - - - - - - - ClientTrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CorsSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CorsSettings - - - - - - - - - - - - - - - AllowedOrigin - - - SupportCredentials - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmDeploymentStatus - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmDeploymentStatus - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmDeploymentStatusCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmDeploymentStatusCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmDeploymentStatusProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmDeploymentStatusProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - DeploymentId - - - FailedInstancesLog - - - NumberOfInstancesFailed - - - NumberOfInstancesInProgress - - - NumberOfInstancesSuccessful - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmMoveResourceEnvelope - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmMoveResourceEnvelope - - - - - - - - - - - - - - - Resource - - - TargetResourceGroup - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmOperationCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmOperationCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmOperationDescription - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmOperationDescription - - - - - - - - - - - - - - - - - - IsDataAction - - - Name - - - Origin - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmOperationDisplay - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmOperationDisplay - - - - - - - - - - - - - - - - - - - - - Description - - - Operation - - - Provider - - - Resource - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmPublishingCredentialsPoliciesEntity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmPublishingCredentialsPoliciesEntity - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmPublishingCredentialsPoliciesEntityProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmPublishingCredentialsPoliciesEntityProperties - - - - - - - - - - - - Allow - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmPublishingProfileOptions - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmPublishingProfileOptions - - - - - - - - - - - - - - - Format - - - IncludeDisasterRecoveryEndpoint - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmSlotEntity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmSlotEntity - - - - - - - - - - - - - - - PreserveVnet - - - TargetSlot - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmUsageQuota - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmUsageQuota - - - - - - - - - - - - - - - - - - - - - CurrentValue - - - Limit - - - NextResetTime - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmUsageQuotaCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CsmUsageQuotaCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomDnsSuffixConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomDnsSuffixConfiguration - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomDnsSuffixConfigurationProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomDnsSuffixConfigurationProperties - - - - - - - - - - - - - - - - - - - - - - - - CertificateUrl - - - DnsSuffix - - - KeyVaultReferenceIdentity - - - ProvisioningDetail - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameAnalysisResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameAnalysisResult - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameAnalysisResultProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameAnalysisResultProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ARecord - - - AlternateCNameRecord - - - AlternateTxtRecord - - - CNameRecord - - - ConflictingAppResourceId - - - CustomDomainVerificationTest - - - HasConflictAcrossSubscription - - - HasConflictOnScaleUnit - - - IsHostnameAlreadyVerified - - - TxtRecord - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameSites - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameSites - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameSitesCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameSitesCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameSitesProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomHostnameSitesProperties - - - - - - - - - - - - - - - CustomHostname - - - Region - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomOpenIdConnectProvider - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomOpenIdConnectProvider - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomScaleRuleMetadata - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.CustomScaleRuleMetadata - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Dapr - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Dapr - - - - - - - - - - - - - - - - - - AppId - - - AppPort - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DaprComponent - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DaprComponent - - - - - - - - - - - - - - - Name - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DaprConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DaprConfig - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AppId - - - AppPort - - - EnableApiLogging - - - Enabled - - - HttpMaxRequestSize - - - HttpReadBufferSize - - - LogLevel - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DaprMetadata - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DaprMetadata - - - - - - - - - - - - - - - - - - Name - - - SecretRef - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseBackupSetting - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseBackupSetting - - - - - - - - - - - - - - - - - - - - - ConnectionString - - - ConnectionStringName - - - DatabaseType - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnection - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionOverview - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionOverview - - - - - - - - - - - - - - - - - - - - - ConnectionIdentity - - - Name - - - Region - - - ResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionPatchRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionPatchRequestProperties - - - - - - - - - - - - - - - - - - - - - ConnectionIdentity - - - ConnectionString - - - Region - - - ResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DatabaseConnectionProperties - - - - - - - - - - - - - - - - - - - - - ConnectionIdentity - - - ConnectionString - - - Region - - - ResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataProviderMetadata - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataProviderMetadata - - - - - - - - - - - - ProviderName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataSource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataSource - - - - - - - - - - - - Instruction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataTableResponseColumn - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataTableResponseColumn - - - - - - - - - - - - - - - - - - ColumnName - - - ColumnType - - - DataType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataTableResponseObject - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DataTableResponseObject - - - - - - - - - - - - - - - Row - - - TableName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DefaultAuthorizationPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DefaultAuthorizationPolicy - - - - - - - - - - - - AllowedApplication - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DefaultErrorResponseError - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DefaultErrorResponseError - - - - - - - - - - - - - - - - - - - - - Code - - - Innererror - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DefaultErrorResponseErrorDetailsItem - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DefaultErrorResponseErrorDetailsItem - - - - - - - - - - - - - - - - - - Code - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedAppRestoreRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedAppRestoreRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedAppRestoreRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedAppRestoreRequestProperties - - - - - - - - - - - - - - - - - - - - - DeletedSiteId - - - RecoverConfiguration - - - SnapshotTime - - - UseDrSecondary - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedSite - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedSite - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedSiteProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedSiteProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DeletedSiteId - - - DeletedSiteName - - - DeletedTimestamp - - - GeoRegionName - - - Kind - - - ResourceGroup - - - Slot - - - Subscription - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedWebAppCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeletedWebAppCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Deployment - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Deployment - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeploymentCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeploymentCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeploymentProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DeploymentProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Active - - - Author - - - AuthorEmail - - - Deployer - - - Detail - - - EndTime - - - Message - - - StartTime - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorAbnormalTimePeriod - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorAbnormalTimePeriod - - - - - - - - - - - - - - - - - - - - - - - - EndTime - - - Message - - - Priority - - - Source - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorDefinition - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorDefinition - - - - - - - - - - - - - - - - - - - - - Description - - - DisplayName - - - IsEnabled - - - Rank - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorDefinitionResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorDefinitionResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorInfo - - - - - - - - - - - - - - - - - - - - - - - - - - - AnalysisType - - - Author - - - Category - - - Description - - - Name - - - Score - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorResponse - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorResponseCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DetectorResponseCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticAnalysis - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticAnalysis - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticAnalysisCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticAnalysisCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticAnalysisProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticAnalysisProperties - - - - - - - - - - - - - - - EndTime - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticCategory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticCategory - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticCategoryCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticCategoryCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticCategoryProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticCategoryProperties - - - - - - - - - - - - Description - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticDetectorCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticDetectorCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticDetectorResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticDetectorResponse - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticDetectorResponseProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticDetectorResponseProperties - - - - - - - - - - - - - - - - - - EndTime - - - IssueDetected - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticMetricSample - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticMetricSample - - - - - - - - - - - - - - - - - - - - - - - - - - - IsAggregated - - - Maximum - - - Minimum - - - RoleInstance - - - Timestamp - - - Total - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticMetricSet - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticMetricSet - - - - - - - - - - - - - - - - - - - - - - - - EndTime - - - Name - - - StartTime - - - TimeGrain - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Dimension - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Dimension - - - - - - - - - - - - - - - - - - - - - DisplayName - - - InternalName - - - Name - - - ToBeExportedForShoebox - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Domain - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Domain - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainAvailabilityCheckResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainAvailabilityCheckResult - - - - - - - - - - - - - - - - - - Available - - - DomainType - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainControlCenterSsoRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainControlCenterSsoRequest - - - - - - - - - - - - - - - - - - PostParameterKey - - - PostParameterValue - - - Url - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainOwnershipIdentifier - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainOwnershipIdentifier - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainOwnershipIdentifierCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainOwnershipIdentifierCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainOwnershipIdentifierProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainOwnershipIdentifierProperties - - - - - - - - - - - - OwnershipId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainPatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainPatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainPatchResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainPatchResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AuthCode - - - AutoRenew - - - CreatedTime - - - DnsType - - - DnsZoneId - - - DomainNotRenewableReason - - - ExpirationTime - - - LastRenewedTime - - - NameServer - - - Privacy - - - ProvisioningState - - - ReadyForDnsRecordManagement - - - RegistrationStatus - - - TargetDnsType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AuthCode - - - AutoRenew - - - CreatedTime - - - DnsType - - - DnsZoneId - - - DomainNotRenewableReason - - - ExpirationTime - - - LastRenewedTime - - - NameServer - - - Privacy - - - ProvisioningState - - - ReadyForDnsRecordManagement - - - RegistrationStatus - - - TargetDnsType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainPurchaseConsent - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainPurchaseConsent - - - - - - - - - - - - - - - - - - AgreedAt - - - AgreedBy - - - AgreementKey - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainRecommendationSearchParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DomainRecommendationSearchParameters - - - - - - - - - - - - - - - Keyword - - - MaxDomainRecommendation - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EnabledConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EnabledConfig - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EndpointDependency - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EndpointDependency - - - - - - - - - - - - DomainName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EndpointDetail - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EndpointDetail - - - - - - - - - - - - - - - - - - - - - IPAddress - - - IsAccessible - - - Latency - - - Port - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EnvironmentVar - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EnvironmentVar - - - - - - - - - - - - - - - - - - Name - - - SecretRef - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EnvironmentVariable - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.EnvironmentVariable - - - - - - - - - - - - - - - Name - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ErrorEntity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ErrorEntity - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - ExtendedCode - - - Message - - - MessageTemplate - - - Parameter - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ErrorInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ErrorInfo - - - - - - - - - - - - Code - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ErrorProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ErrorProperties - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Expression - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Expression - - - - - - - - - - - - Text - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ExpressionRoot - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ExpressionRoot - - - - - - - - - - - - - - - - - - - - - Code - - - Message - - - Text - - - Path - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ExpressionTraces - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ExpressionTraces - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ExtendedLocation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ExtendedLocation - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Facebook - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Facebook - - - - - - - - - - - - - - - Enabled - - - GraphApiVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FileSystemApplicationLogsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FileSystemApplicationLogsConfig - - - - - - - - - - - - Level - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FileSystemHttpLogsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FileSystemHttpLogsConfig - - - - - - - - - - - - - - - - - - Enabled - - - RetentionInDay - - - RetentionInMb - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FileSystemTokenStore - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FileSystemTokenStore - - - - - - - - - - - - Directory - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ForwardProxy - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ForwardProxy - - - - - - - - - - - - - - - - - - Convention - - - CustomHostHeaderName - - - CustomProtoHeaderName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppMajorVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppMajorVersion - - - - - - - - - - - - - - - DisplayText - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppMinorVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppMinorVersion - - - - - - - - - - - - - - - DisplayText - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppRuntimeSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppRuntimeSettings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EndOfLifeDate - - - IsAutoUpdate - - - IsDefault - - - IsDeprecated - - - IsEarlyAccess - - - IsHidden - - - IsPreview - - - RemoteDebuggingSupported - - - RuntimeVersion - - - SupportedFunctionsExtensionVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppRuntimeSettingsAppSettingsDictionary - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppRuntimeSettingsAppSettingsDictionary - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppStack - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppStack - - - - - - - - - - - - - - - - - - Kind - - - Name - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppStackCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppStackCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppStackProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionAppStackProperties - - - - - - - - - - - - - - - - - - DisplayText - - - PreferredOS - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelope - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelope - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelopeCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelopeCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelopeProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelopeProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ConfigHref - - - FunctionAppId - - - Href - - - InvokeUrlTemplate - - - IsDisabled - - - Language - - - ScriptHref - - - ScriptRootPathHref - - - SecretsFileHref - - - TestData - - - TestDataHref - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelopePropertiesFiles - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionEnvelopePropertiesFiles - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsAlwaysReadyConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsAlwaysReadyConfig - - - - - - - - - - - - - - - InstanceCount - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsDeploymentStorage - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsDeploymentStorage - - - - - - - - - - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsDeploymentStorageAuthentication - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsDeploymentStorageAuthentication - - - - - - - - - - - - - - - StorageAccountConnectionStringName - - - UserAssignedIdentityResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionSecrets - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionSecrets - - - - - - - - - - - - - - - Key - - - TriggerUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsRuntime - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsRuntime - - - - - - - - - - - - - - - Name - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsScaleAndConcurrency - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsScaleAndConcurrency - - - - - - - - - - - - - - - InstanceMemoryMb - - - MaximumInstanceCount - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsScaleAndConcurrencyTriggersHttp - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.FunctionsScaleAndConcurrencyTriggersHttp - - - - - - - - - - - - PerInstanceConcurrency - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GeoRegion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GeoRegion - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GeoRegionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GeoRegionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GeoRegionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GeoRegionProperties - - - - - - - - - - - - - - - - - - Description - - - DisplayName - - - OrgDomain - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHub - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHub - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionCodeConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionCodeConfiguration - - - - - - - - - - - - - - - RuntimeStack - - - RuntimeVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionConfiguration - - - - - - - - - - - - - - - GenerateWorkflowFile - - - IsLinux - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionContainerConfiguration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionContainerConfiguration - - - - - - - - - - - - - - - - - - - - - ImageName - - - Password - - - ServerUrl - - - Username - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionWebAppStackSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GitHubActionWebAppStackSettings - - - - - - - - - - - - - - - IsSupported - - - SupportedVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GlobalCsmSkuDescription - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GlobalCsmSkuDescription - - - - - - - - - - - - - - - - - - - - - - - - Family - - - Location - - - Name - - - Size - - - Tier - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GlobalValidation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.GlobalValidation - - - - - - - - - - - - - - - - - - - - - ExcludedPath - - - RedirectToProvider - - - RequireAuthentication - - - UnauthenticatedClientAction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Google - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Google - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HandlerMapping - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HandlerMapping - - - - - - - - - - - - - - - - - - Argument - - - Extension - - - ScriptProcessor - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostingEnvironmentDeploymentInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostingEnvironmentDeploymentInfo - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostingEnvironmentDiagnostics - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostingEnvironmentDiagnostics - - - - - - - - - - - - - - - DiagnosticsOutput - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostingEnvironmentProfile - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostingEnvironmentProfile - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostKeys - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostKeys - - - - - - - - - - - - MasterKey - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostKeysFunctionKeys - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostKeysFunctionKeys - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostKeysSystemKeys - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostKeysSystemKeys - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostName - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostName - - - - - - - - - - - - - - - - - - - - - - - - AzureResourceName - - - AzureResourceType - - - CustomHostNameDnsRecordType - - - Name - - - SiteName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameBinding - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameBinding - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameBindingCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameBindingCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameBindingProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameBindingProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AzureResourceName - - - AzureResourceType - - - CustomHostNameDnsRecordType - - - DomainId - - - HostNameType - - - SiteName - - - SslState - - - Thumbprint - - - VirtualIP - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameSslState - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HostNameSslState - - - - - - - - - - - - - - - - - - - - - - - - - - - HostType - - - Name - - - SslState - - - Thumbprint - - - ToUpdate - - - VirtualIP - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HttpScaleRuleMetadata - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HttpScaleRuleMetadata - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HttpSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HttpSettings - - - - - - - - - - - - RequireHttps - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HttpSettingsRoutes - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HttpSettingsRoutes - - - - - - - - - - - - ApiPrefix - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnection - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionKey - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionKey - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionKeyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionKeyProperties - - - - - - - - - - - - - - - SendKeyName - - - SendKeyValue - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionLimits - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionLimits - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionLimitsProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionLimitsProperties - - - - - - - - - - - - - - - Current - - - Maximum - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.HybridConnectionProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hostname - - - Port - - - RelayArmUri - - - RelayName - - - SendKeyName - - - SendKeyValue - - - ServiceBusNamespace - - - ServiceBusSuffix - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Identifier - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Identifier - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IdentifierCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IdentifierCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IdentifierProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IdentifierProperties - - - - - - - - - - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.InboundEnvironmentEndpoint - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.InboundEnvironmentEndpoint - - - - - - - - - - - - - - - - - - Description - - - Endpoint - - - Port - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.InboundEnvironmentEndpointCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.InboundEnvironmentEndpointCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPAddress - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPAddress - - - - - - - - - - - - Address - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPAddressRange - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPAddressRange - - - - - - - - - - - - AddressRange - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPSecurityRestriction - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPSecurityRestriction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Action - - - Description - - - IPAddress - - - Name - - - Priority - - - SubnetMask - - - SubnetTrafficTag - - - Tag - - - VnetSubnetResourceId - - - VnetTrafficTag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPSecurityRestrictionHeaders - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IPSecurityRestrictionHeaders - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.JsonSchema - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.JsonSchema - - - - - - - - - - - - - - - Content - - - Title - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.JwtClaimChecks - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.JwtClaimChecks - - - - - - - - - - - - - - - AllowedClientApplication - - - AllowedGroup - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.KeyInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.KeyInfo - - - - - - - - - - - - - - - Name - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.KeyValuePairStringObject - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.KeyValuePairStringObject - - - - - - - - - - - - Key - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.KubeEnvironmentProfile - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.KubeEnvironmentProfile - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LegacyMicrosoftAccount - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LegacyMicrosoftAccount - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LinuxJavaContainerSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LinuxJavaContainerSettings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EndOfLifeDate - - - IsAutoUpdate - - - IsDeprecated - - - IsEarlyAccess - - - IsHidden - - - IsPreview - - - Java11Runtime - - - Java8Runtime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LocalizableString - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LocalizableString - - - - - - - - - - - - - - - LocalizedValue - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Login - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Login - - - - - - - - - - - - - - - AllowedExternalRedirectUrl - - - PreserveUrlFragmentsForLogin - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LoginRoutes - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LoginRoutes - - - - - - - - - - - - LogoutEndpoint - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LoginScopes - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LoginScopes - - - - - - - - - - - - Scope - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LogSpecification - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.LogSpecification - - - - - - - - - - - - - - - - - - - - - BlobDuration - - - DisplayName - - - LogFilterPattern - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ManagedServiceIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ManagedServiceIdentity - - - - - - - - - - - - - - - PrincipalId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MetricAvailability - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MetricAvailability - - - - - - - - - - - - - - - BlobDuration - - - TimeGrain - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MetricSpecification - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MetricSpecification - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AggregationType - - - Category - - - DisplayDescription - - - DisplayName - - - EnableRegionalMdmAccount - - - FillGapWithZero - - - IsInternal - - - MetricFilterPattern - - - Name - - - SourceMdmAccount - - - SourceMdmNamespace - - - SupportedAggregationType - - - SupportedTimeGrainType - - - SupportsInstanceLevelAggregation - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlRequestProperties - - - - - - - - - - - - - - - ConnectionString - - - MigrationType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlStatus - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlStatus - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlStatusProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MigrateMySqlStatusProperties - - - - - - - - - - - - - - - - - - LocalMySqlEnabled - - - MigrationOperationStatus - - - OperationId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeploy - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeploy - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployCore - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployCore - - - - - - - - - - - - - - - - - - - - - - - - - - - AppOffline - - - ConnectionString - - - DbType - - - PackageUri - - - SetParametersXmlFileUri - - - SkipAppData - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployCoreSetParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployCoreSetParameters - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployLog - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployLog - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployLogEntry - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployLogEntry - - - - - - - - - - - - - - - Message - - - Time - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployStatus - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployStatus - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployStatusProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.MSDeployStatusProperties - - - - - - - - - - - - - - - - - - - - - - - - Complete - - - Deployer - - - EndTime - - - ProvisioningState - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameIdentifier - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameIdentifier - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameIdentifierCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameIdentifierCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameValuePair - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameValuePair - - - - - - - - - - - - - - - Name - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NetworkFeatures - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NetworkFeatures - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NetworkFeaturesProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NetworkFeaturesProperties - - - - - - - - - - - - VirtualNetworkName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NetworkTrace - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NetworkTrace - - - - - - - - - - - - - - - - - - Message - - - Path - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Nonce - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Nonce - - - - - - - - - - - - - - - ExpirationInterval - - - ValidateNonce - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenAuthenticationPolicyClaim - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenAuthenticationPolicyClaim - - - - - - - - - - - - - - - Name - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectClientCredential - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectClientCredential - - - - - - - - - - - - - - - ClientSecretSettingName - - - Method - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectConfig - - - - - - - - - - - - - - - - - - - - - - - - AuthorizationEndpoint - - - CertificationUri - - - Issuer - - - TokenEndpoint - - - WellKnownOpenIdConfiguration - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectLogin - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectLogin - - - - - - - - - - - - - - - NameClaimType - - - Scope - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OpenIdConnectRegistration - - - - - - - - - - - - ClientId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Operation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Operation - - - - - - - - - - - - - - - - - - - - - - - - - - - CreatedTime - - - ExpirationTime - - - GeoMasterOperationId - - - ModifiedTime - - - Name - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OperationResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OperationResult - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - CorrelationActionTrackingId - - - CorrelationClientKeyword - - - CorrelationClientTrackingId - - - EndTime - - - StartTime - - - Status - - - IterationCount - - - TrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OperationResultProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OperationResultProperties - - - - - - - - - - - - - - - - - - - - - Code - - - EndTime - - - StartTime - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OutboundEnvironmentEndpoint - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OutboundEnvironmentEndpoint - - - - - - - - - - - - Category - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OutboundEnvironmentEndpointCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.OutboundEnvironmentEndpointCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonCounterCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonCounterCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonResponse - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonSample - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonSample - - - - - - - - - - - - - - - - - - InstanceName - - - Time - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonSet - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PerfMonSet - - - - - - - - - - - - - - - - - - - - - EndTime - - - Name - - - StartTime - - - TimeGrain - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOn - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOn - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnOffer - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnOffer - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnOfferCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnOfferCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnOfferProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnOfferProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - LegalTermsUrl - - - MarketplaceOffer - - - MarketplacePublisher - - - PrivacyPolicyUrl - - - Product - - - PromoCodeRequired - - - Quota - - - Sku - - - Vendor - - - WebHostingPlanRestriction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnPatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnPatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnPatchResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnPatchResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - MarketplaceOffer - - - MarketplacePublisher - - - Product - - - Sku - - - Vendor - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PremierAddOnProperties - - - - - - - - - - - - - - - - - - - - - - - - MarketplaceOffer - - - MarketplacePublisher - - - Product - - - Sku - - - Vendor - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccess - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccess - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccessProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccessProperties - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccessSubnet - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccessSubnet - - - - - - - - - - - - - - - Key - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccessVirtualNetwork - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateAccessVirtualNetwork - - - - - - - - - - - - - - - - - - Key - - - Name - - - ResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateEndpointConnectionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateEndpointConnectionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkConnectionApprovalRequestResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkConnectionApprovalRequestResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkConnectionState - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkConnectionState - - - - - - - - - - - - - - - - - - ActionsRequired - - - Description - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkResource - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PrivateLinkResourceProperties - - - - - - - - - - - - - - - - - - GroupId - - - RequiredMember - - - RequiredZoneName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfo - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfoCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfoCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfoProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfoProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Child - - - CommandLine - - - DeploymentName - - - Description - - - FileName - - - HandleCount - - - Href - - - Identifier - - - IisProfileTimeoutInSecond - - - IsIisProfileRunning - - - IsProfileRunning - - - IsScmSite - - - IsWebjob - - - Minidump - - - ModuleCount - - - NonPagedSystemMemory - - - OpenFileHandle - - - PagedMemory - - - PagedSystemMemory - - - Parent - - - PeakPagedMemory - - - PeakVirtualMemory - - - PeakWorkingSet - - - PrivateMemory - - - PrivilegedCpuTime - - - StartTime - - - ThreadCount - - - TimeStamp - - - TotalCpuTime - - - UserCpuTime - - - UserName - - - VirtualMemory - - - WorkingSet - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfoPropertiesEnvironmentVariables - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessInfoPropertiesEnvironmentVariables - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessModuleInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessModuleInfo - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessModuleInfoCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessModuleInfoCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessModuleInfoProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessModuleInfoProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BaseAddress - - - FileDescription - - - FileName - - - FilePath - - - FileVersion - - - Href - - - IsDebug - - - Language - - - ModuleMemorySize - - - Product - - - ProductVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessThreadInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessThreadInfo - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessThreadInfoCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessThreadInfoCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessThreadInfoProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProcessThreadInfoProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BasePriority - - - CurrentPriority - - - Href - - - Identifier - - - PriorityLevel - - - Process - - - StartAddress - - - StartTime - - - State - - - TotalProcessorTime - - - UserProcessorTime - - - WaitReason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProxyOnlyResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ProxyOnlyResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublicCertificate - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublicCertificate - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublicCertificateCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublicCertificateCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublicCertificateProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublicCertificateProperties - - - - - - - - - - - - - - - - - - Blob - - - PublicCertificateLocation - - - Thumbprint - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublishingCredentialsPoliciesCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PublishingCredentialsPoliciesCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PushSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PushSettings - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PushSettingsProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.PushSettingsProperties - - - - - - - - - - - - - - - - - - - - - DynamicTagsJson - - - IsPushEnabled - - - TagWhitelistJson - - - TagsRequiringAuth - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.QueryUtterancesResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.QueryUtterancesResult - - - - - - - - - - - - Score - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.QueryUtterancesResults - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.QueryUtterancesResults - - - - - - - - - - - - Query - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.QueueScaleRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.QueueScaleRule - - - - - - - - - - - - - - - QueueLength - - - QueueName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RampUpRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RampUpRule - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ActionHostName - - - ChangeDecisionCallbackUrl - - - ChangeIntervalInMinute - - - ChangeStep - - - MaxReroutePercentage - - - MinReroutePercentage - - - Name - - - ReroutePercentage - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Recommendation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Recommendation - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ActionName - - - BladeName - - - CategoryTag - - - Channel - - - CreationTime - - - DisplayName - - - Enabled - - - EndTime - - - ExtensionName - - - ForwardLink - - - IsDynamic - - - Level - - - Message - - - NextNotificationTime - - - NotificationExpirationTime - - - NotifiedTime - - - RecommendationId - - - ResourceId - - - ResourceScope - - - RuleName - - - Score - - - StartTime - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationRule - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationRuleProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecommendationRuleProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ActionName - - - BladeName - - - CategoryTag - - - Channel - - - Description - - - DisplayName - - - ExtensionName - - - ForwardLink - - - IsDynamic - - - Level - - - Message - - - RecommendationId - - - RecommendationName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecurrenceSchedule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecurrenceSchedule - - - - - - - - - - - - - - - - - - - - - Hour - - - Minute - - - MonthDay - - - WeekDay - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecurrenceScheduleOccurrence - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RecurrenceScheduleOccurrence - - - - - - - - - - - - - - - Day - - - Occurrence - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RegenerateActionParameter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RegenerateActionParameter - - - - - - - - - - - - KeyType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ReissueCertificateOrderRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ReissueCertificateOrderRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ReissueCertificateOrderRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ReissueCertificateOrderRequestProperties - - - - - - - - - - - - - - - - - - - - - Csr - - - DelayExistingRevokeInHour - - - IsPrivateKeyExternal - - - KeySize - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RelayServiceConnectionEntity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RelayServiceConnectionEntity - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RelayServiceConnectionEntityProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RelayServiceConnectionEntityProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BiztalkUri - - - EntityConnectionString - - - EntityName - - - Hostname - - - Port - - - ResourceConnectionString - - - ResourceType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnection - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnectionArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnectionArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnectionArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnectionArmResourceProperties - - - - - - - - - - - - - - - IPAddress - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnectionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RemotePrivateEndpointConnectionProperties - - - - - - - - - - - - - - - IPAddress - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Rendering - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Rendering - - - - - - - - - - - - - - - Description - - - Title - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RenewCertificateOrderRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RenewCertificateOrderRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RenewCertificateOrderRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RenewCertificateOrderRequestProperties - - - - - - - - - - - - - - - - - - Csr - - - IsPrivateKeyExternal - - - KeySize - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RepetitionIndex - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RepetitionIndex - - - - - - - - - - - - - - - ItemIndex - - - ScopeName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Request - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Request - - - - - - - - - - - - - - - Method - - - Uri - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestHistory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestHistory - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestHistoryListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestHistoryListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestHistoryProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestHistoryProperties - - - - - - - - - - - - - - - EndTime - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestsBasedTrigger - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RequestsBasedTrigger - - - - - - - - - - - - - - - Count - - - TimeInterval - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Resource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Resource - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceCollection - - - - - - - - - - - - - - - NextLink - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceConfig - - - - - - - - - - - - - - - Cpu - - - Memory - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceHealthMetadata - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceHealthMetadata - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceHealthMetadataCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceHealthMetadataCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceHealthMetadataProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceHealthMetadataProperties - - - - - - - - - - - - - - - Category - - - SignalAvailability - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricAvailability - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricAvailability - - - - - - - - - - - - - - - Retention - - - TimeGrain - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinition - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinition - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionProperties - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionProperties1 - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionProperties1 - - - - - - - - - - - - - - - - - - PrimaryAggregationType - - - ResourceUri - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceNameAvailability - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceNameAvailability - - - - - - - - - - - - - - - - - - Message - - - NameAvailable - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceNameAvailabilityRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceNameAvailabilityRequest - - - - - - - - - - - - - - - - - - EnvironmentId - - - IsFqdn - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceReference - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceReference - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Response - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Response - - - - - - - - - - - - StatusCode - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResponseMessageEnvelopeRemotePrivateEndpointConnection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResponseMessageEnvelopeRemotePrivateEndpointConnection - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - Status - - - Zone - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResponseMessageEnvelopeRemotePrivateEndpointConnectionTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResponseMessageEnvelopeRemotePrivateEndpointConnectionTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RestoreRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RestoreRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RestoreRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RestoreRequestProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AdjustConnectionString - - - AppServicePlan - - - BlobName - - - HostingEnvironment - - - IgnoreConflictingHostName - - - IgnoreDatabase - - - OperationType - - - Overwrite - - - SiteName - - - StorageAccountUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RetryHistory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RetryHistory - - - - - - - - - - - - - - - - - - - - - - - - ClientRequestId - - - Code - - - EndTime - - - ServiceRequestId - - - StartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RunActionCorrelation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RunActionCorrelation - - - - - - - - - - - - - - - - - - ClientKeyword - - - ClientTrackingId - - - ActionTrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RunCorrelation - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.RunCorrelation - - - - - - - - - - - - - - - ClientKeyword - - - ClientTrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SampleUtterance - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SampleUtterance - - - - - - - - - - - - - - - - - - Link - - - Qid - - - Text - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Scale - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Scale - - - - - - - - - - - - - - - MaxReplica - - - MinReplica - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ScaleRule - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ScaleRule - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ScaleRuleAuth - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ScaleRuleAuth - - - - - - - - - - - - - - - SecretRef - - - TriggerParameter - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteAuthSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteAuthSettings - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteAuthSettingsProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteAuthSettingsProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AadClaimsAuthorization - - - AdditionalLoginParam - - - AllowedAudience - - - AllowedExternalRedirectUrl - - - AuthFilePath - - - ClientId - - - ClientSecret - - - ClientSecretCertificateThumbprint - - - ClientSecretSettingName - - - ConfigVersion - - - DefaultProvider - - - Enabled - - - FacebookAppId - - - FacebookAppSecret - - - FacebookAppSecretSettingName - - - FacebookOAuthScope - - - GitHubClientId - - - GitHubClientSecret - - - GitHubClientSecretSettingName - - - GitHubOAuthScope - - - GoogleClientId - - - GoogleClientSecret - - - GoogleClientSecretSettingName - - - GoogleOAuthScope - - - IsAuthFromFile - - - Issuer - - - MicrosoftAccountClientId - - - MicrosoftAccountClientSecret - - - MicrosoftAccountClientSecretSettingName - - - MicrosoftAccountOAuthScope - - - RuntimeVersion - - - TokenRefreshExtensionHour - - - TokenStoreEnabled - - - TwitterConsumerKey - - - TwitterConsumerSecret - - - TwitterConsumerSecretSettingName - - - UnauthenticatedClientAction - - - ValidateIssuer - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteAuthSettingsV2 - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteAuthSettingsV2 - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteCloneability - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteCloneability - - - - - - - - - - - - Result - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteCloneabilityCriterion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteCloneabilityCriterion - - - - - - - - - - - - - - - Description - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfig - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AcrUseManagedIdentityCred - - - AcrUserManagedIdentityId - - - AlwaysOn - - - AppCommandLine - - - AutoHealEnabled - - - AutoSwapSlotName - - - DefaultDocument - - - DetailedErrorLoggingEnabled - - - DocumentRoot - - - ElasticWebAppScaleLimit - - - FtpsState - - - FunctionAppScaleLimit - - - FunctionsRuntimeScaleMonitoringEnabled - - - HealthCheckPath - - - Http20Enabled - - - HttpLoggingEnabled - - - IPSecurityRestrictionsDefaultAction - - - JavaContainer - - - JavaContainerVersion - - - JavaVersion - - - KeyVaultReferenceIdentity - - - LinuxFxVersion - - - LoadBalancing - - - LocalMySqlEnabled - - - LogsDirectorySizeLimit - - - ManagedPipelineMode - - - ManagedServiceIdentityId - - - MinTlsCipherSuite - - - MinTlsVersion - - - MinimumElasticInstanceCount - - - NetFrameworkVersion - - - NodeVersion - - - NumberOfWorker - - - PhpVersion - - - PowerShellVersion - - - PreWarmedInstanceCount - - - PublicNetworkAccess - - - PublishingUsername - - - PythonVersion - - - RemoteDebuggingEnabled - - - RemoteDebuggingVersion - - - RequestTracingEnabled - - - RequestTracingExpirationTime - - - ScmIPSecurityRestrictionsDefaultAction - - - ScmIPSecurityRestrictionsUseMain - - - ScmMinTlsVersion - - - ScmType - - - TracingOption - - - Use32BitWorkerProcess - - - VnetName - - - VnetPrivatePortsCount - - - VnetRouteAllEnabled - - - WebSocketsEnabled - - - WebsiteTimeZone - - - WindowsFxVersion - - - XManagedServiceIdentityId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigPropertiesDictionary - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigPropertiesDictionary - - - - - - - - - - - - - - - - - - - - - JavaVersion - - - LinuxFxVersion - - - PowerShellVersion - - - Use32BitWorkerProcess - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigResourceCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigResourceCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigurationSnapshotInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigurationSnapshotInfo - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigurationSnapshotInfoCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigurationSnapshotInfoCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigurationSnapshotInfoProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfigurationSnapshotInfoProperties - - - - - - - - - - - - - - - SnapshotId - - - Time - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteContainer - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteContainer - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteContainerCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteContainerCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteContainerProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteContainerProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AuthType - - - CreatedTime - - - Image - - - IsMain - - - LastModifiedTime - - - PasswordSecret - - - StartUpCommand - - - TargetPort - - - UserManagedIdentityClientId - - - UserName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteDnsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteDnsConfig - - - - - - - - - - - - - - - - - - - - - - - - - - - DnsAltServer - - - DnsLegacySortOrder - - - DnsMaxCacheTimeout - - - DnsRetryAttemptCount - - - DnsRetryAttemptTimeout - - - DnsServer - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteExtensionInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteExtensionInfo - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteExtensionInfoCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteExtensionInfoCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteExtensionInfoProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteExtensionInfoProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Author - - - Comment - - - Description - - - DownloadCount - - - ExtensionId - - - ExtensionType - - - ExtensionUrl - - - FeedUrl - - - IconUrl - - - InstalledDateTime - - - InstallerCommandLineParam - - - LicenseUrl - - - LocalIsLatestVersion - - - LocalPath - - - ProjectUrl - - - ProvisioningState - - - PublishedDateTime - - - Summary - - - Title - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteLimits - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteLimits - - - - - - - - - - - - - - - - - - MaxDiskSizeInMb - - - MaxMemoryInMb - - - MaxPercentageCpu - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteLogsConfig - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteLogsConfig - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteMachineKey - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteMachineKey - - - - - - - - - - - - - - - - - - - - - Decryption - - - DecryptionKey - - - Validation - - - ValidationKey - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePatchResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePatchResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AvailabilityState - - - ClientAffinityEnabled - - - ClientCertEnabled - - - ClientCertExclusionPath - - - ClientCertMode - - - ContainerSize - - - CustomDomainVerificationId - - - DailyMemoryTimeQuota - - - DefaultHostName - - - Enabled - - - EnabledHostName - - - HostName - - - HostNamesDisabled - - - HttpsOnly - - - HyperV - - - InProgressOperationId - - - IsDefaultContainer - - - IsXenon - - - KeyVaultReferenceIdentity - - - LastModifiedTimeUtc - - - MaxNumberOfWorker - - - OutboundIPAddress - - - PossibleOutboundIPAddress - - - RedundancyMode - - - RepositorySiteName - - - Reserved - - - ResourceGroup - - - ScmSiteAlsoStopped - - - ServerFarmId - - - State - - - StorageAccountRequired - - - SuspendedTill - - - TargetSwapSlot - - - TrafficManagerHostName - - - UsageState - - - VirtualNetworkSubnetId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePhpErrorLogFlag - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePhpErrorLogFlag - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePhpErrorLogFlagProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SitePhpErrorLogFlagProperties - - - - - - - - - - - - - - - - - - - - - LocalLogError - - - LocalLogErrorsMaxLength - - - MasterLogError - - - MasterLogErrorsMaxLength - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AvailabilityState - - - ClientAffinityEnabled - - - ClientCertEnabled - - - ClientCertExclusionPath - - - ClientCertMode - - - ContainerSize - - - CustomDomainVerificationId - - - DailyMemoryTimeQuota - - - DefaultHostName - - - Enabled - - - EnabledHostName - - - HostName - - - HostNamesDisabled - - - HttpsOnly - - - HyperV - - - InProgressOperationId - - - IsDefaultContainer - - - IsXenon - - - KeyVaultReferenceIdentity - - - LastModifiedTimeUtc - - - ManagedEnvironmentId - - - MaxNumberOfWorker - - - OutboundIPAddress - - - PossibleOutboundIPAddress - - - PublicNetworkAccess - - - RedundancyMode - - - RepositorySiteName - - - Reserved - - - ResourceGroup - - - ScmSiteAlsoStopped - - - ServerFarmId - - - State - - - StorageAccountRequired - - - SuspendedTill - - - TargetSwapSlot - - - TrafficManagerHostName - - - UsageState - - - VirtualNetworkSubnetId - - - VnetBackupRestoreEnabled - - - VnetContentShareEnabled - - - VnetImagePullEnabled - - - VnetRouteAllEnabled - - - WorkloadProfileName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSeal - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSeal - - - - - - - - - - - - Html - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSealRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSealRequest - - - - - - - - - - - - - - - LightTheme - - - Locale - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSourceControl - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSourceControl - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSourceControlProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteSourceControlProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - Branch - - - DeploymentRollbackEnabled - - - IsGitHubAction - - - IsManualIntegration - - - IsMercurial - - - RepoUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuCapacity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuCapacity - - - - - - - - - - - - - - - - - - - - - - - - Default - - - ElasticMaximum - - - Maximum - - - Minimum - - - ScaleType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuDescription - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuDescription - - - - - - - - - - - - - - - - - - - - - - - - - - - Capacity - - - Family - - - Location - - - Name - - - Size - - - Tier - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuInfo - - - - - - - - - - - - ResourceType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuInfoCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuInfoCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuInfos - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SkuInfos - - - - - - - - - - - - ResourceType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotConfigNames - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotConfigNames - - - - - - - - - - - - - - - - - - AppSettingName - - - AzureStorageConfigName - - - ConnectionStringName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotConfigNamesResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotConfigNamesResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotDifference - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotDifference - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotDifferenceCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotDifferenceCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotDifferenceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotDifferenceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Description - - - DiffRule - - - Level - - - SettingName - - - SettingType - - - ValueInCurrentSlot - - - ValueInTargetSlot - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotSwapStatus - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlotSwapStatus - - - - - - - - - - - - - - - - - - DestinationSlotName - - - SourceSlotName - - - TimestampUtc - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlowRequestsBasedTrigger - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SlowRequestsBasedTrigger - - - - - - - - - - - - - - - - - - - - - Count - - - Path - - - TimeInterval - - - TimeTaken - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Snapshot - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Snapshot - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotProperties - - - - - - - - - - - - Time - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotRecoverySource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotRecoverySource - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotRestoreRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotRestoreRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotRestoreRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SnapshotRestoreRequestProperties - - - - - - - - - - - - - - - - - - - - - - - - IgnoreConflictingHostName - - - Overwrite - - - RecoverConfiguration - - - SnapshotTime - - - UseDrSecondary - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Solution - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Solution - - - - - - - - - - - - - - - - - - Description - - - DisplayName - - - Order - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SourceControl - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SourceControl - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SourceControlCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SourceControlCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SourceControlProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SourceControlProperties - - - - - - - - - - - - - - - - - - - - - ExpirationTime - - - RefreshToken - - - Token - - - TokenSecret - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StackMajorVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StackMajorVersion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ApplicationInsight - - - DisplayVersion - - - IsDefault - - - IsDeprecated - - - IsHidden - - - IsPreview - - - RuntimeVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StackMinorVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StackMinorVersion - - - - - - - - - - - - - - - - - - - - - DisplayVersion - - - IsDefault - - - IsRemoteDebuggingEnabled - - - RuntimeVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StampCapacity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StampCapacity - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AvailableCapacity - - - ComputeMode - - - ExcludeFromCapacityAllocation - - - IsApplicableForAllComputeMode - - - IsLinux - - - Name - - - SiteMode - - - TotalCapacity - - - Unit - - - WorkerSize - - - WorkerSizeId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StampCapacityCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StampCapacityCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSite - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSite - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AllowConfigFileUpdate - - - Branch - - - ContentDistributionEndpoint - - - CustomDomain - - - DefaultHostname - - - EnterpriseGradeCdnStatus - - - KeyVaultReferenceIdentity - - - Provider - - - PublicNetworkAccess - - - RepositoryToken - - - RepositoryUrl - - - StagingEnvironmentPolicy - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteArmResource - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBasicAuthPropertiesArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBasicAuthPropertiesArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBasicAuthPropertiesArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBasicAuthPropertiesArmResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - ApplicableEnvironmentsMode - - - Environment - - - Password - - - SecretState - - - SecretUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBasicAuthPropertiesCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBasicAuthPropertiesCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildArmResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BuildId - - - CreatedTimeUtc - - - Hostname - - - LastUpdatedOn - - - PullRequestTitle - - - SourceBranch - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteBuildProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ApiBuildCommand - - - ApiLocation - - - AppArtifactLocation - - - AppBuildCommand - - - AppLocation - - - GithubActionSecretNameOverride - - - OutputLocation - - - SkipGithubActionWorkflowGeneration - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainOverviewArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainOverviewArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainOverviewArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainOverviewArmResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - CreatedOn - - - DomainName - - - ErrorMessage - - - Status - - - ValidationToken - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainOverviewCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainOverviewCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainRequestPropertiesArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainRequestPropertiesArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainRequestPropertiesArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteCustomDomainRequestPropertiesArmResourceProperties - - - - - - - - - - - - ValidationMethod - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteDatabaseConnectionConfigurationFileOverview - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteDatabaseConnectionConfigurationFileOverview - - - - - - - - - - - - - - - Content - - - FileName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteFunctionOverviewArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteFunctionOverviewArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteFunctionOverviewArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteFunctionOverviewArmResourceProperties - - - - - - - - - - - - - - - FunctionName - - - TriggerType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteFunctionOverviewCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteFunctionOverviewCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackend - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackend - - - - - - - - - - - - - - - - - - - - - BackendResourceId - - - CreatedOn - - - ProvisioningState - - - Region - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackendArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackendArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackendArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackendArmResourceProperties - - - - - - - - - - - - - - - - - - - - - BackendResourceId - - - CreatedOn - - - ProvisioningState - - - Region - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackendsCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteLinkedBackendsCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitePatchResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitePatchResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteResetPropertiesArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteResetPropertiesArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteResetPropertiesArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteResetPropertiesArmResourceProperties - - - - - - - - - - - - - - - RepositoryToken - - - ShouldUpdateRepository - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreview - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreview - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreviewProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreviewProperties - - - - - - - - - - - - - - - Content - - - Path - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreviewRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreviewRequest - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreviewRequestProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSitesWorkflowPreviewRequestProperties - - - - - - - - - - - - - - - Branch - - - RepositoryUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteTemplateOptions - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteTemplateOptions - - - - - - - - - - - - - - - - - - - - - - - - Description - - - IsPrivate - - - Owner - - - RepositoryName - - - TemplateRepositoryUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserArmResourceProperties - - - - - - - - - - - - - - - - - - - - - DisplayName - - - Provider - - - Role - - - UserId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationRequestResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationRequestResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationRequestResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationRequestResourceProperties - - - - - - - - - - - - - - - - - - - - - - - - Domain - - - NumHoursToExpiration - - - Provider - - - Role - - - UserDetail - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationResponseResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationResponseResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationResponseResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserInvitationResponseResourceProperties - - - - - - - - - - - - - - - ExpiresOn - - - InvitationUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionApp - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionApp - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppArmResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppArmResourceProperties - - - - - - - - - - - - - - - - - - CreatedOn - - - FunctionAppRegion - - - FunctionAppResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppProperties - - - - - - - - - - - - - - - - - - CreatedOn - - - FunctionAppRegion - - - FunctionAppResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppsCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteUserProvidedFunctionAppsCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteZipDeployment - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteZipDeployment - - - - - - - - - - - - - - - - - - - - - - - - ApiZipUrl - - - AppZipUrl - - - DeploymentTitle - - - FunctionLanguage - - - Provider - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteZipDeploymentArmResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StaticSiteZipDeploymentArmResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Status - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Status - - - - - - - - - - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StatusCodesBasedTrigger - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StatusCodesBasedTrigger - - - - - - - - - - - - - - - - - - - - - - - - - - - Count - - - Path - - - Status - - - SubStatus - - - TimeInterval - - - Win32Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StatusCodesRangeBasedTrigger - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StatusCodesRangeBasedTrigger - - - - - - - - - - - - - - - - - - - - - Count - - - Path - - - StatusCode - - - TimeInterval - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationOptions - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationOptions - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationOptionsProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationOptionsProperties - - - - - - - - - - - - - - - - - - - - - AzurefilesConnectionString - - - AzurefilesShare - - - BlockWriteAccessToSite - - - SwitchSiteAfterMigration - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationResponse - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationResponseProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StorageMigrationResponseProperties - - - - - - - - - - - - OperationId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringDictionary - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringDictionary - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringDictionaryProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringDictionaryProperties - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringList - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringList - - - - - - - - - - - - - - - - - - Kind - - - Name - - - Property - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SupportTopic - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SupportTopic - - - - - - - - - - - - PesId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SwiftVirtualNetwork - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SwiftVirtualNetwork - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SwiftVirtualNetworkProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SwiftVirtualNetworkProperties - - - - - - - - - - - - - - - SubnetResourceId - - - SwiftSupported - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Template - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Template - - - - - - - - - - - - RevisionSuffix - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TldLegalAgreement - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TldLegalAgreement - - - - - - - - - - - - - - - - - - - - - AgreementKey - - - Content - - - Title - - - Url - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TldLegalAgreementCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TldLegalAgreementCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TokenStore - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TokenStore - - - - - - - - - - - - - - - Enabled - - - TokenRefreshExtensionHour - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomain - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomain - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomainAgreementOption - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomainAgreementOption - - - - - - - - - - - - - - - ForTransfer - - - IncludePrivacy - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomainCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomainCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomainProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TopLevelDomainProperties - - - - - - - - - - - - Privacy - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredJobHistory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredJobHistory - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredJobHistoryCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredJobHistoryCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredJobRun - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredJobRun - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Duration - - - EndTime - - - ErrorUrl - - - JobName - - - OutputUrl - - - StartTime - - - Status - - - Trigger - - - Url - - - WebJobId - - - WebJobName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredWebJob - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredWebJob - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredWebJobCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredWebJobCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredWebJobProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TriggeredWebJobProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error - - - ExtraInfoUrl - - - HistoryUrl - - - PublicNetworkAccess - - - RunCommand - - - SchedulerLogsUrl - - - StorageAccountRequired - - - Url - - - UsingSdk - - - WebJobType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Twitter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Twitter - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TwitterRegistration - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.TwitterRegistration - - - - - - - - - - - - - - - ConsumerKey - - - ConsumerSecretSettingName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Usage - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Usage - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UsageCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UsageCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UsageProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UsageProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ComputeMode - - - CurrentValue - - - DisplayName - - - Limit - - - NextResetTime - - - ResourceName - - - SiteMode - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.User - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.User - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UserAssignedIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UserAssignedIdentity - - - - - - - - - - - - - - - ClientId - - - PrincipalId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UserProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.UserProperties - - - - - - - - - - - - - - - PublishingUserName - - - ScmUri - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Capacity - - - ContainerImagePlatform - - - ContainerImageRepository - - - ContainerImageTag - - - ContainerRegistryBaseUrl - - - ContainerRegistryPassword - - - ContainerRegistryUsername - - - HostingEnvironment - - - IsSpot - - - IsXenon - - - NeedLinuxWorker - - - ServerFarmId - - - SkuName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateRequest - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateRequest - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateResponse - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateResponse - - - - - - - - - - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateResponseError - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ValidateResponseError - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualApplication - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualApplication - - - - - - - - - - - - - - - - - - PhysicalPath - - - PreloadEnabled - - - VirtualPath - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualDirectory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualDirectory - - - - - - - - - - - - - - - PhysicalPath - - - VirtualPath - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualIPMapping - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualIPMapping - - - - - - - - - - - - - - - - - - - - - - - - InUse - - - InternalHttpPort - - - InternalHttpsPort - - - ServiceName - - - VirtualIP - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualNetworkProfile - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VirtualNetworkProfile - - - - - - - - - - - - - - - Name - - - Subnet - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetGateway - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetGateway - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetGatewayProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetGatewayProperties - - - - - - - - - - - - - - - VnetName - - - VpnPackageUri - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetInfo - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetInfo - - - - - - - - - - - - - - - - - - - - - - - - - - - CertBlob - - - CertThumbprint - - - DnsServer - - - IsSwift - - - ResyncRequired - - - VnetResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetInfoResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetInfoResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetParameters - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetParameters - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetParametersProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetParametersProperties - - - - - - - - - - - - - - - - - - - - - SubnetResourceId - - - VnetName - - - VnetResourceGroup - - - VnetSubnetName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetRoute - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetRoute - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetRouteProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetRouteProperties - - - - - - - - - - - - - - - - - - EndAddress - - - RouteType - - - StartAddress - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationFailureDetails - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationFailureDetails - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationFailureDetailsProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationFailureDetailsProperties - - - - - - - - - - - - - - - Failed - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationTestFailure - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationTestFailure - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationTestFailureProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VnetValidationTestFailureProperties - - - - - - - - - - - - - - - Detail - - - TestName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VolumeMount - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.VolumeMount - - - - - - - - - - - - - - - - - - - - - ContainerMountPath - - - Data - - - ReadOnly - - - VolumeSubPath - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppInstanceStatusCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppInstanceStatusCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppMajorVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppMajorVersion - - - - - - - - - - - - - - - DisplayText - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppMinorVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppMinorVersion - - - - - - - - - - - - - - - DisplayText - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppRuntimeSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppRuntimeSettings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EndOfLifeDate - - - IsAutoUpdate - - - IsDeprecated - - - IsEarlyAccess - - - IsHidden - - - IsPreview - - - RemoteDebuggingSupported - - - RuntimeVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppStack - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppStack - - - - - - - - - - - - - - - - - - Kind - - - Name - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppStackCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppStackCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppStackProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebAppStackProperties - - - - - - - - - - - - - - - - - - DisplayText - - - PreferredOS - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebJob - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebJob - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebJobCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebJobCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebJobProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebJobProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - Error - - - ExtraInfoUrl - - - RunCommand - - - Url - - - UsingSdk - - - WebJobType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebSiteInstanceStatus - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebSiteInstanceStatus - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebSiteInstanceStatusProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WebSiteInstanceStatusProperties - - - - - - - - - - - - - - - - - - - - - - - - ConsoleUrl - - - DetectorUrl - - - HealthCheckUrl - - - State - - - StatusUrl - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WindowsJavaContainerSettings - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WindowsJavaContainerSettings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EndOfLifeDate - - - IsAutoUpdate - - - IsDeprecated - - - IsEarlyAccess - - - IsHidden - - - IsPreview - - - JavaContainer - - - JavaContainerVersion - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkerPool - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkerPool - - - - - - - - - - - - - - - - - - - - - - - - ComputeMode - - - InstanceName - - - WorkerCount - - - WorkerSize - - - WorkerSizeId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkerPoolCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkerPoolCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkerPoolResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkerPoolResource - - - - - - - - - - - - - - - Kind - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Workflow - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Workflow - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowArtifacts - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowArtifacts - - - - - - - - - - - - FilesToDelete - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowEnvelope - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowEnvelope - - - - - - - - - - - - - - - - - - Kind - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowEnvelopeCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowEnvelopeCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowEnvelopeProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowEnvelopeProperties - - - - - - - - - - - - FlowState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowFilter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowFilter - - - - - - - - - - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowHealth - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowHealth - - - - - - - - - - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowOutputParameter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowOutputParameter - - - - - - - - - - - - Description - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowParameter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowParameter - - - - - - - - - - - - Description - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessEndpoint - - - ChangedTime - - - CreatedTime - - - Kind - - - ProvisioningState - - - State - - - Version - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowResource - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowResource - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowResourceTags - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRun - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRun - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunAction - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunAction - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionFilter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionFilter - - - - - - - - - - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionProperties - - - - - - - - - - - - - - - - - - - - - - - - Code - - - EndTime - - - StartTime - - - Status - - - TrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionRepetitionDefinition - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionRepetitionDefinition - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionRepetitionDefinitionCollection - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionRepetitionDefinitionCollection - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionRepetitionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunActionRepetitionProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - CorrelationActionTrackingId - - - CorrelationClientKeyword - - - CorrelationClientTrackingId - - - EndTime - - - InputLinkContentSize - - - InputLinkContentVersion - - - InputLinkUri - - - InputsLinkContentHashAlgorithm - - - InputsLinkContentHashValue - - - IterationCount - - - OutputLinkContentSize - - - OutputLinkContentVersion - - - OutputLinkUri - - - OutputsLinkContentHashAlgorithm - - - OutputsLinkContentHashValue - - - StartTime - - - Status - - - TrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunFilter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunFilter - - - - - - - - - - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - CorrelationId - - - EndTime - - - StartTime - - - Status - - - WaitEndTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunTrigger - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowRunTrigger - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - EndTime - - - Name - - - ScheduledTime - - - StartTime - - - Status - - - TrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowSku - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowSku - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTrigger - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTrigger - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerCallbackUrl - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerCallbackUrl - - - - - - - - - - - - - - - - - - - - - - - - BasePath - - - Method - - - RelativePath - - - RelativePathParameter - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerFilter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerFilter - - - - - - - - - - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistory - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistory - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistoryFilter - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistoryFilter - - - - - - - - - - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistoryListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistoryListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistoryProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerHistoryProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - EndTime - - - Fired - - - ScheduledTime - - - StartTime - - - Status - - - TrackingId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerListCallbackUrlQueries - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerListCallbackUrlQueries - - - - - - - - - - - - - - - - - - - - - - - - ApiVersion - - - Se - - - Sig - - - Sp - - - Sv - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ChangedTime - - - CreatedTime - - - LastExecutionTime - - - NextExecutionTime - - - ProvisioningState - - - State - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerRecurrence - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowTriggerRecurrence - - - - - - - - - - - - - - - - - - - - - - - - EndTime - - - Frequency - - - Interval - - - StartTime - - - TimeZone - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowVersion - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowVersion - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowVersionListResult - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowVersionListResult - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowVersionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.WorkflowVersionProperties - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessEndpoint - - - ChangedTime - - - CreatedTime - - - ProvisioningState - - - State - - - Version - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/Az.Functions.psm1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/Az.Functions.psm1 deleted file mode 100644 index d5e3b4363b96..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/Az.Functions.psm1 +++ /dev/null @@ -1,337 +0,0 @@ -# region Generated - # ---------------------------------------------------------------------------------- - # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. - # ---------------------------------------------------------------------------------- - # Load required Az.Accounts module - $accountsName = 'Az.Accounts' - $accountsModule = Get-Module -Name $accountsName - if(-not $accountsModule) { - $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' - if(Test-Path -Path $localAccountsPath) { - $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 - if($localAccounts) { - $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru - } - } - if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 - if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru - } - } - } - - if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop - } - Write-Information "Loaded Module '$($accountsModule.Name)'" - - # Load the private module dll - $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.Functions.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.Functions.Module]::Instance - - # Ask for the shared functionality table - $VTable = Register-AzModule - - # Tweaks the pipeline on module load - $instance.OnModuleLoad = $VTable.OnModuleLoad - - # Following two delegates are added for telemetry - $instance.GetTelemetryId = $VTable.GetTelemetryId - $instance.Telemetry = $VTable.Telemetry - - # Delegate to sanitize the output object - $instance.SanitizeOutput = $VTable.SanitizerHandler - - # Delegate to get the telemetry info - $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo - - # Tweaks the pipeline per call - $instance.OnNewRequest = $VTable.OnNewRequest - - # Gets shared parameter values - $instance.GetParameterValue = $VTable.GetParameterValue - - # Allows shared module to listen to events from this module - $instance.EventListener = $VTable.EventListener - - # Gets shared argument completers - $instance.ArgumentCompleter = $VTable.ArgumentCompleter - - # The name of the currently selected Azure profile - $instance.ProfileName = $VTable.ProfileName - - # Load the custom module - $customModulePath = Join-Path $PSScriptRoot './custom/Az.Functions.custom.psm1' - if(Test-Path $customModulePath) { - $null = Import-Module -Name $customModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = Join-Path $PSScriptRoot './exports' - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } - - # Finalize initialization of this module - $instance.Init(); - Write-Information "Loaded Module '$($instance.Name)'" -# endregion - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEA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U4W346k9MO3oX8nnBoZC9r -# O8oxU1SwApRgBKHB74GQeowM+5lj8rBV3trTqKUn7SeWi3VpV8saAAyhpahfFWrj -# IPDrqruVhRHuh2sR30EAdlYArUU59TpYvPzg2IQLDnug5NA+Jh5Qxs/+N6X3i55E -# A/6F+B5JBLHye6mMDSa4dneRxpumosi+atPxdojkQ9Z8smEQvElLnBbEPuXUG2Rz -# zIEn39f8RQuqJyt+EzE= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/bin/Az.Functions.private.dll b/Modules/Az.Functions/4.2.0/Functions.Autorest/bin/Az.Functions.private.dll deleted file mode 100644 index 6580d9029110..000000000000 Binary files a/Modules/Az.Functions/4.2.0/Functions.Autorest/bin/Az.Functions.private.dll and /dev/null differ diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Api20231201/AppServicePlan.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Api20231201/AppServicePlan.cs deleted file mode 100644 index 1e527dc9efef..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Api20231201/AppServicePlan.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201 -{ - public partial class AppServicePlan : - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan, - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlanInternal, - Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IValidates - { - // This gets set via PowerShell. For more info, please see custom/HelperScripts/HelperFunctions.ps1 - /// The Service plan worker type. - public string WorkerType { get; set; } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Api20231201/Site.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Api20231201/Site.cs deleted file mode 100644 index 03f6f7a718f5..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Api20231201/Site.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201 -{ - public partial class Site : - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite, - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteInternal, - Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IValidates - { - - // Function app settings. These gets set via PowerShell. For more info, please see custom/HelperScripts/HelperFunctions.ps1 - - public System.Collections.Hashtable ApplicationSettings { get; set; } - - public System.Collections.Hashtable SiteConfig { get; set; } - - public string Runtime { get; set; } - - public string OSType { get; set; } - - public string AppServicePlan { get; set; } - - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Az.Functions.custom.psm1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Az.Functions.custom.psm1 deleted file mode 100644 index 314cfd221d34..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Az.Functions.custom.psm1 +++ /dev/null @@ -1,235 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Functions.private.dll') - - # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Functions.internal.psm1' - if(Test-Path $internalModulePath) { - $null = Import-Module -Name $internalModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export script cmdlets - Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) -# endregion - -# SIG # Begin signature block -# MIIoKQYJKoZIhvcNAQcCoIIoGjCCKBYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAA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iUbN -# +DU9VJU/4+2HpJDTrbqfIg6ChTkVa3S/rHUSs26a6jXYOc4I6O0wg16wge/ud253 -# 9oZclGFiI0POuetXVqtmwP6zQP7tEPOLTZo/7J+YvTvFnnQDj/VCo6OmccTFbvZW -# a5nhr0pcwDBXDnraICdHx3dTy+KOxzluaLlujYaG9WRrAPvr9H8SK84v9Lb2Baki -# 6MFnvtzs3h7OBtpFEw== -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Functions.format.ps1xml b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Functions.format.ps1xml deleted file mode 100644 index 3de02d85c574..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Functions.format.ps1xml +++ /dev/null @@ -1,285 +0,0 @@ - - - - - FunctionApp - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Site - - - - - 7 - 8 - 13 - - - - - - - - - Name - Status - OSType - Runtime - Location - AppServicePlan - ResourceGroupName - SubscriptionId - - - - - - - FunctionAppPlan - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlan - - - - - - - - - - - - - - - Name - WorkerType - SkuTier - SkuName - Location - ResourceGroupName - SubscriptionId - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Functions.types.ps1xml b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Functions.types.ps1xml deleted file mode 100644 index a6c656b9f198..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Functions.types.ps1xml +++ /dev/null @@ -1,260 +0,0 @@ - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Site - - - Status - State - - - ResourceGroupName - ResourceGroup - - - SubscriptionId - - if ($this.ManagedEnvironmentId) - { - ($this.ManagedEnvironmentId -split "/")[2] - } - else - { - ($this.ServerFarmId -split "/")[2] - } - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlan - - - ResourceGroupName - ResourceGroup - - - SubscriptionId - ($this.Id -split "/")[2] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/FunctionsStack/functionAppStacks.json b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/FunctionsStack/functionAppStacks.json deleted file mode 100644 index c2447258d88e..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/FunctionsStack/functionAppStacks.json +++ /dev/null @@ -1,1745 +0,0 @@ -[ - { - "id": null, - "name": "dotnet", - "type": "Microsoft.Web/functionAppStacks?stackOsType=All", - "properties": { - "displayText": ".NET", - "value": "dotnet", - "preferredOs": "windows", - "majorVersions": [ - { - "displayText": ".NET 8 Isolated", - "value": "dotnet8isolated", - "minorVersions": [ - { - "displayText": ".NET 8 Isolated", - "value": "8 (LTS), isolated worker model", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "v8.0", - "isHidden": false, - "isDefault": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", - "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "netFrameworkVersion": "v8.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "DOTNET-ISOLATED|8.0", - "isHidden": false, - "isDefault": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", - "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "DOTNET-ISOLATED|8.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": ".NET 7 Isolated", - "value": "dotnet7isolated", - "minorVersions": [ - { - "displayText": ".NET 7 Isolated", - "value": "7 (STS), isolated worker model", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "v7.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "7.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", - "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "netFrameworkVersion": "v7.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue May 14 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "DOTNET-ISOLATED|7.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "7.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", - "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "DOTNET-ISOLATED|7.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue May 14 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": ".NET 6 Isolated", - "value": "dotnet6isolated", - "minorVersions": [ - { - "displayText": ".NET 6 (LTS) Isolated", - "value": "6 (LTS), isolated worker model", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "v6.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "6.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", - "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 12 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "DOTNET-ISOLATED|6.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "6.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", - "WEBSITE_USE_PLACEHOLDER_DOTNETISOLATED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "DOTNET-ISOLATED|6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 12 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": ".NET Framework 4.8", - "value": "dotnetframework48", - "minorVersions": [ - { - "displayText": ".NET Framework 4.8", - "value": ".NET Framework 4.8, isolated worker model", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "v4.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "4.8.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v4.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ] - } - } - } - ] - }, - { - "displayText": ".NET 8 In-process", - "value": "dotnet8", - "minorVersions": [ - { - "displayText": ".NET 8 (LTS) In-process", - "value": "8 (LTS), in-process model", - "stackSettings": { - "windowsRuntimeSettings": { - "isHidden": true, - "runtimeVersion": "v8.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet", - "FUNCTIONS_INPROC_NET8_ENABLED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v8.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": false - } - ], - "endOfLifeDate": "Tue Nov 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "isHidden": true, - "runtimeVersion": "DOTNET|8.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet", - "FUNCTIONS_INPROC_NET8_ENABLED": "1" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "linuxFxVersion": "DOTNET|8.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": false - } - ], - "endOfLifeDate": "Tue Nov 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": ".NET 6 In-process", - "value": "dotnet6", - "minorVersions": [ - { - "displayText": ".NET 6 (LTS) In-process", - "value": "6 (LTS), in-process model", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "v6.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "6.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 12 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "DOTNET|6.0", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "6.0.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "linuxFxVersion": "DOTNET|6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 12 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": ".NET Core 2", - "value": "dotnetcore2", - "minorVersions": [ - { - "displayText": ".NET Core 2.2", - "value": "2.2", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "2.2", - "appInsightsSettings": { - "isSupported": true - }, - "remoteDebuggingSupported": false, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "2.2.207" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true - }, - "supportedFunctionsExtensionVersions": [ - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~2", - "isDeprecated": true, - "isDefault": true - } - ] - }, - "linuxRuntimeSettings": { - "runtimeVersion": "dotnet|2.2", - "appInsightsSettings": { - "isSupported": true - }, - "remoteDebuggingSupported": false, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "2.2.207" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "dotnet" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "dotnet|2.2" - }, - "supportedFunctionsExtensionVersions": [ - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~2", - "isDeprecated": true, - "isDefault": true - } - ] - } - } - } - ] - }, - { - "displayText": ".NET Framework 4", - "value": "dotnetframework4", - "minorVersions": [ - { - "displayText": ".NET Framework 4.7", - "value": "4.7", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "4.7", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": false - }, - "appSettingsDictionary": {}, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true - }, - "supportedFunctionsExtensionVersions": [ - "~1" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~1", - "isDeprecated": true, - "isDefault": true - } - ] - } - } - } - ] - } - ] - } - }, - { - "id": null, - "name": "node", - "type": "Microsoft.Web/functionAppStacks?stackOsType=All", - "properties": { - "displayText": "Node.js", - "value": "node", - "preferredOs": "windows", - "majorVersions": [ - { - "displayText": "Node.js 20", - "value": "20", - "minorVersions": [ - { - "displayText": "Node.js 20 LTS", - "value": "20 LTS", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "~20", - "isDefault": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "20.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node", - "WEBSITE_NODE_DEFAULT_VERSION": "~20" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Sat May 30 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Node|20", - "isDefault": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "20.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Node|20" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Sat May 30 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Node.js 18", - "value": "18", - "minorVersions": [ - { - "displayText": "Node.js 18 LTS", - "value": "18 LTS", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "~18", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "18.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node", - "WEBSITE_NODE_DEFAULT_VERSION": "~18" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Wed Apr 30 2025 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Node|18", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "18.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Node|18" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Wed Apr 30 2025 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Node.js 16", - "value": "16", - "minorVersions": [ - { - "displayText": "Node.js 16 LTS", - "value": "16 LTS", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "~16", - "isPreview": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "16.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node", - "WEBSITE_NODE_DEFAULT_VERSION": "~16" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Sun Jun 30 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Node|16", - "isPreview": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "16.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Node|16" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Sun Jun 30 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Node.js 14", - "value": "14", - "minorVersions": [ - { - "displayText": "Node.js 14 LTS", - "value": "14 LTS", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "~14", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "14.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node", - "WEBSITE_NODE_DEFAULT_VERSION": "~14" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Sun Apr 30 2023 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Node|14", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "14.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Node|14" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Sun Apr 30 2023 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Node.js 8", - "value": "8", - "minorVersions": [ - { - "displayText": "Node.js 8 LTS", - "value": "8 LTS", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "~8", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8.x" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "node", - "WEBSITE_NODE_DEFAULT_VERSION": "~8" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true - }, - "supportedFunctionsExtensionVersions": [ - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~2", - "isDeprecated": true, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Dec 31 2019 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Node.js 6", - "value": "6", - "minorVersions": [ - { - "displayText": "Node.js 6 LTS", - "value": "6 LTS", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "~6", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": false - }, - "appSettingsDictionary": { - "WEBSITE_NODE_DEFAULT_VERSION": "~6" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true - }, - "supportedFunctionsExtensionVersions": [ - "~1" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~1", - "isDeprecated": true, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Apr 30 2019 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - } - ] - } - }, - { - "id": null, - "name": "python", - "type": "Microsoft.Web/functionAppStacks?stackOsType=All", - "properties": { - "displayText": "Python", - "value": "python", - "preferredOs": "linux", - "majorVersions": [ - { - "displayText": "Python 3", - "value": "3", - "minorVersions": [ - { - "displayText": "Python 3.11", - "value": "3.11", - "stackSettings": { - "linuxRuntimeSettings": { - "runtimeVersion": "Python|3.11", - "remoteDebuggingSupported": false, - "isPreview": false, - "isDefault": true, - "isHidden": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "3.11" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "python" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Python|3.11" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Sun Oct 31 2027 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - }, - { - "displayText": "Python 3.10", - "value": "3.10", - "stackSettings": { - "linuxRuntimeSettings": { - "runtimeVersion": "Python|3.10", - "remoteDebuggingSupported": false, - "isPreview": false, - "isDefault": true, - "isHidden": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "3.10" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "python" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Python|3.10" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Sat Oct 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - }, - { - "displayText": "Python 3.9", - "value": "3.9", - "stackSettings": { - "linuxRuntimeSettings": { - "runtimeVersion": "Python|3.9", - "remoteDebuggingSupported": false, - "isPreview": false, - "isDefault": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "3.9" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "python" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Python|3.9" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Fri Oct 31 2025 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - }, - { - "displayText": "Python 3.8", - "value": "3.8", - "stackSettings": { - "linuxRuntimeSettings": { - "runtimeVersion": "Python|3.8", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "3.8" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "python" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Python|3.8" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Thu Oct 31 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - }, - { - "displayText": "Python 3.7", - "value": "3.7", - "stackSettings": { - "linuxRuntimeSettings": { - "runtimeVersion": "Python|3.7", - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "3.7" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "python" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Python|3.7" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3", - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - }, - { - "version": "~2", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Fri Jun 30 2023 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - } - ] - } - }, - { - "id": null, - "name": "java", - "type": "Microsoft.Web/functionAppStacks?stackOsType=All", - "properties": { - "displayText": "Java", - "value": "java", - "preferredOs": "windows", - "majorVersions": [ - { - "displayText": "Java 21", - "value": "21", - "minorVersions": [ - { - "displayText": "Java 21", - "value": "21.0", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "21", - "isPreview": true, - "isHidden": true, - "isAutoUpdate": true, - "isDefault": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "21" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "javaVersion": "21", - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Mon Sep 01 2031 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Java|21", - "isPreview": true, - "isHidden": false, - "isAutoUpdate": true, - "isDefault": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "21" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Java|21" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Mon Sep 01 2031 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Java 17", - "value": "17", - "minorVersions": [ - { - "displayText": "Java 17", - "value": "17.0", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "17", - "isPreview": false, - "isHidden": false, - "isAutoUpdate": true, - "isDefault": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "17" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "javaVersion": "17", - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Mon Sep 01 2031 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Java|17", - "isPreview": false, - "isHidden": false, - "isAutoUpdate": true, - "isDefault": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "17" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Java|17" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Mon Sep 01 2031 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Java 11", - "value": "11", - "minorVersions": [ - { - "displayText": "Java 11", - "value": "11.0", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "11", - "isAutoUpdate": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "11" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "javaVersion": "11", - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Tue Sep 01 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Java|11", - "isAutoUpdate": true, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "11" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Java|11" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Tue Sep 01 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - }, - { - "displayText": "Java 8", - "value": "8", - "minorVersions": [ - { - "displayText": "Java 8", - "value": "8.0", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "1.8", - "isAutoUpdate": true, - "isDefault": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "javaVersion": "1.8", - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3", - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - }, - { - "version": "~2", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Sat Mar 01 2025 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "Java|8", - "isAutoUpdate": true, - "isDefault": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true, - "supportedVersion": "8" - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "java" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "Java|8" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - } - ], - "endOfLifeDate": "Sat Mar 01 2025 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - } - ] - } - }, - { - "id": null, - "name": "powershell", - "type": "Microsoft.Web/functionAppStacks?stackOsType=All", - "properties": { - "displayText": "PowerShell Core", - "value": "powershell", - "preferredOs": "windows", - "majorVersions": [ - { - "displayText": "PowerShell 7", - "value": "7", - "minorVersions": [ - { - "displayText": "PowerShell 7.4", - "value": "7.4", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "7.4", - "isDefault": false, - "isPreview": true, - "isHidden": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "powershell" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "powerShellVersion": "7.4", - "netFrameworkVersion": "v8.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "PowerShell|7.4", - "isDefault": false, - "isPreview": true, - "isHidden": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "powershell" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "PowerShell|7.4" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Tue Nov 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - }, - { - "displayText": "PowerShell 7.2", - "value": "7.2", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "7.2", - "isDefault": true, - "isPreview": false, - "isHidden": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "powershell" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "powerShellVersion": "7.2", - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Fri Nov 08 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - }, - "linuxRuntimeSettings": { - "runtimeVersion": "PowerShell|7.2", - "isDefault": true, - "isPreview": false, - "isHidden": false, - "remoteDebuggingSupported": false, - "appInsightsSettings": { - "isSupported": true - }, - "gitHubActionSettings": { - "isSupported": true - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "powershell" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "PowerShell|7.2" - }, - "supportedFunctionsExtensionVersions": [ - "~4" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - } - ], - "endOfLifeDate": "Fri Nov 08 2024 00:00:00 GMT+0000 (Coordinated Universal Time)" - } - } - } - ] - } - ] - } - }, - { - "id": null, - "name": "custom", - "type": "Microsoft.Web/functionAppStacks?stackOsType=All", - "properties": { - "displayText": "Custom Handler", - "value": "custom", - "preferredOs": "windows", - "majorVersions": [ - { - "displayText": "Custom Handler", - "value": "custom", - "minorVersions": [ - { - "displayText": "Custom Handler", - "value": "custom", - "stackSettings": { - "windowsRuntimeSettings": { - "runtimeVersion": "custom", - "appInsightsSettings": { - "isSupported": true - }, - "remoteDebuggingSupported": false, - "gitHubActionSettings": { - "isSupported": false - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "custom" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": true, - "netFrameworkVersion": "v6.0" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3", - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - }, - { - "version": "~2", - "isDeprecated": true, - "isDefault": false - } - ] - }, - "linuxRuntimeSettings": { - "runtimeVersion": "", - "isPreview": false, - "appInsightsSettings": { - "isSupported": true - }, - "remoteDebuggingSupported": false, - "gitHubActionSettings": { - "isSupported": false - }, - "appSettingsDictionary": { - "FUNCTIONS_WORKER_RUNTIME": "custom" - }, - "siteConfigPropertiesDictionary": { - "use32BitWorkerProcess": false, - "linuxFxVersion": "" - }, - "supportedFunctionsExtensionVersions": [ - "~4", - "~3", - "~2" - ], - "supportedFunctionsExtensionVersionsInfo": [ - { - "version": "~4", - "isDeprecated": false, - "isDefault": true - }, - { - "version": "~3", - "isDeprecated": true, - "isDefault": false - }, - { - "version": "~2", - "isDeprecated": true, - "isDefault": false - } - ] - } - } - } - ] - } - ] - } - } -] diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionApp.ps1 deleted file mode 100644 index 0d0b21988d20..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionApp.ps1 +++ /dev/null @@ -1,330 +0,0 @@ -function Get-AzFunctionApp { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Gets function apps in a subscription.')] - [CmdletBinding(DefaultParametersetname="GetAll")] - param( - [Parameter(ParameterSetName="ByName", HelpMessage='The Azure subscription ID.')] - [Parameter(ParameterSetName="GetAll")] - [Parameter(ParameterSetName="ByResourceGroupName")] - [Parameter(ParameterSetName="ByLocation")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String[]] - ${SubscriptionId}, - - [Parameter(Mandatory=$true, ParameterSetName="ByResourceGroupName", HelpMessage='The name of the resource group.')] - [Parameter(Mandatory=$true, ParameterSetName="ByName")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(Mandatory=$true, ParameterSetName="ByName", HelpMessage='The name of the function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(Mandatory=$true, ParameterSetName="ByLocation", HelpMessage='The location of the function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Location}, - - [Parameter(Mandatory=$false, ParameterSetName="ByResourceGroupName", HelpMessage='Use to specify whether to include deployment slots in results.')] - [System.Management.Automation.SwitchParameter] - ${IncludeSlot}, - - [Parameter(HelpMessage=' The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - $apps = $null - $locationToUse = $null - $parameterSetName = $PsCmdlet.ParameterSetName - - if (($parameterSetName -eq "GetAll") -or ($parameterSetName -eq "ByLocation")) - { - if ($PSBoundParameters.ContainsKey("Location")) - { - $locationToUse = $Location - $PSBoundParameters.Remove("Location") | Out-Null - } - } - - $apps = @(Az.Functions.internal\Get-AzFunctionApp @PSBoundParameters) - - if ($apps.Count -gt 0) - { - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - GetFunctionApps -Apps $apps -Location $locationToUse @params - } - } -} - -# SIG # Begin signature block -# MIIoOwYJKoZIhvcNAQcCoIIoLDCCKCgCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDHr4TzAnqYA3lg -# YAFzBKIB9dEwnKH4ASKkLt84xaEym6CCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV -# LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY -# oUhLVE+UzRihV8ooxoftsmKLb2xb7BoFS6UAo3Zz4afnOdqI7FGoi7g4vx/0MIdi -# kwTn5N56TdIv3mwfkZCFmrsKpN0zR8HD8WYsvH3xKkG7u/xdqmhPPqMmnI2jOFw/ -# /n2aL8W7i1Pasja8PnRX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hr+xZhD0Du6KUeCGf/4Vsu+6s/Um -# NNYuS/WW1NuLOQPURM+dERaY8R3FP2CWqNaXbFZTeTa316Fsz3XlMXz99EGzIGye -# CZDUdAk/yPMnvy0ns1T2lgiUYRZ4FhNnYx3Wq34zO69+1bzcKxlzX8GunWD8mf7b -# HE+eMgYy3OgnjeQaAYqBTrR243BO+U5eXUJxHC75A0oyn5QnMDegUVp3LU0p40yW -# uICt5e0vX3x5auGPqo1D8fnihB/KAhL0I/FHK2qEEJ3FOC4CzTlLKLm3ONMcXpet -# Vg/7TXsB4nhtHKXRX1lo3bxqRYlfRJo2MqiLzUUW5uBqLNaJ+EMV3v6OqP4Epd6D -# SGyl0zQLN/CbEzfKSRWgYHN+kc8Bp2j1sZx2bGuuDg== -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppAvailableLocation.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppAvailableLocation.ps1 deleted file mode 100644 index 1fed4452fa11..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppAvailableLocation.ps1 +++ /dev/null @@ -1,344 +0,0 @@ -function Get-AzFunctionAppAvailableLocation { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IGeoRegion])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Gets the location where a function app for the given os and plan type is available.')] - [CmdletBinding()] - param( - [Parameter(HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String[]] - ${SubscriptionId}, - - [Parameter(HelpMessage="The plan type. Valid inputs: Consumption or Premium")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AvailablePlanType])] - [ValidateNotNullOrEmpty()] - [System.String] - # Plan type (Consumption or Premium) - ${PlanType}, - - [Parameter(HelpMessage='The OS type for the service plan.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType])] - [ValidateNotNullOrEmpty()] - [System.String] - # OS type (Linux or Windows) - ${OSType}, - - [Parameter(HelpMessage=' The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - $paramsToRemove = @( - "OSType", - "PlanType" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - # Set default values for PlanType and OSType - if (-not $PlanType) - { - $PlanType = "Premium" - Write-Verbose "PlanType not specified. Setting default PlanType to '$PlanType'." -Verbose - } - - if (-not $OSType) - { - $OSType = "Windows" - Write-Verbose "OSType not specified. Setting default OSType to '$OSType'." -Verbose - } - - # Set Linux flag - if ($OSType -eq "Linux") - { - $PSBoundParameters.Add("LinuxWorkersEnabled", $true) | Out-Null - } - - # Set plan sku - if ($PlanType -eq "Premium") - { - $PSBoundParameters.Add("Sku", 'ElasticPremium') | Out-Null - } - elseif ($PlanType -eq "Consumption") - { - $PSBoundParameters.Add("Sku", 'Dynamic') | Out-Null - } - else - { - throw "Unknown PlanType '$PlanType'" - } - - Az.Functions.internal\Get-AzFunctionAppAvailableLocation @PSBoundParameters - } -} - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBsvfGxehMRmK4F -# EusJp6Lll7ZlCyN0+xp74Y8LhX559qCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMT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cBgNVBAoTFU1pY3Jvc29mdCBD -# b3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIw -# MTACEzMAAAHwKnwdWTvmH60AAQAAAfAwIgQgNav9MbTleN9i36swrfpwTySv7j07 -# igK/LBfrwEBJl3cwDQYJKoZIhvcNAQELBQAEggIATfCJXAai3oi0mzllNThlXT11 -# RcXtFEOfa6lZcHEJzCwUdNm1HCd46dt8qR+iUyOu1FxRs3hUl3/YIR/YpSLUX3Kh -# 25A5P4DQjqSmm5sU9kMrDMLd85STFM1YZ07hly1VVck0+cn8wBh8aTj5eX253wl/ -# F3WrG4K9KtqChGv4DHFSHPpzI1A6+m0KHl77inG/doB7Eq4llIleMBikV6XkR0Vv -# yg3IzLB7a1fH/8JXJRBb/yJzplhEOe4DppdA1DHo2E46xsNoV4z8BUEufrHYi43Z -# UknV8pD6SHz8ZwKhMi5B2hxHopMdg0k52OSt3KjbSz2lvlut/NKyg3uYJNA3CEsS -# UkZv6T/stET6u0OEpEEKNH6FMDh/qS81Q/Bz0xrXIJGfNi0UXURBXxSiK9cQM+D5 -# S2fgD82+jZ2imiZ+Qv2FKlr1LJzc+ePNvYKh5gJyIar5s2UmdGoXwLej+YwYz+P3 -# KoBwspF01J6jUw2c2gtGiSdhxJHJ5yWIueXxY+J57hSDbu916H5XwxX+25XfN38N -# kP0qfWbRa8u6+1PHO8M7zQ1fvzc0hemyst1etqhlQDx9r1k3J5Kso9lLFY5PBsm0 -# 8LVAWHcnHAS1jytPDb6w0iQ3VaXyxZ4jnhsQ+EVmPXSCfJHWI0BNmOSNVaA6Kjci -# 82B6Ekb0MLG52Va+bE0= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppPlan.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppPlan.ps1 deleted file mode 100644 index 510a51f0ccae..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppPlan.ps1 +++ /dev/null @@ -1,326 +0,0 @@ -function Get-AzFunctionAppPlan { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Get function apps plans in a subscription.')] - [CmdletBinding(DefaultParameterSetName='GetAll')] - param( - [Parameter(ParameterSetName='ByName', Mandatory = $true, HelpMessage='The Azure subscription ID.')] - [Parameter(ParameterSetName="GetAll")] - [Parameter(ParameterSetName="ByResourceGroupName")] - [Parameter(ParameterSetName="ByLocation")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String[]] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByName', Mandatory = $true, HelpMessage='The name of the resource group.')] - [Parameter(ParameterSetName="ByResourceGroupName")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName="ByName", Mandatory = $true, HelpMessage='The service plan name.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Name}, - - [Parameter(Mandatory=$true, ParameterSetName="ByLocation", HelpMessage='The location of the function app plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Location}, - - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - [ValidateNotNull()] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - $plans = $null - $locationToUse = $null - $parameterSetName = $PsCmdlet.ParameterSetName - - if (($parameterSetName -eq "GetAll") -or ($parameterSetName -eq "ByLocation")) - { - if ($PSBoundParameters.ContainsKey("Location")) - { - $locationToUse = $Location - $PSBoundParameters.Remove("Location") | Out-Null - } - } - - $plans = @(Az.Functions.internal\Get-AzFunctionAppPlan @PSBoundParameters) - - if ($plans.Count -gt 0) - { - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - GetFunctionAppPlans -Plans $plans -Location $locationToUse @params - } - } -} - -# SIG # Begin signature block -# MIIoOQYJKoZI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/Io1gpap9IdWesaRwzxdkGbRMIOfNGwhgDx1oYBIft -# NNWxCmvyhIGGZUorj2CVValuR1J43Ch/RLYFHpctrm8k9abCpRoOfitoCq7Dk0q0 -# tuKFnwuEavpDKlmuIegbO4L9k7+SokZVPfVIpeIUaHgHDU43FFHDFmoAn7haRk5s -# pB/iCrX8tSckeTx3L3Zi8hoggRsQ93fMLzkxfQSErmJl1QZX4iBunjwJxXBwj/cS -# Ab40D80EH/VrL4Qffpq9ee4Pz4vLvW3P0bGFmko= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppSetting.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppSetting.ps1 deleted file mode 100644 index 66351cc5b2d9..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Get-AzFunctionAppSetting.ps1 +++ /dev/null @@ -1,323 +0,0 @@ -function Get-AzFunctionAppSetting { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Gets app settings for a function app.')] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - param( - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='Name of the function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='Name of the resource group to which the resource belongs.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String[]] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $Name = $InputObject.Name - - $PSBoundParameters.Add("Name", $Name) | Out-Null - $PSBoundParameters.Add("ResourceGroupName", $InputObject.ResourceGroupName) | Out-Null - $PSBoundParameters.Add("SubscriptionId", $InputObject.SubscriptionId) | Out-Null - } - - if ($PsCmdlet.ShouldProcess($Name, "Get function app settings")) - { - $settings = Az.Functions.internal\Get-AzWebAppApplicationSetting @PSBoundParameters - if ($settings) - { - ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $settings -ShowAllAppSettings - } - } - } -} - -# SIG # Begin signature block -# MIIoOQYJKoZIhvcNAQcCoIIoKjCCKCYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBUOoWvP0qcTH49 -# YgrYSD9EYfPI37Jv3/YdIJlDCeDG8aCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGS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x5x0CBmrQK/JWx0ex5Zb30u9/8IlDwr6RpmlBr5/d -# UdsNzoHAXQ6c1VW9fLRc4cYfXaOmF4WAy9WxVDpxE2f1Fg6y/jAMABAnnbaVLCAN -# DVuzajiDx3vHn5EdT/5Aj+XQUci1+xjx3BndfZC6FPXvnB5rVpgCw56dpnL0zxIf -# Lma2kNp04TRxj/bduDjWpvkZ4a5XV8y1jePGI6NkjB6qK+VAinJI8dVjWapVcYF+ -# tLRA+H+Vd2aXQjvjTSIzZJgyMWH56RSk8ijoTVRG477c1t/ojw6IfJSkb3kkW4JB -# pXte/DZmI3+ETD+A2yzDjcSsPpulUirwCKkvC+Z5CzEtFdcg44GHwZPbwlsmKeat -# VvQ/0uB/JRigIQG30nR9zzNCw012BQeYWsTSoG8Ok9HHhE8cFKUnO7K2mXm5TDy5 -# YNgWgqh7MXMgWgyWy4oAgfRrpxr1MR162uK/TppSjtdyLJBPtO9iCBb0+XFFOW6a -# N+ZYZ92VeRvuZYObSY/YQDbEuBsQsSru9sztqKNXCZQUaAQqx5lk7ygRKe3RB7S3 -# faCSA5adDVe+lsLiBNPwqEc8papG0wEZx0WqvBlRpJihbKSVSSUfdzCTrUFB8+ll -# LATaHM0kQ3UUVJctYX0Y+7oTvaGVKHg52lLhYYg= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/HelperFunctions.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/HelperFunctions.ps1 deleted file mode 100644 index b8d18eb454ee..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/HelperFunctions.ps1 +++ /dev/null @@ -1,2606 +0,0 @@ -# Load Az.Functions module constants -$constants = @{} -$constants["AllowedStorageTypes"] = @('Standard_GRS', 'Standard_RAGRS', 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS', 'Standard_GZRS') -$constants["RequiredStorageEndpoints"] = @('PrimaryEndpointFile', 'PrimaryEndpointQueue', 'PrimaryEndpointTable') -$constants["DefaultFunctionsVersion"] = '4' -$constants["RuntimeToFormattedName"] = @{ - 'dotnet' = 'DotNet' - 'dotnet-isolated' = 'DotNet-Isolated' - 'custom' = 'Custom' - 'node' = 'Node' - 'python' = 'Python' - 'java' = 'Java' - 'powershell' = 'PowerShell' -} -$constants["RuntimeToDefaultOSType"] = @{ - 'DotNet'= 'Windows' - 'DotNet-Isolated' = 'Windows' - 'Custom' = 'Windows' - 'Node' = 'Windows' - 'Java' = 'Windows' - 'PowerShell' = 'Windows' - 'Python' = 'Linux' -} -$constants["ReservedFunctionAppSettingNames"] = @( - 'FUNCTIONS_WORKER_RUNTIME' - 'DOCKER_CUSTOM_IMAGE_NAME' - 'FUNCTION_APP_EDIT_MODE' - 'WEBSITES_ENABLE_APP_SERVICE_STORAGE' - 'DOCKER_REGISTRY_SERVER_URL' - 'DOCKER_REGISTRY_SERVER_USERNAME' - 'DOCKER_REGISTRY_SERVER_PASSWORD' - 'WEBSITES_ENABLE_APP_SERVICE_STORAGE' - 'WEBSITE_NODE_DEFAULT_VERSION' - 'AzureWebJobsStorage' - 'AzureWebJobsDashboard' - 'FUNCTIONS_EXTENSION_VERSION' - 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' - 'WEBSITE_CONTENTSHARE' - 'APPINSIGHTS_INSTRUMENTATIONKEY' -) -$constants["SetDefaultValueParameterWarningMessage"] = "This default value is subject to change over time. Please set this value explicitly to ensure the behavior is not accidentally impacted by future changes." -$constants["DEBUG_PREFIX"] = '[Stacks API] - ' -$constants["DefaultCentauriImage"] = 'mcr.microsoft.com/azure-functions/dotnet8-quickstart-demo:1.0' - -foreach ($variableName in $constants.Keys) -{ - if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue)) - { - Set-Variable $variableName -value $constants[$variableName] -option ReadOnly - } -} - -# These are used to hold the types for the tab completers -$RuntimeToVersionLinux = @{} -$RuntimeToVersionWindows = @{} -$AllRuntimeVersions = @{} -$global:StacksAndTabCompletersInitialized = $false -$AllFunctionsExtensionVersions = New-Object System.Collections.Generic.List[[String]] - -function GetConnectionString -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $StorageAccountName, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("StorageAccountName")) - { - $PSBoundParameters.Remove("StorageAccountName") | Out-Null - } - - $storageAccountInfo = GetStorageAccount -Name $StorageAccountName @PSBoundParameters - if (-not $storageAccountInfo) - { - $errorMessage = "Storage account '$StorageAccountName' does not exist." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "StorageAccountNotFound" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - if ($storageAccountInfo.ProvisioningState -ne "Succeeded") - { - $errorMessage = "Storage account '$StorageAccountName' is not ready. Please run 'Get-AzStorageAccount' and ensure that the ProvisioningState is 'Succeeded'" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "StorageAccountNotFound" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - $skuName = $storageAccountInfo.SkuName - if (-not ($AllowedStorageTypes -contains $skuName)) - { - $storageOptions = $AllowedStorageTypes -join ", " - $errorMessage = "Storage type '$skuName' is not allowed'. Currently supported storage options: $storageOptions" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "StorageTypeNotSupported" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - foreach ($endpoint in $RequiredStorageEndpoints) - { - if ([string]::IsNullOrEmpty($storageAccountInfo.$endpoint)) - { - $errorMessage = "Storage account '$StorageAccountName' has no '$endpoint' endpoint. It must have table, queue, and blob endpoints all enabled." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "StorageAccountRequiredEndpointNotAvailable" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - } - - $resourceGroupName = ($storageAccountInfo.Id -split "/")[4] - $keys = Az.Functions.internal\Get-AzStorageAccountKey -ResourceGroupName $resourceGroupName -Name $storageAccountInfo.Name @PSBoundParameters -ErrorAction SilentlyContinue - - if (-not $keys) - { - $errorMessage = "Failed to get key for storage account '$StorageAccountName'." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToGetStorageAccountKey" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - if ([string]::IsNullOrEmpty($keys[0].Value)) - { - $errorMessage = "Storage account '$StorageAccountName' has no key value." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "StorageAccountHasNoKeyValue" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - $suffix = GetEndpointSuffix - $accountKey = $keys[0].Value - - $connectionString = "DefaultEndpointsProtocol=https;AccountName=$StorageAccountName;AccountKey=$accountKey" + $suffix - - return $connectionString -} - -function GetEndpointSuffix -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param() - - $environmentName = (Get-AzContext).Environment.Name - - switch ($environmentName) - { - "AzureUSGovernment" { ';EndpointSuffix=core.usgovcloudapi.net' } - "AzureChinaCloud" { ';EndpointSuffix=core.chinacloudapi.cn' } - "AzureCloud" { ';EndpointSuffix=core.windows.net' } - default { '' } - } -} - -function NewAppSetting -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Name, - - [Parameter(Mandatory=$false)] - [System.String] - $Value - ) - - $setting = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.NameValuePair - $setting.Name = $Name - $setting.Value = $Value - - return $setting -} - -function GetServicePlan -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Name, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("Name")) - { - $PSBoundParameters.Remove("Name") | Out-Null - } - - $plans = @(Az.Functions\Get-AzFunctionAppPlan @PSBoundParameters) - - foreach ($plan in $plans) - { - if ($plan.Name -eq $Name) - { - return $plan - } - } - - # The plan name was not found, error out - $errorMessage = "Service plan '$Name' does not exist." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "ServicePlanDoesNotExist" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception -} - -function GetStorageAccount -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Name, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("Name")) - { - $PSBoundParameters.Remove("Name") | Out-Null - } - - $storageAccounts = @(Az.Functions.internal\Get-AzStorageAccount @PSBoundParameters -ErrorAction SilentlyContinue) - foreach ($account in $storageAccounts) - { - if ($account.Name -eq $Name) - { - return $account - } - } -} - -function GetApplicationInsightsProject -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Name, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("Name")) - { - $PSBoundParameters.Remove("Name") | Out-Null - } - - $projects = @(Az.Functions.internal\Get-AzAppInsights @PSBoundParameters) - - foreach ($project in $projects) - { - if ($project.Name -eq $Name) - { - return $project - } - } -} - -function CreateApplicationInsightsProject -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $ResourceName, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $ResourceGroupName, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Location, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - $paramsToRemove = @( - "ResourceGroupName", - "ResourceName", - "Location" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - # Create a new ApplicationInsights - $maxNumberOfTries = 3 - $tries = 1 - - while ($true) - { - try - { - $newAppInsightsProject = Az.Functions.internal\New-AzAppInsights -ResourceGroupName $ResourceGroupName ` - -ResourceName $ResourceName ` - -Location $Location ` - -Kind web ` - -RequestSource "AzurePowerShell" ` - -ErrorAction Stop ` - @PSBoundParameters - if ($newAppInsightsProject) - { - return $newAppInsightsProject - } - } - catch - { - # Ignore the failure and continue - } - - if ($tries -ge $maxNumberOfTries) - { - break - } - - # Wait for 2^(tries-1) seconds between retries. In this case, it would be 1, 2, and 4 seconds, respectively. - $waitInSeconds = [Math]::Pow(2, $tries - 1) - Start-Sleep -Seconds $waitInSeconds - - $tries++ - } -} - -function ConvertWebAppApplicationSettingToHashtable -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [Object] - $ApplicationSetting, - - [System.Management.Automation.SwitchParameter] - $ShowAllAppSettings, - - [System.Management.Automation.SwitchParameter] - $RedactAppSettings, - - [System.Management.Automation.SwitchParameter] - $ShowOnlySpecificAppSettings, - - [Parameter(Mandatory=$false)] - [ValidateNotNullOrEmpty()] - [String[]] - $AppSettingsToShow - ) - - if ($RedactAppSettings.IsPresent) - { - Write-Warning "App settings have been redacted. Use the Get-AzFunctionAppSetting cmdlet to view them." - } - - # Create a key value pair to hold the function app settings - $applicationSettings = @{} - - foreach ($keyName in $ApplicationSetting.Property.Keys) - { - if($ShowAllAppSettings.IsPresent) - { - $applicationSettings[$keyName] = $ApplicationSetting.Property[$keyName] - } - elseif ($RedactAppSettings.IsPresent) - { - # When RedactAppSettings is present, all app settings are set to null - $applicationSettings[$keyName] = $null - } - elseif($ShowOnlySpecificAppSettings.IsPresent) - { - # When ShowOnlySpecificAppSettings is present, only show the app settings in this list AppSettingsToShow - if ($AppSettingsToShow.Contains($keyName)) - { - $applicationSettings[$keyName] = $ApplicationSetting.Property[$keyName] - } - } - } - - return $applicationSettings -} - -function GetRuntime -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [Object] - $Settings, - - [Parameter(Mandatory=$false)] - [String] - $AppKind - ) - - $appSettings = ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $Settings -ShowAllAppSettings - $runtimeName = $appSettings["FUNCTIONS_WORKER_RUNTIME"] - - $runtime = "" - if (($null -ne $runtimeName) -and ($RuntimeToFormattedName.ContainsKey($runtimeName))) - { - $runtime = $RuntimeToFormattedName[$runtimeName] - } - elseif ($appSettings.ContainsKey("DOCKER_CUSTOM_IMAGE_NAME")) - { - if ($AppKind -match "azurecontainerapps") - { - $runtime = "Container App" - } - else - { - $runtime = "Custom Image" - } - } - - return $runtime -} - - -function AddFunctionAppSettings -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [Object] - $App, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("App")) - { - $PSBoundParameters.Remove("App") | Out-Null - } - - if ($App.kind.ToString() -match "azurecontainerapps") - { - if ($App.ManagedEnvironmentId) - { - $App.AppServicePlan = ($App.ManagedEnvironmentId -split "/")[-1] - } - } - else - { - $App.AppServicePlan = ($App.ServerFarmId -split "/")[-1] - } - - $App.OSType = if ($App.kind.ToString() -match "linux"){ "Linux" } else { "Windows" } - - if ($App.Type -eq "Microsoft.Web/sites/slots") - { - return $App - } - - $currentSubscription = $null - $resetDefaultSubscription = $false - - try - { - $settings = Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $App.Name ` - -ResourceGroupName $App.ResourceGroup ` - -ErrorAction SilentlyContinue ` - @PSBoundParameters - if ($null -eq $settings) - { - Write-Warning -Message "Failed to retrieve function app settings. 1st attempt" - Write-Warning -Message "Setting session context to subscription id '$($App.SubscriptionId)'" - - $resetDefaultSubscription = $true - $currentSubscription = (Get-AzContext).Subscription.Id - $null = Select-AzSubscription $App.SubscriptionId - - $settings = Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $App.Name ` - -ResourceGroupName $App.ResourceGroup ` - -ErrorAction SilentlyContinue ` - @PSBoundParameters - if ($null -eq $settings) - { - # We are unable to get the app settings, return the app - Write-Warning -Message "Failed to retrieve function app settings. 2nd attempt." - return $App - } - } - } - finally - { - if ($resetDefaultSubscription) - { - Write-Warning -Message "Resetting session context to subscription id '$currentSubscription'" - $null = Select-AzSubscription $currentSubscription - } - } - - # Add application settings and runtime - $App.ApplicationSettings = ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $settings -RedactAppSettings - $App.Runtime = GetRuntime -Settings $settings -AppKind $App.kind - - # Get the app site config - $config = GetAzWebAppConfig -Name $App.Name -ResourceGroupName $App.ResourceGroup @PSBoundParameters - # Add all site config properties as a hash table - $SiteConfig = @{} - foreach ($property in $config.PSObject.Properties) - { - if ($property.Name) - { - $SiteConfig.Add($property.Name, $property.Value) - } - } - - $App.SiteConfig = $SiteConfig - - return $App -} - -function GetFunctionApps -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [AllowEmptyCollection()] - [Object[]] - $Apps, - - [System.String] - $Location, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - $paramsToRemove = @( - "Apps", - "Location" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - if ($Apps.Count -eq 0) - { - return - } - - $activityName = "Getting function apps" - - for ($index = 0; $index -lt $Apps.Count; $index++) - { - $app = $Apps[$index] - - $percentageCompleted = [int]((100 * ($index + 1)) / $Apps.Count) - $status = "Complete: $($index + 1)/$($Apps.Count) function apps processed." - Write-Progress -Activity "Getting function apps" -Status $status -PercentComplete $percentageCompleted - - if ($app.kind -match "functionapp") - { - if ($Location) - { - if ($app.Location -eq $Location) - { - $app = AddFunctionAppSettings -App $app @PSBoundParameters - $app - } - } - else - { - $app = AddFunctionAppSettings -App $app @PSBoundParameters - $app - } - } - } - - Write-Progress -Activity $activityName -Status "Completed" -Completed -} - -function AddFunctionAppPlanWorkerType -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - $AppPlan, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("AppPlan")) - { - $PSBoundParameters.Remove("AppPlan") | Out-Null - } - - # The GetList api for service plan that does not set the Reserved property, which is needed to figure out if the OSType is Linux. - # TODO: Remove this code once https://msazure.visualstudio.com/Antares/_workitems/edit/5623226 is fixed. - if ($null -eq $AppPlan.Reserved) - { - # Get the service plan by name does set the Reserved property - $planObject = Az.Functions.internal\Get-AzFunctionAppPlan -Name $AppPlan.Name ` - -ResourceGroupName $AppPlan.ResourceGroup ` - -ErrorAction SilentlyContinue ` - @PSBoundParameters - $AppPlan = $planObject - } - - $AppPlan.WorkerType = if ($AppPlan.Reserved){ "Linux" } else { "Windows" } - - return $AppPlan -} - -function GetFunctionAppPlans -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [AllowEmptyCollection()] - [Object[]] - $Plans, - - [System.String] - $Location, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - $paramsToRemove = @( - "Plans", - "Location" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - if ($Plans.Count -eq 0) - { - return - } - - $activityName = "Getting function app plans" - - for ($index = 0; $index -lt $Plans.Count; $index++) - { - $plan = $Plans[$index] - - $percentageCompleted = [int]((100 * ($index + 1)) / $Plans.Count) - $status = "Complete: $($index + 1)/$($Plans.Count) function apps plans processed." - Write-Progress -Activity $activityName -Status $status -PercentComplete $percentageCompleted - - try { - if ($Location) - { - if ($plan.Location -eq $Location) - { - $plan = AddFunctionAppPlanWorkerType -AppPlan $plan @PSBoundParameters - $plan - } - } - else - { - $plan = AddFunctionAppPlanWorkerType -AppPlan $plan @PSBoundParameters - $plan - } - } - catch { - continue; - } - } - - Write-Progress -Activity $activityName -Status "Completed" -Completed -} - -function ValidateFunctionName -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Name, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - $result = Az.Functions.internal\Test-AzNameAvailability -Type Site @PSBoundParameters - - if (-not $result.NameAvailable) - { - $errorMessage = "Function name '$Name' is not available. Please try a different name." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FunctionAppNameIsNotAvailable" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } -} - -function NormalizeSku -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Sku - ) - if ($Sku -eq "SHARED") - { - return "D1" - } - return $Sku -} - -function CreateFunctionsIdentity -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - $InputObject - ) - - if (-not ($InputObject.Name -and $InputObject.ResourceGroupName -and $InputObject.SubscriptionId)) - { - $errorMessage = "Input object '$InputObject' is missing one or more of the following properties: Name, ResourceGroupName, SubscriptionId" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToCreateFunctionsIdentity" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - $functionsIdentity = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.FunctionsIdentity - $functionsIdentity.Name = $InputObject.Name - $functionsIdentity.SubscriptionId = $InputObject.SubscriptionId - $functionsIdentity.ResourceGroupName = $InputObject.ResourceGroupName - - return $functionsIdentity -} - -function GetSkuName -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Sku - ) - - if (($Sku -eq "D1") -or ($Sku -eq "SHARED")) - { - return "SHARED" - } - elseif (($Sku -eq "B1") -or ($Sku -eq "B2") -or ($Sku -eq "B3") -or ($Sku -eq "BASIC")) - { - return "BASIC" - } - elseif (($Sku -eq "S1") -or ($Sku -eq "S2") -or ($Sku -eq "S3")) - { - return "STANDARD" - } - elseif (($Sku -eq "P1") -or ($Sku -eq "P2") -or ($Sku -eq "P3")) - { - return "PREMIUM" - } - elseif (($Sku -eq "P1V2") -or ($Sku -eq "P2V2") -or ($Sku -eq "P3V2")) - { - return "PREMIUMV2" - } - elseif (($Sku -eq "PC2") -or ($Sku -eq "PC3") -or ($Sku -eq "PC4")) - { - return "PremiumContainer" - } - elseif (($Sku -eq "EP1") -or ($Sku -eq "EP2") -or ($Sku -eq "EP3")) - { - return "ElasticPremium" - } - elseif (($Sku -eq "I1") -or ($Sku -eq "I2") -or ($Sku -eq "I3")) - { - return "Isolated" - } - - $guidanceUrl = 'https://learn.microsoft.com/azure/azure-functions/functions-premium-plan#plan-and-sku-settings' - - $errorMessage = "Invalid sku (pricing tier), please refer to '$guidanceUrl' for valid values." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "InvalidSkuPricingTier" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception -} - -function ThrowTerminatingError -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $ErrorId, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $ErrorMessage, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.Management.Automation.ErrorCategory] - $ErrorCategory, - - [Exception] - $Exception, - - [object] - $TargetObject - ) - - if (-not $Exception) - { - $Exception = New-Object -TypeName System.Exception -ArgumentList $ErrorMessage - } - - $errorRecord = New-Object -TypeName System.Management.Automation.ErrorRecord -ArgumentList ($Exception, $ErrorId, $ErrorCategory, $TargetObject) - #$PSCmdlet.ThrowTerminatingError($errorRecord) - throw $errorRecord -} - -function GetErrorMessage -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNull()] - $Response - ) - - if ($Response.Exception.ResponseBody) - { - try - { - $details = ConvertFrom-Json $Response.Exception.ResponseBody - if ($details.Message) - { - return $details.Message - } - } - catch - { - # Ignore the deserialization error - } - } -} - -function GetSupportedRuntimes -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $OSType - ) - - if ($OSType -eq "Linux") - { - return $RuntimeToVersionLinux - } - elseif ($OSType -eq "Windows") - { - return $RuntimeToVersionWindows - } - - throw "Unknown OS type '$OSType'" -} - -function ValidateFunctionsVersion -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $FunctionsVersion - ) - - # if ($SupportedFunctionsVersion -notcontains $FunctionsVersion) - if ($AllFunctionsExtensionVersions -notcontains $FunctionsVersion) - { - $currentlySupportedFunctionsVersions = $AllFunctionsExtensionVersions -join ' and ' - $errorMessage = "Functions version not supported. Currently supported version are: $($currentlySupportedFunctionsVersions)." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FunctionsVersionNotSupported" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } -} - -function GetDefaultOSType -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Runtime - ) - - $defaultOSType = $RuntimeToDefaultOSType[$Runtime] - - if (-not $defaultOSType) - { - # The specified runtime did not match, error out - $runtimeOptions = FormatListToString -List @($RuntimeToDefaultOSType.Keys | Sort-Object) - $errorMessage = "Runtime '$Runtime' is not supported. Currently supported runtimes: " + $runtimeOptions + "." - ThrowRuntimeNotSupportedException -Message $errorMessage -ErrorId "RuntimeNotSupported" - } - - return $defaultOSType -} - -# Returns the stack definition for the given runtime name -# -function GetStackDefinitionForRuntime -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $FunctionsVersion, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Runtime, - - [Parameter(Mandatory=$false)] - [System.String] - $RuntimeVersion, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $OSType - ) - - $supportedRuntimes = GetSupportedRuntimes -OSType $OSType - $runtimeJsonDefinition = $null - - $functionsExtensionVersion = "~$FunctionsVersion" - if (-not $supportedRuntimes.ContainsKey($Runtime)) - { - $runtimeOptions = FormatListToString -List @($supportedRuntimes.Keys | Sort-Object) - $errorMessage = "Runtime '$Runtime' on '$OSType' is not supported. Currently supported runtimes: " + $runtimeOptions + "." - - ThrowRuntimeNotSupportedException -Message $errorMessage -ErrorId "RuntimeNotSupported" - } - - # If runtime version is not provided, iterate through the list to find the default version (if available) - if (($Runtime -ne 'Custom') -and (-not $RuntimeVersion)) - { - # Try to get the default version - $defaultVersionFound = $false - $RuntimeVersion = $supportedRuntimes[$Runtime] | - ForEach-Object { if ($_.IsDefault -and ($_.SupportedFunctionsExtensionVersions -contains $functionsExtensionVersion)) { $_.Version } } - - if ($RuntimeVersion) - { - $defaultVersionFound = $true - Write-Debug "$DEBUG_PREFIX Runtime '$Runtime' has a default version '$RuntimeVersion'" - } - else - { - Write-Debug "$DEBUG_PREFIX Runtime '$Runtime' does not have a default version. Finding the latest version." - - # Iterate through the list to find the latest non preview version - $latestVersion = $supportedRuntimes[$Runtime] | - Sort-Object -Property Version -Descending | - Where-Object { $_.SupportedFunctionsExtensionVersions -contains $functionsExtensionVersion -and (-not $_.IsPreview) } | - Select-Object -First 1 -ExpandProperty Version - - if ($latestVersion) - { - # Set the runtime version to the latest version - $RuntimeVersion = $latestVersion - } - } - - # Error out if we could not find a default or latest version for the given runtime (except for 'Custom'), functions extension version, and os type - if ((-not $latestVersion) -and (-not $defaultVersionFound) -and ($Runtime -ne 'Custom')) - { - $errorMessage = "Runtime '$Runtime' in Functions version '$FunctionsVersion' on '$OSType' is not supported." - ThrowRuntimeNotSupportedException -Message $errorMessage -ErrorId "RuntimeVersionNotSupported" - } - - Write-Warning "RuntimeVersion not specified. Setting default value to '$RuntimeVersion'. $SetDefaultValueParameterWarningMessage" - } - - if ($Runtime -eq 'Custom') - { - # Custom runtime does not have a version - $runtimeJsonDefinition = $supportedRuntimes[$Runtime] - } - else - { - $runtimeJsonDefinition = $supportedRuntimes[$Runtime] | Where-Object { $_.Version -eq $RuntimeVersion } - } - - if (-not $runtimeJsonDefinition) - { - $errorMessage = "Runtime '$Runtime' version '$RuntimeVersion' in Functions version '$FunctionsVersion' on '$OSType' is not supported." - - $supporedVersions = @($supportedRuntimes[$Runtime] | - Sort-Object -Property Version -Descending | - Where-Object { $_.SupportedFunctionsExtensionVersions -contains $functionsExtensionVersion } | - Select-Object -ExpandProperty Version) - - if ($supporedVersions.Count -gt 0) - { - $runtimeVersionOptions = $supporedVersions -join ", " - $errorMessage += " Currently supported runtime versions for '$($Runtime)' are: $runtimeVersionOptions." - } - - ThrowRuntimeNotSupportedException -Message $errorMessage -ErrorId "RuntimeVersionNotSupported" - } - - if ($runtimeJsonDefinition.IsPreview) - { - # Write a verbose message to the user if the current runtime is in Preview - Write-Verbose "Runtime '$Runtime' version '$RuntimeVersion' is in Preview for '$OSType'." -Verbose - } - - return $runtimeJsonDefinition -} - -function ThrowRuntimeNotSupportedException -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Message, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $ErrorId - ) - - $Message += [System.Environment]::NewLine - $Message += "For supported languages, please visit 'https://learn.microsoft.com/azure/azure-functions/functions-versions#languages'." - - $exception = [System.InvalidOperationException]::New($Message) - ThrowTerminatingError -ErrorId $ErrorId ` - -ErrorMessage $Message ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception -} - -function FormatListToString -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [System.String[]] - $List - ) - - if ($List.Count -eq 0) - { - return - } - - $result = "" - - if ($List.Count -eq 1) - { - $result = "'" + $List[0] + "'" - } - - else - { - for ($index = 0; $index -lt ($List.Count - 1); $index++) - { - $item = $List[$index] - $result += "'" + $item + "', " - } - - $result += "'" + $List[$List.Count - 1] + "'" - } - - return $result -} - -function ValidatePlanLocation -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Location, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - [ValidateSet("Dynamic", "ElasticPremium")] - $PlanType, - - [Parameter(Mandatory=$false)] - [System.Management.Automation.SwitchParameter] - $OSIsLinux, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - $paramsToRemove = @( - "PlanType", - "OSIsLinux", - "Location" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - $Location = $Location.Trim() - $locationContainsSpace = $Location.Contains(" ") - - $availableLocations = @(Az.Functions.internal\Get-AzFunctionAppAvailableLocation -Sku $PlanType ` - -LinuxWorkersEnabled:$OSIsLinux ` - @PSBoundParameters | ForEach-Object { $_.Name }) - - if (-not $locationContainsSpace) - { - $availableLocations = @($availableLocations | ForEach-Object { $_.Replace(" ", "") }) - } - - if (-not ($availableLocations -contains $Location)) - { - $errorMessage = "Location is invalid. Use 'Get-AzFunctionAppAvailableLocation' to see available locations for running function apps." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "LocationIsInvalid" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } -} - -function ValidatePremiumPlanLocation -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Location, - - [Parameter(Mandatory=$false)] - [System.Management.Automation.SwitchParameter] - $OSIsLinux, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - ValidatePlanLocation -PlanType ElasticPremium @PSBoundParameters -} - -function ValidateConsumptionPlanLocation -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Location, - - [Parameter(Mandatory=$false)] - [System.Management.Automation.SwitchParameter] - $OSIsLinux, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - ValidatePlanLocation -PlanType Dynamic @PSBoundParameters -} - -function GetParameterKeyValues -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [System.Collections.Generic.Dictionary[string, object]] - [ValidateNotNull()] - $PSBoundParametersDictionary, - - [Parameter(Mandatory=$true)] - [System.String[]] - [ValidateNotNull()] - $ParameterList - ) - - $params = @{} - if ($ParameterList.Count -gt 0) - { - foreach ($paramName in $ParameterList) - { - if ($PSBoundParametersDictionary.ContainsKey($paramName)) - { - $params[$paramName] = $PSBoundParametersDictionary[$paramName] - } - } - } - return $params -} - -function NewResourceTag -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [hashtable] - $Tag - ) - - $resourceTag = [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceTags]::new() - - foreach ($tagName in $Tag.Keys) - { - $resourceTag.Add($tagName, $Tag[$tagName]) - } - return $resourceTag -} - -function ParseDockerImage -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $DockerImageName - ) - - # Sample urls: - # myacr.azurecr.io/myimage:tag - # mcr.microsoft.com/azure-functions/powershell:2.0 - if ($DockerImageName.Contains("/")) - { - $index = $DockerImageName.LastIndexOf("/") - $value = $DockerImageName.Substring(0,$index) - if ($value.Contains(".") -or $value.Contains(":")) - { - return $value - } - } -} - -function GetFunctionAppServicePlanInfo -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $ServerFarmId, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("ServerFarmId")) - { - $PSBoundParameters.Remove("ServerFarmId") | Out-Null - } - - $planInfo = $null - - if ($ServerFarmId.Contains("/")) - { - $parts = $ServerFarmId -split "/" - - $planName = $parts[-1] - $resourceGroupName = $parts[-5] - - $planInfo = Az.Functions\Get-AzFunctionAppPlan -Name $planName ` - -ResourceGroupName $resourceGroupName ` - @PSBoundParameters - } - - if (-not $planInfo) - { - $errorMessage = "Could not determine the current plan of the functionapp." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "CouldNotDetermineFunctionAppPlan" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - - } - - return $planInfo -} - -function ValidatePlanSwitchCompatibility -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - $CurrentServicePlan, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - $NewServicePlan - ) - - if (-not (($CurrentServicePlan.SkuTier -eq "ElasticPremium") -or ($CurrentServicePlan.SkuTier -eq "Dynamic") -or - ($NewServicePlan.SkuTier -eq "ElasticPremium") -or ($NewServicePlan.SkuTier -eq "Dynamic"))) - { - $errorMessage = "Currently the switch is only allowed between a Consumption or an Elastic Premium plan." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "InvalidFunctionAppPlanSwitch" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } -} - -function NewAppSettingObject -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [Hashtable] - $CurrentAppSetting - ) - - # Create StringDictionaryProperties (hash table) with the app settings - $properties = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringDictionaryProperties - - foreach ($keyName in $currentAppSettings.Keys) - { - $properties.Add($keyName, $currentAppSettings[$keyName]) - } - - $appSettings = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.StringDictionary - $appSettings.Property = $properties - - return $appSettings -} - -function ContainsReservedFunctionAppSettingName -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String[]] - $AppSettingName - ) - - foreach ($name in $AppSettingName) - { - if ($ReservedFunctionAppSettingNames.Contains($name)) - { - return $true - } - } - - return $false -} - -function GetFunctionAppByName -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String] - $Name, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String] - $ResourceGroupName, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - $paramsToRemove = @( - "Name", - "ResourceGroupName" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - $existingFunctionApp = Az.Functions\Get-AzFunctionApp -ResourceGroupName $ResourceGroupName ` - -Name $Name ` - -ErrorAction SilentlyContinue ` - @PSBoundParameters - - if (-not $existingFunctionApp) - { - $errorMessage = "Function app name '$Name' in resource group name '$ResourceGroupName' does not exist." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FunctionAppDoesNotExist" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - return $existingFunctionApp -} -function GetAzWebAppConfig -{ - - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String] - $Name, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String] - $ResourceGroupName, - - [Switch] - $ErrorIfResultIsNull, - - $SubscriptionId, - $HttpPipelineAppend, - $HttpPipelinePrepend - ) - - if ($PSBoundParameters.ContainsKey("ErrorIfResultIsNull")) - { - $PSBoundParameters.Remove("ErrorIfResultIsNull") | Out-Null - } - - $resetDefaultSubscription = $false - $webAppConfig = $null - $currentSubscription = $null - try - { - $webAppConfig = Az.Functions.internal\Get-AzWebAppConfiguration -ErrorAction SilentlyContinue ` - @PSBoundParameters - - if ($null -eq $webAppConfig) - { - Write-Warning -Message "Failed to retrieve function app site config. 1st attempt" - Write-Warning -Message "Setting session context to subscription id '$($SubscriptionId)'" - - $resetDefaultSubscription = $true - $currentSubscription = (Get-AzContext).Subscription.Id - $null = Select-AzSubscription $SubscriptionId - - $webAppConfig = Az.Functions.internal\Get-AzWebAppConfiguration -ResourceGroupName $ResourceGroupName ` - -Name $Name ` - -ErrorAction SilentlyContinue ` - @PSBoundParameters - if ($null -eq $webAppConfig) - { - Write-Warning -Message "Failed to retrieve function app site config. 2nd attempt." - } - } - } - finally - { - if ($resetDefaultSubscription) - { - Write-Warning -Message "Resetting session context to subscription id '$currentSubscription'" - $null = Select-AzSubscription $currentSubscription - } - } - - if ((-not $webAppConfig) -and $ErrorIfResultIsNull) - { - $errorMessage = "Falied to get config for function app name '$Name' in resource group name '$ResourceGroupName'." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FaliedToGetFunctionAppConfig" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - return $webAppConfig -} - -function NewIdentityUserAssignedIdentity -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String[]] - $IdentityID - ) - - # If creating user assigned identities, only alphanumeric characters (0-9, a-z, A-Z), the underscore (_) and the hyphen (-) are supported. - $msiUserAssignedIdentities = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ManagedServiceIdentityUserAssignedIdentities - - foreach ($id in $IdentityID) - { - $functionAppUserAssignedIdentitiesValue = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ManagedServiceIdentityUserAssignedIdentities - $msiUserAssignedIdentities.Add($id, $functionAppUserAssignedIdentitiesValue) - } - - return $msiUserAssignedIdentities -} - -function GetShareSuffix -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Int] - $Length = 8 - ) - - # Create char array from 'a' to 'z' - $letters = 97..122 | ForEach-Object { [char]$_ } - $numbers = 0..9 - $alphanumericLowerCase = $letters + $numbers - - $suffix = [System.Text.StringBuilder]::new() - - for ($index = 0; $index -lt $Length; $index++) - { - $value = $alphanumericLowerCase | Get-Random - $suffix.Append($value) | Out-Null - } - - $suffix.ToString() -} - -function GetShareName -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $FunctionAppName - ) - - $FunctionAppName = $FunctionAppName.ToLower() - - if ($env:FunctionsTestMode) - { - # To support the tests' playback mode, we need to have the same values for each function app creation payload. - # Adding this test hook will allows us to have a constant share name when creation an app. - - return $FunctionAppName - } - - <# - Share name restrictions: - - A share name must be a valid DNS name. - - Share names must start with a letter or number, and can contain only letters, numbers, and the dash (-) character. - - Every dash (-) character must be immediately preceded and followed by a letter or number; consecutive dashes are not permitted in share names. - - All letters in a share name must be lowercase. - - Share names must be from 3 through 63 characters long. - - Docs: https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata#share-names - #> - - # Share name will be function app name + 8 random char suffix with a max length of 60 - $MAXLENGTH = 60 - $SUFFIXLENGTH = 8 - if (($FunctionAppName.Length + $SUFFIXLENGTH) -lt $MAXLENGTH) - { - $name = $FunctionAppName - } - else - { - $endIndex = $MAXLENGTH - $SUFFIXLENGTH - 1 - $name = $FunctionAppName.Substring(0, $endIndex) - } - - $suffix = GetShareSuffix -Length $SUFFIXLENGTH - $shareName = $name + $suffix - - return $shareName -} - -Class Runtime -{ - [string]$Name - [string]$FullName - [string]$Version - [bool]$IsPreview - [string[]]$SupportedFunctionsExtensionVersions - [hashtable]$AppSettingsDictionary - [hashtable]$SiteConfigPropertiesDictionary - [bool]$IsHidden - [bool]$IsDefault - [string]$PreferredOs - [hashtable]$AppInsightsSettings -} - -function GetBuiltInFunctionAppStacksDefinition -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$false)] - [Switch] - $DoNotShowWarning - ) - - if (-not $DoNotShowWarning) - { - $warmingMessage = "Failed to get Function App Stack definitions from ARM API. " - $warmingMessage += "Please open an issue at https://github.com/Azure/azure-powershell/issues with the following title: " - $warmingMessage += "[Az.Functions] Failed to get Function App Stack definitions from ARM API." - Write-Warning $warmingMessage - } - - $filePath = "$PSScriptRoot/FunctionsStack/functionAppStacks.json" - $json = Get-Content -Path $filePath -Raw - - return $json -} - -# Get the Function App Stack definition from the ARM API using the current Azure session -# -function GetFunctionAppStackDefinition -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param () - - if ($env:FunctionsTestMode -or ($null -ne $env:SYSTEM_DEFINITIONID -or $null -ne $env:Release_DefinitionId -or $null -ne $env:AZUREPS_HOST_ENVIRONMENT)) - { - Write-Debug "$DEBUG_PREFIX Running on test mode. Using built in json file definition." - $json = GetBuiltInFunctionAppStacksDefinition -DoNotShowWarning - return $json - } - - # Make sure there is an active Azure session - $context = Get-AzContext -ErrorAction SilentlyContinue - if (-not $context) - { - $errorMessage = "There is no active Azure PowerShell session. Please run 'Connect-AzAccount'" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "LoginToAzureViaConnectAzAccount" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - # Get the ResourceManagerUrl - $resourceManagerUrl = $context.Environment.ResourceManagerUrl - if ([string]::IsNullOrWhiteSpace($resourceManagerUrl)) - { - Write-Debug "$DEBUG_PREFIX context does not have a ResourceManagerUrl. Using built in json file definition." - $json = GetBuiltInFunctionAppStacksDefinition - return $json - } - - if (-not $resourceManagerUrl.EndsWith('/')) - { - $resourceManagerUrl += '/' - } - - Write-Debug "$DEBUG_PREFIX Get AccessToken." - $token = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" (Get-AzAccessToken -AsSecureString).Token - $headers = @{ - Authorization="Bearer $token" - } - - $params = @{ - stackOsType = 'All' - removeDeprecatedStacks = 'true' - } - - $apiEndPoint = $resourceManagerUrl + "providers/Microsoft.Web/functionAppStacks?api-version=2020-10-01" - - $maxNumberOfTries = 3 - $currentCount = 1 - - Write-Debug "$DEBUG_PREFIX Set TLS 1.2" - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - - do - { - $result = $null - try - { - Write-Debug "$DEBUG_PREFIX Pull down Function App Stack definitions from ARM API. Attempt $currentCount of $maxNumberOfTries." - $result = Invoke-WebRequest -Uri $apiEndPoint -Method Get -Headers $headers -body $params -ErrorAction Stop - } - catch - { - $exception = $_ - Write-Debug "$DEBUG_PREFIX Failed to get Function App Stack definitions from ARM API. Attempt $currentCount of $maxNumberOfTries. Error: $($exception.Message)" - } - - if ($result) - { - # Unauthorized - if ($result.StatusCode -eq 401) - { - # Get a new access token, create new headers and retry - $token = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" (Get-AzAccessToken -AsSecureString).Token - - $headers = @{ - Authorization = "Bearer $token" - } - } - - if ($result.StatusCode -eq 200) - { - $stackDefinition = $result.Content | ConvertFrom-Json - - return $stackDefinition.value | ConvertTo-Json -Depth 100 - } - } - - $currentCount++ - - } while ($currentCount -le $maxNumberOfTries) - - - # At this point, we failed to get the stack definition from the ARM API. - # Return the built in json file definition - $json = GetBuiltInFunctionAppStacksDefinition - return $json -} - -function ContainsProperty -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.Object] - $Object, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $PropertyName - ) - - $result = $Object | Get-Member -MemberType Properties | Where-Object { $_.Name -eq $PropertyName } - return ($null -ne $result) -} - -function ParseMinorVersion -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$false)] - [System.String] - $StackMinorVersion, - - [Parameter(Mandatory=$false)] - [System.String] - $PreferredOs, - - [Parameter(Mandatory=$true)] - [PSCustomObject] - $RuntimeSettings, - - [Parameter(Mandatory=$false)] - [System.String] - $RuntimeFullName, - - [Parameter(Mandatory=$false)] - [Bool] - $StackIsLinux - ) - - # If this FunctionsVersion is not supported, skip it - if ($RuntimeSettings.supportedFunctionsExtensionVersions -notcontains "~$DefaultFunctionsVersion") - { - $supportedFunctionsExtensionVersions = $RuntimeSettings.supportedFunctionsExtensionVersions -join ", " - Write-Debug "$DEBUG_PREFIX Minimium required Functions version '$DefaultFunctionsVersion' is not supported. Runtime supported Functions versions: $supportedFunctionsExtensionVersions. Skipping..." - return - } - else - { - Write-Debug "$DEBUG_PREFIX Minimium required Functions version '$DefaultFunctionsVersion' is supported." - } - - $runtimeName = GetRuntimeName -AppSettingsDictionary $RuntimeSettings.AppSettingsDictionary - - $version = $null - if ($RuntimeName -eq "Java" -and $RuntimeSettings.RuntimeVersion -eq "1.8") - { - # Java 8 is only supported in Windows. The display value is 8; however, the actual SiteConfig.JavaVersion is 1.8 - $version = $StackMinorVersion - } - else - { - $version = $RuntimeSettings.RuntimeVersion - } - - $runtimeVersion = GetRuntimeVersion -Version $version -StackIsLinux $StackIsLinux - - # For Java function app, the version from the Stacks API is 8.0, 11.0, and 17.0. However, this is a breaking change which cannot be supported in the current release. - # We will convert the version to 8, 11, and 17. This change will be reverted for the May 2024 breaking release. - if ($RuntimeName -eq "Java") - { - $runtimeVersion = [int]$runtimeVersion - Write-Debug "$DEBUG_PREFIX Runtime version for Java is modified to be compatible with the current release. Current version '$runtimeVersion'" - } - - # For DotNet function app, the version from the Stacks API is 6.0. 7.0, and 8.0. However, this is a breaking change which cannot be supported in the current release. - # We will convert the version to 6, 7, and 8. This change will be reverted for the May 2024 breaking release. - if ($RuntimeName -like "DotNet*") - { - if ($runtimeVersion.EndsWith(".0")) - { - $runtimeVersion = [int]$runtimeVersion - } - Write-Debug "$DEBUG_PREFIX Runtime version for $runtimeName is modified to be compatible with the current release. Current version '$runtimeVersion'" - } - - $runtime = [Runtime]::new() - $runtime.Name = $runtimeName - $runtime.AppSettingsDictionary = GetDictionary -SettingsDictionary $RuntimeSettings.AppSettingsDictionary - $runtime.SiteConfigPropertiesDictionary = GetDictionary -SettingsDictionary $RuntimeSettings.SiteConfigPropertiesDictionary - $runtime.AppInsightsSettings = GetDictionary -SettingsDictionary $RuntimeSettings.AppInsightsSettings - $runtime.SupportedFunctionsExtensionVersions = GetSupportedFunctionsExtensionVersion -SupportedFunctionsExtensionVersions $RuntimeSettings.SupportedFunctionsExtensionVersions - - foreach ($propertyName in @("isPreview", "isHidden", "isDefault")) - { - if (ContainsProperty -Object $RuntimeSettings -PropertyName $propertyName) - { - Write-Debug "$DEBUG_PREFIX Runtime setting contains '$propertyName'" - $runtime.$propertyName = $RuntimeSettings.$propertyName - } - } - - # When $env:FunctionsDisplayHiddenRuntimes is set to true, we will display all runtimes - if ($runtime.IsHidden -and (-not $env:FunctionsDisplayHiddenRuntimes)) - { - Write-Debug "$DEBUG_PREFIX Runtime $runtimeName is hidden. Skipping..." - return - } - - if ($runtimeVersion -and ($runtimeName -ne "custom")) - { - Write-Debug "$DEBUG_PREFIX Runtime version: $runtimeVersion" - $runtime.Version = $runtimeVersion - } - else - { - Write-Debug "$DEBUG_PREFIX Runtime $runtimeName does not have a version." - $runtime.Version = "" - } - - if ($RuntimeFullName) - { - $runtime.FullName = $RuntimeFullName - } - - if ($PreferredOs) - { - $runtime.PreferredOs = $PreferredOs - } - - $targetOs = if ($StackIsLinux) { 'Linux' } else { 'Windows' } - Write-Debug "$DEBUG_PREFIX Runtime '$runtimeName' for '$targetOs' parsed successfully." - - return $runtime -} - - -function GetRuntimeVersion -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$false)] - [System.String] - $Version, - - [Parameter(Mandatory=$false)] - [Bool] - $StackIsLinux - ) - - if (-not $Version) - { - # Some runtimes do not have a version like custom handler - return - } - - if ($StackIsLinux) - { - $Version = $Version.Split('|')[1] - } - else - { - $valuesToReplace = @('v', '~') - foreach ($value in $valuesToReplace) - { - if ($Version.Contains($value)) - { - $Version = $Version.Replace($value, '') - } - } - } - - $Version = $Version.Trim() - return $Version -} - -function GetDictionary -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [PSCustomObject] - $SettingsDictionary - ) - - $dictionary = @{} - foreach ($property in $SettingsDictionary.PSObject.Properties) - { - $dictionary.Add($property.Name, $property.Value) - } - - return $dictionary -} - -function GetRuntimeName -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [PSCustomObject] - $AppSettingsDictionary - ) - - $settingHashTable = GetDictionary -SettingsDictionary $AppSettingsDictionary - - $name = $settingHashTable['FUNCTIONS_WORKER_RUNTIME'] - - if ($RuntimeToFormattedName.ContainsKey($name)) - { - return $RuntimeToFormattedName[$name] - } - - return $name -} - -function GetSupportedFunctionsExtensionVersion -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String[]] - $SupportedFunctionsExtensionVersions - ) - - $supportedExtensionsVersions = @() - - foreach ($extensionVersion in $SupportedFunctionsExtensionVersions) - { - if ($extensionVersion -ge "~$DefaultFunctionsVersion") - { - $supportedExtensionsVersions += $extensionVersion - } - } - - return $supportedExtensionsVersions -} - -function AddRuntimeToDictionary -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - $Runtime, - - [Parameter(Mandatory=$true)] - [hashtable] - [Ref]$RuntimeToVersionDictionary - ) - - if ($RuntimeToVersionDictionary.ContainsKey($Runtime.Name)) - { - $list = $RuntimeToVersionDictionary[$Runtime.Name] - } - else - { - $list = New-Object System.Collections.Generic.List[[Runtime]] - } - - $list.Add($Runtime) - $RuntimeToVersionDictionary[$Runtime.Name] = $list - - # Add the runtime name and version to the all runtimes list. This is used for the tab completers - if ($AllRuntimeVersions.ContainsKey($runtime.Name)) - { - $allVersionsList = $AllRuntimeVersions[$Runtime.Name] - } - else - { - $allVersionsList = @() - } - - if (-not $allVersionsList.Contains($Runtime.Version)) - { - $allVersionsList += $Runtime.Version - $AllRuntimeVersions[$Runtime.name] = $allVersionsList - } - - # Add Functions extension version to AllFunctionsExtensionVersions. This is used for the tab completers - foreach ($extensionVersion in $Runtime.SupportedFunctionsExtensionVersions) - { - $version = $extensionVersion.Replace("~", "") - if (-not $AllFunctionsExtensionVersions.Contains($version)) - { - $AllFunctionsExtensionVersions.Add($version) - } - } -} - -function SetLinuxandWindowsSupportedRuntimes -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param () - - Write-Debug "$DEBUG_PREFIX Build function stack definitions." - - # Get Function App Runtime Definitions - $json = GetFunctionAppStackDefinition - $functionAppStackDefinition = $json | ConvertFrom-Json - - # Build a map of runtime -> runtime version -> runtime version properties - foreach ($stackDefinition in $functionAppStackDefinition) - { - $preferredOs = $stackDefinition.properties.preferredOs - - $stackName = $stackDefinition.properties.value - Write-Debug "$DEBUG_PREFIX Parsing stack name: $stackName" - - foreach ($majorVersion in $stackDefinition.properties.majorVersions) - { - foreach ($minorVersion in $majorVersion.minorVersions) - { - $runtimeFullName = $minorVersion.DisplayText - Write-Debug "$DEBUG_PREFIX runtime full name: $runtimeFullName" - - $stackMinorVersion = $minorVersion.value - Write-Debug "$DEBUG_PREFIX stack minor version: $stackMinorVersion" - $runtime = $null - - if (ContainsProperty -Object $minorVersion.stackSettings -PropertyName "windowsRuntimeSettings") - { - $runtime = ParseMinorVersion -RuntimeSettings $minorVersion.stackSettings.windowsRuntimeSettings ` - -RuntimeFullName $runtimeFullName ` - -PreferredOs $preferredOs ` - -StackMinorVersion $stackMinorVersion - - if ($runtime) - { - AddRuntimeToDictionary -Runtime $runtime -RuntimeToVersionDictionary ([Ref]$RuntimeToVersionWindows) - } - } - - if (ContainsProperty -Object $minorVersion.stackSettings -PropertyName "linuxRuntimeSettings") - { - $runtime = ParseMinorVersion -RuntimeSettings $minorVersion.stackSettings.linuxRuntimeSettings ` - -RuntimeFullName $runtimeFullName ` - -PreferredOs $preferredOs ` - -StackIsLinux $true - - if ($runtime) - { - AddRuntimeToDictionary -Runtime $runtime -RuntimeToVersionDictionary ([Ref]$RuntimeToVersionLinux) - } - } - } - } - } -} - -# This method pulls down the Functions stack definitions from the ARM API and builds a list of supported runtimes and runtime versions. -# This is used to build the tab completers for the New-AzFunctionApp cmdlet. -function RegisterFunctionsTabCompleters -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param () - - if (-not $global:StacksAndTabCompletersInitialized) - { - SetLinuxandWindowsSupportedRuntimes - - # New-AzFunction app ArgumentCompleter for the RuntimeVersion parameter - # The values of RuntimeVersion depend on the selection of the Runtime parameter - $GetRuntimeVersionCompleter = { - - param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters) - - if ($fakeBoundParameters.ContainsKey('Runtime')) - { - # RuntimeVersions is defined in SetLinuxandWindowsSupportedRuntimes - $AllRuntimeVersions[$fakeBoundParameters.Runtime] | Where-Object { - $_ -like "$wordToComplete*" - } | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) } - } - } - - # New-AzFunction app ArgumentCompleter for the Runtime parameter - $GetAllRuntimesCompleter = { - - param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters) - - $runtimeValues = $AllRuntimeVersions.Keys | Sort-Object | ForEach-Object { $_ } - - $runtimeValues | Where-Object { $_ -like "$wordToComplete*" } - } - - # New-AzFunction app ArgumentCompleter for the Runtime parameter - $GetAllFunctionsVersionsCompleter = { - - param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters) - - $functionsVersions = $AllFunctionsExtensionVersions | Sort-Object | ForEach-Object { $_ } - - $functionsVersions | Where-Object { $_ -like "$wordToComplete*" } - } - - # Register tab completers - Register-ArgumentCompleter -CommandName New-AzFunctionApp -ParameterName FunctionsVersion -ScriptBlock $GetAllFunctionsVersionsCompleter - Register-ArgumentCompleter -CommandName New-AzFunctionApp -ParameterName Runtime -ScriptBlock $GetAllRuntimesCompleter - Register-ArgumentCompleter -CommandName New-AzFunctionApp -ParameterName RuntimeVersion -ScriptBlock $GetRuntimeVersionCompleter - - $global:StacksAndTabCompletersInitialized = $true - } -} - -function ValidateCpuAndMemory -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$false)] - [Double] - $ResourceCpu, - - [Parameter(Mandatory=$false)] - [System.String] - $ResourceMemory - ) - - if (-not $ResourceCpu -and -not $ResourceMemory) - { - return - } - - if ($ResourceCpu -and -not $ResourceMemory) - { - $errorMessage = "ResourceMemory must be specified when ResourceCpu is specified." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "ResourceMemoryNotSpecified" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - if ($ResourceMemory -and -not $ResourceCpu) - { - $errorMessage = "ResourceCpu must be specified when ResourceMemory is specified." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "ResourceCpuNotSpecified" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - try - { - if (-not $ResourceMemory.ToLower().EndsWith("gi")) - { - throw - } - - # Attempt to parse the numerical part of ResourceMemory to ensure it's a valid format. - [double]::Parse($ResourceMemory.Substring(0, $ResourceMemory.Length - 2)) | Out-Null - } - catch - { - $errorMessage = "ResourceMemory must be specified in Gi. Please provide a correct value. e.g., 4.0Gi." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "InvalidResourceMemory" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } -} - -function FormatFxVersion -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [System.String] - $Image - ) - - $fxVersion = $Image - - # Normalize case and remove HTTP(s) prefixes if present. - $normalizedImage = $Image -replace '^(https?://)', '' -replace ' ', '' - - # Prepend "DOCKER|" if not already prefixed with "docker|" (case-insensitive). - if (-not $normalizedImage.StartsWith('docker|', [StringComparison]::OrdinalIgnoreCase)) - { - $fxVersion = "DOCKER|$Image" - } - - return $fxVersion -} - -function GetManagedEnvironment -{ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.DoNotExportAttribute()] - param - ( - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String] - $Environment, - - [Parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()] - [String] - $ResourceGroupName - ) - - $azAppModuleName = "Az.App" - if (-not (Get-Module -ListAvailable -Name $azAppModuleName)) - { - $errorMessage = "The '$azAppModuleName' module is required when creating Function Apps ACA. Please install the module and try again." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "RequiredModuleNotAvailable" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - Import-Module -Name $azAppModuleName -Force -ErrorAction Stop - - $managedEnv = Get-AzContainerAppManagedEnv -Name $Environment ` - -ResourceGroupName $ResourceGroupName ` - -ErrorAction SilentlyContinue - - if (-not $managedEnv) - { - $errorMessage = "Failed to get the managed environment '$Environment' in resource group name '$ResourceGroupName'." - $errorMessage += " Please make sure the managed environment is valid." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToGetEnvironment" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - return $managedEnv -} - -# SIG # Begin sign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GKCaxI2U5deWwpDfIV1IUdRqxLA3JSa1zUOqJDnoVj0GtZGPSG5a/dD2jEH -# oy1ejVX+1Ux+74ZKzeCh/A/8mgiNAeLOqUJZ085ma4B37T/K3oKQCcxfAAI/GmgT -# Ata2ZU7+jp3Bar4/RmGP7fpa5lqEvcPBZ9kKYtjSfn93ix7y4gABAWNcxCdSTWBB -# 9NhRMHfywvDLLo3r5YCKfb1l4YLieEnle97FYzVqdjml3lUiyVwZEBpnjvJt0h1b -# aR9YEKGjoP+MWskZM0FLozcyOGeBL0c910YaSDLFwOOewM0Jf3p+jqouc0glW3xc -# tClGf0cUyHcnpRzMO2UeQjA/SLGQPmO665p483yGLH8w/zbqHJHyAWtB -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/New-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/New-AzFunctionApp.ps1 deleted file mode 100644 index 4cc2e2158670..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/New-AzFunctionApp.ps1 +++ /dev/null @@ -1,888 +0,0 @@ - -function New-AzFunctionApp { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Creates a function app.')] - [CmdletBinding(SupportsShouldProcess=$true, DefaultParametersetname="Consumption")] - param( - [Parameter(ParameterSetName="Consumption", HelpMessage='The Azure subscription ID.')] - [Parameter(ParameterSetName="ByAppServicePlan")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String] - ${SubscriptionId}, - - [Parameter(Mandatory=$true, ParameterSetName="Consumption", HelpMessage='The name of the resource group.')] - [Parameter(Mandatory=$true, ParameterSetName="ByAppServicePlan")] - [Parameter(Mandatory=$true, ParameterSetName="CustomDockerImage")] - [Parameter(Mandatory=$true, ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(Mandatory=$true, ParameterSetName="Consumption", HelpMessage='The name of the function app.')] - [Parameter(Mandatory=$true, ParameterSetName="ByAppServicePlan")] - [Parameter(Mandatory=$true, ParameterSetName="CustomDockerImage")] - [Parameter(Mandatory=$true, ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(Mandatory=$true, ParameterSetName="Consumption", HelpMessage='The name of the storage account.')] - [Parameter(Mandatory=$true, ParameterSetName="ByAppServicePlan")] - [Parameter(Mandatory=$true, ParameterSetName="CustomDockerImage")] - [Parameter(Mandatory=$true, ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [System.String] - ${StorageAccountName}, - - [Parameter(ParameterSetName="Consumption", HelpMessage='Name of the existing App Insights project to be added to the function app.')] - [Parameter(ParameterSetName="ByAppServicePlan")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [System.String] - [Alias("AppInsightsName")] - ${ApplicationInsightsName}, - - [Parameter(ParameterSetName="Consumption", HelpMessage='Instrumentation key of App Insights to be added.')] - [Parameter(ParameterSetName="ByAppServicePlan")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [System.String] - [System.String] - [Alias("AppInsightsKey")] - ${ApplicationInsightsKey}, - - [Parameter(Mandatory=$true, ParameterSetName="Consumption", HelpMessage='The location for the consumption plan.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Location}, - - [Parameter(Mandatory=$true, ParameterSetName="ByAppServicePlan", HelpMessage='The name of the service plan.')] - [Parameter(Mandatory=$true, ParameterSetName="CustomDockerImage")] - [ValidateNotNullOrEmpty()] - [System.String] - ${PlanName}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='The OS to host the function app.')] - [Parameter(ParameterSetName="Consumption")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType])] - [ValidateSet("Linux", "Windows")] - [ValidateNotNullOrEmpty()] - [System.String] - # OS type (Linux or Windows) - ${OSType}, - - [Parameter(Mandatory=$true, ParameterSetName="ByAppServicePlan", HelpMessage='The function runtime.')] - [Parameter(Mandatory=$true, ParameterSetName="Consumption")] - [ValidateNotNullOrEmpty()] - [System.String] - # Runtime types are defined in HelperFunctions.ps1 - ${Runtime}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='The function runtime.')] - [Parameter(ParameterSetName="Consumption")] - [ValidateNotNullOrEmpty()] - [System.String] - # RuntimeVersion types are defined in HelperFunctions.ps1 - ${RuntimeVersion}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='The Functions version.')] - [Parameter(ParameterSetName="Consumption")] - [ValidateNotNullOrEmpty()] - [System.String] - # FunctionsVersion types are defined in HelperFunctions.ps1 - ${FunctionsVersion}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='Disable creating application insights resource during the function app creation. No logs will be available.')] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [System.Management.Automation.SwitchParameter] - [Alias("DisableAppInsights")] - ${DisableApplicationInsights}, - - [Parameter(Mandatory=$true, ParameterSetName="CustomDockerImage", HelpMessage='Container image name, e.g., publisher/image-name:tag.')] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [System.String] - [Alias("DockerImageName")] - ${Image}, - - [Parameter(ParameterSetName="CustomDockerImage", HelpMessage='The container registry username and password. Required for private registries.')] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [PSCredential] - [Alias("DockerRegistryCredential")] - ${RegistryCredential}, - - [Parameter(HelpMessage='Returns true when the command succeeds.')] - [System.Management.Automation.SwitchParameter] - ${PassThru}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='Starts the operation and returns immediately, before the operation is completed. In order to determine if the operation has successfully been completed, use some other mechanism.')] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${NoWait}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='Runs the cmdlet as a background job.')] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${AsJob}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='Resource tags.')] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - [ValidateNotNull()] - ${Tag}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage='Function app settings.')] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNullOrEmpty()] - [Hashtable] - ${AppSetting}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage="Specifies the type of identity used for the function app. - The acceptable values for this parameter are: - - SystemAssigned - - UserAssigned - ")] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionAppManagedServiceIdentityCreateType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] - ${IdentityType}, - - [Parameter(ParameterSetName="ByAppServicePlan", HelpMessage="Specifies the list of user identities associated with the function app. - The user identity references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}'")] - [Parameter(ParameterSetName="Consumption")] - [Parameter(ParameterSetName="CustomDockerImage")] - [Parameter(ParameterSetName="EnvironmentForContainerApp")] - [ValidateNotNull()] - [System.String[]] - ${IdentityID}, - - [Parameter(Mandatory=$true, ParameterSetName="EnvironmentForContainerApp", HelpMessage='Name of the container app environment.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Environment}, - - [Parameter(Mandatory=$false, ParameterSetName="EnvironmentForContainerApp", HelpMessage='The workload profile name to run the container app on.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${WorkloadProfileName}, - - [Parameter(Mandatory=$false, ParameterSetName="EnvironmentForContainerApp", HelpMessage='The CPU in cores of the container app. e.g., 0.75.')] - [ValidateNotNullOrEmpty()] - [Double] - ${ResourceCpu}, - - [Parameter(Mandatory=$false, ParameterSetName="EnvironmentForContainerApp", HelpMessage='The memory size of the container app. e.g., 1.0Gi.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceMemory}, - - [Parameter(Mandatory=$false, ParameterSetName="EnvironmentForContainerApp", HelpMessage='The maximum number of replicas when creating a function app on container app.')] - [ValidateScript({$_ -gt 0})] - [Int] - ${ScaleMaxReplica}, - - [Parameter(Mandatory=$false, ParameterSetName="EnvironmentForContainerApp", HelpMessage='The minimum number of replicas when create function app on container app.')] - [ValidateScript({$_ -gt 0})] - [Int] - ${ScaleMinReplica}, - - [Parameter(Mandatory=$false, ParameterSetName="EnvironmentForContainerApp", HelpMessage='The container registry server hostname, e.g. myregistry.azurecr.io.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${RegistryServer}, - - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets. - $paramsToRemove = @( - "StorageAccountName", - "ApplicationInsightsName", - "ApplicationInsightsKey", - "Location", - "PlanName", - "OSType", - "Runtime", - "DisableApplicationInsights", - "Image", - "RegistryCredential", - "FunctionsVersion", - "RuntimeVersion", - "AppSetting", - "IdentityType", - "IdentityID", - "Tag", - "Environment", - "RegistryServer", - "WorkloadProfileName", - "ResourceCpu", - "ResourceMemory", - "ScaleMaxReplica", - "ScaleMinReplica" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - $functionAppIsCustomDockerImage = $PsCmdlet.ParameterSetName -eq "CustomDockerImage" - $environmentForContainerApp = $PsCmdlet.ParameterSetName -eq "EnvironmentForContainerApp" - - $appSettings = New-Object -TypeName System.Collections.Generic.List[System.Object] - $siteConfig = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfig - $functionAppDef = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Site - - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - - $runtimeJsonDefinition = $null - ValidateFunctionName -Name $Name @params - - if (-not ($functionAppIsCustomDockerImage -or $environmentForContainerApp)) - { - if (-not $FunctionsVersion) - { - $FunctionsVersion = $DefaultFunctionsVersion - Write-Warning "FunctionsVersion not specified. Setting default value to '$FunctionsVersion'. $SetDefaultValueParameterWarningMessage" - } - - ValidateFunctionsVersion -FunctionsVersion $FunctionsVersion - - if (-not $OSType) - { - $OSType = GetDefaultOSType -Runtime $Runtime - Write-Warning "OSType not specified. Setting default value to '$OSType'. $SetDefaultValueParameterWarningMessage" - } - - $runtimeJsonDefinition = GetStackDefinitionForRuntime -FunctionsVersion $FunctionsVersion -Runtime $Runtime -RuntimeVersion $RuntimeVersion -OSType $OSType - - if (-not $runtimeJsonDefinition) - { - $errorId = "FailedToGetRuntimeDefinition" - $message += "Failed to get runtime definition for '$Runtime' version '$RuntimeVersion' in Functions version '$FunctionsVersion' on '$OSType'." - $exception = [System.InvalidOperationException]::New($message) - ThrowTerminatingError -ErrorId $errorId ` - -ErrorMessage $message ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - - } - - # Add app settings - if ($runtimeJsonDefinition.AppSettingsDictionary.Count -gt 0) - { - foreach ($keyName in $runtimeJsonDefinition.AppSettingsDictionary.Keys) - { - $value = $runtimeJsonDefinition.AppSettingsDictionary[$keyName] - $appSettings.Add((NewAppSetting -Name $keyName -Value $value)) - } - } - - # Add site config properties - if ($runtimeJsonDefinition.SiteConfigPropertiesDictionary.Count -gt 0) - { - foreach ($PropertyName in $runtimeJsonDefinition.SiteConfigPropertiesDictionary.Keys) - { - $value = $runtimeJsonDefinition.SiteConfigPropertiesDictionary[$PropertyName] - $siteConfig.$PropertyName = $value - } - } - } - - $servicePlan = $null - $consumptionPlan = $PsCmdlet.ParameterSetName -eq "Consumption" - $OSIsLinux = $OSType -eq "Linux" - $dockerRegistryServerUrl = $null - - if ($consumptionPlan) - { - ValidateConsumptionPlanLocation -Location $Location -OSIsLinux:$OSIsLinux @params - $functionAppDef.Location = $Location - } - elseif ($environmentForContainerApp) - { - $OSIsLinux = $true - - if (-not $Image) - { - Write-Warning "Image not specified. Setting default value to '$DefaultCentauriImage'." - $Image = $DefaultCentauriImage - } - if ($RegistryServer) - { - $dockerRegistryServerUrl = $RegistryServer - } - - if ($Environment -and $RegistryCredential) - { - # Error out if the user has specified both Environment and RegistryCredential and not provided RegistryServer. - if (-not $RegistryServer) - { - $errorMessage = "RegistryServer is required when Environment and RegistryCredential is specified." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "RegistryServerRequired" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - } - } - elseif ($PlanName) - { - # Host function app in Elastic Premium or app service plan - $servicePlan = GetServicePlan $PlanName @params - - if ($null -ne $servicePlan.Location) - { - $Location = $servicePlan.Location - } - - if ($null -ne $servicePlan.Reserved) - { - $OSIsLinux = $servicePlan.Reserved - } - - $functionAppDef.ServerFarmId = $servicePlan.Id - $functionAppDef.Location = $Location - } - - if ($OSIsLinux) - { - # These are the scenarios we currently support when creating a Docker container: - # 1) In Consumption, we only support images created by Functions with a predefine runtime name and version, e.g., Python 3.7 - # 2) For App Service and Premium plans, a customer can specify a customer container image - - # Linux function app - $functionAppDef.Kind = 'functionapp,linux' - $functionAppDef.Reserved = $true - - # Bring your own container is only supported on App Service, Premium plans and Container App - if ($Image) - { - $functionAppDef.Kind = 'functionapp,linux,container' - - $appSettings.Add((NewAppSetting -Name 'DOCKER_CUSTOM_IMAGE_NAME' -Value $Image.Trim().ToLower())) - $appSettings.Add((NewAppSetting -Name 'FUNCTION_APP_EDIT_MODE' -Value 'readOnly')) - $appSettings.Add((NewAppSetting -Name 'WEBSITES_ENABLE_APP_SERVICE_STORAGE' -Value 'false')) - - $siteConfig.LinuxFxVersion = FormatFxVersion -Image $Image - - # Parse the docker registry url only for the custom image parameter set (otherwise it will be a breaking change for existing customers). - # For the container app environment, the registry url must me explicitly provided. - if (-not $dockerRegistryServerUrl -and -not $environmentForContainerApp) - { - $dockerRegistryServerUrl = ParseDockerImage -DockerImageName $Image - } - - if ($dockerRegistryServerUrl) - { - $appSettings.Add((NewAppSetting -Name 'DOCKER_REGISTRY_SERVER_URL' -Value $dockerRegistryServerUrl)) - - if ($RegistryCredential) - { - $appSettings.Add((NewAppSetting -Name 'DOCKER_REGISTRY_SERVER_USERNAME' -Value $RegistryCredential.GetNetworkCredential().UserName)) - $appSettings.Add((NewAppSetting -Name 'DOCKER_REGISTRY_SERVER_PASSWORD' -Value $RegistryCredential.GetNetworkCredential().Password)) - } - } - } - else - { - $appSettings.Add((NewAppSetting -Name 'WEBSITES_ENABLE_APP_SERVICE_STORAGE' -Value 'true')) - } - } - else - { - # Windows function app - $functionAppDef.Kind = 'functionapp' - } - - if ($environmentForContainerApp) - { - $functionAppDef.Kind = 'functionapp,linux,container,azurecontainerapps' - $functionAppDef.Reserved = $null - $functionAppDef.HttpsOnly = $null - $functionAppDef.ScmSiteAlsoStopped = $null - $functionAppDef.HttpsOnly = $null - - ValidateCpuAndMemory -ResourceCpu $ResourceCpu -ResourceMemory $ResourceMemory - if ($ResourceCpu -and $ResourceMemory) - { - $functionAppDef.ResourceConfigCpu = $ResourceCpu - $functionAppDef.ResourceConfigMemory = $ResourceMemory - } - - if ($WorkloadProfileName) - { - $functionAppDef.WorkloadProfileName = $WorkloadProfileName - } - - $siteConfig.netFrameworkVersion = $null - $siteConfig.JavaVersion = $null - $siteConfig.Use32BitWorkerProcess = $null - $siteConfig.PowerShellVersion = $null - $siteConfig.Http20Enabled = $null - $siteConfig.LocalMySqlEnabled = $null - - if ($ScaleMinReplica) - { - $siteConfig.MinimumElasticInstanceCount = $ScaleMinReplica - } - - if ($ScaleMaxReplica) - { - $siteConfig.FunctionAppScaleLimit = $ScaleMaxReplica - } - - $managedEnvironment = GetManagedEnvironment -Environment $Environment -ResourceGroupName $ResourceGroupName - $functionAppDef.Location = $managedEnvironment.Location - $functionAppDef.ManagedEnvironmentId = $managedEnvironment.Id - } - - # Validate storage account and get connection string - $connectionString = GetConnectionString -StorageAccountName $StorageAccountName @params - $appSettings.Add((NewAppSetting -Name 'AzureWebJobsStorage' -Value $connectionString)) - $appSettings.Add((NewAppSetting -Name 'AzureWebJobsDashboard' -Value $connectionString)) - - if (-not ($functionAppIsCustomDockerImage -or $environmentForContainerApp)) - { - $appSettings.Add((NewAppSetting -Name 'FUNCTIONS_EXTENSION_VERSION' -Value "~$FunctionsVersion")) - } - - # If plan is not consumption, elastic premium or a container app environment, set always on - $planIsElasticPremium = $servicePlan.SkuTier -eq 'ElasticPremium' - if ((-not $consumptionPlan) -and (-not $planIsElasticPremium) -and (-not $Environment)) - { - $siteConfig.AlwaysOn = $true - } - - # If plan is Elastic Premium or Consumption (Windows or Linux), we need these app settings - if ($planIsElasticPremium -or $consumptionPlan) - { - $appSettings.Add((NewAppSetting -Name 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' -Value $connectionString)) - - $shareName = GetShareName -FunctionAppName $Name - $appSettings.Add((NewAppSetting -Name 'WEBSITE_CONTENTSHARE' -Value $shareName)) - } - - if (-not $DisableApplicationInsights) - { - if ($ApplicationInsightsKey) - { - $appSettings.Add((NewAppSetting -Name 'APPINSIGHTS_INSTRUMENTATIONKEY' -Value $ApplicationInsightsKey)) - } - elseif ($ApplicationInsightsName) - { - $appInsightsProject = GetApplicationInsightsProject -Name $ApplicationInsightsName @params - if (-not $appInsightsProject) - { - $errorMessage = "Failed to get application insights key for project name '$ApplicationInsightsName'. Please make sure the project exist." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "ApplicationInsightsProjectNotFound" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - $appSettings.Add((NewAppSetting -Name 'APPINSIGHTS_INSTRUMENTATIONKEY' -Value $appInsightsProject.InstrumentationKey)) - } - else - { - $newAppInsightsProject = CreateApplicationInsightsProject -ResourceGroupName $resourceGroupName ` - -ResourceName $Name ` - -Location $functionAppDef.Location ` - @params - if ($newAppInsightsProject) - { - $appSettings.Add((NewAppSetting -Name 'APPINSIGHTS_INSTRUMENTATIONKEY' -Value $newAppInsightsProject.InstrumentationKey)) - } - else - { - $warningMessage = "Unable to create the Application Insights for the function app. Creation of Application Insights will help you monitor and diagnose your function apps in the Azure Portal. `r`n" - $warningMessage += "Use the 'New-AzApplicationInsights' cmdlet or the Azure Portal to create a new Application Insights project. After that, use the 'Update-AzFunctionApp' cmdlet to update Application Insights for your function app." - Write-Warning $warningMessage - } - } - } - - if ($Tag.Count -gt 0) - { - $resourceTag = NewResourceTag -Tag $Tag - $functionAppDef.Tag = $resourceTag - } - - # Add user app settings - if ($appSetting.Count -gt 0) - { - foreach ($keyName in $appSetting.Keys) - { - $appSettings.Add((NewAppSetting -Name $keyName -Value $appSetting[$keyName])) - } - } - - # Set function app managed identity - if ($IdentityType) - { - $functionAppDef.IdentityType = $IdentityType - - if ($IdentityType -eq "UserAssigned") - { - # Set UserAssigned managed identiy - if (-not $IdentityID) - { - $errorMessage = "IdentityID is required for UserAssigned identity" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "IdentityIDIsRequiredForUserAssignedIdentity" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - - } - - $identityUserAssignedIdentity = NewIdentityUserAssignedIdentity -IdentityID $IdentityID - $functionAppDef.IdentityUserAssignedIdentity = $identityUserAssignedIdentity - } - } - - # Set app settings and site configuration - $siteConfig.AppSetting = $appSettings - $functionAppDef.Config = $siteConfig - $PSBoundParameters.Add("SiteEnvelope", $functionAppDef) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Creating function app")) - { - # Save the ErrorActionPreference - $currentErrorActionPreference = $ErrorActionPreference - $ErrorActionPreference = 'Stop' - - $exceptionThrown = $false - - try - { - Az.Functions.internal\New-AzFunctionApp @PSBoundParameters - } - catch - { - $exceptionThrown = $true - - $errorMessage = GetErrorMessage -Response $_ - - if ($errorMessage) - { - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToCreateFunctionApp" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - throw $_ - } - finally - { - # Reset the ErrorActionPreference - $ErrorActionPreference = $currentErrorActionPreference - } - - if (-not $exceptionThrown) - { - if ($consumptionPlan -and $OSIsLinux) - { - $message = "Your Linux function app '$Name', that uses a consumption plan has been successfully created but is not active until content is published using Azure Portal or the Functions Core Tools." - Write-Verbose $message -Verbose - } - } - } - } -} - -# SIG # Begin signature block -# MIIoRgYJ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pmoEELtvbvq1kdAcqhquhYqX0SCqJrvKdI7hNuLXoBQftFtzcpUkQbhg+Tdv -# 94ylW7hGn+eq8DXHRjXAL1GU7Kr/jC4TA814HJ354dkXLksyXrBplf4OOwqQQltd -# Ctv8lSgv06F6oLRZIsXGRyBssuuaV5CNFcZOxch//+eTirMo469A+/XWnaUCIstL -# kq78hdzohvt1sOaA82JDJGnJ0nwA4vBPh9y/akdyX1hvzn6vq2cKFL5U7Qm7TKCp -# yR8djwOdOQszabhRJV1VAkRpFddrFQ1k5LEDkC0V9YcGooH9uWvSpnKAj2vo6lMZ -# 6c1Knk4GVW614qfJxWWumdCq1Npl9H1k+6TzV7+PmQ3979mQpRiLPr2a -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/New-AzFunctionAppPlan.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/New-AzFunctionAppPlan.ps1 deleted file mode 100644 index 4fa721ff5392..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/New-AzFunctionAppPlan.ps1 +++ /dev/null @@ -1,442 +0,0 @@ -function New-AzFunctionAppPlan { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Creates a function app service plan.')] - [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - param( - [Parameter(Mandatory=$true, HelpMessage='Name of the App Service plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(Mandatory=$true, HelpMessage='Name of the resource group to which the resource belongs.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String] - ${SubscriptionId}, - - [Parameter(Mandatory=$true, HelpMessage='The plan sku. Valid inputs are: EP1, EP2, EP3')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuType])] - [ValidateNotNullOrEmpty()] - [System.String] - # Sku (EP1, EP2 or EP3) - ${Sku}, - - [Parameter(Mandatory=$true, HelpMessage='The worker type for the plan. Valid inputs are: Windows or Linux.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType])] - [ValidateNotNullOrEmpty()] - [System.String] - # Worker type (Linux or Windows) - ${WorkerType}, - - [Parameter(Mandatory=$true, HelpMessage='The location for the consumption plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Location}, - - [Parameter(HelpMessage='The maximum number of workers for the app service plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - [ValidateRange(1,100)] - [Alias("MaxBurst")] - ${MaximumWorkerCount}, - - [Parameter(HelpMessage='The minimum number of workers for the app service plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - [Alias("MinInstances")] - [ValidateRange(1,20)] - ${MinimumWorkerCount}, - - [Parameter(HelpMessage='Resource tags.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - [ValidateNotNull()] - ${Tag}, - - [Parameter(HelpMessage='Run the command asynchronously.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${NoWait}, - - [Parameter(HelpMessage='Run the command as a job.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${AsJob}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets. - foreach ($paramName in @("Sku", "WorkerType", "MaximumWorkerCount", "MinimumWorkerCount", "Location", "Tag")) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - $Sku = NormalizeSku -Sku $Sku - $tier = GetSkuName -Sku $Sku - - if (($MaximumWorkerCount -gt 0) -and ($tier -ne "ElasticPremium")) - { - $errorMessage = "MaximumWorkerCount is only supported for Elastic Premium (EP) plans." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "MaximumWorkerCountIsOnlySupportedForElasticPremiumPlan" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - if ($MaximumWorkerCount -lt $MinimumWorkerCount) - { - $errorMessage = "MinimumWorkerCount '$($MinimumWorkerCount)' cannot be less than '$($MaximumWorkerCount)'." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "MaximumWorkerCountIsOnlySupportedForElasticPremiumPlan" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - # Validate location for a Premium plan - $OSIsLinux = $WorkerType -eq "Linux" - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - ValidatePremiumPlanLocation -Location $Location -OSIsLinux:$OSIsLinux @params - - $servicePlan = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlan - - # Plan settings - $servicePlan.SkuTier = $tier - $servicePlan.SkuName = $Sku - $servicePlan.Location = $Location - $servicePlan.Reserved = ($WorkerType -eq "Linux") - - if ($Tag.Count -gt 0) - { - $resourceTag = NewResourceTag -Tag $Tag - $servicePlan.Tag = $resourceTag - } - - if ($MinimumWorkerCount -gt 0) - { - $servicePlan.Capacity = $MinimumWorkerCount - } - - if ($MaximumWorkerCount -gt 0) - { - $servicePlan.MaximumElasticWorkerCount = $MaximumWorkerCount - } - - # Add the service plan definition - $PSBoundParameters.Add("AppServicePlan", $servicePlan) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Creating function app plan")) - { - # Save the ErrorActionPreference - $currentErrorActionPreference = $ErrorActionPreference - $ErrorActionPreference = 'Stop' - - try - { - Az.Functions.internal\New-AzFunctionAppPlan @PSBoundParameters - } - catch - { - $errorMessage = GetErrorMessage -Response $_ - if ($errorMessage) - { - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToCreateFunctionAppPlan" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - throw $_ - } - finally - { - # Reset the ErrorActionPreference - $ErrorActionPreference = $currentErrorActionPreference - } - } - } -} - -# SIG # Begin signature block -# MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBQprQljMVVDnrR -# NNzT/Aejb0rcSLA84oU1be0VS0QUmKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUm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QgQ29ycG9yYXRpb24xJjAkBgNVBAMTHU1p -# Y3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAAB91ggdQTK+8L0AAEAAAH3 -# MCIEINMNhHNRkvrylXUcZSz7su05uE4QHFSi+/6mPpJEEVX4MA0GCSqGSIb3DQEB -# CwUABIICAFUAblq6uviTCQVnfNtviRm17cVcMNrAaJggpUznDdHO1G8tKCCMxf/4 -# YZFtvD/gbo9jsVTdmDaCpFA8k54adcjco2U4wYlCRDtm0bPR4gcW6YAPa2i7xnCN -# sFlihqcbBRwUh2wqao7hO6YMWW8qYfnLdgcEbfaGp3yft31HgHHbNMRqWCGvHJiQ -# qo1Dwv+DRkfxnx8hVJNhYkFM6Y0L9BX7IFq9lsIwYnaZD89XUoZ/5oGR4owmYlzP -# N16NdY+kXXW6MFdfhMQhWUBDshERMoL4D+IO4JmyNfbuXCA2ZR2QExmWo40FFBrY -# dFjJ1/VKc44ooTbuaRK4VIGSwjclQj8IAiNRh3CAmD4cnB3hyAt49db8uUgvLOJ8 -# t+yF4Ag1YKBowPyMtRSqfhZd73mEZsdcoV/OectF5XGcYVfxR/UWIt/WyT1rkbZM -# LOufLqa1qSib9kGPeb1ChWncuT46JO9VRs50pyEHZ9bPw0bttblmHareQULNct/X -# RqRpn9fcc6exazTelxlPPhv+Aa49pYjXoNTdy0uHCJBUViVR43sJiSrINWcB/YS9 -# bkBgl/FWooMaeaxXix5HfsIbnWzT1GC1fdqKVjuAGbQcMknfSeNA2oewiiYnHYCi -# ft9VXYWOL/VjEpgcEZzt+6+JmSgdrsRwou+Nq506h1MP6Et8rsCi -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionApp.ps1 deleted file mode 100644 index 42d1be143dd0..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionApp.ps1 +++ /dev/null @@ -1,340 +0,0 @@ -function Remove-AzFunctionApp { - [OutputType([System.Boolean])] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Deletes a function app.')] - param( - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='The name of function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - [ValidateNotNullOrEmpty()] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(HelpMessage='Returns true when the command succeeds.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${PassThru}, - - [Parameter(HelpMessage='Forces the cmdlet to remove the function app without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - process { - - RegisterFunctionsTabCompleters - - # The input object is an ISite. This needs to be transformed into a FunctionsIdentity - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $functionsIdentity = CreateFunctionsIdentity -InputObject $InputObject - $PSBoundParameters.Add("InputObject", $functionsIdentity) | Out-Null - - # Set the name variable for the ShouldProcess and ShouldContinue calls - $Name = $InputObject.Name - } - - # Set the option to not delete an empty App Service plan - $PSBoundParameters.Add("DeleteEmptyServerFarm", $false) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Deleting function app")) - { - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Delete function app '$Name'? This operation cannot be undone. Are you sure?", "Deleting function app")) - { - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - if ($PSBoundParameters.ContainsKey("Force")) - { - $PSBoundParameters.Remove("Force") | Out-Null - } - - Az.Functions.internal\Remove-AzFunctionApp @PSBoundParameters - } - } - } -} - -# SIG # Begin signature block -# MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAbX5TTAugETLqa -# zEArYTu7O4xvqPlmTXWJcvdFTi99TaCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV -# LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY -# oUhLVE+UzRihV8ooxoftsmKLb2xb7BoFS6UAo3Zz4afnOdqI7FGoi7g4vx/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8siXkcv+FJ -# wvpW6ENjHy2/PJNVcX3G1fCC+iMAs252fDdLMdIg8GEOE8uzEDGX4hRYFhEzVnIp -# kxOx/ofi3QEH7MRp5zFz+/ZvzC7L8ofNbnLNPBmVXJvQbaseNkjfoLeAyxEDWSfJ -# pCJrUh0tWHH4kOnaQNExSJrfDyiOi1Rgeu7cKdmwvwDKFoBD19DUurGyGO3v5532 -# PxXfUbcMMDzJ0h+bhzKdTB+mjXCEfdIJ0t6lZ2KUmusSzrMi1Lgdldvcrewr4a5B -# hQu+Q4lVypWh63kyfW/bXo35VVLfl4rf8BK7czDpqOhSuDujV+FzHZpP3vRHZ1sI -# rKDWxb1vHi4Lt0s7g/VpYEJksQtfo3bYpVV0+/+Y4KgKHfN3gvmPP4qtFAiNA9YD -# R09OmfPqynp7uNbGcWwoe5WC5hab9qaNnz/iY7SXMyhgp+84fR6jxGKQja1inIXj -# IIAZmKSc89G2F6qxtv0xw35GOoWM27lJipB737Pidvqvn6+5e/9ScdKYuF+OY13k -# 55JmDNzq -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionAppPlan.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionAppPlan.ps1 deleted file mode 100644 index 43a4fe4d63de..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionAppPlan.ps1 +++ /dev/null @@ -1,336 +0,0 @@ -function Remove-AzFunctionAppPlan { - [OutputType([System.Boolean])] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Deletes a function app plan.')] - param( - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='The name of function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - [ValidateNotNullOrEmpty()] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(HelpMessage='Returns true when the command succeeds.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${PassThru}, - - [Parameter(HelpMessage='Forces the cmdlet to remove the function app plan without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [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')] - [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)] - [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} - ) - - process { - - RegisterFunctionsTabCompleters - - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $functionsIdentity = CreateFunctionsIdentity -InputObject $InputObject - $PSBoundParameters.Add("InputObject", $functionsIdentity) | Out-Null - - # Set the name variable for the ShouldProcess and ShouldContinue calls - $Name = $InputObject.Name - } - - if ($PsCmdlet.ShouldProcess($Name, "Deleting function app plan")) - { - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Delete function app plan '$Name'? This operation cannot be undone. Are you sure?", "Deleting function app plan")) - { - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - if ($PSBoundParameters.ContainsKey("Force")) - { - $PSBoundParameters.Remove("Force") | Out-Null - } - - Az.Functions.internal\Remove-AzFunctionAppPlan @PSBoundParameters - } - } - } -} - -# SIG # Begin signature block -# MIIoRgYJKoZIhvcNAQcCoIIoNzCCKDMCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDlmP7U+CnsqG3N -# +viyid5z1UD9Q00f9kwH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EB6SfINCcE+t4WLWmmb74ysqXs6LVyvw47xsPvDEqHsg -# SxSzGT9nykKtFJ0tl/OBGnqUg+ryv7NpvgkpTN0veziK6Sb7ZSxVy8IpumFeYVvH -# 7NKAPgyvclkOeGZm5IIdF/RHXahod223uvnYd/8+3aORV/lzYE7D7toT -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionAppSetting.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionAppSetting.ps1 deleted file mode 100644 index fca9827205d8..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Remove-AzFunctionAppSetting.ps1 +++ /dev/null @@ -1,387 +0,0 @@ -function Remove-AzFunctionAppSetting { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Removes app settings from a function app.')] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - param( - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='Name of the function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='Name of the resource group to which the resource belongs.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(Mandatory=$true, HelpMessage='List of function app settings to be removed from the function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [ValidateNotNullOrEmpty()] - [String[]] - ${AppSettingName}, - - [Parameter(HelpMessage='Forces the cmdlet to remove function app setting without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [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} - ) - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - $paramsToRemove = @( - "AppSettingName" - "Force" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $Name = $InputObject.Name - $ResourceGroupName = $InputObject.ResourceGroupName - - $PSBoundParameters.Add("Name", $Name) | Out-Null - $PSBoundParameters.Add("ResourceGroupName", $ResourceGroupName) | Out-Null - $PSBoundParameters.Add("SubscriptionId", $InputObject.SubscriptionId) | Out-Null - } - - if ($AppSettingName.Count -eq 0) - { - return - } - - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - $currentAppSettings = $null - $settings = $null - $settings = Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $Name -ResourceGroupName $ResourceGroupName @params - if ($null -ne $settings) - { - $currentAppSettings = ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $settings -ShowAllAppSettings - } - - foreach ($name in $AppSettingName) - { - if (-not $currentAppSettings.ContainsKey($name)) - { - Write-Warning "App setting name '$name' does not exist. Skipping..." - } - else - { - $currentAppSettings.Remove($name) - } - } - - $newAppSettings = NewAppSettingObject -CurrentAppSetting $currentAppSettings - $shouldPromptForConfirmation = ContainsReservedFunctionAppSettingName -AppSettingName $AppSettingName - - $PSBoundParameters.Add("AppSetting", $newAppSettings) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Deleting function app setting")) - { - if ($shouldPromptForConfirmation) - { - $message = "You are about to delete app settings that are used to configure your function app '$Name'. " - $message += "Doing this could leave your function app in an inconsistent state. Are you sure?" - - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue($message, "Removing function app configuration settings")) - { - Az.Functions.internal\Set-AzWebAppApplicationSetting @PSBoundParameters | Out-Null - } - } - else - { - Az.Functions.internal\Set-AzWebAppApplicationSetting @PSBoundParameters | Out-Null - } - } - } -} - -# SIG # Begin signature block -# MIIoOwYJKoZIhvcNAQcCoIIoLDCCKCgCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDOjuE3Rj8ClWOR -# 7Yeat5Fa9Saku1neniCB+eqiy2U0IqCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV -# LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY -# oUhLVE+UzRihV8ooxoftsmKLb2xb7BoFS6UAo3Zz4afnOdqI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jwYp -# Zc/A+tUK/FmH8TX7cya1EK6+4b5wrvPeE9HysVQpYelinzmWBvsMSCRrRYc89uDF -# zw34RSPl8s77s0c02hgRRZHnDOEctMYrJ5dD1ZEIF2s+GPOSfiPC3gZCdrfi0uq0 -# cT90hCUZZG63hLakU+JwyZx9L0jdu9cCz27MEJNXP3gVnm//OtYjdl8mIxy2SHhC -# 4zPddmDydZzSL0sVZWpii0Lb0top3hYXf9BMkmEYq7XyHFMpYvDsWv6HqRtdZmUi -# 3SyasVbUO1ddv5O81Sygf76qTnocFbcnj5YIriuJCDbLDuHG7nRnACwgiGym+TVV -# SYV/YabZLyzrk0zcgV56I226S7xBseEkKHXq14TAKtwUlHLACgIMlZ0MbyueOXHY -# KMcr8sAkuhCDiZWpDCe4bN4oRbdLU1lOHOGgJd/KiL4eR5seT9A3CsINKPnbGavM -# dsZ4GsuhU19K+0Z46I+op+aq5d15lFeSg/VN/3/kcQ== -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Restart-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Restart-AzFunctionApp.ps1 deleted file mode 100644 index 4223099000c7..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Restart-AzFunctionApp.ps1 +++ /dev/null @@ -1,337 +0,0 @@ -function Restart-AzFunctionApp { - [OutputType([System.Boolean])] - [CmdletBinding(DefaultParameterSetName='RestartByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Restarts a function app.')] - param( - [Parameter(ParameterSetName='RestartByName', Mandatory=$true, HelpMessage='The name of function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Name}, - - [Parameter(ParameterSetName='RestartByName', Mandatory=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='RestartByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - [ValidateNotNullOrEmpty()] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(HelpMessage='Returns true when the command succeeds.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${PassThru}, - - [Parameter(HelpMessage='Forces the cmdlet to restart the function app without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - # The input object is an ISite. This needs to be transformed into a FunctionsIdentity - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $functionsIdentity = CreateFunctionsIdentity -InputObject $InputObject - $PSBoundParameters.Add("InputObject", $functionsIdentity) | Out-Null - - # Set the name of the function app for the ShouldProcess and ShouldContinue calls - $Name = $InputObject.Name - } - - if ($PsCmdlet.ShouldProcess($Name, "Restarting function app")) - { - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Restart function app '$Name'?", "Restarting function app")) - { - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - if ($PSBoundParameters.ContainsKey("Force")) - { - $PSBoundParameters.Remove("Force") | Out-Null - } - - Az.Functions.internal\Restart-AzFunctionApp @PSBoundParameters - } - } - } -} - -# SIG # Begin signature block -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDvTX/yrqveCY2f -# bNAaEIECO0cZHInU/oowmreihCwD4KCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0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wn9Ou7YsYr5VhwkEn2QAthHlzUg -# izd6w9d7cb47OR7tThlOZ4Q= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Start-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Start-AzFunctionApp.ps1 deleted file mode 100644 index 0d8b14532304..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Start-AzFunctionApp.ps1 +++ /dev/null @@ -1,324 +0,0 @@ -function Start-AzFunctionApp { - [OutputType([System.Boolean])] - [CmdletBinding(DefaultParameterSetName='StartByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Starts a function app.')] - param( - [Parameter(ParameterSetName='StartByName', Mandatory=$true, HelpMessage='The name of function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Name}, - - [Parameter(ParameterSetName='StartByName', Mandatory=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='StartByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - [ValidateNotNullOrEmpty()] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(HelpMessage='Returns true when the command succeeds.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${PassThru}, - - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - # The input object is an ISite. This needs to be transformed into a FunctionsIdentity. - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $functionsIdentity = CreateFunctionsIdentity -InputObject $InputObject - $PSBoundParameters.Add("InputObject", $functionsIdentity) | Out-Null - - # Set the name of the function app for the ShouldProcess call. - $Name = $InputObject.Name - } - - if ($PsCmdlet.ShouldProcess($Name, "Starting function app")) - { - Az.Functions.internal\Start-AzFunctionApp @PSBoundParameters - } - } -} - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD7nGnI/UMlVtyC -# 99kumhIQhN6C0FwZdtTa5xjVSTvOr6CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aRO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e1j96Mog0nh9wN1xTKdGce5E -# HyFitCyu6byZHkzsEo6te5GUerC4JVaj/WHly5HiCDtKUFlNLUEfo3WnCs2a1tFs -# ZPxUJtMfYNsj3X7auTp2QfL0cOQKoFg7VJQkMys8zOJ4dxTveO3ezZgkJrL+l6J9 -# MBOuuHKKMxjB7grJmKZCzwX9dFzQgx/5oabFzSM2ixz/YMBOwE8/OnNhnECUw5Fk -# O3qwDuMItssgm/a0g9VKAdu1TyIx1brnnkuTbXEArlSYCjOqVkdXNKSyQTNzM2VO -# IRev7TAI4gAt8zvZehRV6ve99bsiWLi9y7b/kdTa/Ke+EPjCuSQUljpRaMBKsZs5 -# UKNs76zCv7vWc1aamKbxuQzEfmAcjXczU5G8aa+j/doRjU0g2aaaG7EIsvGzDY/6 -# CyXs/lZqABhczlYIkDY= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Stop-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Stop-AzFunctionApp.ps1 deleted file mode 100644 index a9d47272157d..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Stop-AzFunctionApp.ps1 +++ /dev/null @@ -1,337 +0,0 @@ -function Stop-AzFunctionApp { - [OutputType([System.Boolean])] - [CmdletBinding(DefaultParameterSetName='StopByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Stops a function app.')] - param( - [Parameter(ParameterSetName='StopByName', Mandatory=$true, HelpMessage='The name of function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${Name}, - - [Parameter(ParameterSetName='StopByName', Mandatory=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - [ValidateNotNullOrEmpty()] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='StopByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - [ValidateNotNullOrEmpty()] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNullOrEmpty()] - ${InputObject}, - - [Parameter(HelpMessage='Returns true when the command succeeds.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${PassThru}, - - [Parameter(HelpMessage='Forces the cmdlet to stop the function app without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - # The input object is an ISite. This needs to be transformed into a FunctionsIdentity. - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $functionsIdentity = CreateFunctionsIdentity -InputObject $InputObject - $PSBoundParameters.Add("InputObject", $functionsIdentity) | Out-Null - - # Set the name of the function app for the ShouldProcess and ShouldContinue calls. - $Name = $InputObject.Name - } - - if ($PsCmdlet.ShouldProcess($Name, "Stopping function app")) - { - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Stop function app '$Name'?", "Stopping function app")) - { - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets. - if ($PSBoundParameters.ContainsKey("Force")) - { - $PSBoundParameters.Remove("Force") | Out-Null - } - - Az.Functions.internal\Stop-AzFunctionApp @PSBoundParameters - } - } - } -} - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCplQQwwtyuWRaM -# p1Etye5gU238WMxizmxMbku665CQ3KCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXY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eQwgb0EICcJ5vVqfTfIhx21QBBbKyo/xciQ -# IXaoMWULejAE1QqDMIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldh -# c2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBD -# b3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIw -# MTACEzMAAAHs4CukgtCRUoAAAQAAAewwIgQgnJ2RIDHfm/1iC7okcNVUdgSDqfax -# zykqLmzdwjBiKIwwDQYJKoZIhvcNAQELBQAEggIAJZn6kvDcFI1m6+ApFIqZZkPD -# xGjpOwdEnRgLA2uBFLpgFMOPWtjSUu47K+0A9C2DW6mRXLPn5LujhEGkW2S5CIbe -# UC/1u2JlGUCdM7AR79wJlZiURz0xyIU/TC+D66terb097MwazfzAefBXatUMa/AU -# K32cpHNvaIDSWKoGRfq23ckPdlkI0WBLdaiCZCw6HatDh5Vxun4kq7QtRqGVNlna -# aUxFnUXPXvk0oOhbeYOUXrUAdRZyNQ0GXh+tOBT6tPZf9e5eZnYF3frt/X/JI9Jg -# zEXC5FbmO/eSK/zkGAabSPUi6Q/0EyZ1G5Lm7rqSNJjpRBugBj/twuCKEGAuQJOi -# HgciwR4O/7NxsYekfNCWteQVqTO7eojFqAIFNZ4jf2TB8EjZ6nXzBqyoe4h8ZyG3 -# 0bknAmZyRb+inXv2TX3SkdgzLRCfm9enNAW7uwGTAJBZVJHPFK48KevUTg5bI6e0 -# /QoqcZ0JhZilJQGl0xwKStfaMNAI7167g5vogAycODwee+Odu91ZGN6xoDFpeZqL -# WAP4YZeTgmzy/KwE798OLArQwlokzjI0k+++9ZEqSROkWReW2znpUF1q8Jvm7aW1 -# G+yjB80JfEHDtfRt+2MV9UweUD1e7C4q55CFdA2nIBFMdC0m4iVmWYIVxUc9mfDq -# Lq/tK8HRj0RtKRBxWfA= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionApp.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionApp.ps1 deleted file mode 100644 index 4ce0c14f81a8..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionApp.ps1 +++ /dev/null @@ -1,585 +0,0 @@ - -function Update-AzFunctionApp { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Updates a function app.')] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - param( - [Parameter(ParameterSetName="ByName", HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String] - ${SubscriptionId}, - - [Parameter(Mandatory=$true, ParameterSetName='ByName', HelpMessage='The name of the resource group.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(Mandatory=$true, ParameterSetName="ByName", HelpMessage='The name of the function app.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(HelpMessage='The name of the service plan.')] - [ValidateNotNullOrEmpty()] - [System.String] - ${PlanName}, - - [Parameter(HelpMessage='Forces the cmdlet to update the function app without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter(HelpMessage='Name of the existing App Insights project to be added to the function app.')] - [ValidateNotNullOrEmpty()] - [System.String] - [Alias("AppInsightsName")] - ${ApplicationInsightsName}, - - [Parameter(HelpMessage='Instrumentation key of App Insights to be added.')] - [ValidateNotNullOrEmpty()] - [System.String] - [System.String] - [Alias("AppInsightsKey")] - ${ApplicationInsightsKey}, - - [Parameter(HelpMessage='Resource tags.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - [ValidateNotNull()] - ${Tag}, - - [Parameter(HelpMessage="Specifies the type of identity used for the function app. - The type 'None' will remove any identities from the function app. The acceptable values for this parameter are: - - SystemAssigned - - UserAssigned - - None - ")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionAppManagedServiceIdentityUpdateType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] - ${IdentityType}, - - [Parameter(HelpMessage="Specifies the list of user identities associated with the function app. - The user identity references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}'")] - [ValidateNotNullOrEmpty()] - [System.String[]] - ${IdentityID}, - - [Parameter(HelpMessage='Starts the operation and returns immediately, before the operation is completed. In order to determine if the operation has successfully been completed, use some other mechanism.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${NoWait}, - - [Parameter(HelpMessage='Runs the cmdlet as a background job.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${AsJob}, - - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets. - $paramsToRemove = @( - "PlanName", - "ApplicationInsightsName", - "ApplicationInsightsKey" - "IdentityType", - "IdentityID", - "Tag" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - $useParams = $false - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - - $existingFunctionApp = $null - - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $Name = $InputObject.Name - - $PSBoundParameters.Add("Name", $Name) | Out-Null - $PSBoundParameters.Add("ResourceGroupName", $InputObject.ResourceGroupName) | Out-Null - $PSBoundParameters.Add("SubscriptionId", $InputObject.SubscriptionId) | Out-Null - - $existingFunctionApp = $InputObject - } - else - { - $useParams = $true - $existingFunctionApp = GetFunctionAppByName -Name $Name -ResourceGroupName $ResourceGroupName @params - } - - $appSettings = New-Object -TypeName System.Collections.Generic.List[System.Object] - $siteCofig = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.SiteConfig - $functionAppDef = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Site - - # Identity information - if ($IdentityType) - { - $functionAppDef.IdentityType = $IdentityType - - if ($IdentityType -eq "UserAssigned") - { - # Set UserAssigned managed identity - if (-not $IdentityID) - { - $errorMessage = "IdentityID is required for UserAssigned identity" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "IdentityIDIsRequiredForUserAssignedIdentity" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - - } - - $identityUserAssignedIdentity = NewIdentityUserAssignedIdentity -IdentityID $IdentityID - $functionAppDef.IdentityUserAssignedIdentity = $identityUserAssignedIdentity - } - } - elseif ($existingFunctionApp.IdentityType) - { - if ($existingFunctionApp.IdentityType -eq "UserAssigned") - { - $functionAppDef.IdentityType = "UserAssigned" - - if ($existingFunctionApp.IdentityUserAssignedIdentity -and $existingFunctionApp.IdentityUserAssignedIdentity.Count -gt 0) - { - $identityUserAssignedIdentity = NewIdentityUserAssignedIdentity -IdentityID $existingFunctionApp.IdentityUserAssignedIdentity.Keys - $functionAppDef.IdentityUserAssignedIdentity = $identityUserAssignedIdentity - } - } - elseif ($existingFunctionApp.IdentityType -eq "SystemAssigned") - { - $functionAppDef.IdentityType = "SystemAssigned" - } - else - { - $errorMessage = "Unknown IdentityType '$($existingFunctionApp.IdentityType)'" - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "UnknownIdentityType" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - } - - # Update function app hosting plan - if ($PlanName) - { - # Validate that the new plan is exists - $newFunctionAppPlan = GetServicePlan $PlanName @params - - # Get the current plan in which the app is being hosted - $currentFunctionAppPlan = GetFunctionAppServicePlanInfo $existingFunctionApp.ServerFarmId @params - - ValidatePlanSwitchCompatibility -CurrentServicePlan $currentFunctionAppPlan -NewServicePlan $newFunctionAppPlan - - $functionAppDef.ServerFarmId = $newFunctionAppPlan.Id - $functionAppDef.Location = $newFunctionAppPlan.Location - $functionAppDef.Reserved = $newFunctionAppPlan.Reserved - } - else - { - # Copy the existing function app plan settings - $functionAppDef.ServerFarmId = $existingFunctionApp.ServerFarmId - $functionAppDef.Location = $existingFunctionApp.Location - $functionAppDef.Reserved = $existingFunctionApp.Reserved - } - - # Set Application Insights - $currentApplicationSettings = $null - $settings = if ($useParams) - { - Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $existingFunctionApp.Name -ResourceGroupName $existingFunctionApp.ResourceGroupName @params - } else { - Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $existingFunctionApp.Name -ResourceGroupName $existingFunctionApp.ResourceGroupName -SubscriptionId $existingFunctionApp.SubscriptionId - } - if ($null -ne $settings) - { - $currentApplicationSettings = ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $settings -ShowAllAppSettings - } - - if ($ApplicationInsightsKey) - { - $currentApplicationSettings['APPINSIGHTS_INSTRUMENTATIONKEY'] = $ApplicationInsightsKey - } - elseif ($ApplicationInsightsName) - { - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - $appInsightsProject = GetApplicationInsightsProject -Name $ApplicationInsightsName @params - if (-not $appInsightsProject) - { - $errorMessage = "Failed to get application insights key for project name '$ApplicationInsightsName'. Please make sure the project exist." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "ApplicationInsightsProjectNotFound" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - $currentApplicationSettings['APPINSIGHTS_INSTRUMENTATIONKEY'] = $appInsightsProject.InstrumentationKey - } - - # Set app settings - foreach ($appSettingName in $currentApplicationSettings.Keys) - { - $appSettingValue = $currentApplicationSettings[$appSettingName] - $appSettings.Add((NewAppSetting -Name $appSettingName -Value $appSettingValue)) - } - - # Set Tag - if ($Tag -and ($Tag.Count -gt 0)) - { - $resourceTag = NewResourceTag -Tag $Tag - $functionAppDef.Tag = $resourceTag - } - elseif ($existingFunctionApp.Tag.AdditionalProperties -and ($existingFunctionApp.Tag.AdditionalProperties.Count -gt 0)) - { - $functionAppDef.Tag = $existingFunctionApp.Tag - } - - # Set siteConfig properties: AlwaysOn, LinuxFxVersion, JavaVersion, PowerShellVersion - $siteCofig.AlwaysOn = $existingFunctionApp.SiteConfig.AlwaysOn - $siteCofig.LinuxFxVersion = $existingFunctionApp.SiteConfig.LinuxFxVersion - $siteCofig.JavaVersion = $existingFunctionApp.SiteConfig.JavaVersion - $siteCofig.PowerShellVersion = $existingFunctionApp.SiteConfig.PowerShellVersion - - # Set the function app Kind - $functionAppDef.Kind = $existingFunctionApp.Kind - - # Set app settings and site configuration - $siteCofig.AppSetting = $appSettings - $functionAppDef.Config = $siteCofig - $PSBoundParameters.Add("SiteEnvelope", $functionAppDef) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Updating function app")) - { - # Save the ErrorActionPreference - $currentErrorActionPreference = $ErrorActionPreference - $ErrorActionPreference = 'Stop' - - try - { - if ($PsCmdlet.ShouldProcess($Name, "Updating function app")) - { - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Update function app '$Name'?", "Updating function app")) - { - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - if ($PSBoundParameters.ContainsKey("Force")) - { - $PSBoundParameters.Remove("Force") | Out-Null - } - - Az.Functions.internal\Set-AzFunctionApp @PSBoundParameters - } - } - } - catch - { - $errorMessage = GetErrorMessage -Response $_ - - if ($errorMessage) - { - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToUdpateFunctionApp" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - throw $_ - } - finally - { - # Reset the ErrorActionPreference - $ErrorActionPreference = $currentErrorActionPreference - } - } - } -} - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB+joQ4udqc4BI7 -# 4CdnFC52vGxe/sxBTqS/Ow8BDFqjZKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEi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RJ0rnEBCBaTt/Gfq+xryH -# r8BdEqXx9P08PiGKQSgcnrl8TzMCOSZvrEch3Ek01j2ePoKv7t4NoIE98JMfYc+/ -# 4Fqixnwow3kEfyGbMptq+s3+j8xxyzqyHVRgKZ0f8eWAqBsGiTCItHOOc/pDws9m -# LnS6u9unOHi1e+BXT//BqZ9JarINg+ziQVRbm4IiQktzpGD48pO8WoszlbUtx7HO -# ZNZOppQSDy4rj06iPL8SrWKRHND9ktaVWIgC0ZBYmToJiFLI+80dMMl01LL1f5Qh -# xZ7JFKA7jwUlSChkw+vukSC9L5DlLTGnuYodTJ9NKu0mnRHRM0AklQosv7KsS3aC -# vb8Z/PsNerxbGKWhhr/h0/7vPMDTNzIH+w1jAzDlC7QC5CnGsf0FDoSgwi+ZyRDg -# JhE9UTh0Hcd3oFIyfEql4QSHrWMnRaLtIOOThhHftzyAo0e+PBpy30dsFhOzpAqq -# II/fARPN7i358CN0lMCWJ9KMeAZq/1BDcF686QLBJLU460rIMtvJQq6yUHqagv97 -# 8a5H+nDe9d8A6kFlbWvC3W2defroZqywtW/ltYNIWILNQHMN9KebUC1FUQhbZ56M -# MIyOKvLgd/SzfZx7KBEz1IGPK/RO6KIPbVvlFKcQXaG6c0rcQaHBAwKzrfsTnT7D -# icS+gK4QxlE/ISyzwJI= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionAppPlan.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionAppPlan.ps1 deleted file mode 100644 index 9a5391d93d4a..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionAppPlan.ps1 +++ /dev/null @@ -1,507 +0,0 @@ -function Update-AzFunctionAppPlan { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Updates a function app service plan.')] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - param( - [Parameter(ParameterSetName='ByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String] - ${SubscriptionId}, - - [Parameter(Mandatory=$true, ParameterSetName='ByName', HelpMessage='Name of the resource group to which the resource belongs.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(Mandatory=$true, ParameterSetName='ByName', HelpMessage='Name of the App Service plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(HelpMessage='The plan sku. Valid inputs are: EP1, EP2, EP3')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuType])] - [ValidateNotNullOrEmpty()] - [System.String] - # Sku (EP1, EP2 or EP3) - ${Sku}, - - [Parameter(HelpMessage='The maximum number of workers for the app service plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - [ValidateRange(1,100)] - [Alias("MaxBurst")] - ${MaximumWorkerCount}, - - [Parameter(HelpMessage='The minimum number of workers for the app service plan.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - [Alias("MinInstances")] - [ValidateRange(1,20)] - ${MinimumWorkerCount}, - - [Parameter(HelpMessage='Forces the cmdlet to update the function app plan without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter(HelpMessage='Resource tags.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - [ValidateNotNull()] - ${Tag}, - - [Parameter(HelpMessage='Run the command asynchronously.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${NoWait}, - - [Parameter(HelpMessage='Run the command as a job.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${AsJob}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${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} - ) - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets. - foreach ($paramName in @("Sku", "MaximumWorkerCount", "MinimumWorkerCount", "Tag")) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - $existingPlan = $null - - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - } - - $Name = $InputObject.Name - $ResourceGroupName = $InputObject.ResourceGroupName - - $PSBoundParameters.Add("Name", $Name) | Out-Null - $PSBoundParameters.Add("ResourceGroupName", $ResourceGroupName) | Out-Null - $PSBoundParameters.Add("SubscriptionId", $InputObject.SubscriptionId) | Out-Null - - $existingPlan = $InputObject - } - else - { - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - $existingPlan = Az.Functions.internal\Get-AzFunctionAppPlan -ResourceGroupName $ResourceGroupName ` - -Name $Name ` - -ErrorAction SilentlyContinue ` - @params - - if (-not $existingPlan) - { - $errorMessage = "Plan name '$Name' in resource group name '$ResourceGroupName' does not exist." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "PlanDoesNotExist" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - } - - # Make sure the plan is a 'ElasticPremium' - if ($existingPlan.SkuTier -ne "ElasticPremium") - { - $errorMessage = "Only ElasticPremium sku is suported when updating a function app plan. Current plan sku is: $($existingPlan.SkuTier)." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "InvalidPlanSku" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - if ($MaximumWorkerCount -lt $MinimumWorkerCount) - { - $errorMessage = "MinimumWorkerCount '$($MinimumWorkerCount)' cannot be less than '$($MaximumWorkerCount)'." - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "MaximumWorkerCountIsOnlySupportedForElasticPremiumPlan" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - $shouldUpdateFunctionAppPlan = $false; - $servicePlan = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlan - - # Plan settings - $servicePlan.Location = $existingPlan.Location - $servicePlan.SkuTier = $existingPlan.SkuTier - $servicePlan.SkuName = $existingPlan.SkuName - $servicePlan.Capacity = $existingPlan.Capacity - $servicePlan.Reserved = $existingPlan.Reserved - - if ($existingPlan.MaximumElasticWorkerCount) - { - $servicePlan.MaximumElasticWorkerCount = $existingPlan.MaximumElasticWorkerCount - } - - if ($Sku) - { - $Sku = NormalizeSku -Sku $Sku - $tier = GetSkuName -Sku $Sku - if ($existingPlan.SkuName -ne $SkuName) - { - $servicePlan.SkuTier = $tier - $servicePlan.SkuName = $Sku - $shouldUpdateFunctionAppPlan = $true - } - } - - if ($Tag -and ($Tag.Count -gt 0)) - { - $resourceTag = NewResourceTag -Tag $Tag - $servicePlan.Tag = $resourceTag - $shouldUpdateFunctionAppPlan = $true - } - - if ($MinimumWorkerCount -gt 0) - { - $servicePlan.Capacity = $MinimumWorkerCount - $shouldUpdateFunctionAppPlan = $true - } - - if ($MaximumWorkerCount -gt 0) - { - $servicePlan.MaximumElasticWorkerCount = $MaximumWorkerCount - $shouldUpdateFunctionAppPlan = $true - } - - # Add the service plan definition - $PSBoundParameters.Add("AppServicePlan", $servicePlan) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Updating function app plan")) - { - # Save the ErrorActionPreference - $currentErrorActionPreference = $ErrorActionPreference - $ErrorActionPreference = 'Stop' - - try - { - if (-not $shouldUpdateFunctionAppPlan) - { - # No changes for the current plan, return. - return - } - - if ($PsCmdlet.ShouldProcess($Name, "Updating function app plan")) - { - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Update function app plan '$Name'?", "Updating function app plan")) - { - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - if ($PSBoundParameters.ContainsKey("Force")) - { - $PSBoundParameters.Remove("Force") | Out-Null - } - - Az.Functions.internal\Set-AzFunctionAppPlan @PSBoundParameters - } - } - } - catch - { - $errorMessage = GetErrorMessage -Response $_ - if ($errorMessage) - { - $exception = [System.InvalidOperationException]::New($errorMessage) - ThrowTerminatingError -ErrorId "FailedToUpdateFunctionAppPlan" ` - -ErrorMessage $errorMessage ` - -ErrorCategory ([System.Management.Automation.ErrorCategory]::InvalidOperation) ` - -Exception $exception - } - - throw $_ - } - finally - { - # Reset the ErrorActionPreference - $ErrorActionPreference = $currentErrorActionPreference - } - } - } -} - -# SIG # Begin signature block -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAl+y6s0M00na4y -# DS6Ej1lLyl5+Dk94c/AmGx+5SX21bqCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQ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Eibt0a1P5EqIwEj9hF4MIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgT -# Cldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29m -# dCBDb3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENB -# IDIwMTACEzMAAAHxs0X1J+jAFtYAAQAAAfEwIgQgZv4QEc5hgS9BsS74vtux+Rzx -# z6O0XI7Iv02NK7Hl7vIwDQYJKoZIhvcNAQELBQAEggIAYwZ2uSXrs84tRlfKhMqx -# BpzC/bMrEcyUfi964sh71Fy75swULmKpmklV8std2EXydDIURy+GWs1Z7/XVbNiM -# QGB/1u+CNXt1wYchByOW+X7dRPmUFfND4PuVdXyu3NAZMWV7slepjJxnaNj2ooYN -# d2alnix83ED1PJEvpI7zdMszqNNXjSbnA1crySMkpfStAmjBVTF/YTBtrxINyAfL -# hq6SrXlxeGe8D9+MZ8c2J+9paBMwB3T4bU67ADGbAEQncyOox2eYXQj7EGNaQeRX -# mGJGHVE8SHxTCgsJMfviDpeMi6V9oo5+mzX+u+bzrpUjGTJ3fsyymBYYBYSdP8Vo -# Ls2Ub5HUZreGhE7MZhvsaYvKv23S6fwimNwm+izK7z5UM+X67yUZQAHPi02oaKku -# i2sATYp9dJU/PQA3M8DE9fXwfSJaHdnshkroxp0ACENigd2PqPkv0mJrb1YVwFrg -# OUxa8QLLN4v3k7B8cX3XCuermVLlpT5Log+rorDMOAurpTawnXNc3e5gp9MrL+R/ -# L7GyPH9tsFrFg013MVGM2N7M7MkXOAn7stJ98KQmUFB9Rp67BcIxhVhrNfKfYje/ -# QlWBtrD0Q7oi7egqzs1ZeU3qpbb4hA4M5ZQDkV1ncN1+FscFS0ZOpvjdP3mB06tj -# 0nC49vp5V/bkh6UOdzOYWiw= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionAppSetting.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionAppSetting.ps1 deleted file mode 100644 index f512c48542af..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/Update-AzFunctionAppSetting.ps1 +++ /dev/null @@ -1,391 +0,0 @@ -function Update-AzFunctionAppSetting { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Adds or updates app settings in a function app.')] - [CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')] - param( - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='Name of the function app.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory=$true, HelpMessage='Name of the resource group to which the resource belongs.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [ValidateNotNullOrEmpty()] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', HelpMessage='The Azure subscription ID.')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [ValidateNotNullOrEmpty()] - [System.String] - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory=$true, ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - [ValidateNotNull()] - ${InputObject}, - - [Parameter(Mandatory=$true, HelpMessage='Hashtable with keys and values describe the app settings to be added or updated in the function app. For example: @{"myappsetting"="123"}')] - [Hashtable] - [ValidateNotNullOrEmpty()] - ${AppSetting}, - - [Parameter(HelpMessage='Forces the cmdlet to update function app setting without prompting for confirmation.')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [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} - ) - process { - - RegisterFunctionsTabCompleters - - # Remove bound parameters from the dictionary that cannot be process by the intenal cmdlets - $paramsToRemove = @( - "AppSetting" - "Force" - ) - foreach ($paramName in $paramsToRemove) - { - if ($PSBoundParameters.ContainsKey($paramName)) - { - $PSBoundParameters.Remove($paramName) | Out-Null - } - } - - if ($PsCmdlet.ParameterSetName -eq "ByObjectInput") - { - if ($PSBoundParameters.ContainsKey("InputObject")) - { - $PSBoundParameters.Remove("InputObject") | Out-Null - - $Name = $InputObject.Name - $ResourceGroupName = $InputObject.ResourceGroupName - - $PSBoundParameters.Add("Name", $Name) | Out-Null - $PSBoundParameters.Add("ResourceGroupName", $ResourceGroupName) | Out-Null - $PSBoundParameters.Add("SubscriptionId", $InputObject.SubscriptionId) | Out-Null - } - } - - if ($AppSetting.Count -eq 0) - { - return - } - - $params = GetParameterKeyValues -PSBoundParametersDictionary $PSBoundParameters ` - -ParameterList @("SubscriptionId", "HttpPipelineAppend", "HttpPipelinePrepend") - - $currentAppSettings = $null - $settings = $null - $settings = Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $Name -ResourceGroupName $ResourceGroupName @params - if ($null -ne $settings) - { - $currentAppSettings = ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $settings -ShowAllAppSettings - } - - # Add new or replace any existing app settings - foreach ($keyName in $AppSetting.Keys) - { - $currentAppSettings[$keyName] = $AppSetting[$keyName] - } - - $newAppSettings = NewAppSettingObject -CurrentAppSetting $currentAppSettings - $shouldPromptForConfirmation = ContainsReservedFunctionAppSettingName -AppSettingName $AppSetting.Keys - - $PSBoundParameters.Add("AppSetting", $newAppSettings) | Out-Null - - if ($PsCmdlet.ShouldProcess($Name, "Updating function app setting")) - { - if ($shouldPromptForConfirmation) - { - $message = "You are about to modify app settings that are used to configure your function app '$Name'. " - $message += "Doing this could leave your function app in an inconsistent state. Are you sure?" - - if ($Force.IsPresent -or $PsCmdlet.ShouldContinue($message, "Updating function app settings")) - { - Az.Functions.internal\Set-AzWebAppApplicationSetting @PSBoundParameters | Out-Null - } - } - else - { - $null = Az.Functions.internal\Set-AzWebAppApplicationSetting @PSBoundParameters | Out-Null - } - - # The latest API version does not return the list of app settings. Make a second call to retrieve them. - $updatedSettings = Az.Functions.internal\Get-AzWebAppApplicationSetting -Name $Name -ResourceGroupName $ResourceGroupName @params - - if ($null -ne $updatedSettings) - { - ConvertWebAppApplicationSettingToHashtable -ApplicationSetting $updatedSettings ` - -AppSettingsToShow $AppSetting.Keys ` - -ShowOnlySpecificAppSettings - } - } - } -} - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCZKNI32ttjtAjl -# 9jSO+jeAc0VXrohc/IKOWRHZIlYkWKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdSn8q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O+F4LJpjQp7wx1zQ -# js/Q9i9aGS/Om4XO3Gg9kYGT9IiEsbmfnYnB7bYI/D6mknt/7Jpx4g73RiPEGyZR -# z/EsokEUr7oxMkn6DQrmbqr2fLS4jMcgbIDKdTsSwYQlyLRIgosEKywB4s4H+ExI -# PhH9t2mrJaaSiHGb4oIR56x5sj8dVgR3HY/1W6OUjz5FiOO/bWFDzoljWCnqjj7y -# zBafmxNbFt9sgz5M5cByCi+AIDMmQqGvHfccWkXQcC7gimtieNaK0+BOfARt5DPk -# lB8Qc0SxFQ7+/1hnm26FvI6Xv7G1rLIl81qoPXGigyH+xxeCdkpzfo66cxf9nJSv -# CAIN+jykDWijrifg/1LPYg0ITHUY4Bjrei10JtwwFEdMYTaUOBvr9QG6nRqdLdm0 -# MPGydTUQQTvZ7vfl8dI= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/AvailablePlanType.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/AvailablePlanType.cs deleted file mode 100644 index 89fcb576c4fa..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/AvailablePlanType.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Support -{ - /// Argument completer implementation for PlanTypeOptions. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AvailablePlanType))] - public partial struct AvailablePlanType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Consumption".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("Consumption", "Consumption", global::System.Management.Automation.CompletionResultType.ParameterValue, "Consumption"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Premium".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("Premium", "Premium", global::System.Management.Automation.CompletionResultType.ParameterValue, "Premium"); - } - } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/FunctionAppManagedServiceIdentityCreateType.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/FunctionAppManagedServiceIdentityCreateType.cs deleted file mode 100644 index 848a2ba83ddc..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/FunctionAppManagedServiceIdentityCreateType.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Support -{ - /// Argument completer implementation for PlanTypeOptions. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionAppManagedServiceIdentityCreateType))] - public partial struct FunctionAppManagedServiceIdentityCreateType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "SystemAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("SystemAssigned", "SystemAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "SystemAssigned"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "UserAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("UserAssigned", "UserAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "UserAssigned"); - } - } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/FunctionAppManagedServiceIdentityUpdateType.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/FunctionAppManagedServiceIdentityUpdateType.cs deleted file mode 100644 index 75b1d58a4b60..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/FunctionAppManagedServiceIdentityUpdateType.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Support -{ - /// Argument completer implementation for PlanTypeOptions. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionAppManagedServiceIdentityUpdateType))] - public partial struct FunctionAppManagedServiceIdentityUpdateType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "SystemAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("SystemAssigned", "SystemAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "SystemAssigned"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "UserAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("UserAssigned", "UserAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "UserAssigned"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "None".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("None", "None", global::System.Management.Automation.CompletionResultType.ParameterValue, "None"); - } - } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/PlanType.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/PlanType.cs deleted file mode 100644 index 81be45e3279a..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/PlanType.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Support -{ - /// Argument completer implementation for PlanTypeOptions. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.PlanType))] - public partial struct PlanType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Premium".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("Premium", "Premium", global::System.Management.Automation.CompletionResultType.ParameterValue, "Premium"); - } - } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/SkuType.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/SkuType.cs deleted file mode 100644 index 3e638776246e..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/SkuType.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Support -{ - /// Argument completer implementation for SkuOptions. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuType))] - public partial struct SkuType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "EP1".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("EP1", "EP1", global::System.Management.Automation.CompletionResultType.ParameterValue, "EP1"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "EP2".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("EP2", "EP2", global::System.Management.Automation.CompletionResultType.ParameterValue, "EP2"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "EP3".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("EP3", "EP3", global::System.Management.Automation.CompletionResultType.ParameterValue, "EP3"); - } - } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/WorkerType.cs b/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/WorkerType.cs deleted file mode 100644 index 8c427ac2a14c..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/custom/api/Support/WorkerType.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Support -{ - /// Argument completer implementation for WorkerTypeOptions. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType))] - public partial struct WorkerType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Linux".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("Linux", "Linux", global::System.Management.Automation.CompletionResultType.ParameterValue, "Linux"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Windows".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("Windows", "Windows", global::System.Management.Automation.CompletionResultType.ParameterValue, "Windows"); - } - } - } -} diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/exports/ProxyCmdletDefinitions.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/exports/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index 339debe01b69..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,5265 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets function apps in a subscription. -.Description -Gets function apps in a subscription. -.Example -Get-AzFunctionApp -.Example -Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet -.Example -Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -.Example -Get-AzFunctionApp -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8b -.Example -Get-AzFunctionApp -Location "Central US" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionapp -#> -function Get-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='GetAll', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByLocation', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The location of the function app. - ${Location}, - - [Parameter(ParameterSetName='ByResourceGroupName', Mandatory)] - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the resource group. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the function app. - ${Name}, - - [Parameter(ParameterSetName='ByResourceGroupName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Use to specify whether to include deployment slots in results. - ${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] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - GetAll = 'Az.Functions.custom\Get-AzFunctionApp'; - ByLocation = 'Az.Functions.custom\Get-AzFunctionApp'; - ByResourceGroupName = 'Az.Functions.custom\Get-AzFunctionApp'; - ByName = 'Az.Functions.custom\Get-AzFunctionApp'; - } - if (('GetAll', 'ByLocation', 'ByResourceGroupName', 'ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Gets the location where a function app for the given os and plan type is available. -.Description -Gets the location where a function app for the given os and plan type is available. -.Example -Get-AzFunctionAppAvailableLocation -.Example -Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux -.Example -Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IGeoRegion -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionappavailablelocation -#> -function Get-AzFunctionAppAvailableLocation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IGeoRegion])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Position=0)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(Position=1)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AvailablePlanType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The plan type. - # Valid inputs: Consumption or Premium - ${PlanType}, - - [Parameter(Position=2)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The OS type for the service plan. - ${OSType}, - - [Parameter(Position=3)] - [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] - ${Break}, - - [Parameter(Position=4, DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(Position=5, DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(Position=6, DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(Position=7, DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.Functions.custom\Get-AzFunctionAppAvailableLocation'; - } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Get function apps plans in a subscription. -.Description -Get function apps plans in a subscription. -.Example -Get-AzFunctionAppPlan -.Example -Get-AzFunctionAppPlan -ResourceGroupName "West Europe" -.Example -Get-AzFunctionAppPlan -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8z -.Example -Get-AzFunctionAppPlan -Location "Central US" - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionappplan -#> -function Get-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(DefaultParameterSetName='GetAll', PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByLocation', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The location of the function app plan. - ${Location}, - - [Parameter(ParameterSetName='ByResourceGroupName')] - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the resource group. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The service plan name. - ${Name}, - - [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] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - GetAll = 'Az.Functions.custom\Get-AzFunctionAppPlan'; - ByLocation = 'Az.Functions.custom\Get-AzFunctionAppPlan'; - ByResourceGroupName = 'Az.Functions.custom\Get-AzFunctionAppPlan'; - ByName = 'Az.Functions.custom\Get-AzFunctionAppPlan'; - } - if (('GetAll', 'ByLocation', 'ByResourceGroupName', 'ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Gets app settings for a function app. -.Description -Gets app settings for a function app. -.Example -Get-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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. - -INPUTOBJECT : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionappsetting -#> -function Get-AzFunctionAppSetting { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the function app. - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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] - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Get-AzFunctionAppSetting'; - ByObjectInput = 'Az.Functions.custom\Get-AzFunctionAppSetting'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Creates a function app. -.Description -Creates a function app. -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -Location centralUS ` - -StorageAccountName MyStorageAccountName ` - -Runtime PowerShell -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccountName MyStorageAccountName ` - -Runtime PowerShell -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccountName MyStorageAccountName ` - -DockerImageName myacr.azurecr.io/myimage:tag -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -StorageAccountName MyStorageAccountName ` - -Environment MyEnvironment ` - -WorkloadProfileName MyWorkloadProfileName - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azfunctionapp -#> -function New-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='Consumption', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the resource group. - ${ResourceGroupName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the function app. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the storage account. - ${StorageAccountName}, - - [Parameter(ParameterSetName='Consumption', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The location for the consumption plan. - ${Location}, - - [Parameter(ParameterSetName='Consumption', Mandatory)] - [Parameter(ParameterSetName='ByAppServicePlan', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The function runtime. - ${Runtime}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [Alias('AppInsightsName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of the existing App Insights project to be added to the function app. - ${ApplicationInsightsName}, - - [Parameter()] - [Alias('AppInsightsKey')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Instrumentation key of App Insights to be added. - ${ApplicationInsightsKey}, - - [Parameter(ParameterSetName='Consumption')] - [Parameter(ParameterSetName='ByAppServicePlan')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The OS to host the function app. - ${OSType}, - - [Parameter(ParameterSetName='Consumption')] - [Parameter(ParameterSetName='ByAppServicePlan')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The function runtime. - ${RuntimeVersion}, - - [Parameter(ParameterSetName='Consumption')] - [Parameter(ParameterSetName='ByAppServicePlan')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The Functions version. - ${FunctionsVersion}, - - [Parameter()] - [Alias('DisableAppInsights')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Disable creating application insights resource during the function app creation. - # No logs will be available. - ${DisableApplicationInsights}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds. - ${PassThru}, - - [Parameter()] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Collections.Hashtable] - # Function app settings. - ${AppSetting}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionAppManagedServiceIdentityCreateType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] - # Specifies the type of identity used for the function app. - # The acceptable values for this parameter are: - # - SystemAssigned - # - UserAssigned - ${IdentityType}, - - [Parameter()] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Specifies the list of user identities associated with the function app. - # The user identity references will be ARM resource ids in the form: - # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}' - ${IdentityID}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of the container app environment. - ${Environment}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Parameter(ParameterSetName='CustomDockerImage', Mandatory)] - [Alias('DockerImageName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Container image name, e.g., publisher/image-name:tag. - ${Image}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Parameter(ParameterSetName='CustomDockerImage')] - [Alias('DockerRegistryCredential')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.PSCredential] - # The container registry username and password. - # Required for private registries. - ${RegistryCredential}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The workload profile name to run the container app on. - ${WorkloadProfileName}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # The CPU in cores of the container app. - # e.g., 0.75. - ${ResourceCpu}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The memory size of the container app. - # e.g., 1.0Gi. - ${ResourceMemory}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The maximum number of replicas when creating a function app on container app. - ${ScaleMaxReplica}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The minimum number of replicas when create function app on container app. - ${ScaleMinReplica}, - - [Parameter(ParameterSetName='EnvironmentForContainerApp')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The container registry server hostname, e.g. - # myregistry.azurecr.io. - ${RegistryServer}, - - [Parameter(ParameterSetName='CustomDockerImage', Mandatory)] - [Parameter(ParameterSetName='ByAppServicePlan', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the service plan. - ${PlanName}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Starts the operation and returns immediately, before the operation is completed. - # In order to determine if the operation has successfully been completed, use some other mechanism. - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Runs the cmdlet as a background job. - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Consumption = 'Az.Functions.custom\New-AzFunctionApp'; - EnvironmentForContainerApp = 'Az.Functions.custom\New-AzFunctionApp'; - CustomDockerImage = 'Az.Functions.custom\New-AzFunctionApp'; - ByAppServicePlan = 'Az.Functions.custom\New-AzFunctionApp'; - } - if (('Consumption', 'EnvironmentForContainerApp', 'CustomDockerImage', 'ByAppServicePlan') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Creates a function app service plan. -.Description -Creates a function app service plan. -.Example -New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -Location WestEurope ` - -MinimumWorkerCount 1 ` - -MaximumWorkerCount 10 ` - -Sku EP1 ` - -WorkerType Windows - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azfunctionappplan -#> -function New-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The location for the consumption plan. - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The plan sku. - # Valid inputs are: EP1, EP2, EP3 - ${Sku}, - - [Parameter()] - [Alias('MaxBurst')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The maximum number of workers for the app service plan. - ${MaximumWorkerCount}, - - [Parameter()] - [Alias('MinInstances')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The minimum number of workers for the app service plan. - ${MinimumWorkerCount}, - - [Parameter()] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - ${DefaultProfile}, - - [Parameter(Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.WorkerType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.String] - # The worker type for the plan. - # Valid inputs are: Windows or Linux. - ${WorkerType}, - - [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] - # Run the command as a job. - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.Functions.custom\New-AzFunctionAppPlan'; - } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Deletes a function app. -.Description -Deletes a function app. -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionApp -Force -.Example -Remove-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azfunctionapp -#> -function Remove-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of function app. - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to remove the function app without prompting for confirmation. - ${Force}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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()] - [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.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Remove-AzFunctionApp'; - ByObjectInput = 'Az.Functions.custom\Remove-AzFunctionApp'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Deletes a function app plan. -.Description -Deletes a function app plan. -.Example -Get-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionAppPlan -Force -.Example -Remove-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan -.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [Capacity ]: Current number of instances assigned to the resource. - [ElasticScaleEnabled ]: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - [ExtendedLocationName ]: Name of extended location. - [FreeOfferExpirationTime ]: The time when the server farm free offer expires. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HyperV ]: If Hyper-V container app service plan true, false otherwise. - [IsSpot ]: If true, this App Service Plan owns spot instances. - [IsXenon ]: Obsolete: If Hyper-V container app service plan true, false otherwise. - [KubeEnvironmentProfileId ]: Resource ID of the Kubernetes Environment. - [MaximumElasticWorkerCount ]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan - [PerSiteScaling ]: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. - [Reserved ]: If Linux app service plan true, false otherwise. - [SkuCapability ]: Capabilities of the SKU, e.g., is traffic manager enabled? - [Name ]: Name of the SKU capability. - [Reason ]: Reason of the SKU capability. - [Value ]: Value of the SKU capability. - [SkuCapacityDefault ]: Default number of workers for this App Service plan SKU. - [SkuCapacityElasticMaximum ]: Maximum number of Elastic workers for this App Service plan SKU. - [SkuCapacityMaximum ]: Maximum number of workers for this App Service plan SKU. - [SkuCapacityMinimum ]: Minimum number of workers for this App Service plan SKU. - [SkuCapacityScaleType ]: Available scale configurations for an App Service plan. - [SkuFamily ]: Family code of the resource SKU. - [SkuLocation ]: Locations of the SKU. - [SkuName ]: Name of the resource SKU. - [SkuSize ]: Size specifier of the resource SKU. - [SkuTier ]: Service tier of the resource SKU. - [SpotExpirationTime ]: The time when the server farm expires. Valid only if it is a spot server farm. - [TargetWorkerCount ]: Scaling worker count. - [TargetWorkerSizeId ]: Scaling worker size ID. - [WorkerTierName ]: Target worker tier assigned to the App Service plan. - [ZoneRedundant ]: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azfunctionappplan -#> -function Remove-AzFunctionAppPlan { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of function app. - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to remove the function app plan without prompting for confirmation. - ${Force}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan] - # 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()] - [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.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Remove-AzFunctionAppPlan'; - ByObjectInput = 'Az.Functions.custom\Remove-AzFunctionAppPlan'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Removes app settings from a function app. -.Description -Removes app settings from a function app. -.Example -Remove-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSettingName "MyAppSetting1", "MyAppSetting2" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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. - -INPUTOBJECT : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azfunctionappsetting -#> -function Remove-AzFunctionAppSetting { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the function app. - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # List of function app settings to be removed from the function app. - ${AppSettingName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to remove function app setting without prompting for confirmation. - ${Force}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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] - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Remove-AzFunctionAppSetting'; - ByObjectInput = 'Az.Functions.custom\Remove-AzFunctionAppSetting'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Restarts a function app. -.Description -Restarts a function app. -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Restart-AzFunctionApp -Force -.Example -Restart-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/restart-azfunctionapp -#> -function Restart-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='RestartByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='RestartByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of function app. - ${Name}, - - [Parameter(ParameterSetName='RestartByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='RestartByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to restart the function app without prompting for confirmation. - ${Force}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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()] - [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.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - RestartByName = 'Az.Functions.custom\Restart-AzFunctionApp'; - ByObjectInput = 'Az.Functions.custom\Restart-AzFunctionApp'; - } - if (('RestartByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Starts a function app. -.Description -Starts a function app. -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Start-AzFunctionApp -.Example -Start-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/start-azfunctionapp -#> -function Start-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='StartByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='StartByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of function app. - ${Name}, - - [Parameter(ParameterSetName='StartByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='StartByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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()] - [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.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - StartByName = 'Az.Functions.custom\Start-AzFunctionApp'; - ByObjectInput = 'Az.Functions.custom\Start-AzFunctionApp'; - } - if (('StartByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Stops a function app. -.Description -Stops a function app. -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Stop-AzFunctionApp -Force -.Example -Stop-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/stop-azfunctionapp -#> -function Stop-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='StopByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='StopByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of function app. - ${Name}, - - [Parameter(ParameterSetName='StopByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - ${ResourceGroupName}, - - [Parameter(ParameterSetName='StopByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to stop the function app without prompting for confirmation. - ${Force}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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()] - [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.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - StopByName = 'Az.Functions.custom\Stop-AzFunctionApp'; - ByObjectInput = 'Az.Functions.custom\Stop-AzFunctionApp'; - } - if (('StopByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Updates a function app. -.Description -Updates a function app. -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -PlanName NewPlanName -Force -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType SystemAssigned -Force -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -ApplicationInsightsName ApplicationInsightsProjectName -Force -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType None -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azfunctionapp -#> -function Update-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the resource group. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the function app. - ${Name}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The name of the service plan. - ${PlanName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to update the function app without prompting for confirmation. - ${Force}, - - [Parameter()] - [Alias('AppInsightsName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of the existing App Insights project to be added to the function app. - ${ApplicationInsightsName}, - - [Parameter()] - [Alias('AppInsightsKey')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Instrumentation key of App Insights to be added. - ${ApplicationInsightsKey}, - - [Parameter()] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionAppManagedServiceIdentityUpdateType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedServiceIdentityType] - # Specifies the type of identity used for the function app. - # The type 'None' will remove any identities from the function app. - # The acceptable values for this parameter are: - # - SystemAssigned - # - UserAssigned - # - None - ${IdentityType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Specifies the list of user identities associated with the function app. - # The user identity references will be ARM resource ids in the form: - # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/identities/{identityName}' - ${IdentityID}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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] - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Starts the operation and returns immediately, before the operation is completed. - # In order to determine if the operation has successfully been completed, use some other mechanism. - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Runs the cmdlet as a background job. - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Update-AzFunctionApp'; - ByObjectInput = 'Az.Functions.custom\Update-AzFunctionApp'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Updates a function app service plan. -.Description -Updates a function app service plan. -.Example -Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -MaximumWorkerCount 20 ` - -Sku EP2 ` - -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [Capacity ]: Current number of instances assigned to the resource. - [ElasticScaleEnabled ]: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - [ExtendedLocationName ]: Name of extended location. - [FreeOfferExpirationTime ]: The time when the server farm free offer expires. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HyperV ]: If Hyper-V container app service plan true, false otherwise. - [IsSpot ]: If true, this App Service Plan owns spot instances. - [IsXenon ]: Obsolete: If Hyper-V container app service plan true, false otherwise. - [KubeEnvironmentProfileId ]: Resource ID of the Kubernetes Environment. - [MaximumElasticWorkerCount ]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan - [PerSiteScaling ]: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. - [Reserved ]: If Linux app service plan true, false otherwise. - [SkuCapability ]: Capabilities of the SKU, e.g., is traffic manager enabled? - [Name ]: Name of the SKU capability. - [Reason ]: Reason of the SKU capability. - [Value ]: Value of the SKU capability. - [SkuCapacityDefault ]: Default number of workers for this App Service plan SKU. - [SkuCapacityElasticMaximum ]: Maximum number of Elastic workers for this App Service plan SKU. - [SkuCapacityMaximum ]: Maximum number of workers for this App Service plan SKU. - [SkuCapacityMinimum ]: Minimum number of workers for this App Service plan SKU. - [SkuCapacityScaleType ]: Available scale configurations for an App Service plan. - [SkuFamily ]: Family code of the resource SKU. - [SkuLocation ]: Locations of the SKU. - [SkuName ]: Name of the resource SKU. - [SkuSize ]: Size specifier of the resource SKU. - [SkuTier ]: Service tier of the resource SKU. - [SpotExpirationTime ]: The time when the server farm expires. Valid only if it is a spot server farm. - [TargetWorkerCount ]: Scaling worker count. - [TargetWorkerSizeId ]: Scaling worker size ID. - [WorkerTierName ]: Target worker tier assigned to the App Service plan. - [ZoneRedundant ]: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azfunctionappplan -#> -function Update-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the App Service plan. - ${Name}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SkuType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The plan sku. - # Valid inputs are: EP1, EP2, EP3 - ${Sku}, - - [Parameter()] - [Alias('MaxBurst')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The maximum number of workers for the app service plan. - ${MaximumWorkerCount}, - - [Parameter()] - [Alias('MinInstances')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The minimum number of workers for the app service plan. - ${MinimumWorkerCount}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to update the function app plan without prompting for confirmation. - ${Force}, - - [Parameter()] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan] - # 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] - ${DefaultProfile}, - - [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] - # Run the command as a job. - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Update-AzFunctionAppPlan'; - ByObjectInput = 'Az.Functions.custom\Update-AzFunctionAppPlan'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Adds or updates app settings in a function app. -.Description -Adds or updates app settings in a function app. -.Example -Update-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName -AppSetting @{"Name1" = "Value1"} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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. - -INPUTOBJECT : - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azfunctionappsetting -#> -function Update-AzFunctionAppSetting { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='ByName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the function app. - ${Name}, - - [Parameter(ParameterSetName='ByName', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='ByName')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The Azure subscription ID. - ${SubscriptionId}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Collections.Hashtable] - # Hashtable with keys and values describe the app settings to be added or updated in the function app. - # For example: @{"myappsetting"="123"} - ${AppSetting}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Forces the cmdlet to update function app setting without prompting for confirmation. - ${Force}, - - [Parameter(ParameterSetName='ByObjectInput', Mandatory, ValueFromPipeline)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite] - # 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] - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.SendAsyncStep[]] - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Uri] - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.PSCredential] - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - ByName = 'Az.Functions.custom\Update-AzFunctionAppSetting'; - ByObjectInput = 'Az.Functions.custom\Update-AzFunctionAppSetting'; - } - if (('ByName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Functions.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -# SIG # Begin signature block -# MIIoKAYJKoZIhvcNAQcCoIIoGTCCKBUCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD9xRZV1AfC/8dK -# Dq6vhVadfkBjd74xrIHN8ZC9Z8I8ZqCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdSn8qMzCBzR7rvH2WVkvF -# HL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bqBG1IqsUFoJYxfGb+U+IZUkjRHAu -# tja4JL/8qs+9uSvx6RSF6hTMKtmT7ACnB/Q005z3F07lHhoeN+mevttjVl1EKiog -# OVTHZOU1RwlxI4UfgsALbt6hp2a5Wbx2Lq/AyKxRPMNGKDXbSPFQlw1PHOWSMkKM -# YN28TPmrY8As/3j/FFD9gwYDwuxhXhMjspIqZE1D7fga8cDdHlxLcWQMSE8RkdN0 -# yHb7aG5mYCfDVVH4ynDDRRI/WX/tW+T5/qofjQtped9/BJqNxbPxxMbgW1p/zBZ3 -# Wskd1DN/2hdQ2z01qaEbWHA4k02uRutzVyg/203UvpnzlfWjdtzSU1blKXb2jnHm -# pWUWo8aSncnym1f6c4Xf6V+pqFidxR2vh1Bwe34gaPy8pld2yrpNmvsQK7xtPWWj -# uR2Tu8vcfoIE2+Xn -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/internal/Az.Functions.internal.psm1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/internal/Az.Functions.internal.psm1 deleted file mode 100644 index 490dfbbfc33a..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/internal/Az.Functions.internal.psm1 +++ /dev/null @@ -1,256 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Functions.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.Functions.Module]::Instance - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = $PSScriptRoot - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } -# endregion - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCW8pSzs/LD3Np7 -# xk5xTtwXcyHIkknEaUUUyo4SpNgjn6CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0K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+g/iGHzVec4ho32dBvozBJtzYxqADWqES0l3qEK6STpUzl3d -# eS8KgeaWJ6op52l+tyH+q+GHSb8sKOyUrMq0YZcgvTaddcWYZnRKSqryV9Ka7cc8 -# Z696rEZtsyAxGgQfk+IjzKY1La3iNgSt5uxMy+OAuiD5KNM3/jAtDDjdQPjymo73 -# /uisBEOXOGfBHHXF77w8Q4MXGQ1Q08qAVg7Wmlsx36UvHQ7qAM9DDmqzxwr4kO+7 -# MM0kWtS2fAzocI95pe6RnbpHcqcFwiIo+OfE3QgBuigmPUF7wT5US6y1kwwHel9Z -# J4ta7Ex0H/+Y0mXfqOgiSjDuSgzvjUu0iKh7ZO+2H0MJ0VgnHC9MdMmwlzqpTe0o -# E4Q7TTkWFKifLmtovRedu5lJ5wj8kn+aq4+WpioHC+nQhygOlqtGHPHU+mLhMKp5 -# wyKIL7vRdURTLBGCQ/4qfZuvmuwuNfir/KpONpUq50zrkb+poXXoSzmxe3JqW8bI -# sZZWPH95kHzARlRJJaiykX1FuUCGSR6DGxH7pjsg/ML9DXsl2t2QsuxEq3s8IvYw -# 1j4cWJE47sUYdx5BfBN+NUTn+9K/oK2wg2bIrZ6k4IeH550TQYeFofDJKFxA29uL -# 0D7LnQpqjhivX5jZG5E= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/internal/ProxyCmdletDefinitions.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/internal/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index 407ef48d3915..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,22614 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Description for Creates a backup of an app. -.Description -Description for Creates a backup of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IBackupRequest -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Databases included in the backup. - DatabaseType : Database type (e.g. SqlAzure / MySql). - [ConnectionString ]: 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 ]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. - [Name ]: - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -REQUEST : Description of a backup which will be performed. - [Kind ]: Kind of resource. - [BackupName ]: Name of the backup. - [BackupScheduleFrequencyInterval ]: 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 ]: 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 ]: True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise. - [BackupScheduleRetentionPeriodInDay ]: After how many days backups should be deleted. - [BackupScheduleStartTime ]: When the schedule should start working. - [Database ]: Databases included in the backup. - DatabaseType : Database type (e.g. SqlAzure / MySql). - [ConnectionString ]: 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 ]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. - [Name ]: - [Enabled ]: True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. - [StorageAccountUrl ]: SAS URL to the container. -.Link -https://learn.microsoft.com/powershell/module/az.functions/backup-azfunctionapp -#> -function Backup-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IBackupItem])] -[CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azappinsightsapikey -#> -function Get-AzAppInsightsApiKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponentApiKey])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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[]] - # 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azappinsights -#> -function Get-AzAppInsights { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20150501.IApplicationInsightsComponent])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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[]] - # 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Get a list of available geographical regions. -.Description -Description for Get a list of available geographical regions. -.Example -Get-AzFunctionAppAvailableLocation -.Example -Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux -.Example -Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IGeoRegion -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionappavailablelocation -#> -function Get-AzFunctionAppAvailableLocation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IGeoRegion])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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 true 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 true 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 true 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzFunctionAppAvailableLocation_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Get an App Service plan. -.Description -Description for Get an App Service plan. -.Example -Get-AzFunctionAppPlan -.Example -Get-AzFunctionAppPlan -ResourceGroupName "West Europe" -.Example -Get-AzFunctionAppPlan -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8z -.Example -Get-AzFunctionAppPlan -Location "Central US" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionappplan -#> -function Get-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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 true to return all App Service plan properties. - # The default is false, 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the details of a web, mobile, or API app. -.Description -Description for Gets the details of a web, mobile, or API app. -.Example -Get-AzFunctionApp -.Example -Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet -.Example -Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -.Example -Get-AzFunctionApp -SubscriptionId fe16564a-d943-4bf8-8c28-cf01708c3f8b -.Example -Get-AzFunctionApp -Location "Central US" - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunctionapp -#> -function Get-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [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 true 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Get function information by its ID for web site, or a deployment slot. -.Description -Description for Get function information by its ID for web site, or a deployment slot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azfunction -#> -function Get-AzFunction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IFunctionEnvelope])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 or Kerberos keys (if active directory enabled) for the specified storage account. -.Description -Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IStorageAccountKey -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azstorageaccountkey -#> -function Get-AzStorageAccountKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IStorageAccountKey])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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[]] - # Your Azure subscription ID. - # This is a GUID-formatted string (e.g. - # 00000000-0000-0000-0000-000000000000). - ${SubscriptionId}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ListKeyExpand])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Query')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ListKeyExpand] - # Specifies type of the key to be listed. - # Possible value is kerb. - ${Expand}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IStorageAccount -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azstorageaccount -#> -function Get-AzStorageAccount { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IStorageAccount])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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(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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 systemAssignedIdentity available under the specified RP scope. -.Description -Gets the systemAssignedIdentity available under the specified RP scope. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.ISystemAssignedIdentity -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azsystemassignedidentity -#> -function Get-AzSystemAssignedIdentity { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.ISystemAssignedIdentity])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The resource provider scope of the resource. - # Parent resource being extended by Managed Identities. - ${Scope}, - - [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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzSystemAssignedIdentity_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzSystemAssignedIdentity_GetViaIdentity'; - } - - $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 identity. -.Description -Gets the identity. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azuserassignedidentity -#> -function Get-AzUserAssignedIdentity { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the Resource Group to which the identity belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the identity 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[]] - # 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzUserAssignedIdentity_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzUserAssignedIdentity_GetViaIdentity'; - List = 'Az.Functions.private\Get-AzUserAssignedIdentity_List'; - List1 = 'Az.Functions.private\Get-AzUserAssignedIdentity_List1'; - } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the application settings of an app. -.Description -Description for Gets the application settings of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappapplicationsettingslot -#> -function Get-AzWebAppApplicationSettingSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the application settings of an app. -.Description -Description for Gets the application settings of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappapplicationsetting -#> -function Get-AzWebAppApplicationSetting { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. -.Description -Description for Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappbasicpublishingcredentialspolicyslot -#> -function Get-AzWebAppBasicPublishingCredentialsPolicySlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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] - # . - ${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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppBasicPublishingCredentialsPolicySlot_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. -.Description -Description for Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappbasicpublishingcredentialspolicy -#> -function Get-AzWebAppBasicPublishingCredentialsPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppBasicPublishingCredentialsPolicy_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. -.Description -Description for Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappconfigurationslot -#> -function Get-AzWebAppConfigurationSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [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', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the deployment slot. - # If a slot is not specified, the API will return configuration for the production slot. - ${Slot}, - - [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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSlot_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppConfigurationSlot_GetViaIdentity'; - List = 'Az.Functions.private\Get-AzWebAppConfigurationSlot_List'; - } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets a list of web app configuration snapshots identifiers. -Each element of the list contains a timestamp and the ID of the snapshot. -.Description -Description for Gets a list of web app configuration snapshots identifiers. -Each element of the list contains a timestamp and the ID of the snapshot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigurationSnapshotInfo -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappconfigurationsnapshotinfoslot -#> -function Get-AzWebAppConfigurationSnapshotInfoSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigurationSnapshotInfo])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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 return configuration 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSnapshotInfoSlot_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets a list of web app configuration snapshots identifiers. -Each element of the list contains a timestamp and the ID of the snapshot. -.Description -Description for Gets a list of web app configuration snapshots identifiers. -Each element of the list contains a timestamp and the ID of the snapshot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigurationSnapshotInfo -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappconfigurationsnapshotinfo -#> -function Get-AzWebAppConfigurationSnapshotInfo { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigurationSnapshotInfo])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSnapshotInfo_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets a snapshot of the configuration of an app at a previous point in time. -.Description -Description for Gets a snapshot of the configuration of an app at a previous point in time. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappconfigurationsnapshotslot -#> -function Get-AzWebAppConfigurationSnapshotSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the deployment slot. - # If a slot is not specified, the API will return configuration for the production slot. - ${Slot}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The ID of the snapshot to read. - ${SnapshotId}, - - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Your Azure subscription ID. - # This is a GUID-formatted string (e.g. - # 00000000-0000-0000-0000-000000000000). - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSnapshotSlot_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppConfigurationSnapshotSlot_GetViaIdentity'; - } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets a snapshot of the configuration of an app at a previous point in time. -.Description -Description for Gets a snapshot of the configuration of an app at a previous point in time. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappconfigurationsnapshot -#> -function Get-AzWebAppConfigurationSnapshot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The ID of the snapshot to read. - ${SnapshotId}, - - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Your Azure subscription ID. - # This is a GUID-formatted string (e.g. - # 00000000-0000-0000-0000-000000000000). - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSnapshot_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppConfigurationSnapshot_GetViaIdentity'; - } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. -.Description -Description for Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappconfiguration -#> -function Get-AzWebAppConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfiguration_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppConfiguration_GetViaIdentity'; - List = 'Az.Functions.private\Get-AzWebAppConfiguration_List'; - } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Get function keys for a function in a web site, or a deployment slot. -.Description -Description for Get function keys for a function in a web site, or a deployment slot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappfunctionkeyslot -#> -function Get-AzWebAppFunctionKeySlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Function name. - ${FunctionName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Site name. - ${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. - ${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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppFunctionKeySlot_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Get function keys for a function in a web site, or a deployment slot. -.Description -Description for Get function keys for a function in a web site, or a deployment slot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappfunctionkey -#> -function Get-AzWebAppFunctionKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Function name. - ${FunctionName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Site name. - ${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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppFunctionKey_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Returns whether Scm basic auth is allowed on the site or not. -.Description -Description for Returns whether Scm basic auth is allowed on the site or not. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappscmallowedslot -#> -function Get-AzWebAppScmAllowedSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # . - ${Slot}, - - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Your Azure subscription ID. - # This is a GUID-formatted string (e.g. - # 00000000-0000-0000-0000-000000000000). - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppScmAllowedSlot_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppScmAllowedSlot_GetViaIdentity'; - } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Returns whether Scm basic auth is allowed on the site or not. -.Description -Description for Returns whether Scm basic auth is allowed on the site or not. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappscmallowed -#> -function Get-AzWebAppScmAllowed { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Your Azure subscription ID. - # This is a GUID-formatted string (e.g. - # 00000000-0000-0000-0000-000000000000). - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppScmAllowed_Get'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppScmAllowed_GetViaIdentity'; - } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the config reference app settings and status of an app -.Description -Description for Gets the config reference app settings and status of an app -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IApiKvReference -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappsettingkeyvaultreferenceslot -#> -function Get-AzWebAppSettingKeyVaultReferenceSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IApiKvReference])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='Get1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='Get1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='Get1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # . - ${Slot}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='Get1')] - [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='Get1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # App Setting key name. - ${AppSettingKey}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='GetViaIdentity1', 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppSettingKeyVaultReferenceSlot_Get'; - Get1 = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReferenceSlot_Get1'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReferenceSlot_GetViaIdentity'; - GetViaIdentity1 = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReferenceSlot_GetViaIdentity1'; - } - if (('Get', 'Get1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Gets the config reference app settings and status of an app -.Description -Description for Gets the config reference app settings and status of an app -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IApiKvReference -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappsettingkeyvaultreference -#> -function Get-AzWebAppSettingKeyVaultReference { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IApiKvReference])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='Get1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='Get1', 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='Get1')] - [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='Get1', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # App Setting key name. - ${AppSettingKey}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='GetViaIdentity1', 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppSettingKeyVaultReference_Get'; - Get1 = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReference_Get1'; - GetViaIdentity = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReference_GetViaIdentity'; - GetViaIdentity1 = 'Az.Functions.private\Get-AzWebAppSettingKeyVaultReference_GetViaIdentity1'; - } - if (('Get', 'Get1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for This is to allow calling via powershell and ARM template. -.Description -Description for This is to allow calling via powershell and ARM template. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -System.Boolean -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappsyncstatusslot -#> -function Get-AzWebAppSyncStatusSlot { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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. - ${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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - List = 'Az.Functions.private\Get-AzWebAppSyncStatusSlot_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for This is to allow calling via powershell and ARM template. -.Description -Description for This is to allow calling via powershell and ARM template. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -System.Boolean -.Link -https://learn.microsoft.com/powershell/module/az.functions/get-azwebappsyncstatus -#> -function Get-AzWebAppSyncStatus { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - List = 'Az.Functions.private\Get-AzWebAppSyncStatus_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Move resources between resource groups. -.Description -Description for Move resources between resource groups. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmMoveResourceEnvelope -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -MOVERESOURCEENVELOPE : Object with a list of the resources that need to be moved and the resource group they should be moved to. - [Resource ]: - [TargetResourceGroup ]: -.Link -https://learn.microsoft.com/powershell/module/az.functions/move-az -#> -function Move-Az { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='MoveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Move', Mandatory)] - [Parameter(ParameterSetName='MoveExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Move')] - [Parameter(ParameterSetName='MoveExpanded')] - [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='MoveViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='MoveViaIdentityExpanded', 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='Move', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmMoveResourceEnvelope] - # Object with a list of the resources that need to be moved and the resource group they should be moved to. - # To construct, see NOTES section for MOVERESOURCEENVELOPE properties and create a hash table. - ${MoveResourceEnvelope}, - - [Parameter(ParameterSetName='MoveExpanded')] - [Parameter(ParameterSetName='MoveViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # . - ${Resource}, - - [Parameter(ParameterSetName='MoveExpanded')] - [Parameter(ParameterSetName='MoveViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # . - ${TargetResourceGroup}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - Move = 'Az.Functions.private\Move-Az_Move'; - MoveExpanded = 'Az.Functions.private\Move-Az_MoveExpanded'; - MoveViaIdentity = 'Az.Functions.private\Move-Az_MoveViaIdentity'; - MoveViaIdentityExpanded = 'Az.Functions.private\Move-Az_MoveViaIdentityExpanded'; - } - if (('Move', 'MoveExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -INSIGHTPROPERTY : An Application Insights component definition. - Location : Resource location - Kind : 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 ]: Resource tags - [(Any) ]: This indicates any property can be added to this object. - [ApplicationType ]: Type of application being monitored. - [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 ]: The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp. - [RequestSource ]: Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'. - [SamplingPercentage ]: Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry. -.Link -https://learn.microsoft.com/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')] -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] - # 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.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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Creates or updates an App Service Plan. -.Description -Description for Creates or updates an App Service Plan. -.Example -New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -Location WestEurope ` - -MinimumWorkerCount 1 ` - -MaximumWorkerCount 10 ` - -Sku EP1 ` - -WorkerType Windows - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : App Service plan. - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [Capacity ]: Current number of instances assigned to the resource. - [ElasticScaleEnabled ]: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - [ExtendedLocationName ]: Name of extended location. - [FreeOfferExpirationTime ]: The time when the server farm free offer expires. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HyperV ]: If Hyper-V container app service plan true, false otherwise. - [IsSpot ]: If true, this App Service Plan owns spot instances. - [IsXenon ]: Obsolete: If Hyper-V container app service plan true, false otherwise. - [KubeEnvironmentProfileId ]: Resource ID of the Kubernetes Environment. - [MaximumElasticWorkerCount ]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan - [PerSiteScaling ]: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. - [Reserved ]: If Linux app service plan true, false otherwise. - [SkuCapability ]: Capabilities of the SKU, e.g., is traffic manager enabled? - [Name ]: Name of the SKU capability. - [Reason ]: Reason of the SKU capability. - [Value ]: Value of the SKU capability. - [SkuCapacityDefault ]: Default number of workers for this App Service plan SKU. - [SkuCapacityElasticMaximum ]: Maximum number of Elastic workers for this App Service plan SKU. - [SkuCapacityMaximum ]: Maximum number of workers for this App Service plan SKU. - [SkuCapacityMinimum ]: Minimum number of workers for this App Service plan SKU. - [SkuCapacityScaleType ]: Available scale configurations for an App Service plan. - [SkuFamily ]: Family code of the resource SKU. - [SkuLocation ]: Locations of the SKU. - [SkuName ]: Name of the resource SKU. - [SkuSize ]: Size specifier of the resource SKU. - [SkuTier ]: Service tier of the resource SKU. - [SpotExpirationTime ]: The time when the server farm expires. Valid only if it is a spot server farm. - [TargetWorkerCount ]: Scaling worker count. - [TargetWorkerSizeId ]: Scaling worker size ID. - [WorkerTierName ]: Target worker tier assigned to the App Service plan. - [ZoneRedundant ]: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -SKUCAPABILITY : Capabilities of the SKU, e.g., is traffic manager enabled - [Name ]: Name of the SKU capability. - [Reason ]: Reason of the SKU capability. - [Value ]: Value of the SKU capability. -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azfunctionappplan -#> -function New-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.Management.Automation.SwitchParameter] - # ServerFarm supports ElasticScale. - # Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - ${ElasticScaleEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of extended location. - ${ExtendedLocationName}, - - [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 true, false otherwise. - ${HyperV}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # If true, 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 true, false 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.String] - # Resource ID of the Kubernetes Environment. - ${KubeEnvironmentProfileId}, - - [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 true, apps assigned to this App Service plan can be scaled independently.If false, 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 true, false otherwise. - ${Reserved}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 Elastic workers for this App Service plan SKU. - ${SkuCapacityElasticMaximum}, - - [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')] - [AllowEmptyCollection()] - [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.Api20231201.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(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # If true, this App Service Plan will perform availability zone balancing.If false, this App Service Plan will not perform availability zone balancing. - ${ZoneRedundant}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. -.Description -Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -Location centralUS ` - -StorageAccountName MyStorageAccountName ` - -Runtime PowerShell -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccountName MyStorageAccountName ` - -Runtime PowerShell -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -PlanName MyPlanName ` - -StorageAccountName MyStorageAccountName ` - -DockerImageName myacr.azurecr.io/myimage:tag -.Example -New-AzFunctionApp -Name MyUniqueFunctionAppName ` - -ResourceGroupName MyResourceGroupName ` - -StorageAccountName MyStorageAccountName ` - -Environment MyEnvironment ` - -WorkloadProfileName MyWorkloadProfileName - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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. - -HOSTNAMESSLSTATE : Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -SCALEANDCONCURRENCYALWAYSREADY : 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - -SITECONFIG : Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -SITEENVELOPE : A web app, a mobile app backend, or an API app. - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azfunctionapp -#> -function New-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.String] - # Use this property for StorageAccountConnectionString. - # Set the name of the app setting that has the storage account connection string. - # Do not set a value for this property when using other authentication type. - ${AuthenticationStorageAccountConnectionStringName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AuthenticationType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AuthenticationType] - # Property to select authentication type to access the selected storage account. - # Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - ${AuthenticationType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Use this property for UserAssignedIdentity. - # Set the resource ID of the identity. - # Do not set a value for this property when using other authentication type. - ${AuthenticationUserAssignedIdentityResourceId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. - # Default is true. - ${ClientAffinityEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable client certificate authentication (TLS mutual authentication); otherwise, false. - # Default is false. - ${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')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ClientCertMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ClientCertMode] - # This composes with ClientCertEnabled setting.- ClientCertEnabled: false means ClientCert is ignored.- ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.- ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - ${ClientCertMode}, - - [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.Api20231201.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] - # true to clone custom hostnames from source app; otherwise, false. - ${CloningInfoCloneCustomHostName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to clone source control from source app; otherwise, false. - ${CloningInfoCloneSourceControl}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true 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] - # true to overwrite destination app; otherwise, false. - ${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.String] - # Unique identifier that verifies the custom domains assigned to the app. - # Customer will add this id to a txt record for verification. - ${CustomDomainVerificationId}, - - [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.String] - # Dapr application identifier - ${DaprConfigAppId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Tells Dapr which port your application is listening on - ${DaprConfigAppPort}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Enables API logging for the Dapr sidecar - ${DaprConfigEnableApiLogging}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Boolean indicating if the Dapr side car is enabled - ${DaprConfigEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Increasing max size of request body http servers parameter in MB to handle uploading of big files. - # Default is 4 MB. - ${DaprConfigHttpMaxRequestSize}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. - # Default is 65KB. - ${DaprConfigHttpReadBufferSize}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DaprLogLevel])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DaprLogLevel] - # Sets the log level for the Dapr sidecar. - # Allowed values are debug, info, warn, error. - # Default is info. - ${DaprConfigLogLevel}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Alternate DNS server to be used by apps. - # This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - ${DnsConfigurationDnsAltServer}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Custom time for DNS to be cached in seconds. - # Allowed range: 0-60. - # Default is 30 seconds. - # 0 means caching disabled. - ${DnsConfigurationDnsMaxCacheTimeout}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Total number of retries for dns lookup. - # Allowed range: 1-5. - # Default is 3. - ${DnsConfigurationDnsRetryAttemptCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Timeout for a single dns lookup in seconds. - # Allowed range: 1-30. - # Default is 3. - ${DnsConfigurationDnsRetryAttemptTimeout}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # List of custom DNS servers to be used by an app for lookups. - # Maximum 5 dns servers can be set. - ${DnsConfigurationDnsServer}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if the app is enabled; otherwise, false. - # 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')] - [System.String] - # Name of extended location. - ${ExtendedLocationName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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] - # true to disable the public hostnames of the app; otherwise, false. - # If true, 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.Single] - # The maximum number of concurrent HTTP trigger invocations per instance. - ${HttpPerInstanceConcurrency}, - - [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.Api20231201.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] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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] - # Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. - # This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - ${ManagedEnvironmentId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - # Allowed Values: 'Enabled', 'Disabled' or an empty string. - ${PublicNetworkAccess}, - - [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] - # true if reserved; otherwise, false. - ${Reserved}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Required CPU in cores, e.g. - # 0.5 - ${ResourceConfigCpu}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Required memory, e.g. - # "1Gi" - ${ResourceConfigMemory}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RuntimeName])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RuntimeName] - # Function app runtime name. - # Available options: dotnet-isolated, node, java, powershell, python, custom - ${RuntimeName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Function app runtime version. - # Example: 8 (for dotnet-isolated) - ${RuntimeVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IFunctionsAlwaysReadyConfig[]] - # 'Always Ready' configuration for the function app. - # To construct, see NOTES section for SCALEANDCONCURRENCYALWAYSREADY properties and create a hash table. - ${ScaleAndConcurrencyAlwaysReady}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Single] - # Set the amount of memory allocated to each instance of the function app in MB. - # CPU and network bandwidth are allocated proportionally. - ${ScaleAndConcurrencyInstanceMemoryMb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Single] - # The maximum number of instances for the function app. - ${ScaleAndConcurrencyMaximumInstanceCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to stop SCM (KUDU) site when the app is stopped; otherwise, false. - # The default is false. - ${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.Api20231201.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')] - [System.Management.Automation.SwitchParameter] - # Checks if Customer provided storage account is required - ${StorageAccountRequired}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionsDeploymentStorageType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionsDeploymentStorageType] - # Property to select Azure Storage type. - # Available options: blobContainer. - ${StorageType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to set the URL for the selected Azure Storage type. - # Example: For blobContainer, the value could be https://.blob.core.windows.net/. - ${StorageValue}, - - [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.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - ${VirtualNetworkSubnetId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # To enable Backup and Restore operations over virtual network - ${VnetBackupRestoreEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # To enable accessing content over virtual network - ${VnetContentShareEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # To enable pulling image over Virtual Network - ${VnetImagePullEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Workload profile name for function app to execute on. - ${WorkloadProfileName}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Create function for web site, or a deployment slot. -.Description -Description for Create function for web site, or a deployment slot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Function information. - [Kind ]: Kind of resource. - [Config ]: Config information. - [ConfigHref ]: Config URI. - [File ]: File list. - [(Any) ]: This indicates any property can be added to this object. - [FunctionAppId ]: Function App ID. - [Href ]: Function URI. - [InvokeUrlTemplate ]: The invocation URL - [IsDisabled ]: Gets or sets a value indicating whether the function is disabled - [Language ]: The function language - [ScriptHref ]: Script URI. - [ScriptRootPathHref ]: Script root path URI. - [SecretsFileHref ]: Secrets file URI. - [TestData ]: Test data used when testing via the Azure Portal. - [TestDataHref ]: Test data URI. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azfunction -#> -function New-AzFunction { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.IFunctionEnvelope] - # Function 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.IAny] - # 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.Api20231201.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] - # The invocation URL - ${InvokeUrlTemplate}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether the function is disabled - ${IsDisabled}, - - [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] - # The function language - ${Language}, - - [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(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Test data URI. - ${TestDataHref}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 or update an identity in the specified subscription and resource group. -.Description -Create or update an identity in the specified subscription and resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -PARAMETER : Describes an identity resource. - Location : The geo-location where the resource lives - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azuserassignedidentity -#> -function New-AzUserAssignedIdentity { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the Resource Group to which the identity belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the identity 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] - # 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.Api20181130.IIdentityAutoGenerated] - # Describes an identity resource. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [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.Api10.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzUserAssignedIdentity_Create'; - CreateExpanded = 'Az.Functions.private\New-AzUserAssignedIdentity_CreateExpanded'; - CreateViaIdentity = 'Az.Functions.private\New-AzUserAssignedIdentity_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.Functions.private\New-AzUserAssignedIdentity_CreateViaIdentityExpanded'; - } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates the configuration of an app. -.Description -Description for Updates the configuration of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.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 : Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - -CONNECTIONSTRING : Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - -EXPERIMENTRAMPUPRULE : List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - -HANDLERMAPPING : Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -IPSECURITYRESTRICTION : IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -METADATA : Application metadata. This property cannot be retrieved, since it may contain secrets. - [Name ]: Pair name. - [Value ]: Pair value. - -SCMIPSECURITYRESTRICTION : IP security restrictions for scm. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -SITECONFIG : Web app configuration ARM resource. - [Kind ]: Kind of resource. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -TRIGGERSLOWREQUESTSWITHPATH : A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - -TRIGGERSTATUSCODE : A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - -TRIGGERSTATUSCODESRANGE : A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - -VIRTUALAPPLICATION : Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azwebappconfigurationslot -#> -function New-AzWebAppConfigurationSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${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', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', 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 configuration for the production slot. - ${Slot}, - - [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.Api20231201.ISiteConfigResource] - # Web app configuration ARM resource. - # 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')] - [System.Management.Automation.SwitchParameter] - # Flag to use Managed Identity Creds for ACR pull - ${AcrUseManagedIdentityCred}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # If using user managed identity, the user managed identity ClientId - ${AcrUserManagedIdentityId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Minimum time the process must executebefore taking the action - ${ActionMinProcessExecutionTime}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType] - # Predefined action to be taken. - ${ActionType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Always On is enabled; otherwise, false. - ${AlwaysOn}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The URL of the API definition. - ${ApiDefinitionUrl}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # APIM-Api Identifier. - ${ApiManagementConfigId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # App command line to launch. - ${AppCommandLine}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application settings. - # To construct, see NOTES section for APPSETTING properties and create a hash table. - ${AppSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Auto Heal is enabled; otherwise, false. - ${AutoHealEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Auto-swap slot name. - ${AutoSwapSlotName}, - - [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.Api20231201.ISiteConfigAzureStorageAccounts]))] - [System.Collections.Hashtable] - # List of Azure Storage Accounts. - ${AzureStorageAccount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IConnStringInfo[]] - # Connection strings. - # To construct, see NOTES section for CONNECTIONSTRING properties and create a hash table. - ${ConnectionString}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Gets or sets the list of origins that should be allowed to make cross-origincalls (for example: http://example.com:12345). - # Use "*" to allow all. - ${CorAllowedOrigin}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets whether CORS requests with credentials are allowed. - # See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentialsfor more details. - ${CorSupportCredentials}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Executable to be run. - ${CustomActionExe}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Parameters for the executable. - ${CustomActionParameter}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Default documents. - ${DefaultDocument}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if detailed error logging is enabled; otherwise, false. - ${DetailedErrorLoggingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Document root. - ${DocumentRoot}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${DynamicTagsJson}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to apps in plans where ElasticScaleEnabled is true - ${ElasticWebAppScaleLimit}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IRampUpRule[]] - # List of ramp-up rules. - # To construct, see NOTES section for EXPERIMENTRAMPUPRULE properties and create a hash table. - ${ExperimentRampUpRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState] - # State of FTP / FTPS service - ${FtpsState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to the Consumption and Elastic Premium Plans - ${FunctionAppScaleLimit}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether functions runtime scale monitoring is enabled. - # When enabled,the ScaleController will not monitor event sources directly, but will instead call to theruntime to get scale status. - ${FunctionsRuntimeScaleMonitoringEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IHandlerMapping[]] - # Handler mappings. - # To construct, see NOTES section for HANDLERMAPPING properties and create a hash table. - ${HandlerMapping}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Health check path - ${HealthCheckPath}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Http20Enabled: configures a web site to allow clients to connect over http2.0 - ${Http20Enabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if HTTP logging is enabled; otherwise, false. - ${HttpLoggingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for main. - # To construct, see NOTES section for IPSECURITYRESTRICTION properties and create a hash table. - ${IPSecurityRestriction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for main access restriction if no rules are matched. - ${IPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a flag indicating whether the Push endpoint is enabled. - ${IsPushEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container. - ${JavaContainer}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container version. - ${JavaContainerVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java version. - ${JavaVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.Int64] - # Maximum allowed disk size usage in MB. - ${LimitMaxDiskSizeInMb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int64] - # Maximum allowed memory usage in MB. - ${LimitMaxMemoryInMb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Maximum allowed CPU usage percentage. - ${LimitMaxPercentageCpu}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Linux App Framework and version - ${LinuxFxVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing] - # Site load balancing. - ${LoadBalancing}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable local MySQL; otherwise, false. - ${LocalMySqlEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # HTTP logs directory size limit. - ${LogsDirectorySizeLimit}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode] - # Managed pipeline mode. - ${ManagedPipelineMode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Managed Service Identity Id - ${ManagedServiceIdentityId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application metadata. - # This property cannot be retrieved, since it may contain secrets. - # To construct, see NOTES section for METADATA properties and create a hash table. - ${Metadata}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites] - # The minimum strength TLS cipher suite allowed for an application - ${MinTlsCipherSuite}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # MinTlsVersion: configures the minimum version of TLS required for SSL requests - ${MinTlsVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of minimum instance count for a siteThis setting only applies to the Elastic Plans - ${MinimumElasticInstanceCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # .NET Framework version. - ${NetFrameworkVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Node.js. - ${NodeVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of workers. - ${NumberOfWorker}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PHP. - ${PhpVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PowerShell. - ${PowerShellVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of preWarmed instances.This setting only applies to the Consumption and Elastic Plans - ${PreWarmedInstanceCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Publishing user name. - ${PublishingUsername}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${PushKind}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Python. - ${PythonVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if remote debugging is enabled; otherwise, false. - ${RemoteDebuggingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Remote debugging version. - ${RemoteDebuggingVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${RequestCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${RequestTimeInterval}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if request tracing is enabled; otherwise, false. - ${RequestTracingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.DateTime] - # Request tracing expiration time. - ${RequestTracingExpirationTime}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for scm. - # To construct, see NOTES section for SCMIPSECURITYRESTRICTION properties and create a hash table. - ${ScmIPSecurityRestriction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for scm access restriction if no rules are matched. - ${ScmIPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # IP security restrictions for scm to use main. - ${ScmIPSecurityRestrictionsUseMain}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - ${ScmMinTlsVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType] - # SCM type. - ${ScmType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${SlowRequestCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Request Path. - ${SlowRequestPath}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${SlowRequestTimeInterval}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time taken. - ${SlowRequestTimeTaken}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - ${TagWhitelistJson}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${TagsRequiringAuth}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Tracing options. - ${TracingOption}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # A rule based on private bytes. - ${TriggerPrivateBytesInKb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISlowRequestsBasedTrigger[]] - # A rule based on multiple Slow Requests Rule with path - # To construct, see NOTES section for TRIGGERSLOWREQUESTSWITHPATH properties and create a hash table. - ${TriggerSlowRequestsWithPath}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesBasedTrigger[]] - # A rule based on status codes. - # To construct, see NOTES section for TRIGGERSTATUSCODE properties and create a hash table. - ${TriggerStatusCode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesRangeBasedTrigger[]] - # A rule based on status codes ranges. - # To construct, see NOTES section for TRIGGERSTATUSCODESRANGE properties and create a hash table. - ${TriggerStatusCodesRange}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to use 32-bit worker process; otherwise, false. - ${Use32BitWorkerProcess}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IVirtualApplication[]] - # Virtual applications. - # To construct, see NOTES section for VIRTUALAPPLICATION properties and create a hash table. - ${VirtualApplication}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Virtual Network name. - ${VnetName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The number of private ports assigned to this app. - # These will be assigned dynamically on runtime. - ${VnetPrivatePortsCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if WebSocket is enabled; otherwise, false. - ${WebSocketsEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Sets the time zone a site uses for generating timestamps. - # Compatible with Linux and Windows App Service. - # Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. - # For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - # For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - ${WebsiteTimeZone}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Xenon App Framework and version - ${WindowsFxVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Explicit Managed Service Identity Id - ${XManagedServiceIdentityId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSlot_Create'; - CreateExpanded = 'Az.Functions.private\New-AzWebAppConfigurationSlot_CreateExpanded'; - CreateViaIdentity = 'Az.Functions.private\New-AzWebAppConfigurationSlot_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.Functions.private\New-AzWebAppConfigurationSlot_CreateViaIdentityExpanded'; - } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates the configuration of an app. -.Description -Description for Updates the configuration of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.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 : Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - -CONNECTIONSTRING : Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - -EXPERIMENTRAMPUPRULE : List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - -HANDLERMAPPING : Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -IPSECURITYRESTRICTION : IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -METADATA : Application metadata. This property cannot be retrieved, since it may contain secrets. - [Name ]: Pair name. - [Value ]: Pair value. - -SCMIPSECURITYRESTRICTION : IP security restrictions for scm. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -SITECONFIG : Web app configuration ARM resource. - [Kind ]: Kind of resource. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -TRIGGERSLOWREQUESTSWITHPATH : A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - -TRIGGERSTATUSCODE : A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - -TRIGGERSTATUSCODESRANGE : A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - -VIRTUALAPPLICATION : Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. -.Link -https://learn.microsoft.com/powershell/module/az.functions/new-azwebappconfiguration -#> -function New-AzWebAppConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${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.Api20231201.ISiteConfigResource] - # Web app configuration ARM resource. - # 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')] - [System.Management.Automation.SwitchParameter] - # Flag to use Managed Identity Creds for ACR pull - ${AcrUseManagedIdentityCred}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # If using user managed identity, the user managed identity ClientId - ${AcrUserManagedIdentityId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Minimum time the process must executebefore taking the action - ${ActionMinProcessExecutionTime}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType] - # Predefined action to be taken. - ${ActionType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Always On is enabled; otherwise, false. - ${AlwaysOn}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The URL of the API definition. - ${ApiDefinitionUrl}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # APIM-Api Identifier. - ${ApiManagementConfigId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # App command line to launch. - ${AppCommandLine}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application settings. - # To construct, see NOTES section for APPSETTING properties and create a hash table. - ${AppSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Auto Heal is enabled; otherwise, false. - ${AutoHealEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Auto-swap slot name. - ${AutoSwapSlotName}, - - [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.Api20231201.ISiteConfigAzureStorageAccounts]))] - [System.Collections.Hashtable] - # List of Azure Storage Accounts. - ${AzureStorageAccount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IConnStringInfo[]] - # Connection strings. - # To construct, see NOTES section for CONNECTIONSTRING properties and create a hash table. - ${ConnectionString}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Gets or sets the list of origins that should be allowed to make cross-origincalls (for example: http://example.com:12345). - # Use "*" to allow all. - ${CorAllowedOrigin}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets whether CORS requests with credentials are allowed. - # See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentialsfor more details. - ${CorSupportCredentials}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Executable to be run. - ${CustomActionExe}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Parameters for the executable. - ${CustomActionParameter}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Default documents. - ${DefaultDocument}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if detailed error logging is enabled; otherwise, false. - ${DetailedErrorLoggingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Document root. - ${DocumentRoot}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${DynamicTagsJson}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to apps in plans where ElasticScaleEnabled is true - ${ElasticWebAppScaleLimit}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IRampUpRule[]] - # List of ramp-up rules. - # To construct, see NOTES section for EXPERIMENTRAMPUPRULE properties and create a hash table. - ${ExperimentRampUpRule}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState] - # State of FTP / FTPS service - ${FtpsState}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to the Consumption and Elastic Premium Plans - ${FunctionAppScaleLimit}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether functions runtime scale monitoring is enabled. - # When enabled,the ScaleController will not monitor event sources directly, but will instead call to theruntime to get scale status. - ${FunctionsRuntimeScaleMonitoringEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IHandlerMapping[]] - # Handler mappings. - # To construct, see NOTES section for HANDLERMAPPING properties and create a hash table. - ${HandlerMapping}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Health check path - ${HealthCheckPath}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Http20Enabled: configures a web site to allow clients to connect over http2.0 - ${Http20Enabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if HTTP logging is enabled; otherwise, false. - ${HttpLoggingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for main. - # To construct, see NOTES section for IPSECURITYRESTRICTION properties and create a hash table. - ${IPSecurityRestriction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for main access restriction if no rules are matched. - ${IPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a flag indicating whether the Push endpoint is enabled. - ${IsPushEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container. - ${JavaContainer}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container version. - ${JavaContainerVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java version. - ${JavaVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.Int64] - # Maximum allowed disk size usage in MB. - ${LimitMaxDiskSizeInMb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int64] - # Maximum allowed memory usage in MB. - ${LimitMaxMemoryInMb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Maximum allowed CPU usage percentage. - ${LimitMaxPercentageCpu}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Linux App Framework and version - ${LinuxFxVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing] - # Site load balancing. - ${LoadBalancing}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable local MySQL; otherwise, false. - ${LocalMySqlEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # HTTP logs directory size limit. - ${LogsDirectorySizeLimit}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode] - # Managed pipeline mode. - ${ManagedPipelineMode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Managed Service Identity Id - ${ManagedServiceIdentityId}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application metadata. - # This property cannot be retrieved, since it may contain secrets. - # To construct, see NOTES section for METADATA properties and create a hash table. - ${Metadata}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites] - # The minimum strength TLS cipher suite allowed for an application - ${MinTlsCipherSuite}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # MinTlsVersion: configures the minimum version of TLS required for SSL requests - ${MinTlsVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of minimum instance count for a siteThis setting only applies to the Elastic Plans - ${MinimumElasticInstanceCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # .NET Framework version. - ${NetFrameworkVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Node.js. - ${NodeVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of workers. - ${NumberOfWorker}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PHP. - ${PhpVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PowerShell. - ${PowerShellVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of preWarmed instances.This setting only applies to the Consumption and Elastic Plans - ${PreWarmedInstanceCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Publishing user name. - ${PublishingUsername}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${PushKind}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Python. - ${PythonVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if remote debugging is enabled; otherwise, false. - ${RemoteDebuggingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Remote debugging version. - ${RemoteDebuggingVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${RequestCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${RequestTimeInterval}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if request tracing is enabled; otherwise, false. - ${RequestTracingEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.DateTime] - # Request tracing expiration time. - ${RequestTracingExpirationTime}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for scm. - # To construct, see NOTES section for SCMIPSECURITYRESTRICTION properties and create a hash table. - ${ScmIPSecurityRestriction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for scm access restriction if no rules are matched. - ${ScmIPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # IP security restrictions for scm to use main. - ${ScmIPSecurityRestrictionsUseMain}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - ${ScmMinTlsVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType] - # SCM type. - ${ScmType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${SlowRequestCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Request Path. - ${SlowRequestPath}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${SlowRequestTimeInterval}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time taken. - ${SlowRequestTimeTaken}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - ${TagWhitelistJson}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${TagsRequiringAuth}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Tracing options. - ${TracingOption}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # A rule based on private bytes. - ${TriggerPrivateBytesInKb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISlowRequestsBasedTrigger[]] - # A rule based on multiple Slow Requests Rule with path - # To construct, see NOTES section for TRIGGERSLOWREQUESTSWITHPATH properties and create a hash table. - ${TriggerSlowRequestsWithPath}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesBasedTrigger[]] - # A rule based on status codes. - # To construct, see NOTES section for TRIGGERSTATUSCODE properties and create a hash table. - ${TriggerStatusCode}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesRangeBasedTrigger[]] - # A rule based on status codes ranges. - # To construct, see NOTES section for TRIGGERSTATUSCODESRANGE properties and create a hash table. - ${TriggerStatusCodesRange}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to use 32-bit worker process; otherwise, false. - ${Use32BitWorkerProcess}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IVirtualApplication[]] - # Virtual applications. - # To construct, see NOTES section for VIRTUALAPPLICATION properties and create a hash table. - ${VirtualApplication}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Virtual Network name. - ${VnetName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The number of private ports assigned to this app. - # These will be assigned dynamically on runtime. - ${VnetPrivatePortsCount}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if WebSocket is enabled; otherwise, false. - ${WebSocketsEnabled}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Sets the time zone a site uses for generating timestamps. - # Compatible with Linux and Windows App Service. - # Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. - # For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - # For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - ${WebsiteTimeZone}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Xenon App Framework and version - ${WindowsFxVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Explicit Managed Service Identity Id - ${XManagedServiceIdentityId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfiguration_Create'; - CreateExpanded = 'Az.Functions.private\New-AzWebAppConfiguration_CreateExpanded'; - CreateViaIdentity = 'Az.Functions.private\New-AzWebAppConfiguration_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.Functions.private\New-AzWebAppConfiguration_CreateViaIdentityExpanded'; - } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Delete an App Service plan. -.Description -Description for Delete an App Service plan. -.Example -Get-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionAppPlan -Force -.Example -Remove-AzFunctionAppPlan -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azfunctionappplan -#> -function Remove-AzFunctionAppPlan { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Deletes a web, mobile, or API app, or one of the deployment slots. -.Description -Description for Deletes a web, mobile, or API app, or one of the deployment slots. -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Remove-AzFunctionApp -Force -.Example -Remove-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azfunctionapp -#> -function Remove-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 false if you want to keep empty App Service plan. - # By default, empty App Service plan is 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Delete a function for web site, or a deployment slot. -.Description -Description for Delete a function for web site, or a deployment slot. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azfunction -#> -function Remove-AzFunction { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 the identity. -.Description -Deletes the identity. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/remove-azuserassignedidentity -#> -function Remove-AzUserAssignedIdentity { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the Resource Group to which the identity belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the identity resource. - ${ResourceName}, - - [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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzUserAssignedIdentity_Delete'; - DeleteViaIdentity = 'Az.Functions.private\Remove-AzUserAssignedIdentity_DeleteViaIdentity'; - } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Restarts an app (or deployment slot, if specified). -.Description -Description for Restarts an app (or deployment slot, if specified). -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Restart-AzFunctionApp -Force -.Example -Restart-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/restart-azfunctionapp -#> -function Restart-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Restores a specific backup to another app (or deployment slot, if specified). -.Description -Description for Restores a specific backup to another app (or deployment slot, if specified). -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Collection of databases which should be restored. This list has to match the list of databases included in the backup. - DatabaseType : Database type (e.g. SqlAzure / MySql). - [ConnectionString ]: 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 ]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. - [Name ]: - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -REQUEST : Description of a restore request. - [Kind ]: Kind of resource. - [AdjustConnectionString ]: true if SiteConfig.ConnectionStrings should be set in new app; otherwise, false. - [AppServicePlan ]: Specify app service plan that will own restored site. - [BlobName ]: Name of a blob which contains the backup. - [Database ]: Collection of databases which should be restored. This list has to match the list of databases included in the backup. - DatabaseType : Database type (e.g. SqlAzure / MySql). - [ConnectionString ]: 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 ]: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. - [Name ]: - [HostingEnvironment ]: App Service Environment name, if needed (only when restoring an app to an App Service Environment). - [IgnoreConflictingHostName ]: Changes a logic when restoring an app with custom domains. true to remove custom domains automatically. If false, 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 ]: Ignore the databases and only restore the site content - [OperationType ]: Operation type. - [Overwrite ]: true if the restore operation can overwrite target app; otherwise, false. true is needed if trying to restore over an existing app. - [SiteName ]: Name of an app. - [StorageAccountUrl ]: SAS URL to the container. -.Link -https://learn.microsoft.com/powershell/module/az.functions/restore-azfunctionapp -#> -function Restore-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='RestoreExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Restore', Mandatory)] - [Parameter(ParameterSetName='RestoreExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # ID of the backup. - ${BackupId}, - - [Parameter(ParameterSetName='Restore', Mandatory)] - [Parameter(ParameterSetName='RestoreExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [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='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='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, ValueFromPipeline)] - [Parameter(ParameterSetName='RestoreViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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] - # true if SiteConfig.ConnectionStrings should be set in new app; otherwise, false. - ${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')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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] - # Changes a logic when restoring an app with custom domains. - # true to remove custom domains automatically. - # If false, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation. - ${IgnoreConflictingHostName}, - - [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')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${Kind}, - - [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.Management.Automation.SwitchParameter] - # true if the restore operation can overwrite target app; otherwise, false. - # true is needed if trying to restore over an existing app. - ${Overwrite}, - - [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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - 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 (('Restore', 'RestoreExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Creates or updates an App Service Plan. -.Description -Description for Creates or updates an App Service Plan. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : App Service plan. - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [Capacity ]: Current number of instances assigned to the resource. - [ElasticScaleEnabled ]: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - [ExtendedLocationName ]: Name of extended location. - [FreeOfferExpirationTime ]: The time when the server farm free offer expires. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HyperV ]: If Hyper-V container app service plan true, false otherwise. - [IsSpot ]: If true, this App Service Plan owns spot instances. - [IsXenon ]: Obsolete: If Hyper-V container app service plan true, false otherwise. - [KubeEnvironmentProfileId ]: Resource ID of the Kubernetes Environment. - [MaximumElasticWorkerCount ]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan - [PerSiteScaling ]: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. - [Reserved ]: If Linux app service plan true, false otherwise. - [SkuCapability ]: Capabilities of the SKU, e.g., is traffic manager enabled? - [Name ]: Name of the SKU capability. - [Reason ]: Reason of the SKU capability. - [Value ]: Value of the SKU capability. - [SkuCapacityDefault ]: Default number of workers for this App Service plan SKU. - [SkuCapacityElasticMaximum ]: Maximum number of Elastic workers for this App Service plan SKU. - [SkuCapacityMaximum ]: Maximum number of workers for this App Service plan SKU. - [SkuCapacityMinimum ]: Minimum number of workers for this App Service plan SKU. - [SkuCapacityScaleType ]: Available scale configurations for an App Service plan. - [SkuFamily ]: Family code of the resource SKU. - [SkuLocation ]: Locations of the SKU. - [SkuName ]: Name of the resource SKU. - [SkuSize ]: Size specifier of the resource SKU. - [SkuTier ]: Service tier of the resource SKU. - [SpotExpirationTime ]: The time when the server farm expires. Valid only if it is a spot server farm. - [TargetWorkerCount ]: Scaling worker count. - [TargetWorkerSizeId ]: Scaling worker size ID. - [WorkerTierName ]: Target worker tier assigned to the App Service plan. - [ZoneRedundant ]: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. - -SKUCAPABILITY : Capabilities of the SKU, e.g., is traffic manager enabled - [Name ]: Name of the SKU capability. - [Reason ]: Reason of the SKU capability. - [Value ]: Value of the SKU capability. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azfunctionappplan -#> -function Set-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.Management.Automation.SwitchParameter] - # ServerFarm supports ElasticScale. - # Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - ${ElasticScaleEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of extended location. - ${ExtendedLocationName}, - - [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 true, false otherwise. - ${HyperV}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # If true, 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 true, false 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.String] - # Resource ID of the Kubernetes Environment. - ${KubeEnvironmentProfileId}, - - [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 true, apps assigned to this App Service plan can be scaled independently.If false, 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 true, false otherwise. - ${Reserved}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 Elastic workers for this App Service plan SKU. - ${SkuCapacityElasticMaximum}, - - [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')] - [AllowEmptyCollection()] - [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.Api20231201.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(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # If true, this App Service Plan will perform availability zone balancing.If false, this App Service Plan will not perform availability zone balancing. - ${ZoneRedundant}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. -.Description -Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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. - -HOSTNAMESSLSTATE : Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - -SCALEANDCONCURRENCYALWAYSREADY : 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - -SITECONFIG : Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -SITEENVELOPE : A web app, a mobile app backend, or an API app. - Location : Resource Location. - [Kind ]: Kind of resource. - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. - [AuthenticationStorageAccountConnectionStringName ]: Use this property for StorageAccountConnectionString. Set the name of the app setting that has the storage account connection string. Do not set a value for this property when using other authentication type. - [AuthenticationType ]: Property to select authentication type to access the selected storage account. Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - [AuthenticationUserAssignedIdentityResourceId ]: Use this property for UserAssignedIdentity. Set the resource ID of the identity. Do not set a value for this property when using other authentication type. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [Config ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DaprConfigAppId ]: Dapr application identifier - [DaprConfigAppPort ]: Tells Dapr which port your application is listening on - [DaprConfigEnableApiLogging ]: Enables API logging for the Dapr sidecar - [DaprConfigEnabled ]: Boolean indicating if the Dapr side car is enabled - [DaprConfigHttpMaxRequestSize ]: Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. - [DaprConfigHttpReadBufferSize ]: Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. - [DaprConfigLogLevel ]: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [ExtendedLocationName ]: Name of extended location. - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpPerInstanceConcurrency ]: The maximum number of concurrent HTTP trigger invocations per instance. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [ManagedEnvironmentId ]: Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [PublicNetworkAccess ]: Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ResourceConfigCpu ]: Required CPU in cores, e.g. 0.5 - [ResourceConfigMemory ]: Required memory, e.g. "1Gi" - [RuntimeName ]: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom - [RuntimeVersion ]: Function app runtime version. Example: 8 (for dotnet-isolated) - [ScaleAndConcurrencyAlwaysReady ]: 'Always Ready' configuration for the function app. - [InstanceCount ]: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - [Name ]: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready. - [ScaleAndConcurrencyInstanceMemoryMb ]: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally. - [ScaleAndConcurrencyMaximumInstanceCount ]: The maximum number of instances for the function app. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [StorageType ]: Property to select Azure Storage type. Available options: blobContainer. - [StorageValue ]: Property to set the URL for the selected Azure Storage type. Example: For blobContainer, the value could be https://.blob.core.windows.net/. - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - [VnetBackupRestoreEnabled ]: To enable Backup and Restore operations over virtual network - [VnetContentShareEnabled ]: To enable accessing content over virtual network - [VnetImagePullEnabled ]: To enable pulling image over Virtual Network - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WorkloadProfileName ]: Workload profile name for function app to execute on. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azfunctionapp -#> -function Set-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.String] - # Use this property for StorageAccountConnectionString. - # Set the name of the app setting that has the storage account connection string. - # Do not set a value for this property when using other authentication type. - ${AuthenticationStorageAccountConnectionStringName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AuthenticationType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AuthenticationType] - # Property to select authentication type to access the selected storage account. - # Available options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - ${AuthenticationType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Use this property for UserAssignedIdentity. - # Set the resource ID of the identity. - # Do not set a value for this property when using other authentication type. - ${AuthenticationUserAssignedIdentityResourceId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. - # Default is true. - ${ClientAffinityEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable client certificate authentication (TLS mutual authentication); otherwise, false. - # Default is false. - ${ClientCertEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # client certificate authentication comma-separated exclusion paths - ${ClientCertExclusionPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ClientCertMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ClientCertMode] - # This composes with ClientCertEnabled setting.- ClientCertEnabled: false means ClientCert is ignored.- ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.- ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - ${ClientCertMode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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] - # true to clone custom hostnames from source app; otherwise, false. - ${CloningInfoCloneCustomHostName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to clone source control from source app; otherwise, false. - ${CloningInfoCloneSourceControl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true 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] - # true to overwrite destination app; otherwise, false. - ${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.String] - # Unique identifier that verifies the custom domains assigned to the app. - # Customer will add this id to a txt record for verification. - ${CustomDomainVerificationId}, - - [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.String] - # Dapr application identifier - ${DaprConfigAppId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Tells Dapr which port your application is listening on - ${DaprConfigAppPort}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Enables API logging for the Dapr sidecar - ${DaprConfigEnableApiLogging}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Boolean indicating if the Dapr side car is enabled - ${DaprConfigEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Increasing max size of request body http servers parameter in MB to handle uploading of big files. - # Default is 4 MB. - ${DaprConfigHttpMaxRequestSize}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. - # Default is 65KB. - ${DaprConfigHttpReadBufferSize}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DaprLogLevel])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DaprLogLevel] - # Sets the log level for the Dapr sidecar. - # Allowed values are debug, info, warn, error. - # Default is info. - ${DaprConfigLogLevel}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Alternate DNS server to be used by apps. - # This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - ${DnsConfigurationDnsAltServer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Custom time for DNS to be cached in seconds. - # Allowed range: 0-60. - # Default is 30 seconds. - # 0 means caching disabled. - ${DnsConfigurationDnsMaxCacheTimeout}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Total number of retries for dns lookup. - # Allowed range: 1-5. - # Default is 3. - ${DnsConfigurationDnsRetryAttemptCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Timeout for a single dns lookup in seconds. - # Allowed range: 1-30. - # Default is 3. - ${DnsConfigurationDnsRetryAttemptTimeout}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # List of custom DNS servers to be used by an app for lookups. - # Maximum 5 dns servers can be set. - ${DnsConfigurationDnsServer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if the app is enabled; otherwise, false. - # Setting this value to false disables the app (takes the app offline). - ${Enabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of extended location. - ${ExtendedLocationName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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] - # true to disable the public hostnames of the app; otherwise, false. - # If true, 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.Single] - # The maximum number of concurrent HTTP trigger invocations per instance. - ${HttpPerInstanceConcurrency}, - - [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.Api20231201.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] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.String] - # Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. - # This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - ${ManagedEnvironmentId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - # Allowed Values: 'Enabled', 'Disabled' or an empty string. - ${PublicNetworkAccess}, - - [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] - # true if reserved; otherwise, false. - ${Reserved}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Required CPU in cores, e.g. - # 0.5 - ${ResourceConfigCpu}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Required memory, e.g. - # "1Gi" - ${ResourceConfigMemory}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RuntimeName])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.RuntimeName] - # Function app runtime name. - # Available options: dotnet-isolated, node, java, powershell, python, custom - ${RuntimeName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Function app runtime version. - # Example: 8 (for dotnet-isolated) - ${RuntimeVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IFunctionsAlwaysReadyConfig[]] - # 'Always Ready' configuration for the function app. - # To construct, see NOTES section for SCALEANDCONCURRENCYALWAYSREADY properties and create a hash table. - ${ScaleAndConcurrencyAlwaysReady}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Single] - # Set the amount of memory allocated to each instance of the function app in MB. - # CPU and network bandwidth are allocated proportionally. - ${ScaleAndConcurrencyInstanceMemoryMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Single] - # The maximum number of instances for the function app. - ${ScaleAndConcurrencyMaximumInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to stop SCM (KUDU) site when the app is stopped; otherwise, false. - # The default is false. - ${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.Api20231201.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')] - [System.Management.Automation.SwitchParameter] - # Checks if Customer provided storage account is required - ${StorageAccountRequired}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionsDeploymentStorageType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FunctionsDeploymentStorageType] - # Property to select Azure Storage type. - # Available options: blobContainer. - ${StorageType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to set the URL for the selected Azure Storage type. - # Example: For blobContainer, the value could be https://.blob.core.windows.net/. - ${StorageValue}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - ${VirtualNetworkSubnetId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # To enable Backup and Restore operations over virtual network - ${VnetBackupRestoreEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # To enable accessing content over virtual network - ${VnetContentShareEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # To enable pulling image over Virtual Network - ${VnetImagePullEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Workload profile name for function app to execute on. - ${WorkloadProfileName}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 or update an identity in the specified subscription and resource group. -.Description -Create or update an identity in the specified subscription and resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated -.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. - -PARAMETER : Describes an identity resource. - Location : The geo-location where the resource lives - [Tag ]: Resource tags. - [(Any) ]: This indicates any property can be added to this object. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azuserassignedidentity -#> -function Set-AzUserAssignedIdentity { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the Resource Group to which the identity belongs. - ${ResourceGroupName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the identity resource. - ${ResourceName}, - - [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.Api20181130.IIdentityAutoGenerated] - # Describes an identity resource. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api10.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzUserAssignedIdentity_Update'; - UpdateExpanded = 'Az.Functions.private\Set-AzUserAssignedIdentity_UpdateExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Replaces the application settings of an app. -.Description -Description for Replaces the application settings of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : String dictionary resource. - [Kind ]: Kind of resource. - [Property ]: Settings. - [(Any) ]: This indicates any property can be added to this object. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azwebappapplicationsettingslot -#> -function Set-AzWebAppApplicationSettingSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.Api20231201.IStringDictionaryProperties]))] - [System.Collections.Hashtable] - # Settings. - ${Property}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Replaces the application settings of an app. -.Description -Description for Replaces the application settings of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : String dictionary resource. - [Kind ]: Kind of resource. - [Property ]: Settings. - [(Any) ]: This indicates any property can be added to this object. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azwebappapplicationsetting -#> -function Set-AzWebAppApplicationSetting { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStringDictionary])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.Api20231201.IStringDictionaryProperties]))] - [System.Collections.Hashtable] - # Settings. - ${Property}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates the configuration of an app. -.Description -Description for Updates the configuration of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.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 : Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - -CONNECTIONSTRING : Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - -EXPERIMENTRAMPUPRULE : List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - -HANDLERMAPPING : Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - -IPSECURITYRESTRICTION : IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -METADATA : Application metadata. This property cannot be retrieved, since it may contain secrets. - [Name ]: Pair name. - [Value ]: Pair value. - -SCMIPSECURITYRESTRICTION : IP security restrictions for scm. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -SITECONFIG : Web app configuration ARM resource. - [Kind ]: Kind of resource. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -TRIGGERSLOWREQUESTSWITHPATH : A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - -TRIGGERSTATUSCODE : A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - -TRIGGERSTATUSCODESRANGE : A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - -VIRTUALAPPLICATION : Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azwebappconfigurationslot -#> -function Set-AzWebAppConfigurationSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 configuration 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.Api20231201.ISiteConfigResource] - # Web app configuration ARM resource. - # To construct, see NOTES section for SITECONFIG properties and create a hash table. - ${SiteConfig}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Flag to use Managed Identity Creds for ACR pull - ${AcrUseManagedIdentityCred}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # If using user managed identity, the user managed identity ClientId - ${AcrUserManagedIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Minimum time the process must executebefore taking the action - ${ActionMinProcessExecutionTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType] - # Predefined action to be taken. - ${ActionType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Always On is enabled; otherwise, false. - ${AlwaysOn}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The URL of the API definition. - ${ApiDefinitionUrl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # APIM-Api Identifier. - ${ApiManagementConfigId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # App command line to launch. - ${AppCommandLine}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application settings. - # 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.Management.Automation.SwitchParameter] - # true if Auto Heal is enabled; otherwise, false. - ${AutoHealEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Auto-swap slot name. - ${AutoSwapSlotName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigAzureStorageAccounts]))] - [System.Collections.Hashtable] - # List of Azure Storage Accounts. - ${AzureStorageAccount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IConnStringInfo[]] - # Connection strings. - # To construct, see NOTES section for CONNECTIONSTRING properties and create a hash table. - ${ConnectionString}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Gets or sets the list of origins that should be allowed to make cross-origincalls (for example: http://example.com:12345). - # Use "*" to allow all. - ${CorAllowedOrigin}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets whether CORS requests with credentials are allowed. - # See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentialsfor more details. - ${CorSupportCredentials}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Executable to be run. - ${CustomActionExe}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Parameters for the executable. - ${CustomActionParameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Default documents. - ${DefaultDocument}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if detailed error logging is enabled; otherwise, false. - ${DetailedErrorLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Document root. - ${DocumentRoot}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${DynamicTagsJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to apps in plans where ElasticScaleEnabled is true - ${ElasticWebAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IRampUpRule[]] - # List of ramp-up rules. - # To construct, see NOTES section for EXPERIMENTRAMPUPRULE properties and create a hash table. - ${ExperimentRampUpRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState] - # State of FTP / FTPS service - ${FtpsState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to the Consumption and Elastic Premium Plans - ${FunctionAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether functions runtime scale monitoring is enabled. - # When enabled,the ScaleController will not monitor event sources directly, but will instead call to theruntime to get scale status. - ${FunctionsRuntimeScaleMonitoringEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IHandlerMapping[]] - # Handler mappings. - # To construct, see NOTES section for HANDLERMAPPING properties and create a hash table. - ${HandlerMapping}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Health check path - ${HealthCheckPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Http20Enabled: configures a web site to allow clients to connect over http2.0 - ${Http20Enabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if HTTP logging is enabled; otherwise, false. - ${HttpLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for main. - # To construct, see NOTES section for IPSECURITYRESTRICTION properties and create a hash table. - ${IPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for main access restriction if no rules are matched. - ${IPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a flag indicating whether the Push endpoint is enabled. - ${IsPushEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container. - ${JavaContainer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container version. - ${JavaContainerVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java version. - ${JavaVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.Int64] - # Maximum allowed disk size usage in MB. - ${LimitMaxDiskSizeInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int64] - # Maximum allowed memory usage in MB. - ${LimitMaxMemoryInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Maximum allowed CPU usage percentage. - ${LimitMaxPercentageCpu}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Linux App Framework and version - ${LinuxFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing] - # Site load balancing. - ${LoadBalancing}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable local MySQL; otherwise, false. - ${LocalMySqlEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # HTTP logs directory size limit. - ${LogsDirectorySizeLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode] - # Managed pipeline mode. - ${ManagedPipelineMode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Managed Service Identity Id - ${ManagedServiceIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application metadata. - # This property cannot be retrieved, since it may contain secrets. - # To construct, see NOTES section for METADATA properties and create a hash table. - ${Metadata}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites] - # The minimum strength TLS cipher suite allowed for an application - ${MinTlsCipherSuite}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # MinTlsVersion: configures the minimum version of TLS required for SSL requests - ${MinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of minimum instance count for a siteThis setting only applies to the Elastic Plans - ${MinimumElasticInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # .NET Framework version. - ${NetFrameworkVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Node.js. - ${NodeVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of workers. - ${NumberOfWorker}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PHP. - ${PhpVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PowerShell. - ${PowerShellVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of preWarmed instances.This setting only applies to the Consumption and Elastic Plans - ${PreWarmedInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Publishing user name. - ${PublishingUsername}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${PushKind}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Python. - ${PythonVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if remote debugging is enabled; otherwise, false. - ${RemoteDebuggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Remote debugging version. - ${RemoteDebuggingVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${RequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${RequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if request tracing is enabled; otherwise, false. - ${RequestTracingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.DateTime] - # Request tracing expiration time. - ${RequestTracingExpirationTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for scm. - # To construct, see NOTES section for SCMIPSECURITYRESTRICTION properties and create a hash table. - ${ScmIPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for scm access restriction if no rules are matched. - ${ScmIPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # IP security restrictions for scm to use main. - ${ScmIPSecurityRestrictionsUseMain}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - ${ScmMinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType] - # SCM type. - ${ScmType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${SlowRequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Request Path. - ${SlowRequestPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${SlowRequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time taken. - ${SlowRequestTimeTaken}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - ${TagWhitelistJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${TagsRequiringAuth}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Tracing options. - ${TracingOption}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # A rule based on private bytes. - ${TriggerPrivateBytesInKb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISlowRequestsBasedTrigger[]] - # A rule based on multiple Slow Requests Rule with path - # To construct, see NOTES section for TRIGGERSLOWREQUESTSWITHPATH properties and create a hash table. - ${TriggerSlowRequestsWithPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesBasedTrigger[]] - # A rule based on status codes. - # To construct, see NOTES section for TRIGGERSTATUSCODE properties and create a hash table. - ${TriggerStatusCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesRangeBasedTrigger[]] - # A rule based on status codes ranges. - # To construct, see NOTES section for TRIGGERSTATUSCODESRANGE properties and create a hash table. - ${TriggerStatusCodesRange}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to use 32-bit worker process; otherwise, false. - ${Use32BitWorkerProcess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IVirtualApplication[]] - # Virtual applications. - # To construct, see NOTES section for VIRTUALAPPLICATION properties and create a hash table. - ${VirtualApplication}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Virtual Network name. - ${VnetName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The number of private ports assigned to this app. - # These will be assigned dynamically on runtime. - ${VnetPrivatePortsCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if WebSocket is enabled; otherwise, false. - ${WebSocketsEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Sets the time zone a site uses for generating timestamps. - # Compatible with Linux and Windows App Service. - # Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. - # For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - # For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - ${WebsiteTimeZone}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Xenon App Framework and version - ${WindowsFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Explicit Managed Service Identity Id - ${XManagedServiceIdentityId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSlot_Update'; - UpdateExpanded = 'Az.Functions.private\Set-AzWebAppConfigurationSlot_UpdateExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates the configuration of an app. -.Description -Description for Updates the configuration of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.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 : Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - -CONNECTIONSTRING : Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - -EXPERIMENTRAMPUPRULE : List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - -HANDLERMAPPING : Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - -IPSECURITYRESTRICTION : IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -METADATA : Application metadata. This property cannot be retrieved, since it may contain secrets. - [Name ]: Pair name. - [Value ]: Pair value. - -SCMIPSECURITYRESTRICTION : IP security restrictions for scm. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -SITECONFIG : Web app configuration ARM resource. - [Kind ]: Kind of resource. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -TRIGGERSLOWREQUESTSWITHPATH : A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - -TRIGGERSTATUSCODE : A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - -TRIGGERSTATUSCODESRANGE : A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - -VIRTUALAPPLICATION : Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azwebappconfiguration -#> -function Set-AzWebAppConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.ISiteConfigResource] - # Web app configuration ARM resource. - # To construct, see NOTES section for SITECONFIG properties and create a hash table. - ${SiteConfig}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Flag to use Managed Identity Creds for ACR pull - ${AcrUseManagedIdentityCred}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # If using user managed identity, the user managed identity ClientId - ${AcrUserManagedIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Minimum time the process must executebefore taking the action - ${ActionMinProcessExecutionTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType] - # Predefined action to be taken. - ${ActionType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Always On is enabled; otherwise, false. - ${AlwaysOn}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The URL of the API definition. - ${ApiDefinitionUrl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # APIM-Api Identifier. - ${ApiManagementConfigId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # App command line to launch. - ${AppCommandLine}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application settings. - # 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.Management.Automation.SwitchParameter] - # true if Auto Heal is enabled; otherwise, false. - ${AutoHealEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Auto-swap slot name. - ${AutoSwapSlotName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigAzureStorageAccounts]))] - [System.Collections.Hashtable] - # List of Azure Storage Accounts. - ${AzureStorageAccount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IConnStringInfo[]] - # Connection strings. - # To construct, see NOTES section for CONNECTIONSTRING properties and create a hash table. - ${ConnectionString}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Gets or sets the list of origins that should be allowed to make cross-origincalls (for example: http://example.com:12345). - # Use "*" to allow all. - ${CorAllowedOrigin}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets whether CORS requests with credentials are allowed. - # See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentialsfor more details. - ${CorSupportCredentials}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Executable to be run. - ${CustomActionExe}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Parameters for the executable. - ${CustomActionParameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Default documents. - ${DefaultDocument}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if detailed error logging is enabled; otherwise, false. - ${DetailedErrorLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Document root. - ${DocumentRoot}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${DynamicTagsJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to apps in plans where ElasticScaleEnabled is true - ${ElasticWebAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IRampUpRule[]] - # List of ramp-up rules. - # To construct, see NOTES section for EXPERIMENTRAMPUPRULE properties and create a hash table. - ${ExperimentRampUpRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState] - # State of FTP / FTPS service - ${FtpsState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to the Consumption and Elastic Premium Plans - ${FunctionAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether functions runtime scale monitoring is enabled. - # When enabled,the ScaleController will not monitor event sources directly, but will instead call to theruntime to get scale status. - ${FunctionsRuntimeScaleMonitoringEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IHandlerMapping[]] - # Handler mappings. - # To construct, see NOTES section for HANDLERMAPPING properties and create a hash table. - ${HandlerMapping}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Health check path - ${HealthCheckPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Http20Enabled: configures a web site to allow clients to connect over http2.0 - ${Http20Enabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if HTTP logging is enabled; otherwise, false. - ${HttpLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for main. - # To construct, see NOTES section for IPSECURITYRESTRICTION properties and create a hash table. - ${IPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for main access restriction if no rules are matched. - ${IPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a flag indicating whether the Push endpoint is enabled. - ${IsPushEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container. - ${JavaContainer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container version. - ${JavaContainerVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java version. - ${JavaVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.Int64] - # Maximum allowed disk size usage in MB. - ${LimitMaxDiskSizeInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int64] - # Maximum allowed memory usage in MB. - ${LimitMaxMemoryInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Maximum allowed CPU usage percentage. - ${LimitMaxPercentageCpu}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Linux App Framework and version - ${LinuxFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing] - # Site load balancing. - ${LoadBalancing}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable local MySQL; otherwise, false. - ${LocalMySqlEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # HTTP logs directory size limit. - ${LogsDirectorySizeLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode] - # Managed pipeline mode. - ${ManagedPipelineMode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Managed Service Identity Id - ${ManagedServiceIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application metadata. - # This property cannot be retrieved, since it may contain secrets. - # To construct, see NOTES section for METADATA properties and create a hash table. - ${Metadata}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites] - # The minimum strength TLS cipher suite allowed for an application - ${MinTlsCipherSuite}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # MinTlsVersion: configures the minimum version of TLS required for SSL requests - ${MinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of minimum instance count for a siteThis setting only applies to the Elastic Plans - ${MinimumElasticInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # .NET Framework version. - ${NetFrameworkVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Node.js. - ${NodeVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of workers. - ${NumberOfWorker}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PHP. - ${PhpVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PowerShell. - ${PowerShellVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of preWarmed instances.This setting only applies to the Consumption and Elastic Plans - ${PreWarmedInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Publishing user name. - ${PublishingUsername}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${PushKind}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Python. - ${PythonVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if remote debugging is enabled; otherwise, false. - ${RemoteDebuggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Remote debugging version. - ${RemoteDebuggingVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${RequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${RequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if request tracing is enabled; otherwise, false. - ${RequestTracingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.DateTime] - # Request tracing expiration time. - ${RequestTracingExpirationTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for scm. - # To construct, see NOTES section for SCMIPSECURITYRESTRICTION properties and create a hash table. - ${ScmIPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for scm access restriction if no rules are matched. - ${ScmIPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # IP security restrictions for scm to use main. - ${ScmIPSecurityRestrictionsUseMain}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - ${ScmMinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType] - # SCM type. - ${ScmType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${SlowRequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Request Path. - ${SlowRequestPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${SlowRequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time taken. - ${SlowRequestTimeTaken}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - ${TagWhitelistJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${TagsRequiringAuth}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Tracing options. - ${TracingOption}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # A rule based on private bytes. - ${TriggerPrivateBytesInKb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISlowRequestsBasedTrigger[]] - # A rule based on multiple Slow Requests Rule with path - # To construct, see NOTES section for TRIGGERSLOWREQUESTSWITHPATH properties and create a hash table. - ${TriggerSlowRequestsWithPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesBasedTrigger[]] - # A rule based on status codes. - # To construct, see NOTES section for TRIGGERSTATUSCODE properties and create a hash table. - ${TriggerStatusCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesRangeBasedTrigger[]] - # A rule based on status codes ranges. - # To construct, see NOTES section for TRIGGERSTATUSCODESRANGE properties and create a hash table. - ${TriggerStatusCodesRange}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to use 32-bit worker process; otherwise, false. - ${Use32BitWorkerProcess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IVirtualApplication[]] - # Virtual applications. - # To construct, see NOTES section for VIRTUALAPPLICATION properties and create a hash table. - ${VirtualApplication}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Virtual Network name. - ${VnetName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The number of private ports assigned to this app. - # These will be assigned dynamically on runtime. - ${VnetPrivatePortsCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if WebSocket is enabled; otherwise, false. - ${WebSocketsEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Sets the time zone a site uses for generating timestamps. - # Compatible with Linux and Windows App Service. - # Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. - # For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - # For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - ${WebsiteTimeZone}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Xenon App Framework and version - ${WindowsFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Explicit Managed Service Identity Id - ${XManagedServiceIdentityId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfiguration_Update'; - UpdateExpanded = 'Az.Functions.private\Set-AzWebAppConfiguration_UpdateExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates whether user publishing credentials are allowed on the site or not. -.Description -Description for Updates whether user publishing credentials are allowed on the site or not. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CSMPUBLISHINGACCESSPOLICIESENTITY : Publishing Credentials Policies parameters. - [Kind ]: Kind of resource. - [Allow ]: true to allow access to a publishing method; otherwise, false. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azwebappscmallowedslot -#> -function Set-AzWebAppScmAllowedSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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] - # . - ${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.Api20231201.ICsmPublishingCredentialsPoliciesEntity] - # Publishing Credentials Policies parameters. - # To construct, see NOTES section for CSMPUBLISHINGACCESSPOLICIESENTITY properties and create a hash table. - ${CsmPublishingAccessPoliciesEntity}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to allow access to a publishing method; otherwise, false. - ${Allow}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${Kind}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppScmAllowedSlot_Update'; - UpdateExpanded = 'Az.Functions.private\Set-AzWebAppScmAllowedSlot_UpdateExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates whether user publishing credentials are allowed on the site or not. -.Description -Description for Updates whether user publishing credentials are allowed on the site or not. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -CSMPUBLISHINGACCESSPOLICIESENTITY : Publishing Credentials Policies parameters. - [Kind ]: Kind of resource. - [Allow ]: true to allow access to a publishing method; otherwise, false. -.Link -https://learn.microsoft.com/powershell/module/az.functions/set-azwebappscmallowed -#> -function Set-AzWebAppScmAllowed { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ICsmPublishingCredentialsPoliciesEntity])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.ICsmPublishingCredentialsPoliciesEntity] - # Publishing Credentials Policies parameters. - # To construct, see NOTES section for CSMPUBLISHINGACCESSPOLICIESENTITY properties and create a hash table. - ${CsmPublishingAccessPoliciesEntity}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to allow access to a publishing method; otherwise, false. - ${Allow}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${Kind}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppScmAllowed_Update'; - UpdateExpanded = 'Az.Functions.private\Set-AzWebAppScmAllowed_UpdateExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Starts an app (or deployment slot, if specified). -.Description -Description for Starts an app (or deployment slot, if specified). -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Start-AzFunctionApp -.Example -Start-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/start-azfunctionapp -#> -function Start-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Stops an app (or deployment slot, if specified). -.Description -Description for Stops an app (or deployment slot, if specified). -.Example -Get-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName | Stop-AzFunctionApp -Force -.Example -Stop-AzFunctionApp -Name MyAppName -ResourceGroupName MyResourceGroupName -Force - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/stop-azfunctionapp -#> -function Stop-AzFunctionApp { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Syncs function trigger metadata to the management database -.Description -Description for Syncs function trigger metadata to the management database -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/sync-azfunction -#> -function Sync-AzFunction { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Sync', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Sync', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${FunctionAppName}, - - [Parameter(ParameterSetName='Sync', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Sync')] - [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='SyncViaIdentity', 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - Sync = 'Az.Functions.private\Sync-AzFunction_Sync'; - SyncViaIdentity = 'Az.Functions.private\Sync-AzFunction_SyncViaIdentity'; - } - if (('Sync') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Syncs function trigger metadata to the management database -.Description -Description for Syncs function trigger metadata to the management database -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/sync-azwebappfunctionslot -#> -function Sync-AzWebAppFunctionSlot { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Sync', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Sync', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${Name}, - - [Parameter(ParameterSetName='Sync', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Sync', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the deployment slot. - ${Slot}, - - [Parameter(ParameterSetName='Sync')] - [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='SyncViaIdentity', 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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - Sync = 'Az.Functions.private\Sync-AzWebAppFunctionSlot_Sync'; - SyncViaIdentity = 'Az.Functions.private\Sync-AzWebAppFunctionSlot_SyncViaIdentity'; - } - if (('Sync') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Check if a resource name is available. -.Description -Description for Check if a resource name is available. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceNameAvailabilityRequest -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -REQUEST : Resource name availability request content. - Name : Resource name to verify. - Type : Resource type used for verification. - [EnvironmentId ]: Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - [IsFqdn ]: Is fully qualified domain name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/test-aznameavailability -#> -function Test-AzNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceNameAvailability])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.String] - # Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app. - # This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} - ${EnvironmentId}, - - [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 DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Validate if a resource can be created. -.Description -Description for Validate if a resource can be created. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IValidateRequest -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IValidateResponse -.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. - -APPSERVICEENVIRONMENT : App Service Environment Properties - VirtualNetworkId : Resource id of the Virtual Network. - [AllowNewPrivateEndpointConnection ]: Property to enable and disable new private endpoint connection creation on ASE - [CertificateUrl ]: The URL referencing the Azure Key Vault certificate secret that should be used as the default SSL/TLS certificate for sites with the custom domain suffix. - [ClusterSetting ]: Custom settings for changing the behavior of the App Service Environment. - [Name ]: Pair name. - [Value ]: Pair value. - [CustomDnsSuffixConfigurationKind ]: Kind of resource. - [CustomDnsSuffixConfigurationPropertiesDnsSuffix ]: The default custom domain suffix to use for all sites deployed on the ASE. - [DedicatedHostCount ]: Dedicated Host Count - [DnsSuffix ]: DNS suffix of the App Service Environment. - [FrontEndScaleFactor ]: Scale factor for front-ends. - [FtpEnabled ]: Property to enable and disable FTP on ASEV3 - [InboundIPAddressOverride ]: Customer provided Inbound IP Address. Only able to be set on Ase create. - [InternalLoadBalancingMode ]: Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. - [IpsslAddressCount ]: Number of IP SSL addresses reserved for the App Service Environment. - [KeyVaultReferenceIdentity ]: The user-assigned identity to use for resolving the key vault certificate reference. If not specified, the system-assigned ASE identity will be used if available. - [MultiSize ]: Front-end VM size, e.g. "Medium", "Large". - [NetworkingConfigurationKind ]: Kind of resource. - [RemoteDebugEnabled ]: Property to enable and disable Remote Debug on ASEV3 - [UpgradePreference ]: Upgrade Preference - [UserWhitelistedIPRange ]: User added ip ranges to whitelist on ASE db - [VirtualNetworkSubnet ]: Subnet within the Virtual Network. - [ZoneRedundant ]: Whether or not this App Service Environment is zone-redundant. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -VALIDATEREQUEST : Resource validation request content. - Location : Expected location of the resource. - Name : Resource name to verify. - Type : Resource type used for verification. - [AppServiceEnvironment ]: App Service Environment Properties - VirtualNetworkId : Resource id of the Virtual Network. - [AllowNewPrivateEndpointConnection ]: Property to enable and disable new private endpoint connection creation on ASE - [CertificateUrl ]: The URL referencing the Azure Key Vault certificate secret that should be used as the default SSL/TLS certificate for sites with the custom domain suffix. - [ClusterSetting ]: Custom settings for changing the behavior of the App Service Environment. - [Name ]: Pair name. - [Value ]: Pair value. - [CustomDnsSuffixConfigurationKind ]: Kind of resource. - [CustomDnsSuffixConfigurationPropertiesDnsSuffix ]: The default custom domain suffix to use for all sites deployed on the ASE. - [DedicatedHostCount ]: Dedicated Host Count - [DnsSuffix ]: DNS suffix of the App Service Environment. - [FrontEndScaleFactor ]: Scale factor for front-ends. - [FtpEnabled ]: Property to enable and disable FTP on ASEV3 - [InboundIPAddressOverride ]: Customer provided Inbound IP Address. Only able to be set on Ase create. - [InternalLoadBalancingMode ]: Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. - [IpsslAddressCount ]: Number of IP SSL addresses reserved for the App Service Environment. - [KeyVaultReferenceIdentity ]: The user-assigned identity to use for resolving the key vault certificate reference. If not specified, the system-assigned ASE identity will be used if available. - [MultiSize ]: Front-end VM size, e.g. "Medium", "Large". - [NetworkingConfigurationKind ]: Kind of resource. - [RemoteDebugEnabled ]: Property to enable and disable Remote Debug on ASEV3 - [UpgradePreference ]: Upgrade Preference - [UserWhitelistedIPRange ]: User added ip ranges to whitelist on ASE db - [VirtualNetworkSubnet ]: Subnet within the Virtual Network. - [ZoneRedundant ]: Whether or not this App Service Environment is zone-redundant. - [Capacity ]: Target capacity of the App Service plan (number of VMs). - [ContainerImagePlatform ]: Platform (windows or linux) - [ContainerImageRepository ]: Repository name (image name) - [ContainerImageTag ]: Image tag - [ContainerRegistryBaseUrl ]: Base URL of the container registry - [ContainerRegistryPassword ]: Password for to access the container registry - [ContainerRegistryUsername ]: Username for to access the container registry - [HostingEnvironment ]: Name of App Service Environment where app or App Service plan should be created. - [IsSpot ]: true if App Service plan is for Spot instances; otherwise, false. - [IsXenon ]: true if App Service plan is running as a windows container - [NeedLinuxWorker ]: true if App Service plan is for Linux workers; otherwise, false. - [ServerFarmId ]: ARM resource ID of an App Service plan that would host the app. - [SkuName ]: Name of the target SKU for the App Service plan. -.Link -https://learn.microsoft.com/powershell/module/az.functions/test-az -#> -function Test-Az { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IValidateResponse])] -[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Validate', Mandatory)] - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the resource group to which the resource belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Validate')] - [Parameter(ParameterSetName='ValidateExpanded')] - [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='ValidateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', 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='Validate', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IValidateRequest] - # Resource validation request content. - # To construct, see NOTES section for VALIDATEREQUEST properties and create a hash table. - ${ValidateRequest}, - - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Expected location of the resource. - ${Location}, - - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Resource name to verify. - ${Name}, - - [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ValidateResourceTypes])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ValidateResourceTypes] - # Resource type used for verification. - ${Type}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServiceEnvironment] - # App Service Environment Properties - # To construct, see NOTES section for APPSERVICEENVIRONMENT properties and create a hash table. - ${AppServiceEnvironment}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Target capacity of the App Service plan (number of VMs). - ${Capacity}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Platform (windows or linux) - ${ContainerImagePlatform}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Repository name (image name) - ${ContainerImageRepository}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Image tag - ${ContainerImageTag}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Base URL of the container registry - ${ContainerRegistryBaseUrl}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Password for to access the container registry - ${ContainerRegistryPassword}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Username for to access the container registry - ${ContainerRegistryUsername}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of App Service Environment where app or App Service plan should be created. - ${HostingEnvironment}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if App Service plan is for Spot instances; otherwise, false. - ${IsSpot}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if App Service plan is running as a windows container - ${IsXenon}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if App Service plan is for Linux workers; otherwise, false. - ${NeedLinuxWorker}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # ARM resource ID of an App Service plan that would host the app. - ${ServerFarmId}, - - [Parameter(ParameterSetName='ValidateExpanded')] - [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Name of the target SKU for the App Service plan. - ${SkuName}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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 = @{ - Validate = 'Az.Functions.private\Test-Az_Validate'; - ValidateExpanded = 'Az.Functions.private\Test-Az_ValidateExpanded'; - ValidateViaIdentity = 'Az.Functions.private\Test-Az_ValidateViaIdentity'; - ValidateViaIdentityExpanded = 'Az.Functions.private\Test-Az_ValidateViaIdentityExpanded'; - } - if (('Validate', 'ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Creates or updates an App Service Plan. -.Description -Description for Creates or updates an App Service Plan. -.Example -Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName ` - -Name MyPremiumPlan ` - -MaximumWorkerCount 20 ` - -Sku EP2 ` - -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlanPatchResource -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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 : ARM resource for a app service plan. - [Kind ]: Kind of resource. - [ElasticScaleEnabled ]: ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - [FreeOfferExpirationTime ]: The time when the server farm free offer expires. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HyperV ]: If Hyper-V container app service plan true, false otherwise. - [IsSpot ]: If true, this App Service Plan owns spot instances. - [IsXenon ]: Obsolete: If Hyper-V container app service plan true, false otherwise. - [KubeEnvironmentProfileId ]: Resource ID of the Kubernetes Environment. - [MaximumElasticWorkerCount ]: Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan - [PerSiteScaling ]: If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. - [Reserved ]: If Linux app service plan true, false otherwise. - [SpotExpirationTime ]: The time when the server farm expires. Valid only if it is a spot server farm. - [TargetWorkerCount ]: Scaling worker count. - [TargetWorkerSizeId ]: Scaling worker size ID. - [WorkerTierName ]: Target worker tier assigned to the App Service plan. - [ZoneRedundant ]: If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azfunctionappplan -#> -function Update-AzFunctionAppPlan { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IAppServicePlan])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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.Management.Automation.SwitchParameter] - # ServerFarm supports ElasticScale. - # Apps in this plan will scale as if the ServerFarm was ElasticPremium sku - ${ElasticScaleEnabled}, - - [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 true, false otherwise. - ${HyperV}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # If true, 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 true, false 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.String] - # Resource ID of the Kubernetes Environment. - ${KubeEnvironmentProfileId}, - - [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 true, apps assigned to this App Service plan can be scaled independently.If false, 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 true, false 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(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # If true, this App Service Plan will perform availability zone balancing.If false, this App Service Plan will not perform availability zone balancing. - ${ZoneRedundant}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. -.Description -Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -PlanName NewPlanName -Force -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType SystemAssigned -Force -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -ApplicationInsightsName ApplicationInsightsProjectName -Force -.Example -Update-AzFunctionApp -Name MyUniqueFunctionAppName -ResourceGroupName MyResourceGroupName -IdentityType None -Force - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISitePatchResource -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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. - -HOSTNAMESSLSTATE : Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -SITECONFIG : Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -SITEENVELOPE : ARM resource for a site. - [Kind ]: Kind of resource. - [ClientAffinityEnabled ]: true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true. - [ClientCertEnabled ]: true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false. - [ClientCertExclusionPath ]: client certificate authentication comma-separated exclusion paths - [ClientCertMode ]: This composes with ClientCertEnabled setting. - ClientCertEnabled: false means ClientCert is ignored. - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - [CloningInfoAppSettingsOverride ]: 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) ]: This indicates any property can be added to this object. - [CloningInfoCloneCustomHostName ]: true to clone custom hostnames from source app; otherwise, false. - [CloningInfoCloneSourceControl ]: true to clone source control from source app; otherwise, false. - [CloningInfoConfigureLoadBalancing ]: true to configure load balancing for source and destination app. - [CloningInfoCorrelationId ]: Correlation ID of cloning operation. This ID ties multiple cloning operations together to use the same snapshot. - [CloningInfoHostingEnvironment ]: App Service Environment. - [CloningInfoOverwrite ]: true to overwrite destination app; otherwise, false. - [CloningInfoSourceWebAppId ]: 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. - [CloningInfoSourceWebAppLocation ]: Location of source app ex: West US or North Europe - [CloningInfoTrafficManagerProfileId ]: ARM resource ID of the Traffic Manager profile to use, if it exists. Traffic Manager resource ID is of the form /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - [CloningInfoTrafficManagerProfileName ]: Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does not already exist. - [ContainerSize ]: Size of the function container. - [CustomDomainVerificationId ]: Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification. - [DailyMemoryTimeQuota ]: Maximum allowed daily memory-time quota (applicable on dynamic apps only). - [DnsConfigurationDnsAltServer ]: Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - [DnsConfigurationDnsMaxCacheTimeout ]: Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. - [DnsConfigurationDnsRetryAttemptCount ]: Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. - [DnsConfigurationDnsRetryAttemptTimeout ]: Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. - [DnsConfigurationDnsServer ]: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set. - [Enabled ]: true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). - [HostNameSslState ]: Hostname SSL states are used to manage the SSL bindings for app's hostnames. - [HostType ]: Indicates whether the hostname is a standard or repository hostname. - [Name ]: Hostname. - [SslState ]: SSL type. - [Thumbprint ]: SSL certificate thumbprint. - [ToUpdate ]: Set to true to update existing hostname. - [VirtualIP ]: Virtual IP address assigned to the hostname if IP based SSL is enabled. - [HostNamesDisabled ]: true to disable the public hostnames of the app; otherwise, false. If true, the app is only accessible via API management process. - [HostingEnvironmentProfileId ]: Resource ID of the App Service Environment. - [HttpsOnly ]: HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests - [HyperV ]: Hyper-V sandbox. - [IdentityType ]: Type of managed service identity. - [IdentityUserAssignedIdentity ]: 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) ]: This indicates any property can be added to this object. - [IsXenon ]: Obsolete: Hyper-V sandbox. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [RedundancyMode ]: Site redundancy mode - [Reserved ]: true if reserved; otherwise, false. - [ScmSiteAlsoStopped ]: true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. - [ServerFarmId ]: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - [SiteConfig ]: Configuration of the app. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - [StorageAccountRequired ]: Checks if Customer provided storage account is required - [VirtualNetworkSubnetId ]: Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azfunctionapp -#> -function Update-AzFunctionApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISite])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -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.Api20231201.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] - # true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. - # Default is true. - ${ClientAffinityEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable client certificate authentication (TLS mutual authentication); otherwise, false. - # Default is false. - ${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')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ClientCertMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ClientCertMode] - # This composes with ClientCertEnabled setting.- ClientCertEnabled: false means ClientCert is ignored.- ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.- ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted. - ${ClientCertMode}, - - [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.Api20231201.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] - # true to clone custom hostnames from source app; otherwise, false. - ${CloningInfoCloneCustomHostName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to clone source control from source app; otherwise, false. - ${CloningInfoCloneSourceControl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true 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] - # true to overwrite destination app; otherwise, false. - ${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.String] - # Unique identifier that verifies the custom domains assigned to the app. - # Customer will add this id to a txt record for verification. - ${CustomDomainVerificationId}, - - [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.String] - # Alternate DNS server to be used by apps. - # This property replicates the WEBSITE_DNS_ALT_SERVER app setting. - ${DnsConfigurationDnsAltServer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Custom time for DNS to be cached in seconds. - # Allowed range: 0-60. - # Default is 30 seconds. - # 0 means caching disabled. - ${DnsConfigurationDnsMaxCacheTimeout}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Total number of retries for dns lookup. - # Allowed range: 1-5. - # Default is 3. - ${DnsConfigurationDnsRetryAttemptCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Timeout for a single dns lookup in seconds. - # Allowed range: 1-30. - # Default is 3. - ${DnsConfigurationDnsRetryAttemptTimeout}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # List of custom DNS servers to be used by an app for lookups. - # Maximum 5 dns servers can be set. - ${DnsConfigurationDnsServer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if the app is enabled; otherwise, false. - # Setting this value to false disables the app (takes the app offline). - ${Enabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.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] - # true to disable the public hostnames of the app; otherwise, false. - # If true, 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.Api20231201.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] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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] - # true if reserved; otherwise, false. - ${Reserved}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to stop SCM (KUDU) site when the app is stopped; otherwise, false. - # The default is false. - ${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.Api20231201.ISiteConfig] - # Configuration of the app. - # To construct, see NOTES section for SITECONFIG properties and create a hash table. - ${SiteConfig}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Checks if Customer provided storage account is required - ${StorageAccountRequired}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} - ${VirtualNetworkSubnetId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Update an identity in the specified subscription and resource group. -.Description -Update an identity in the specified subscription and resource group. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityUpdate -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -PARAMETER : Describes an identity resource. - [Location ]: The geo-location where the resource lives - [Tag ]: Resource tags - [(Any) ]: This indicates any property can be added to this object. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azuserassignedidentity -#> -function Update-AzUserAssignedIdentity { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20181130.IIdentityAutoGenerated])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the Resource Group to which the identity belongs. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # The name of the identity resource. - ${ResourceName}, - - [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.Api20181130.IIdentityUpdate] - # Describes an identity resource. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [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.Api20181130.IIdentityUpdateTags]))] - [System.Collections.Hashtable] - # Resource tags - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzUserAssignedIdentity_Update'; - UpdateExpanded = 'Az.Functions.private\Update-AzUserAssignedIdentity_UpdateExpanded'; - UpdateViaIdentity = 'Az.Functions.private\Update-AzUserAssignedIdentity_UpdateViaIdentity'; - UpdateViaIdentityExpanded = 'Az.Functions.private\Update-AzUserAssignedIdentity_UpdateViaIdentityExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates the configuration of an app. -.Description -Description for Updates the configuration of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.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 : Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - -CONNECTIONSTRING : Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - -EXPERIMENTRAMPUPRULE : List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - -HANDLERMAPPING : Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -IPSECURITYRESTRICTION : IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -METADATA : Application metadata. This property cannot be retrieved, since it may contain secrets. - [Name ]: Pair name. - [Value ]: Pair value. - -SCMIPSECURITYRESTRICTION : IP security restrictions for scm. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -SITECONFIG : Web app configuration ARM resource. - [Kind ]: Kind of resource. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -TRIGGERSLOWREQUESTSWITHPATH : A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - -TRIGGERSTATUSCODE : A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - -TRIGGERSTATUSCODESRANGE : A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - -VIRTUALAPPLICATION : Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azwebappconfigurationslot -#> -function Update-AzWebAppConfigurationSlot { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${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', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', 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 configuration for the production slot. - ${Slot}, - - [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.Api20231201.ISiteConfigResource] - # Web app configuration ARM resource. - # To construct, see NOTES section for SITECONFIG properties and create a hash table. - ${SiteConfig}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Flag to use Managed Identity Creds for ACR pull - ${AcrUseManagedIdentityCred}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # If using user managed identity, the user managed identity ClientId - ${AcrUserManagedIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Minimum time the process must executebefore taking the action - ${ActionMinProcessExecutionTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType] - # Predefined action to be taken. - ${ActionType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Always On is enabled; otherwise, false. - ${AlwaysOn}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The URL of the API definition. - ${ApiDefinitionUrl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # APIM-Api Identifier. - ${ApiManagementConfigId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # App command line to launch. - ${AppCommandLine}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application settings. - # To construct, see NOTES section for APPSETTING properties and create a hash table. - ${AppSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Auto Heal is enabled; otherwise, false. - ${AutoHealEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Auto-swap slot name. - ${AutoSwapSlotName}, - - [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.Api20231201.ISiteConfigAzureStorageAccounts]))] - [System.Collections.Hashtable] - # List of Azure Storage Accounts. - ${AzureStorageAccount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IConnStringInfo[]] - # Connection strings. - # To construct, see NOTES section for CONNECTIONSTRING properties and create a hash table. - ${ConnectionString}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Gets or sets the list of origins that should be allowed to make cross-origincalls (for example: http://example.com:12345). - # Use "*" to allow all. - ${CorAllowedOrigin}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets whether CORS requests with credentials are allowed. - # See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentialsfor more details. - ${CorSupportCredentials}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Executable to be run. - ${CustomActionExe}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Parameters for the executable. - ${CustomActionParameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Default documents. - ${DefaultDocument}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if detailed error logging is enabled; otherwise, false. - ${DetailedErrorLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Document root. - ${DocumentRoot}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${DynamicTagsJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to apps in plans where ElasticScaleEnabled is true - ${ElasticWebAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IRampUpRule[]] - # List of ramp-up rules. - # To construct, see NOTES section for EXPERIMENTRAMPUPRULE properties and create a hash table. - ${ExperimentRampUpRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState] - # State of FTP / FTPS service - ${FtpsState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to the Consumption and Elastic Premium Plans - ${FunctionAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether functions runtime scale monitoring is enabled. - # When enabled,the ScaleController will not monitor event sources directly, but will instead call to theruntime to get scale status. - ${FunctionsRuntimeScaleMonitoringEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IHandlerMapping[]] - # Handler mappings. - # To construct, see NOTES section for HANDLERMAPPING properties and create a hash table. - ${HandlerMapping}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Health check path - ${HealthCheckPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Http20Enabled: configures a web site to allow clients to connect over http2.0 - ${Http20Enabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if HTTP logging is enabled; otherwise, false. - ${HttpLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for main. - # To construct, see NOTES section for IPSECURITYRESTRICTION properties and create a hash table. - ${IPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for main access restriction if no rules are matched. - ${IPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a flag indicating whether the Push endpoint is enabled. - ${IsPushEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container. - ${JavaContainer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container version. - ${JavaContainerVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java version. - ${JavaVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.Int64] - # Maximum allowed disk size usage in MB. - ${LimitMaxDiskSizeInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int64] - # Maximum allowed memory usage in MB. - ${LimitMaxMemoryInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Maximum allowed CPU usage percentage. - ${LimitMaxPercentageCpu}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Linux App Framework and version - ${LinuxFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing] - # Site load balancing. - ${LoadBalancing}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable local MySQL; otherwise, false. - ${LocalMySqlEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # HTTP logs directory size limit. - ${LogsDirectorySizeLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode] - # Managed pipeline mode. - ${ManagedPipelineMode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Managed Service Identity Id - ${ManagedServiceIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application metadata. - # This property cannot be retrieved, since it may contain secrets. - # To construct, see NOTES section for METADATA properties and create a hash table. - ${Metadata}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites] - # The minimum strength TLS cipher suite allowed for an application - ${MinTlsCipherSuite}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # MinTlsVersion: configures the minimum version of TLS required for SSL requests - ${MinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of minimum instance count for a siteThis setting only applies to the Elastic Plans - ${MinimumElasticInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # .NET Framework version. - ${NetFrameworkVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Node.js. - ${NodeVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of workers. - ${NumberOfWorker}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PHP. - ${PhpVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PowerShell. - ${PowerShellVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of preWarmed instances.This setting only applies to the Consumption and Elastic Plans - ${PreWarmedInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Publishing user name. - ${PublishingUsername}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${PushKind}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Python. - ${PythonVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if remote debugging is enabled; otherwise, false. - ${RemoteDebuggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Remote debugging version. - ${RemoteDebuggingVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${RequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${RequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if request tracing is enabled; otherwise, false. - ${RequestTracingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.DateTime] - # Request tracing expiration time. - ${RequestTracingExpirationTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for scm. - # To construct, see NOTES section for SCMIPSECURITYRESTRICTION properties and create a hash table. - ${ScmIPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for scm access restriction if no rules are matched. - ${ScmIPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # IP security restrictions for scm to use main. - ${ScmIPSecurityRestrictionsUseMain}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - ${ScmMinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType] - # SCM type. - ${ScmType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${SlowRequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Request Path. - ${SlowRequestPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${SlowRequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time taken. - ${SlowRequestTimeTaken}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - ${TagWhitelistJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${TagsRequiringAuth}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Tracing options. - ${TracingOption}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # A rule based on private bytes. - ${TriggerPrivateBytesInKb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISlowRequestsBasedTrigger[]] - # A rule based on multiple Slow Requests Rule with path - # To construct, see NOTES section for TRIGGERSLOWREQUESTSWITHPATH properties and create a hash table. - ${TriggerSlowRequestsWithPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesBasedTrigger[]] - # A rule based on status codes. - # To construct, see NOTES section for TRIGGERSTATUSCODE properties and create a hash table. - ${TriggerStatusCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesRangeBasedTrigger[]] - # A rule based on status codes ranges. - # To construct, see NOTES section for TRIGGERSTATUSCODESRANGE properties and create a hash table. - ${TriggerStatusCodesRange}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to use 32-bit worker process; otherwise, false. - ${Use32BitWorkerProcess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IVirtualApplication[]] - # Virtual applications. - # To construct, see NOTES section for VIRTUALAPPLICATION properties and create a hash table. - ${VirtualApplication}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Virtual Network name. - ${VnetName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The number of private ports assigned to this app. - # These will be assigned dynamically on runtime. - ${VnetPrivatePortsCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if WebSocket is enabled; otherwise, false. - ${WebSocketsEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Sets the time zone a site uses for generating timestamps. - # Compatible with Linux and Windows App Service. - # Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. - # For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - # For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - ${WebsiteTimeZone}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Xenon App Framework and version - ${WindowsFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Explicit Managed Service Identity Id - ${XManagedServiceIdentityId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfigurationSlot_Update'; - UpdateExpanded = 'Az.Functions.private\Update-AzWebAppConfigurationSlot_UpdateExpanded'; - UpdateViaIdentity = 'Az.Functions.private\Update-AzWebAppConfigurationSlot_UpdateViaIdentity'; - UpdateViaIdentityExpanded = 'Az.Functions.private\Update-AzWebAppConfigurationSlot_UpdateViaIdentityExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -Description for Updates the configuration of an app. -.Description -Description for Updates the configuration of an app. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IFunctionsIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource -.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 : Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - -CONNECTIONSTRING : Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - -EXPERIMENTRAMPUPRULE : List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - -HANDLERMAPPING : Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [ActionName ]: The workflow action name. - [AnalysisName ]: Analysis Name - [AppSettingKey ]: App Setting key name. - [Authprovider ]: The auth provider for the users. - [BackupId ]: ID of the backup. - [BaseAddress ]: Module base address. - [BasicAuthName ]: name of the basic auth entry. - [BlobServicesName ]: The name of the blob Service within the specified storage account. Blob Service Name must be 'default' - [CertificateOrderName ]: Name of the certificate order.. - [ConnectionStringKey ]: - [ContainerName ]: Site Container Name - [DatabaseConnectionName ]: Name of the database connection. - [DeletedSiteId ]: The numeric ID of the deleted app, e.g. 12345 - [DetectorName ]: Detector Resource Name - [DiagnosticCategory ]: Diagnostic Category - [DiagnosticsName ]: Name of the diagnostics item. - [DomainName ]: Name of the domain. - [DomainOwnershipIdentifierName ]: Name of domain ownership identifier. - [EntityName ]: Name of the hybrid connection. - [EnvironmentName ]: The stage site identifier. - [FunctionAppName ]: Name of the function app registered with the static site build. - [FunctionName ]: Function name. - [GatewayName ]: Name of the gateway. Currently, the only supported string is "primary". - [HistoryName ]: The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. - [HostName ]: Hostname in the hostname binding. - [HostingEnvironmentName ]: Name of the hosting environment. - [Id ]: Deployment ID. - [Id1 ]: Resource identity path - [ImmutabilityPolicyName ]: The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - [Instance ]: Name of the instance in the multi-role pool. - [InstanceId ]: - [KeyId ]: The API Key ID. This is unique within a Application Insights component. - [KeyName ]: The name of the key. - [KeyType ]: The type of host key. - [LinkedBackendName ]: Name of the linked backend that should be retrieved - [Location ]: - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [Name ]: Name of the certificate. - [NamespaceName ]: The namespace for this hybrid connection. - [OperationId ]: GUID of the operation. - [PremierAddOnName ]: Add-on name. - [PrivateEndpointConnectionName ]: Name of the private endpoint connection. - [ProcessId ]: PID. - [PublicCertificateName ]: Public certificate name. - [PurgeId ]: In a purge status request, this is the Id of the operation the status of which is returned. - [RelayName ]: The relay name for this hybrid connection. - [RepetitionName ]: The workflow repetition. - [RequestHistoryName ]: The request history name. - [ResourceGroupName ]: Name of the resource group to which the resource belongs. - [ResourceName ]: The name of the Application Insights component resource. - [RouteName ]: Name of the Virtual Network route. - [RunName ]: The workflow run name. - [Scope ]: The resource provider scope of the resource. Parent resource being extended by Managed Identities. - [SiteExtensionId ]: Site extension name. - [SiteName ]: Site Name - [Slot ]: Slot Name - [SnapshotId ]: The ID of the snapshot to read. - [SourceControlType ]: Type of source control - [SubscriptionId ]: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). - [TriggerName ]: The workflow trigger name. - [Userid ]: The user id of the user. - [VersionId ]: The workflow versionId. - [View ]: The type of view. Only "summary" is supported at this time. - [VnetName ]: Name of the virtual network. - [WebJobName ]: Name of Web Job. - [WorkerName ]: Name of worker machine, which typically starts with RD. - [WorkerPoolName ]: Name of the worker pool. - [WorkflowName ]: Workflow name. - -IPSECURITYRESTRICTION : IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -METADATA : Application metadata. This property cannot be retrieved, since it may contain secrets. - [Name ]: Pair name. - [Value ]: Pair value. - -SCMIPSECURITYRESTRICTION : IP security restrictions for scm. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - -SITECONFIG : Web app configuration ARM resource. - [Kind ]: Kind of resource. - [AcrUseManagedIdentityCred ]: Flag to use Managed Identity Creds for ACR pull - [AcrUserManagedIdentityId ]: If using user managed identity, the user managed identity ClientId - [ActionMinProcessExecutionTime ]: Minimum time the process must execute before taking the action - [ActionType ]: Predefined action to be taken. - [AlwaysOn ]: true if Always On is enabled; otherwise, false. - [ApiDefinitionUrl ]: The URL of the API definition. - [ApiManagementConfigId ]: APIM-Api Identifier. - [AppCommandLine ]: App command line to launch. - [AppSetting ]: Application settings. - [Name ]: Pair name. - [Value ]: Pair value. - [AutoHealEnabled ]: true if Auto Heal is enabled; otherwise, false. - [AutoSwapSlotName ]: Auto-swap slot name. - [AzureStorageAccount ]: List of Azure Storage Accounts. - [(Any) ]: This indicates any property can be added to this object. - [ConnectionString ]: Connection strings. - [ConnectionString ]: Connection string value. - [Name ]: Name of connection string. - [Type ]: Type of database. - [CorAllowedOrigin ]: 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 ]: 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 ]: Executable to be run. - [CustomActionParameter ]: Parameters for the executable. - [DefaultDocument ]: Default documents. - [DetailedErrorLoggingEnabled ]: true if detailed error logging is enabled; otherwise, false. - [DocumentRoot ]: Document root. - [DynamicTagsJson ]: Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint. - [ElasticWebAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled is true - [ExperimentRampUpRule ]: List of ramp-up rules. - [ActionHostName ]: Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. - [ChangeDecisionCallbackUrl ]: 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 ]: Specifies interval in minutes to reevaluate ReroutePercentage. - [ChangeStep ]: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. - [MaxReroutePercentage ]: Specifies upper boundary below which ReroutePercentage will stay. - [MinReroutePercentage ]: Specifies lower boundary above which ReroutePercentage will stay. - [Name ]: Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. - [ReroutePercentage ]: Percentage of the traffic which will be redirected to ActionHostName. - [FtpsState ]: State of FTP / FTPS service - [FunctionAppScaleLimit ]: Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans - [FunctionsRuntimeScaleMonitoringEnabled ]: Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status. - [HandlerMapping ]: Handler mappings. - [Argument ]: Command-line arguments to be passed to the script processor. - [Extension ]: Requests with this extension will be handled using the specified FastCGI application. - [ScriptProcessor ]: The absolute path to the FastCGI application. - [HealthCheckPath ]: Health check path - [Http20Enabled ]: Http20Enabled: configures a web site to allow clients to connect over http2.0 - [HttpLoggingEnabled ]: true if HTTP logging is enabled; otherwise, false. - [IPSecurityRestriction ]: IP security restrictions for main. - [Action ]: Allow or Deny access for this IP range. - [Description ]: IP restriction rule description. - [Header ]: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match. - [(Any) ]: This indicates any property can be added to this object. - [IPAddress ]: IP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified. - [Name ]: IP restriction rule name. - [Priority ]: Priority of IP restriction rule. - [SubnetMask ]: Subnet mask for the range of IP addresses the restriction is valid for. - [SubnetTrafficTag ]: (internal) Subnet traffic tag - [Tag ]: Defines what this IP filter will be used for. This is to support IP filtering on proxies. - [VnetSubnetResourceId ]: Virtual network resource id - [VnetTrafficTag ]: (internal) Vnet traffic tag - [IPSecurityRestrictionsDefaultAction ]: Default action for main access restriction if no rules are matched. - [IsPushEnabled ]: Gets or sets a flag indicating whether the Push endpoint is enabled. - [JavaContainer ]: Java container. - [JavaContainerVersion ]: Java container version. - [JavaVersion ]: Java version. - [KeyVaultReferenceIdentity ]: Identity to use for Key Vault Reference authentication. - [LimitMaxDiskSizeInMb ]: Maximum allowed disk size usage in MB. - [LimitMaxMemoryInMb ]: Maximum allowed memory usage in MB. - [LimitMaxPercentageCpu ]: Maximum allowed CPU usage percentage. - [LinuxFxVersion ]: Linux App Framework and version - [LoadBalancing ]: Site load balancing. - [LocalMySqlEnabled ]: true to enable local MySQL; otherwise, false. - [LogsDirectorySizeLimit ]: HTTP logs directory size limit. - [MachineKeyDecryption ]: Algorithm used for decryption. - [MachineKeyDecryptionKey ]: Decryption key. - [MachineKeyValidation ]: MachineKey validation. - [MachineKeyValidationKey ]: Validation key. - [ManagedPipelineMode ]: Managed pipeline mode. - [ManagedServiceIdentityId ]: Managed Service Identity Id - [Metadata ]: Application metadata. This property cannot be retrieved, since it may contain secrets. - [MinTlsCipherSuite ]: The minimum strength TLS cipher suite allowed for an application - [MinTlsVersion ]: MinTlsVersion: configures the minimum version of TLS required for SSL requests - [MinimumElasticInstanceCount ]: Number of minimum instance count for a site This setting only applies to the Elastic Plans - [NetFrameworkVersion ]: .NET Framework version. - [NodeVersion ]: Version of Node.js. - [NumberOfWorker ]: Number of workers. - [PhpVersion ]: Version of PHP. - [PowerShellVersion ]: Version of PowerShell. - [PreWarmedInstanceCount ]: Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans - [PublicNetworkAccess ]: Property to allow or block all public traffic. - [PublishingUsername ]: Publishing user name. - [PushKind ]: Kind of resource. - [PythonVersion ]: Version of Python. - [RemoteDebuggingEnabled ]: true if remote debugging is enabled; otherwise, false. - [RemoteDebuggingVersion ]: Remote debugging version. - [RequestCount ]: Request Count. - [RequestTimeInterval ]: Time interval. - [RequestTracingEnabled ]: true if request tracing is enabled; otherwise, false. - [RequestTracingExpirationTime ]: Request tracing expiration time. - [ScmIPSecurityRestriction ]: IP security restrictions for scm. - [ScmIPSecurityRestrictionsDefaultAction ]: Default action for scm access restriction if no rules are matched. - [ScmIPSecurityRestrictionsUseMain ]: IP security restrictions for scm to use main. - [ScmMinTlsVersion ]: ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - [ScmType ]: SCM type. - [SlowRequestCount ]: Request Count. - [SlowRequestPath ]: Request Path. - [SlowRequestTimeInterval ]: Time interval. - [SlowRequestTimeTaken ]: Time taken. - [TagWhitelistJson ]: Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - [TagsRequiringAuth ]: 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 ]: Tracing options. - [TriggerPrivateBytesInKb ]: A rule based on private bytes. - [TriggerSlowRequestsWithPath ]: A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - [TriggerStatusCode ]: A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - [TriggerStatusCodesRange ]: A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - [Use32BitWorkerProcess ]: true to use 32-bit worker process; otherwise, false. - [VirtualApplication ]: Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. - [VnetName ]: Virtual Network name. - [VnetPrivatePortsCount ]: The number of private ports assigned to this app. These will be assigned dynamically on runtime. - [VnetRouteAllEnabled ]: Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - [WebSocketsEnabled ]: true if WebSocket is enabled; otherwise, false. - [WebsiteTimeZone ]: Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - [WindowsFxVersion ]: Xenon App Framework and version - [XManagedServiceIdentityId ]: Explicit Managed Service Identity Id - -TRIGGERSLOWREQUESTSWITHPATH : A rule based on multiple Slow Requests Rule with path - [Count ]: Request Count. - [Path ]: Request Path. - [TimeInterval ]: Time interval. - [TimeTaken ]: Time taken. - -TRIGGERSTATUSCODE : A rule based on status codes. - [Count ]: Request Count. - [Path ]: Request Path - [Status ]: HTTP status code. - [SubStatus ]: Request Sub Status. - [TimeInterval ]: Time interval. - [Win32Status ]: Win32 error code. - -TRIGGERSTATUSCODESRANGE : A rule based on status codes ranges. - [Count ]: Request Count. - [Path ]: - [StatusCode ]: HTTP status code. - [TimeInterval ]: Time interval. - -VIRTUALAPPLICATION : Virtual applications. - [PhysicalPath ]: Physical path. - [PreloadEnabled ]: true if preloading is enabled; otherwise, false. - [VirtualDirectory ]: Virtual directories for virtual application. - [PhysicalPath ]: Physical path. - [VirtualPath ]: Path to virtual application. - [VirtualPath ]: Virtual path. -.Link -https://learn.microsoft.com/powershell/module/az.functions/update-azwebappconfiguration -#> -function Update-AzWebAppConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISiteConfigResource])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Path')] - [System.String] - # Name of the app. - ${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.Api20231201.ISiteConfigResource] - # Web app configuration ARM resource. - # To construct, see NOTES section for SITECONFIG properties and create a hash table. - ${SiteConfig}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Flag to use Managed Identity Creds for ACR pull - ${AcrUseManagedIdentityCred}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # If using user managed identity, the user managed identity ClientId - ${AcrUserManagedIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Minimum time the process must executebefore taking the action - ${ActionMinProcessExecutionTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.AutoHealActionType] - # Predefined action to be taken. - ${ActionType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Always On is enabled; otherwise, false. - ${AlwaysOn}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # The URL of the API definition. - ${ApiDefinitionUrl}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # APIM-Api Identifier. - ${ApiManagementConfigId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # App command line to launch. - ${AppCommandLine}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application settings. - # To construct, see NOTES section for APPSETTING properties and create a hash table. - ${AppSetting}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if Auto Heal is enabled; otherwise, false. - ${AutoHealEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Auto-swap slot name. - ${AutoSwapSlotName}, - - [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.Api20231201.ISiteConfigAzureStorageAccounts]))] - [System.Collections.Hashtable] - # List of Azure Storage Accounts. - ${AzureStorageAccount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IConnStringInfo[]] - # Connection strings. - # To construct, see NOTES section for CONNECTIONSTRING properties and create a hash table. - ${ConnectionString}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Gets or sets the list of origins that should be allowed to make cross-origincalls (for example: http://example.com:12345). - # Use "*" to allow all. - ${CorAllowedOrigin}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets whether CORS requests with credentials are allowed. - # See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentialsfor more details. - ${CorSupportCredentials}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Executable to be run. - ${CustomActionExe}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Parameters for the executable. - ${CustomActionParameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String[]] - # Default documents. - ${DefaultDocument}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if detailed error logging is enabled; otherwise, false. - ${DetailedErrorLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Document root. - ${DocumentRoot}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${DynamicTagsJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to apps in plans where ElasticScaleEnabled is true - ${ElasticWebAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IRampUpRule[]] - # List of ramp-up rules. - # To construct, see NOTES section for EXPERIMENTRAMPUPRULE properties and create a hash table. - ${ExperimentRampUpRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.FtpsState] - # State of FTP / FTPS service - ${FtpsState}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Maximum number of workers that a site can scale out to.This setting only applies to the Consumption and Elastic Premium Plans - ${FunctionAppScaleLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a value indicating whether functions runtime scale monitoring is enabled. - # When enabled,the ScaleController will not monitor event sources directly, but will instead call to theruntime to get scale status. - ${FunctionsRuntimeScaleMonitoringEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IHandlerMapping[]] - # Handler mappings. - # To construct, see NOTES section for HANDLERMAPPING properties and create a hash table. - ${HandlerMapping}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Health check path - ${HealthCheckPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Http20Enabled: configures a web site to allow clients to connect over http2.0 - ${Http20Enabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if HTTP logging is enabled; otherwise, false. - ${HttpLoggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for main. - # To construct, see NOTES section for IPSECURITYRESTRICTION properties and create a hash table. - ${IPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for main access restriction if no rules are matched. - ${IPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Gets or sets a flag indicating whether the Push endpoint is enabled. - ${IsPushEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container. - ${JavaContainer}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java container version. - ${JavaContainerVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Java version. - ${JavaVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Identity to use for Key Vault Reference authentication. - ${KeyVaultReferenceIdentity}, - - [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.Int64] - # Maximum allowed disk size usage in MB. - ${LimitMaxDiskSizeInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int64] - # Maximum allowed memory usage in MB. - ${LimitMaxMemoryInMb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Double] - # Maximum allowed CPU usage percentage. - ${LimitMaxPercentageCpu}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Linux App Framework and version - ${LinuxFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SiteLoadBalancing] - # Site load balancing. - ${LoadBalancing}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to enable local MySQL; otherwise, false. - ${LocalMySqlEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # HTTP logs directory size limit. - ${LogsDirectorySizeLimit}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ManagedPipelineMode] - # Managed pipeline mode. - ${ManagedPipelineMode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Managed Service Identity Id - ${ManagedServiceIdentityId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.INameValuePair[]] - # Application metadata. - # This property cannot be retrieved, since it may contain secrets. - # To construct, see NOTES section for METADATA properties and create a hash table. - ${Metadata}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.TlsCipherSuites] - # The minimum strength TLS cipher suite allowed for an application - ${MinTlsCipherSuite}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # MinTlsVersion: configures the minimum version of TLS required for SSL requests - ${MinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of minimum instance count for a siteThis setting only applies to the Elastic Plans - ${MinimumElasticInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # .NET Framework version. - ${NetFrameworkVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Node.js. - ${NodeVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of workers. - ${NumberOfWorker}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PHP. - ${PhpVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of PowerShell. - ${PowerShellVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Number of preWarmed instances.This setting only applies to the Consumption and Elastic Plans - ${PreWarmedInstanceCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Property to allow or block all public traffic. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Publishing user name. - ${PublishingUsername}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Kind of resource. - ${PushKind}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Version of Python. - ${PythonVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if remote debugging is enabled; otherwise, false. - ${RemoteDebuggingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Remote debugging version. - ${RemoteDebuggingVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${RequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${RequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if request tracing is enabled; otherwise, false. - ${RequestTracingEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.DateTime] - # Request tracing expiration time. - ${RequestTracingExpirationTime}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IIPSecurityRestriction[]] - # IP security restrictions for scm. - # To construct, see NOTES section for SCMIPSECURITYRESTRICTION properties and create a hash table. - ${ScmIPSecurityRestriction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.DefaultAction] - # Default action for scm access restriction if no rules are matched. - ${ScmIPSecurityRestrictionsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # IP security restrictions for scm to use main. - ${ScmIPSecurityRestrictionsUseMain}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.SupportedTlsVersions] - # ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site - ${ScmMinTlsVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType])] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Support.ScmType] - # SCM type. - ${ScmType}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Request Count. - ${SlowRequestCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Request Path. - ${SlowRequestPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time interval. - ${SlowRequestTimeInterval}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Time taken. - ${SlowRequestTimeTaken}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint. - ${TagWhitelistJson}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.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. - ${TagsRequiringAuth}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Tracing options. - ${TracingOption}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # A rule based on private bytes. - ${TriggerPrivateBytesInKb}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ISlowRequestsBasedTrigger[]] - # A rule based on multiple Slow Requests Rule with path - # To construct, see NOTES section for TRIGGERSLOWREQUESTSWITHPATH properties and create a hash table. - ${TriggerSlowRequestsWithPath}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesBasedTrigger[]] - # A rule based on status codes. - # To construct, see NOTES section for TRIGGERSTATUSCODE properties and create a hash table. - ${TriggerStatusCode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IStatusCodesRangeBasedTrigger[]] - # A rule based on status codes ranges. - # To construct, see NOTES section for TRIGGERSTATUSCODESRANGE properties and create a hash table. - ${TriggerStatusCodesRange}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true to use 32-bit worker process; otherwise, false. - ${Use32BitWorkerProcess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IVirtualApplication[]] - # Virtual applications. - # To construct, see NOTES section for VIRTUALAPPLICATION properties and create a hash table. - ${VirtualApplication}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Virtual Network name. - ${VnetName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # The number of private ports assigned to this app. - # These will be assigned dynamically on runtime. - ${VnetPrivatePortsCount}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Virtual Network Route All enabled. - # This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. - ${VnetRouteAllEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Management.Automation.SwitchParameter] - # true if WebSocket is enabled; otherwise, false. - ${WebSocketsEnabled}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Sets the time zone a site uses for generating timestamps. - # Compatible with Linux and Windows App Service. - # Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. - # For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - # For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones - ${WebsiteTimeZone}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.String] - # Xenon App Framework and version - ${WindowsFxVersion}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Body')] - [System.Int32] - # Explicit Managed Service Identity Id - ${XManagedServiceIdentityId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Functions.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${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-AzWebAppConfiguration_Update'; - UpdateExpanded = 'Az.Functions.private\Update-AzWebAppConfiguration_UpdateExpanded'; - UpdateViaIdentity = 'Az.Functions.private\Update-AzWebAppConfiguration_UpdateViaIdentity'; - UpdateViaIdentityExpanded = 'Az.Functions.private\Update-AzWebAppConfiguration_UpdateViaIdentityExpanded'; - } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBFGqs93FHrnLZ7 -# s08jKwgL9FU1uLaeSRrzxKN4odBeTaCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -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MTACEzMAAAHxs0X1J+jAFtYAAQAAAfEwIgQgZv4QEc5hgS9BsS74vtux+Rzx -# z6O0XI7Iv02NK7Hl7vIwDQYJKoZIhvcNAQELBQAEggIAQzBXThskmaqLsh0ipgRj -# EefsP6pgEkh24UY/+g48jhQ561Ptu1+hyXYnN8BEhZ26CRu/cMNaH6bNCuiVmDKw -# 2NPVtz6LPctmlWqGyH74HCoVtbUJCjKiNDQcJ/7Tf11eij0vgHK/QaTry48OXcsY -# Uj4MMl0UVpTczsw5hmeEefH/oDOUO3Ys4dUir/wNXPQD5teGzzycGsYEbVpSMPnC -# rqOgspWs2cPF/ojfI/YoQJEQ/BcJg3HdfpfkFurgj8zhRfb/ZCiTYvVV8PUWKXPL -# VR+qyqLnNIumwDghc7p9beykfLhmUabbxCO5uRWnVrppR9U9p7kY3MTkeqUQxciF -# 19OjmE8neEK20+fTqazi125MrnXhOLS6r23YMeu1X3t1vivaAATxoCNhq3vtlPKo -# 9XHnCdLPYF9CHuzIyxiobZQ8ckHSdLO4O6vu4cw4j8OWVgkf+A3gYTc3d0xpmEug -# 0piKirlOA2gyFto3EDLynBHQF4yAy56/HHhugnqWwmhHylUyMEdwt262q/O6DqtQ -# 9JCLrlNvNRnh/SG1DmNWO2Mfyl46kNeEBqZtdGEkZtvJPY1v+HY++dK/J5jKhkic -# gql5cGnOny/GZQ9ZVGVmWlKiJ+uHNa6/X163Vm7x0MOdeE3HAP45i6IdrdE71Jpc -# xdGb0jqbsqKULPcU2kHeVzI= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 deleted file mode 100644 index 9213c3763627..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 +++ /dev/null @@ -1,224 +0,0 @@ -param() -if ($env:AzPSAutorestTestPlaybackMode) { - $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' - . ($loadEnvPath) - return $env.SubscriptionId -} -return (Get-AzContext).Subscription.Id -# SIG # Begin signature block -# MIIoKQYJKoZIhvcNAQcCoIIoGjCCKBYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCvmGT2RlJhp/rC -# DOiTnt/3S1Bv3biEMflyZwWMS2xRdKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCj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MIFTcs3k8h9gjNIdgyG3xmyTG9IzeXuGQhO/BV -# vk88pV/btLDG6HF9QSGI95pOCvyfoG/ySV64L5NascO5yRX6DiwN2QPm1XZzE2zI -# D3Ypm8CrMG5lLwqSYuY/jRrb+pUdre7u61nuasWUWV13iepOjy8dF/wMOucfd8m3 -# 5s93Zb0ThTo6RselEpQOd8Qnxjqoq4DO137VbhCxHzgnY23G/jS+pfCuYSX0jId9 -# RXWO59DknoV01R6u1a9bcNuUbwOXU8k6Iwt203tLmXLrFiTN1JqcDoA0zpB1qV2y -# XIhlV7jY/LMe0IZdwGkkMyAe93DSgNofTjTotiDLLcI3dn5yIepxjGF0P1fUNQuM -# eAVMPxi+ne47AJm4NixZWBP48Qi2Py6mFjs8FMYTL5gVwYWWMLB7JG1lUQqWKoDG -# rFnouitaw1wRQR0WhA== -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/Functions.Autorest/utils/Unprotect-SecureString.ps1 b/Modules/Az.Functions/4.2.0/Functions.Autorest/utils/Unprotect-SecureString.ps1 deleted file mode 100644 index f186085d93b0..000000000000 --- a/Modules/Az.Functions/4.2.0/Functions.Autorest/utils/Unprotect-SecureString.ps1 +++ /dev/null @@ -1,233 +0,0 @@ -#This script converts securestring to plaintext - -param( - [Parameter(Mandatory, ValueFromPipeline)] - [System.Security.SecureString] - ${SecureString} -) - -$ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) -try { - $plaintext = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) -} finally { - [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) -} - -return $plaintext -# SIG # Begin signature block -# MIIoOQYJKoZIhvcNAQcCoIIoKjCCKCYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCA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ur7/a2m4W8LuXCpqslYzBwWJgaykQ/tqOO13M9rnx4EXGrjSZ -# 4q4gvNI7FsJb0WsbIIBeF+jwktYBoEfUV9Pv5j0OKdcrcrwfCdJ5VJ2latZCoCaq -# TjHwobcIgvCSPH9GiXZgWG2uSWRinDsCc60jJkI= -# SIG # End signature block diff --git a/Modules/Az.Functions/4.2.0/PSGetModuleInfo.xml b/Modules/Az.Functions/4.2.0/PSGetModuleInfo.xml deleted file mode 100644 index 124241569526..000000000000 --- a/Modules/Az.Functions/4.2.0/PSGetModuleInfo.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - Microsoft.PowerShell.Commands.PSRepositoryItemInfo - System.Management.Automation.PSCustomObject - System.Object - - - Az.Functions - 4.2.0 - Module - Microsoft Azure PowerShell - Azure Functions service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core._x000D__x000A__x000D__x000A_For information on Azure Functions, please visit the following: https://learn.microsoft.com/azure/azure-functions/ - Microsoft Corporation - azure-sdk - Microsoft Corporation. All rights reserved. -
2025-01-14T03:15:04-05:00
- - - https://aka.ms/azps-license - https://github.com/Azure/azure-powershell - - - - System.Object[] - System.Array - System.Object - - - Azure - ResourceManager - ARM - PSModule - Functions - PSEdition_Core - PSEdition_Desktop - - - - - System.Collections.Hashtable - System.Object - - - - RoleCapability - - - - - - - Function - - - - Get-AzFunctionApp - Get-AzFunctionAppAvailableLocation - Get-AzFunctionAppPlan - Get-AzFunctionAppSetting - New-AzFunctionApp - New-AzFunctionAppPlan - Remove-AzFunctionApp - Remove-AzFunctionAppPlan - Remove-AzFunctionAppSetting - Restart-AzFunctionApp - Start-AzFunctionApp - Stop-AzFunctionApp - Update-AzFunctionApp - Update-AzFunctionAppPlan - Update-AzFunctionAppSetting - - - - - Cmdlet - - - - DscResource - - - - Workflow - - - - Command - - - - Get-AzFunctionApp - Get-AzFunctionAppAvailableLocation - Get-AzFunctionAppPlan - Get-AzFunctionAppSetting - New-AzFunctionApp - New-AzFunctionAppPlan - Remove-AzFunctionApp - Remove-AzFunctionAppPlan - Remove-AzFunctionAppSetting - Restart-AzFunctionApp - Start-AzFunctionApp - Stop-AzFunctionApp - Update-AzFunctionApp - Update-AzFunctionAppPlan - Update-AzFunctionAppSetting - - - - - - - * Upgraded nuget package to signed package. - - - - - - System.Collections.Specialized.OrderedDictionary - System.Object - - - - Name - Az.Accounts - - - MinimumVersion - 4.0.1 - - - CanonicalId - nuget:Az.Accounts/4.0.1 - - - - - - https://www.powershellgallery.com/api/v2 - PSGallery - NuGet - - - System.Management.Automation.PSCustomObject - System.Object - - - Microsoft Corporation. All rights reserved. - Microsoft Azure PowerShell - Azure Functions service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core._x000D__x000A__x000D__x000A_For information on Azure Functions, please visit the following: https://learn.microsoft.com/azure/azure-functions/ - True - * Upgraded nuget package to signed package. - True - True - 2362118 - 98196668 - 4036547 - 1/14/2025 3:15:04 AM -05:00 - 1/14/2025 3:15:04 AM -05:00 - 1/30/2025 5:20:00 PM -05:00 - Azure ResourceManager ARM PSModule Functions PSEdition_Core PSEdition_Desktop PSFunction_Get-AzFunctionApp PSCommand_Get-AzFunctionApp PSFunction_Get-AzFunctionAppAvailableLocation PSCommand_Get-AzFunctionAppAvailableLocation PSFunction_Get-AzFunctionAppPlan PSCommand_Get-AzFunctionAppPlan PSFunction_Get-AzFunctionAppSetting PSCommand_Get-AzFunctionAppSetting PSFunction_New-AzFunctionApp PSCommand_New-AzFunctionApp PSFunction_New-AzFunctionAppPlan PSCommand_New-AzFunctionAppPlan PSFunction_Remove-AzFunctionApp PSCommand_Remove-AzFunctionApp PSFunction_Remove-AzFunctionAppPlan PSCommand_Remove-AzFunctionAppPlan PSFunction_Remove-AzFunctionAppSetting PSCommand_Remove-AzFunctionAppSetting PSFunction_Restart-AzFunctionApp PSCommand_Restart-AzFunctionApp PSFunction_Start-AzFunctionApp PSCommand_Start-AzFunctionApp PSFunction_Stop-AzFunctionApp PSCommand_Stop-AzFunctionApp PSFunction_Update-AzFunctionApp PSCommand_Update-AzFunctionApp PSFunction_Update-AzFunctionAppPlan PSCommand_Update-AzFunctionAppPlan PSFunction_Update-AzFunctionAppSetting PSCommand_Update-AzFunctionAppSetting PSIncludes_Function - False - 2025-01-30T17:20:00Z - 4.2.0 - Microsoft Corporation - false - Module - Az.Functions.nuspec|Functions.Autorest\custom\Get-AzFunctionApp.ps1|Functions.Autorest\custom\Get-AzFunctionAppSetting.ps1|Functions.Autorest\custom\New-AzFunctionAppPlan.ps1|Functions.Autorest\custom\Remove-AzFunctionAppSetting.ps1|Functions.Autorest\custom\Stop-AzFunctionApp.ps1|Functions.Autorest\custom\Update-AzFunctionAppPlan.ps1|Functions.Autorest\custom\api\Support\AvailablePlanType.cs|Functions.Autorest\custom\api\Support\FunctionAppManagedServiceIdentityUpdateType.cs|Functions.Autorest\custom\api\Support\SkuType.cs|Functions.Autorest\custom\Api20231201\AppServicePlan.cs|Functions.Autorest\custom\FunctionsStack\functionAppStacks.json|Functions.Autorest\internal\Az.Functions.internal.psm1|Functions.Autorest\utils\Get-SubscriptionIdTestSafe.ps1|Functions.Autorest\Az.Functions.format.ps1xml|Functions.Autorest\custom\Az.Functions.custom.psm1|Functions.Autorest\custom\Get-AzFunctionAppAvailableLocation.ps1|Functions.Autorest\custom\HelperFunctions.ps1|Functions.Autorest\custom\Remove-AzFunctionApp.ps1|Functions.Autorest\custom\Restart-AzFunctionApp.ps1|Functions.Autorest\custom\Update-AzFunctionApp.ps1|Functions.Autorest\custom\Update-AzFunctionAppSetting.ps1|Functions.Autorest\custom\api\Support\FunctionAppManagedServiceIdentityCreateType.cs|Functions.Autorest\custom\api\Support\PlanType.cs|Functions.Autorest\custom\api\Support\WorkerType.cs|Functions.Autorest\custom\Api20231201\Site.cs|Functions.Autorest\exports\ProxyCmdletDefinitions.ps1|Functions.Autorest\internal\ProxyCmdletDefinitions.ps1|Functions.Autorest\utils\Unprotect-SecureString.ps1|Az.Functions.psd1|Functions.Autorest\Az.Functions.psm1|Functions.Autorest\custom\Functions.format.ps1xml|Functions.Autorest\custom\Get-AzFunctionAppPlan.ps1|Functions.Autorest\custom\New-AzFunctionApp.ps1|Functions.Autorest\custom\Remove-AzFunctionAppPlan.ps1|Functions.Autorest\custom\Start-AzFunctionApp.ps1|Az.Functions.psm1|Functions.Autorest\bin\Az.Functions.private.dll|Functions.Autorest\custom\Functions.types.ps1xml|.signature.p7s - eafced71-8742-4a2c-5afd-13117428dd90 - 5.1 - 4.7.2 - Microsoft Corporation - - - C:\GitHub\CIPP Workspace\CIPP-API\Modules\Az.Functions\4.2.0 -
-
-
diff --git a/Modules/Az.KeyVault/6.3.1/.signature.p7s b/Modules/Az.KeyVault/6.3.1/.signature.p7s deleted file mode 100644 index f8f2e4bab4c8..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/.signature.p7s and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.Extension/Az.KeyVault.Extension.psd1 b/Modules/Az.KeyVault/6.3.1/Az.KeyVault.Extension/Az.KeyVault.Extension.psd1 deleted file mode 100644 index 3d998af727de..000000000000 --- a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.Extension/Az.KeyVault.Extension.psd1 +++ /dev/null @@ -1,223 +0,0 @@ -@{ - ModuleVersion = '1.0' - RootModule = '.\Az.KeyVault.Extension.psm1' - FunctionsToExport = @('Set-Secret','Get-Secret','Remove-Secret','Get-SecretInfo','Test-SecretVault') -} - -# SIG # Begin signature block -# MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBYCJ3nYSwEBxJk -# WHIXQdOalH/h5CcR4O3Y0nHU2vJr26CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyA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7DOnW+RTb8jwyKADclBq8bTHdHBjCYTZrrgx7C37AmtBP6dipD3/qb1+GGZOUSvA -# VApEHD7Gs/l7tGASxJKt/BPugY+HXbYUDhzfoVAudUNfzRNvqIrS -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.Extension/Az.KeyVault.Extension.psm1 b/Modules/Az.KeyVault/6.3.1/Az.KeyVault.Extension/Az.KeyVault.Extension.psm1 deleted file mode 100644 index 6c9d012324e5..000000000000 --- a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.Extension/Az.KeyVault.Extension.psm1 +++ /dev/null @@ -1,516 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -function Check-SubscriptionLogIn -{ - param ( - [object] $SubscriptionId, - [object] $AzKVaultName - ) - - if("string" -ne $SubscriptionId.GetType().Name) - { - throw "The type of SubscriptionId should be string, current is " + $SubscriptionId.GetType().Name + ". Please check registration information by 'Get-SecretVault | fl'" - } - - if("string" -ne $AzKVaultName.GetType().Name) - { - throw "The type of AzKVaultName should be string, current is " + $AzKVaultName.GetType().Name + ". Please check registration information by 'Get-SecretVault | fl'" - } - - $azContext = Az.Accounts\Get-AzContext - if (($null -eq $azContext) -or ($azContext.Subscription.Id -ne $SubscriptionId)) - { - try - { - Set-AzContext -SubscriptionId ${SubscriptionId} -ErrorAction Stop - } - catch - { - throw $_.ToString() + "To use Azure vault named '${AzKVaultName}', please try 'Connect-AzAccount -SubscriptionId {SubscriptionId}' to log into Azure account subscription '${SubscriptionId}'." - } - } -} - -function Get-Secret -{ - param ( - [string] $Name, - [string] $VaultName, - [hashtable] $AdditionalParameters - ) - - $secret = Az.KeyVault\Get-AzKeyVaultSecret -Name $Name -VaultName $AdditionalParameters.AZKVaultName - if ($null -ne $secret) - { - switch ($secret.ContentType) { - 'ByteArray' - { - $SecretValue = Get-ByteArray $Secret - } - 'String' - { - $SecretValue = Get-String $Secret - } - 'PSCredential' - { - $SecretValue = Get-PSCredential $Secret - } - 'Hashtable' - { - $SecretValue = Get-Hashtable $Secret - } - Default - { - $SecretValue = Get-SecureString $Secret - } - } - return $SecretValue - } -} - -function Get-ByteArray -{ - param ( - [Parameter(Mandatory=$true, Position=0)] - [object] $Secret - ) - $secretValueText = Get-String $Secret - return [System.Text.Encoding]::ASCII.GetBytes($secretValueText) -} - -function Get-String -{ - param ( - [Parameter(Mandatory=$true, Position=0)] - [object] $Secret - ) - - $ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($Secret.SecretValue) - try { - $secretValueText = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) - } finally { - [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) - } - return $secretValueText -} - -function Get-SecureString -{ - param ( - [Parameter(Mandatory=$true, Position=0)] - [object] $Secret - ) - - return $Secret.SecretValue -} - -function Get-PSCredential -{ - param ( - [Parameter(Mandatory=$true, Position=0)] - [object] $Secret - ) - - $secretHashTable = Get-Hashtable $Secret - return [System.Management.Automation.PSCredential]::new($secretHashTable["UserName"], ($secretHashTable["Password"] | ConvertTo-SecureString -AsPlainText -Force)) -} - -function Get-Hashtable -{ - param ( - [Parameter(Mandatory=$true, Position=0)] - [object] $Secret - ) - - $jsonObject = Get-String $Secret | ConvertFrom-Json - $hashtable = @{} - $jsonObject.psobject.Properties | foreach { $hashtable[$_.Name] = $_.Value } - return $hashtable -} - -function Set-Secret -{ - param ( - [string] $Name, - [object] $Secret, - [string] $VaultName, - [hashtable] $AdditionalParameters - ) - - switch ($Secret.GetType().Name) { - 'Byte[]' - { - Set-ByteArray -Name $Name -Secret $Secret -AZKVaultName $AdditionalParameters.AZKVaultName -ContentType 'ByteArray' - } - 'String' - { - Set-String -Name $Name -Secret $Secret -AZKVaultName $AdditionalParameters.AZKVaultName -ContentType 'String' - } - 'SecureString' - { - Set-SecureString -Name $Name -Secret $Secret -AZKVaultName $AdditionalParameters.AZKVaultName -ContentType 'SecureString' - } - 'PSCredential' - { - Set-PSCredential -Name $Name -Secret $Secret -AZKVaultName $AdditionalParameters.AZKVaultName -ContentType 'PSCredential' - } - 'Hashtable' - { - Set-Hashtable -Name $Name -Secret $Secret -AZKVaultName $AdditionalParameters.AZKVaultName -ContentType 'Hashtable' - } - Default - { - throw "Invalid type. Types supported: byte[], string, SecureString, PSCredential, Hashtable"; - } - } - - return $? -} - -function Set-ByteArray -{ - param ( - [string] $Name, - [Byte[]] $Secret, - [string] $AZKVaultName, - [string] $ContentType - ) - - $SecretString = [System.Text.Encoding]::ASCII.GetString($Secret) - Set-String -Name $Name -Secret $SecretString -AZKVaultName $AZKVaultName -ContentType $ContentType -} - -function Set-String -{ - param ( - [string] $Name, - [string] $Secret, - [string] $AZKVaultName, - [string] $ContentType - ) - $SecureSecret = ConvertTo-SecureString -String $Secret -AsPlainText -Force - $null = Az.KeyVault\Set-AzKeyVaultSecret -Name $Name -SecretValue $SecureSecret -VaultName $AZKVaultName -ContentType $ContentType -} - -function Set-SecureString -{ - param ( - [string] $Name, - [SecureString] $Secret, - [string] $AZKVaultName, - [string] $ContentType - ) - - $null = Az.KeyVault\Set-AzKeyVaultSecret -Name $Name -SecretValue $Secret -VaultName $AZKVaultName -ContentType $ContentType -} - -function Set-PSCredential -{ - param ( - [string] $Name, - [PSCredential] $Secret, - [string] $AZKVaultName, - [string] $ContentType - ) - $secretHashTable = @{"UserName" = $Secret.UserName; "Password" = $Secret.GetNetworkCredential().Password} - $SecretString = ConvertTo-Json $secretHashTable - Set-String -Name $Name -Secret $SecretString -AZKVaultName $AZKVaultName -ContentType $ContentType -} - -function Set-Hashtable -{ - param ( - [string] $Name, - [Hashtable] $Secret, - [string] $AZKVaultName, - [string] $ContentType - ) - $SecretString = ConvertTo-Json $Secret - Set-String -Name $Name -Secret $SecretString -AZKVaultName $AZKVaultName -ContentType $ContentType -} - -function Remove-Secret -{ - param ( - [string] $Name, - [string] $VaultName, - [hashtable] $AdditionalParameters - ) - - $null = Az.KeyVault\Remove-AzKeyVaultSecret -Name $Name -VaultName $AdditionalParameters.AZKVaultName -Force - return $? -} - -function Get-SecretInfo -{ - param ( - [string] $Filter, - [string] $VaultName, - [hashtable] $AdditionalParameters - ) - - if ([string]::IsNullOrEmpty($Filter)) - { - $Filter = "*" - } - - $pattern = [WildcardPattern]::new($Filter) - - $vaultSecretInfos = Az.KeyVault\Get-AzKeyVaultSecret -VaultName $AdditionalParameters.AZKVaultName - - foreach ($vaultSecretInfo in $vaultSecretInfos) - { - if ($pattern.IsMatch($vaultSecretInfo.Name)) - { - [Microsoft.PowerShell.SecretManagement.SecretType]$secretType = New-Object Microsoft.PowerShell.SecretManagement.SecretType - if (![System.Enum]::TryParse($vaultSecretInfo.ContentType, $true, [ref]$secretType)) - { - $secretType = "Unknown" - } - Write-Output ( - [Microsoft.PowerShell.SecretManagement.SecretInformation]::new( - $vaultSecretInfo.Name, - $secretType, - $VaultName) - ) - } - } -} - -function Test-SecretVault -{ - param ( - [string] $VaultName, - [hashtable] $AdditionalParameters - ) - - try - { - Check-SubscriptionLogIn $AdditionalParameters.SubscriptionId $AdditionalParameters.AZKVaultName - } - catch - { - Write-Error $_ - return $false - } - - return $true -} -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCyKy+DlRs3fTBA -# u5XhgR3udHDfTLCuiuI7TkzA4f8+cKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKD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H4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldh -# c2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBD -# b3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIw -# MTACEzMAAAHqmiRy1Vk/YWMAAQAAAeowIgQgxLhl/KOB9b+5yF1sflQqRHWT5fc9 -# MqZDK69Ub+YuTrUwDQYJKoZIhvcNAQELBQAEggIACSQJ8pSJIRu+MYq7vA8C5GyU -# +GFgicNGY/2nrf2pq+Y/kXkAnwgSWOB3gyjr74QTPQv7cHoxKgReOwMhv+PA7KmX -# 82Uh28CzEM/FnhlNQWpCMp7qklKs2+7JlsapgvAaQ0C/ZAtAwNKLGFdwDVE3OWY6 -# JQjjwoE18z6G3QVe4I6SgATSr2QpeVqWqurPI+xt22AqH8bNvJ9RC9fOta8Oz/L6 -# UwIFICc4cmNmd1ak9k7a+G120b7TO+2h5FjkgiJn9A3+21bw1s2Eq63v6rffoySr -# aknzDarMOJ81RtT7sLV2qolTjpdjTykoGpuJSsvhdR7teBsUluBSP3NQC3v9Lw09 -# MQj0rCRK45/n6FAyts/yM09NnRPkQ89sMiqFOXoaUcvT/154U5Vpt17qJU7dhC98 -# 9CajcecVVWBW+e+YomGQKBR+qVihOmXEtHtKqeS5mOC2DNxbz31gNU3ghRK7u7jv -# TuhnN5ogBIsc6lH1o7UG9C2zc7DrvAcbx2bB+JqQWgM5Kidcn01/Ltv0g+Hym9RW -# KELOQrRjAP2s343gHx0FZDqvc5or75WQpxgdVYNCYbkblWpqwevmq8FdwKa9GyCB -# yC0YA17OwDY4dmG8eXZEsu9fcLmxaOBgw4TnArQxCwKq8DbclvZR7yvmETvSd/v1 -# AKTpDS1FylmOeu2z/oE= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.psd1 b/Modules/Az.KeyVault/6.3.1/Az.KeyVault.psd1 deleted file mode 100644 index 2758e0e44c7e..000000000000 --- a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.psd1 +++ /dev/null @@ -1,417 +0,0 @@ -# -# Module manifest for module 'Az.KeyVault' -# -# Generated by: Microsoft Corporation -# -# Generated on: 1/9/2025 -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = 'Az.KeyVault.psm1' - -# Version number of this module. -ModuleVersion = '6.3.1' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = 'cd188042-f215-4657-adfe-c17ae28cf730' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell - Key Vault service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. - -For more information on Key Vault, please visit the following: https://learn.microsoft.com/azure/key-vault/' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @() - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Azure.Security.KeyVault.Administration.dll', - 'Azure.Security.KeyVault.Certificates.dll', - 'Azure.Security.KeyVault.Keys.dll', 'BouncyCastle.Crypto.dll', - 'KeyVault.Autorest/bin/Az.KeyVault.private.dll', - 'Microsoft.Azure.KeyVault.dll', - 'Microsoft.Azure.KeyVault.WebKey.dll', - 'Microsoft.Azure.PowerShell.KeyVault.Management.Sdk.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'KeyVault.Autorest\Az.KeyVault.format.ps1xml', - 'KeyVault.format.ps1xml', 'keyvault.generated.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('./Az.KeyVault.Extension', 'KeyVault.Autorest/Az.KeyVault.psm1') - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Add-AzKeyVaultManagedHsmRegion', 'Get-AzKeyVaultManagedHsmRegion', - 'Remove-AzKeyVaultManagedHsmRegion', - 'Test-AzKeyVaultManagedHsmNameAvailability', - 'Test-AzKeyVaultNameAvailability' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Add-AzKeyVaultCertificate', 'Add-AzKeyVaultCertificateContact', - 'Add-AzKeyVaultKey', 'Add-AzKeyVaultManagedStorageAccount', - 'Add-AzKeyVaultNetworkRule', 'Backup-AzKeyVault', - 'Backup-AzKeyVaultCertificate', 'Backup-AzKeyVaultKey', - 'Backup-AzKeyVaultManagedStorageAccount', 'Backup-AzKeyVaultSecret', - 'Export-AzKeyVaultSecurityDomain', 'Get-AzKeyVault', - 'Get-AzKeyVaultCertificate', 'Get-AzKeyVaultCertificateContact', - 'Get-AzKeyVaultCertificateIssuer', - 'Get-AzKeyVaultCertificateOperation', - 'Get-AzKeyVaultCertificatePolicy', 'Get-AzKeyVaultKey', - 'Get-AzKeyVaultKeyRotationPolicy', 'Get-AzKeyVaultManagedHsm', - 'Get-AzKeyVaultManagedStorageAccount', - 'Get-AzKeyVaultManagedStorageSasDefinition', - 'Get-AzKeyVaultRandomNumber', 'Get-AzKeyVaultRoleAssignment', - 'Get-AzKeyVaultRoleDefinition', 'Get-AzKeyVaultSecret', - 'Get-AzKeyVaultSetting', 'Import-AzKeyVaultCertificate', - 'Import-AzKeyVaultSecurityDomain', 'Invoke-AzKeyVaultKeyOperation', - 'Invoke-AzKeyVaultKeyRotation', 'New-AzKeyVault', - 'New-AzKeyVaultCertificateAdministratorDetail', - 'New-AzKeyVaultCertificateOrganizationDetail', - 'New-AzKeyVaultCertificatePolicy', 'New-AzKeyVaultManagedHsm', - 'New-AzKeyVaultNetworkRuleSetObject', - 'New-AzKeyVaultRoleAssignment', 'New-AzKeyVaultRoleDefinition', - 'Remove-AzKeyVault', 'Remove-AzKeyVaultAccessPolicy', - 'Remove-AzKeyVaultCertificate', - 'Remove-AzKeyVaultCertificateContact', - 'Remove-AzKeyVaultCertificateIssuer', - 'Remove-AzKeyVaultCertificateOperation', 'Remove-AzKeyVaultKey', - 'Remove-AzKeyVaultManagedHsm', - 'Remove-AzKeyVaultManagedStorageAccount', - 'Remove-AzKeyVaultManagedStorageSasDefinition', - 'Remove-AzKeyVaultNetworkRule', 'Remove-AzKeyVaultRoleAssignment', - 'Remove-AzKeyVaultRoleDefinition', 'Remove-AzKeyVaultSecret', - 'Restore-AzKeyVault', 'Restore-AzKeyVaultCertificate', - 'Restore-AzKeyVaultKey', 'Restore-AzKeyVaultManagedStorageAccount', - 'Restore-AzKeyVaultSecret', 'Set-AzKeyVaultAccessPolicy', - 'Set-AzKeyVaultCertificateIssuer', - 'Set-AzKeyVaultCertificatePolicy', - 'Set-AzKeyVaultKeyRotationPolicy', - 'Set-AzKeyVaultManagedStorageSasDefinition', 'Set-AzKeyVaultSecret', - 'Stop-AzKeyVaultCertificateOperation', - 'Undo-AzKeyVaultCertificateRemoval', 'Undo-AzKeyVaultKeyRemoval', - 'Undo-AzKeyVaultManagedHsmRemoval', - 'Undo-AzKeyVaultManagedStorageAccountRemoval', - 'Undo-AzKeyVaultManagedStorageSasDefinitionRemoval', - 'Undo-AzKeyVaultRemoval', 'Undo-AzKeyVaultSecretRemoval', - 'Update-AzKeyVault', 'Update-AzKeyVaultCertificate', - 'Update-AzKeyVaultKey', 'Update-AzKeyVaultManagedHsm', - 'Update-AzKeyVaultManagedStorageAccount', - 'Update-AzKeyVaultManagedStorageAccountKey', - 'Update-AzKeyVaultNetworkRuleSet', 'Update-AzKeyVaultSecret', - 'Update-AzKeyVaultSetting' - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = 'Set-AzKeyVaultCertificateAttribute', 'Set-AzKeyVaultKey', - 'Set-AzKeyVaultKeyAttribute', 'Set-AzKeyVaultRoleDefinition', - 'Set-AzKeyVaultSecretAttribute' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -ModuleList = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','KeyVault','SecretManagement' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Upgraded nuget package to signed package. -* Upgraded Azure.Core to 1.44.1.' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} - - -# SIG # Begin signature block -# MIIoUgYJKoZIhvcNAQcCoIIoQz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rp+SV3rVfK5eje -# L0IYO6vbj+igeLYdoU0XvB/PEmHBJIeMrWCbAUjUurtQ5q1FCvyaxPT/yImNwH+n -# M05xV5UThrH4ocLXisad+qlwdPc4smOQnJjyKH6YNNJ6H8TKEQL2eCU0z4y1a7Dj -# JWoDXaL1PcdAtrF5mO0CBAQB0d+zUKo3zmhuG5pzyvP7U1sBqdiXalUFZ9kFHicS -# kpgr+HYlL6vzr8raEjQXSwKFEKZD1PeAax7QBRJI2EwwsX/3aLF2Y0K0OtMmCbme -# dW0gH9MVBNan/6m3nOw8NHU9uLt2CY7W0FGyg8Na0snEpkCpyrWMLJFUXSUMTMvR -# ru9/XjU2 -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.psm1 b/Modules/Az.KeyVault/6.3.1/Az.KeyVault.psm1 deleted file mode 100644 index 1a7617da5881..000000000000 --- a/Modules/Az.KeyVault/6.3.1/Az.KeyVault.psm1 +++ /dev/null @@ -1,362 +0,0 @@ -# -# Script module for module 'Az.KeyVault' that is executed when 'Az.KeyVault' is imported in a PowerShell session. -# -# Generated by: Microsoft Corporation -# -# Generated on: 01/09/2025 06:20:57 -# - -$PSDefaultParameterValues.Clear() -Set-StrictMode -Version Latest - -function Test-DotNet -{ - try - { - if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | Where-Object { $_ -ge 461808 }))) - { - throw ".NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher." - } - } - catch [System.Management.Automation.DriveNotFoundException] - { - Write-Verbose ".NET Framework version check failed." - } -} - -function Preload-Assembly { - param ( - [string] - $AssemblyDirectory - ) - if($PSEdition -eq 'Desktop' -and (Test-Path $AssemblyDirectory -ErrorAction Ignore)) - { - try - { - Get-ChildItem -ErrorAction Stop -Path $AssemblyDirectory -Filter "*.dll" | ForEach-Object { - try - { - Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null - } - catch { - Write-Verbose $_ - } - } - } - catch {} - } -} - -if ($true -and ($PSEdition -eq 'Desktop')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'5.1') - { - throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher." - } - - Test-DotNet -} - -if ($true -and ($PSEdition -eq 'Core')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'6.2.4') - { - throw "Current Az version doesn't support PowerShell Core versions lower than 6.2.4. Please upgrade to PowerShell Core 6.2.4 or higher." - } -} - -if (Test-Path -Path "$PSScriptRoot\StartupScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\StartupScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -# [windows powershell] preload assemblies - - -# [windows powershell] preload module alc assemblies -$preloadPath = (Join-Path $PSScriptRoot -ChildPath "ModuleAlcAssemblies") -Preload-Assembly -AssemblyDirectory $preloadPath - -if (Get-Module AzureRM.profile -ErrorAction Ignore) -{ - Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") - throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") -} - -$module = Get-Module Az.Accounts - if ($module -ne $null -and $module.Version -lt [System.Version]"4.0.1") -{ - Write-Error "This module requires Az.Accounts version 4.0.1. An earlier version of Az.Accounts is imported in the current PowerShell session. Please open a new session before importing this module. This error could indicate that multiple incompatible versions of the Azure PowerShell cmdlets are installed on your system. Please see https://aka.ms/azps-version-error for troubleshooting information." -ErrorAction Stop -} -elseif ($module -eq $null) -{ - Import-Module Az.Accounts -MinimumVersion 4.0.1 -Scope Global -} -Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll) - - -if (Test-Path -Path "$PSScriptRoot\PostImportScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\PostImportScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -$FilteredCommands = @('New-AzKeyVault:ResourceGroupName','New-AzKeyVaultManagedHsm:ResourceGroupName') - -if ($Env:ACC_CLOUD -eq $null) -{ - $FilteredCommands | ForEach-Object { - - $existingDefault = $false - foreach ($key in $global:PSDefaultParameterValues.Keys) - { - if ($_ -like "$key") - { - $existingDefault = $true - } - } - - if (!$existingDefault) - { - $global:PSDefaultParameterValues.Add($_, - { - if ((Get-Command Get-AzContext -ErrorAction Ignore) -eq $null) - { - $context = Get-AzureRmContext - } - else - { - $context = Get-AzContext - } - if (($context -ne $null) -and $context.ExtendedProperties.ContainsKey("Default Resource Group")) { - $context.ExtendedProperties["Default Resource Group"] - } - }) - } - } -} - - - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD1HZck2yawQ4j7 -# o/p5+RkcqFGlt6WNxK8R/LgZob7ZCaCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwd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75faQPhf8SBDTtk2DSUgIbd -# izXsz76h1JdhLCz4MIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldh -# c2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBD -# b3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIw -# MTACEzMAAAHr4BhstbbvOO0AAQAAAeswIgQg3a/qZy5c5u5kLf4EWs4lzDywFVJR -# 2BigcuxSIs4sgoQwDQYJKoZIhvcNAQELBQAEggIASer+Qri44BtB/WdWdiPgbQY2 -# TfFFKFo6m10K1Xa01hnrIwNxFYEcfkHIQ1IXMpsJtHS9qLFg+DqFc/KfoBTArEiN -# a6MaHjPB9+MHd/ZrdfIu8VeLfPQiCFRNi4wTvLFxZp4GKlz4YHTG5ZFLCnPyODmT -# VGGDqtVGINvVXD/7QRirAtGRleX9Wur2tx/5LOBLZDwht8qrPYWsww23hQHWDXUG -# bq+YH/0pX4OvPszxDOn3YzaULOnOoGDPUVOXxGAOssOQotlB62+GEaJRnwaGPbmv -# ZxObA+7SX6648d/v4UHmeXYlHGE57U6mL1bb+cz7peWzJ62RbRFgVpogzEYpxkrp -# IqKm3EtAdCksEy/QEU1P0wUJQzJOJ0eC0FIuAsIIlQThyQcVfrKAqsnm6p6c7qLP -# +pZ8HP6P8jLo2hbCHkIalxL4QksQm426uXxyAT456rkcH6H17Xm5NfdVcqzVyCVb -# le3alyfYUD9Ib8kyHYPxeTx5b6/OQNoXYZ16AXGl0AMNbbjRL5eT+N7Q++tQBXlh -# GQNlAtl6XRtWk4p44Ir8VLc8drvnP6kW6Fs1ask/NRjhIO7UnnqQnWbkQk3V804/ -# SOkxv1++du1odjMNCYuhWHk/KYtRC8m3SIyZ2XVn3VIR5VWIAtCzCmQqfh1CrRAE -# moxJDtu6D4jj9GTA0Ew= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Administration.dll b/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Administration.dll deleted file mode 100644 index 320daee46ac3..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Administration.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Certificates.dll b/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Certificates.dll deleted file mode 100644 index 0e9228800c57..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Certificates.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Keys.dll b/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Keys.dll deleted file mode 100644 index a34981ff6a9e..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Azure.Security.KeyVault.Keys.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/BouncyCastle.Crypto.dll b/Modules/Az.KeyVault/6.3.1/BouncyCastle.Crypto.dll deleted file mode 100644 index bee1e9a8522d..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/BouncyCastle.Crypto.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/Az.KeyVault.format.ps1xml b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/Az.KeyVault.format.ps1xml deleted file mode 100644 index f11a8fddeaa9..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/Az.KeyVault.format.ps1xml +++ /dev/null @@ -1,2182 +0,0 @@ - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsm - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsm#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - SkuFamily - - - SkuName - - - SystemDataCreatedAt - - - SystemDataCreatedBy - - - SystemDataCreatedByType - - - SystemDataLastModifiedAt - - - SystemDataLastModifiedBy - - - SystemDataLastModifiedByType - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.AccessPolicyEntry - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.AccessPolicyEntry#Multiple - - - - - - - - - - - - - - - - - - ApplicationId - - - ObjectId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CheckMhsmNameAvailabilityParameters - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CheckMhsmNameAvailabilityParameters#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CheckMhsmNameAvailabilityResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CheckMhsmNameAvailabilityResult#Multiple - - - - - - - - - - - - - - - - - - Message - - - NameAvailable - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CheckNameAvailabilityResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CheckNameAvailabilityResult#Multiple - - - - - - - - - - - - - - - - - - Message - - - NameAvailable - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CloudErrorBody - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.CloudErrorBody#Multiple - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsm - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsm#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsmListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsmListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsmProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsmProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - DeletionDate - - - Location - - - MhsmId - - - PurgeProtectionEnabled - - - ScheduledPurgeDate - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsmPropertiesTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedManagedHsmPropertiesTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVault - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVault#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVaultListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVaultListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVaultProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVaultProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - DeletionDate - - - Location - - - PurgeProtectionEnabled - - - ScheduledPurgeDate - - - VaultId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVaultPropertiesTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.DeletedVaultPropertiesTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Error - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Error#Multiple - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IPRule - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IPRule#Multiple - - - - - - - - - - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.KeyVaultIdentity - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.KeyVaultIdentity#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - OperationKind - - - PrivateEndpointConnectionName - - - ResourceGroupName - - - SubscriptionId - - - VaultName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CreateMode - - - EnablePurgeProtection - - - EnableSoftDelete - - - HsmUri - - - ProvisioningState - - - PublicNetworkAccess - - - ScheduledPurgeDate - - - SoftDeleteRetentionInDay - - - StatusMessage - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmResource - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmResource#Multiple - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmResourceTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmSecurityDomainProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmSecurityDomainProperties#Multiple - - - - - - - - - - - - - - - ActivationStatus - - - ActivationStatusMessage - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmSku - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ManagedHsmSku#Multiple - - - - - - - - - - - - - - - Family - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmGeoReplicatedRegion - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmGeoReplicatedRegion#Multiple - - - - - - - - - - - - - - - - - - IsPrimary - - - Name - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmipRule - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmipRule#Multiple - - - - - - - - - - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmNetworkRuleSet - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmNetworkRuleSet#Multiple - - - - - - - - - - - - - - - Bypass - - - DefaultAction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnection - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnection#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - SkuFamily - - - SkuName - - - SystemDataCreatedAt - - - SystemDataCreatedBy - - - SystemDataCreatedByType - - - SystemDataLastModifiedAt - - - SystemDataLastModifiedBy - - - SystemDataLastModifiedByType - - - AzureAsyncOperation - - - Etag - - - ResourceGroupName - - - RetryAfter - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnectionItem - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnectionItem#Multiple - - - - - - - - - - - - Etag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnectionProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnectionProperties#Multiple - - - - - - - - - - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnectionsListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateEndpointConnectionsListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateLinkResource - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateLinkResource#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - SkuFamily - - - SkuName - - - SystemDataCreatedAt - - - SystemDataCreatedBy - - - SystemDataCreatedByType - - - SystemDataLastModifiedAt - - - SystemDataLastModifiedBy - - - SystemDataLastModifiedByType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateLinkResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateLinkResourceProperties#Multiple - - - - - - - - - - - - GroupId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateLinkServiceConnectionState - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmPrivateLinkServiceConnectionState#Multiple - - - - - - - - - - - - - - - - - - ActionsRequired - - - Description - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmRegionsListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmRegionsListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.NetworkRuleSet - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.NetworkRuleSet#Multiple - - - - - - - - - - - - - - - Bypass - - - DefaultAction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnection - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnection#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - AzureAsyncOperation - - - Etag - - - ResourceGroupName - - - RetryAfter - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnectionItem - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnectionItem#Multiple - - - - - - - - - - - - Etag - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnectionListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnectionListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnectionProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateEndpointConnectionProperties#Multiple - - - - - - - - - - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateLinkResource - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateLinkResource#Multiple - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateLinkResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateLinkResourceProperties#Multiple - - - - - - - - - - - - GroupId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateLinkServiceConnectionState - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.PrivateLinkServiceConnectionState#Multiple - - - - - - - - - - - - - - - - - - ActionsRequired - - - Description - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Resource - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Resource#Multiple - - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ResourceListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ResourceListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ResourceTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Sku - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Sku#Multiple - - - - - - - - - - - - - - - Family - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.SystemData - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.SystemData#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - CreatedAt - - - CreatedBy - - - CreatedByType - - - LastModifiedAt - - - LastModifiedBy - - - LastModifiedByType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Vault - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.Vault#Multiple - - - - - - - - - - - - - - - - - - Location - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultAccessPolicyParameters - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultAccessPolicyParameters#Multiple - - - - - - - - - - - - - - - - - - Location - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultCheckNameAvailabilityParameters - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultCheckNameAvailabilityParameters#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultCreateOrUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultCreateOrUpdateParameters#Multiple - - - - - - - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultCreateOrUpdateParametersTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultCreateOrUpdateParametersTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultListResult - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultPatchParametersTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultPatchParametersTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultPatchProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultPatchProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CreateMode - - - EnablePurgeProtection - - - EnableRbacAuthorization - - - EnableSoftDelete - - - EnabledForDeployment - - - EnabledForDiskEncryption - - - EnabledForTemplateDeployment - - - PublicNetworkAccess - - - SoftDeleteRetentionInDay - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultProperties - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CreateMode - - - EnablePurgeProtection - - - EnableRbacAuthorization - - - EnableSoftDelete - - - EnabledForDeployment - - - EnabledForDiskEncryption - - - EnabledForTemplateDeployment - - - HsmPoolResourceId - - - ProvisioningState - - - PublicNetworkAccess - - - SoftDeleteRetentionInDay - - - TenantId - - - VaultUri - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultTags - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VaultTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VirtualNetworkRule - - Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.VirtualNetworkRule#Multiple - - - - - - - - - - - - IgnoreMissingVnetServiceEndpoint - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/Az.KeyVault.psm1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/Az.KeyVault.psm1 deleted file mode 100644 index 525f3247e100..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/Az.KeyVault.psm1 +++ /dev/null @@ -1,337 +0,0 @@ -# region Generated - # ---------------------------------------------------------------------------------- - # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. - # ---------------------------------------------------------------------------------- - # Load required Az.Accounts module - $accountsName = 'Az.Accounts' - $accountsModule = Get-Module -Name $accountsName - if(-not $accountsModule) { - $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' - if(Test-Path -Path $localAccountsPath) { - $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 - if($localAccounts) { - $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru - } - } - if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 - if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru - } - } - } - - if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop - } - Write-Information "Loaded Module '$($accountsModule.Name)'" - - # Load the private module dll - $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.KeyVault.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module]::Instance - - # Ask for the shared functionality table - $VTable = Register-AzModule - - # Tweaks the pipeline on module load - $instance.OnModuleLoad = $VTable.OnModuleLoad - - # Following two delegates are added for telemetry - $instance.GetTelemetryId = $VTable.GetTelemetryId - $instance.Telemetry = $VTable.Telemetry - - # Delegate to sanitize the output object - $instance.SanitizeOutput = $VTable.SanitizerHandler - - # Delegate to get the telemetry info - $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo - - # Tweaks the pipeline per call - $instance.OnNewRequest = $VTable.OnNewRequest - - # Gets shared parameter values - $instance.GetParameterValue = $VTable.GetParameterValue - - # Allows shared module to listen to events from this module - $instance.EventListener = $VTable.EventListener - - # Gets shared argument completers - $instance.ArgumentCompleter = $VTable.ArgumentCompleter - - # The name of the currently selected Azure profile - $instance.ProfileName = $VTable.ProfileName - - # Load the custom module - $customModulePath = Join-Path $PSScriptRoot './custom/Az.KeyVault.custom.psm1' - if(Test-Path $customModulePath) { - $null = Import-Module -Name $customModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = Join-Path $PSScriptRoot './exports' - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } - - # Finalize initialization of this module - $instance.Init(); - Write-Information "Loaded Module '$($instance.Name)'" -# endregion - -# SIG # Begin signature block -# MIIoOAYJKoZIhvcNAQcCoIIoKTCCKCUCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCODWi+Ok14Kd34 -# YgjTy4JkgC+dw8Bc1siB/xsufQRtAqCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVB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gYCkfjB8MQswCQYDVQQGEwJV -# UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UE -# ChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGlt -# ZS1TdGFtcCBQQ0EgMjAxMAITMwAAAebZQp7qAPh94QABAAAB5jAiBCD8l+rOWChQ -# CRuAQRm+T3rSmz79Nr7VoQBmKySwz9QBqDANBgkqhkiG9w0BAQsFAASCAgC1GASh -# J5UvilJ3Ov+YAaMtjHeHXtWpgVRdGf9db3Yz1G2FVlINm8dZwVSlR+9ReQ2xM95A -# Xev0JWUidaNBw0oLeKxwFSpDiZgeybcmRfwIReJHwntI6FdsA+sxA946XhPOERK7 -# uOc+lsVj6+Zlpv/dymQoS/CBKZexg88nHZ9hKUb4ADPoLqioNsCTPUNbxUu7jzU7 -# HAbiHn1jlHrOabJRhtgHqOSziOS+VgwEihbt+NwSEpLdR1sgCyUQu8QQPV7md9BP -# HEcMgxjY03tj5/ZtyzhSIFCz6SoEOF3jF6DRvfgwZiyC8MStxL1LR6Xi51r741L1 -# idFgKIUVKLhSiutCz2jh0VrTYgce2JP8ZKhjJLbjGpTeJESaYAqobbDgKQtylBkx -# AfmC/AxxRpzDlubRQOLGKolu2ovwVy79d0uvuguuv2hiSxbdWwcNqCBtYyIAeNGJ -# 1GJnFYMqI0S3H3oOp8rCQ64OBFA2LRkPcnrXWX6Nzh9sNqIwivLlrYl+CtMt84jT -# 2XMxxItYdoKSyH1i4UjGoTX9iVzkDqTszOhXJNLCsz0sTu7kmgVqa8oCfcpbViVW -# srKWEReuigtPFwBbCIFuUh6+0oVHLpbFCM0Ttmf3iZAs/Y8Y6cgp0YWH4UyvamUa -# 2FmYmwdwVvk+Tn7zgeZwstjO2SJFS5hXzJTJqg== -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/bin/Az.KeyVault.private.dll b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/bin/Az.KeyVault.private.dll deleted file mode 100644 index aa30b497aad5..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/bin/Az.KeyVault.private.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Add-AzKeyVaultManagedHsmRegion.ps1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Add-AzKeyVaultManagedHsmRegion.ps1 deleted file mode 100644 index ddaa8c556c99..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Add-AzKeyVaultManagedHsmRegion.ps1 +++ /dev/null @@ -1,351 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The List operation gets information about the regions associated with the managed HSM Pool. -.Description -The List operation gets information about the regions associated with the managed HSM Pool. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultmanagedhsmregion -#> -function Add-AzKeyVaultManagedHsmRegion { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion])] - [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the managed HSM Pool - ${HsmName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String[]] - # List of regions to be added associated with the managed hsm pool. - # To construct, see NOTES section for REGION properties and create a hash table. - ${Region}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} - ) - process { - try { - $null = $PSBoundParameters.Remove('HsmName') - $null = $PSBoundParameters.Add('Name', $HsmName) - $null = $PSBoundParameters.Remove('Region') - $Parameter = Az.KeyVault.internal\Get-AzKeyVaultManagedHsm @PSBoundParameters - $Parameter = Az.KeyVault.private\Get-ParameterForRegion -Parameter $Parameter -Region $Region - $null = $PSBoundParameters.Add('Parameter', $Parameter) - $null = Az.KeyVault.internal\Update-AzKeyVaultManagedHsm @PSBoundParameters - $null = $PSBoundParameters.Remove('Parameter') - $null = $PSBoundParameters.Remove('Name') - $null = $PSBoundParameters.Add('HsmName', $HsmName) - Az.KeyVault\Get-AzKeyVaultManagedHsmRegion @PSBoundParameters - } catch { - throw - } - } -} -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD3sQD5TYPf5484 -# UHM/DnuOYou8y/jT9IbT+TqO6drQyaCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEM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brzwFgOxKFQzUh09TI3sZ+U2JfZ6l9jCtUpl6KXxuyq4x -# ZjeDowXTUi46EczzyoY= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Az.KeyVault.custom.psm1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Az.KeyVault.custom.psm1 deleted file mode 100644 index 2e3ea2e80674..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Az.KeyVault.custom.psm1 +++ /dev/null @@ -1,235 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.KeyVault.private.dll') - - # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.KeyVault.internal.psm1' - if(Test-Path $internalModulePath) { - $null = Import-Module -Name $internalModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export script cmdlets - Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) -# endregion - -# SIG # Begin signature block -# MIIoKQYJKoZIhvcNAQcCoIIoGjCCKBYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAhgmpnLOCuADnf -# vtM33V/fWhhyLDhhtDpPciX9NEINkKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZ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HbVAEFsrKj/FyJAh -# dqgxZQt6MATVCoMwgZgwgYCkfjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2Fz -# aGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENv -# cnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAx -# MAITMwAAAezgK6SC0JFSgAABAAAB7DAiBCCcnZEgMd+b/WILuiRw1VR2BIOp9rHP -# KSoubN3CMGIojDANBgkqhkiG9w0BAQsFAASCAgBf7ZWuTG62T5oA+iCncoebbTG+ -# iVW9rvpPgEbdtuTW/pxqsT0Xu068S4fcvSZWCkNSiIu+4Z86N07hyZeh5VbE+tA0 -# GJpd2VmL89gzgSNfiG1ot4lrlFHqabhsWhQs/VH1igVbuSykt06/ss2Jgg8Cj2Jv -# szYJZFceI1msRP7hCp6a6AUb9YlFYBGUf7hw8XawDT9GkL2e9u90bnJODk79+Hkz -# hUEElQGWG2VnSyyoYluKLtQfluY76W+JXBn18aoz5w45WbI5CNSpAMGArnau5Whq -# rMPdA/e32N7/37JxVnvzQs+8f7AeBFiiIbf+ATVTQoeNbBmNlFScWuZW/Q7Epg56 -# KtyU5bQBr4Voh33p/oMgbObmDMy4QYx8VqE5SNR0hgEs0+EyegcrVlag8m2KkdgT -# na7DxEyvKRkRi5UWFBGG25WHOs6jnhJ3V+vO1rUihirAokirAygPaaCXESHpnXMa -# bCY90nQLn0F3qYXZ2AzrBPZJYzGTcODN2QfyTDkgUCzEzY5icYH7Fu9Pe3tdtE2n -# lRpvtNLVx8uCA5Uxex7Ex5PtMTmKl+Fg73bpfbyiWjQV1bM4RD1kzHjM80soQO4w -# 1xPn0GqGmtDjRlV/4VqaLaJZ7aRH4qOt1aGYsJGyp47LDi48FoN9Kis8UYQnVvAK -# gI9yieXK51YfKE28Fw== -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Get-ParameterForRegion.cs b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Get-ParameterForRegion.cs deleted file mode 100644 index b2430e1588b9..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Get-ParameterForRegion.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Extensions; - using Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PowerShell; - using Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Cmdlets; - using System; - using System.Management.Automation; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - [global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"ParameterForRegion")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm))] - [global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Description(@"Create an in-memory object for parameter region.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Generated] - public partial class GetAzKeyVaultManagedHsmRegionObject : global::System.Management.Automation.PSCmdlet - { - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm _parameter; - - /// Resource information with extended details. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource information with extended details.", ValueFromPipeline = true)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Resource information with extended details.", - SerializedName = @"parameters", - PossibleTypes = new[] { typeof(Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.ParameterCategory.Body)] - public Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm Parameter { get => this._parameter; set => this._parameter = value; } - - /// Backing field for property. - private string[] _region; - - /// - /// List of all regions associated with the managed hsm pool. - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of all regions associated with the managed hsm pool.")] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"List of all regions associated with the managed hsm pool.", - PossibleTypes = new[] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category(global::Microsoft.Azure.PowerShell.Cmdlets.KeyVault.ParameterCategory.Path)] - public string[] Region { get => this._region; set => this._region = value; } - - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specify if add or remove regions to existing regions")] - public SwitchParameter RemoveRegion; - - /// Performs execution of the command. - protected override void ProcessRecord() - { - if (RemoveRegion.IsPresent) - { - var remainingRegions = this.Parameter.Region?.Where(r => !this.Region.Contains(r.Name, StringComparer.OrdinalIgnoreCase)); - this.Parameter.Region = remainingRegions?.ToList(); - } - else - { - foreach (var r in this.Region) - { - this.Parameter.Region.Add(new Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.MhsmGeoReplicatedRegion(new Dictionary{{ "Name", r }})); - - } - } - WriteObject(this.Parameter); - } - - } -} \ No newline at end of file diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/ManagedHsm.json.cs b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/ManagedHsm.json.cs deleted file mode 100644 index 1d48590cddaf..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/ManagedHsm.json.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Extensions; - - /// Resource information with extended details. - public partial class ManagedHsm - { - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Json.JsonObject container) - { - if (this.Tag != null && this.Tag.Count == 0) { - container.Add("tags", new Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Json.JsonObject()); - } - } - } -} \ No newline at end of file diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Remove-AzKeyVaultManagedHsmRegion.ps1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Remove-AzKeyVaultManagedHsmRegion.ps1 deleted file mode 100644 index 1b6467b17b5e..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/custom/Remove-AzKeyVaultManagedHsmRegion.ps1 +++ /dev/null @@ -1,359 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The List operation gets information about the regions associated with the managed HSM Pool. -.Description -The List operation gets information about the regions associated with the managed HSM Pool. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultmanagedhsmregion -#> -function Remove-AzKeyVaultManagedHsmRegion { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion])] - [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the managed HSM Pool - ${HsmName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String[]] - # List of regions to be removed associated with the managed hsm pool. - ${Region}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} - ) - process { - try { - $null = $PSBoundParameters.Remove('PassThru') - $null = $PSBoundParameters.Remove('HsmName') - $null = $PSBoundParameters.Add('Name', $HsmName) - $null = $PSBoundParameters.Remove('Region') - $Parameter = Az.KeyVault.internal\Get-AzKeyVaultManagedHsm @PSBoundParameters - $Parameter = Az.KeyVault.private\Get-ParameterForRegion -Parameter $Parameter -Region $Region -RemoveRegion - $null = $PSBoundParameters.Add('Parameter', $Parameter) - $null = Az.KeyVault.internal\Update-AzKeyVaultManagedHsm @PSBoundParameters - if($PassThru.IsPresent){ - $null = $PSBoundParameters.Remove('Parameter') - $null = $PSBoundParameters.Remove('Name') - $null = $PSBoundParameters.Add('HsmName', $HsmName) - Az.KeyVault\Get-AzKeyVaultManagedHsmRegion @PSBoundParameters - } - } catch { - throw - } - } -} -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB4v93oDmbZQQ2x -# tyZRN6JNLldXTy5N0cZWCzNavC4OQqCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdSn8qMzCBzR7rvH2WVkv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uQbH6ZWNEQnFJ5He06Dy8oH9IIKxwQqZdOJCTb1D7dBXPbRk9Epd16rOxpS -# zxm1FtGlgoic6/9eREHlCn7tuSv6aFLCpoK9PPBNh9TtADCfsa8YQyaB+A3gA1eP -# MnG1F2f7yrRYoa2uSRTwV0/99Bf2hDaWtGa6B0f3s8TLpxZRnE/kwQ0iHJH3+ehP -# Xf1mm756jFOZ5NpRWPiTuMjWu0fgrvT0bovZz5O7E1qyIyUliUIzXBFuD83UEntC -# MTTbQzoIB+w7pXpVHyTHIAwhaJ0wn8Y6xEZnQkBYeQx8kr7KZ6T1nC8ALZCTcfXt -# 46ZJS/6sbxNtyeSo3sNsnL/Takyo3stzRfCxd9DkKfQkhLpDvLN1HtDDsKP/+f/K -# W7WL5jtXYXalIGZIVYY= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index c8490a12d86d..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,1149 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The List operation gets information about the regions associated with the managed HSM Pool. -.Description -The List operation gets information about the regions associated with the managed HSM Pool. -.Example -Get-AzKeyVaultManagedHsmRegion -HsmName testmhsm -ResourceGroupName test-rg - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultmanagedhsmregion -#> -function Get-AzKeyVaultManagedHsmRegion { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the managed HSM Pool - ${HsmName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - List = 'Az.KeyVault.private\Get-AzKeyVaultManagedHsmRegion_List'; - } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Checks that the managed hsm name is valid and is not already in use. -.Description -Checks that the managed hsm name is valid and is not already in use. -.Example -Test-AzKeyVaultManagedHsmNameAvailability -Name testmhsm0818 -.Example -Test-AzKeyVaultNameAvailability -Name testmhsm - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ICheckMhsmNameAvailabilityResult -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/test-azkeyvaultmanagedhsmnameavailability -#> -function Test-AzKeyVaultManagedHsmNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ICheckMhsmNameAvailabilityResult])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # The managed hsm name. - ${Name}, - - [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Path of Json file supplied to the Check operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Json string supplied to the Check operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CheckExpanded = 'Az.KeyVault.private\Test-AzKeyVaultManagedHsmNameAvailability_CheckExpanded'; - CheckViaJsonFilePath = 'Az.KeyVault.private\Test-AzKeyVaultManagedHsmNameAvailability_CheckViaJsonFilePath'; - CheckViaJsonString = 'Az.KeyVault.private\Test-AzKeyVaultManagedHsmNameAvailability_CheckViaJsonString'; - } - if (('CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Checks that the vault name is valid and is not already in use. -.Description -Checks that the vault name is valid and is not already in use. -.Example -Test-AzKeyVaultNameAvailability -Name test-kv0818 -.Example -Test-AzKeyVaultNameAvailability -Name testkv - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ICheckNameAvailabilityResult -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/test-azkeyvaultnameavailability -#> -function Test-AzKeyVaultNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.ICheckNameAvailabilityResult])] -[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CheckExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # The vault name. - ${Name}, - - [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Path of Json file supplied to the Check operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Json string supplied to the Check operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CheckExpanded = 'Az.KeyVault.private\Test-AzKeyVaultNameAvailability_CheckExpanded'; - CheckViaJsonFilePath = 'Az.KeyVault.private\Test-AzKeyVaultNameAvailability_CheckViaJsonFilePath'; - CheckViaJsonString = 'Az.KeyVault.private\Test-AzKeyVaultNameAvailability_CheckViaJsonString'; - } - if (('CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -The List operation gets information about the regions associated with the managed HSM Pool. -.Description -The List operation gets information about the regions associated with the managed HSM Pool. -.Example -Add-AzKeyVaultManagedHsmRegion -HsmName testmhsm -ResourceGroupName test-rg -Region eastus2 - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultmanagedhsmregion -#> -function Add-AzKeyVaultManagedHsmRegion { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the managed HSM Pool - ${HsmName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String[]] - # List of regions to be added associated with the managed hsm pool. - # To construct, see NOTES section for REGION properties and create a hash table. - ${Region}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.KeyVault.custom\Add-AzKeyVaultManagedHsmRegion'; - } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -The List operation gets information about the regions associated with the managed HSM Pool. -.Description -The List operation gets information about the regions associated with the managed HSM Pool. -.Example -Remove-AzKeyVaultManagedHsmRegion -HsmName testmhsm -ResourceGroupName test-rg -Region eastus2 -PassThru - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultmanagedhsmregion -#> -function Remove-AzKeyVaultManagedHsmRegion { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion])] -[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the managed HSM Pool - ${HsmName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String[]] - # List of regions to be removed associated with the managed hsm pool. - ${Region}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.KeyVault.custom\Remove-AzKeyVaultManagedHsmRegion'; - } - if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -# SIG # Begin signature block -# MIIoPAYJKoZIhvcNAQcCoIIoLTCCKCkCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCfsr6cTxId8hI0 -# To0z0O06fg2XfyeaXrmqY296l2MuwqCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV -# LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY -# oUhLVE+UzRihV8ooxoftsmKLb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SGq/8FdKgLk -# jmcY3OnWC8CK6ZVfJ8N+/tXoyD4X9yZCFz92MxpFhYrkuFjN6j+qoLWaGfvSJqd4 -# oosA7UslIwL0oqPwbghKSJEIInlLjcY4wwA2DEUwmkBJ6tVvFSivOcKJfRbhikG5 -# lpSD5u4t8kxlxo7xhhMZPoQ7HYxjUnWkHpJtmLo5YuFD9XL8N942mUL3+6kxy5BH -# 5QIvyrtBwH7Kl+Gn86VGRf4uRb1z/25T1KRkfjuJfW1xQmlrEGH1RWT/RyfWaSRs -# i1Syn6QDF71jDMcogMF7NxkKYh2ORrKybILetz36Q8ClWXwe1s1/7+hA/pSGjLQm -# YN+ol7U5o+HP3T7NtzeqO3ZAieLkuOG+SVgnaCWw/MpdR3JMONYeKv0BoTtBt86j -# 2/TfZI9UCWaMNMVGfXDZLVMyWcUJo4C4JcPKhWvlGWCROI9IYAbz7wVRbdlIgQKa -# e+cZmNQC+5ZfSXk2lFJ4+tCBNWoKSOTNEfJQ3E3+nuc= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/internal/Az.KeyVault.internal.psm1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/internal/Az.KeyVault.internal.psm1 deleted file mode 100644 index 7012b7537a6b..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/internal/Az.KeyVault.internal.psm1 +++ /dev/null @@ -1,256 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.KeyVault.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module]::Instance - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = $PSScriptRoot - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } -# endregion - -# SIG # Begin signature block -# MIIoOAYJKoZIhvcNAQcCoIIoKTCCKCUCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBQp9oIDCEyXP2/ -# ri3I99pwl4x1uyvYAR/FtKl433JQaKCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvc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AAeqaJHLVWT9hYwABAAAB6jAiBCDEuGX8o4H1 -# v7nIXWx+VCpEdZPl9z0ypkMrr1Rv5i5OtTANBgkqhkiG9w0BAQsFAASCAgBx+QkV -# uRUP4+UYJfqEhO8Ayghga+aW3V24q10CSZ5rREnG3HPgDMCPsB9/vqvsVPRPAi88 -# b2INvWz0gY+fhCyk8mxQvYyL/IrKcsKfBY9M8Y/B26lHz+iJsqYFdGdZW6H+2zyJ -# Leb/6ZGDmEdRESK6DDXSs7kuzasl/R64Hrn1tXoZ4S3/o44yCUd3qlLQ4Cmu93cE -# 0yDWLJNjphiIwVSufdPE/PmU0lADUSYTnqjlMh76srkVWuoMnElrls4azukCYdKI -# Cyswb+L1Wif9YhMTyCjCLHYqFAEu+kORlxhgrvo2IgcRJI/BuGR+vxUdyOTf5EXF -# Yb485tQ0imbiUUwdwiowCWy4Clb4S0tKL8uf9399MQZbwCx6U/gegJBuOOYDAD3H -# /nhoMOWN+GWX8FmUfhxbjwLMZmcrQ6h1v+pI342Aox8yZYTpzb8/CPy6azuEuWQW -# zvpy3wRmsOQ7099uOKuSohhlPu6MGUWMjz3oH7HafptanwkL+TJa78/4LVEvCIgJ -# RFWSSyE5QAKkTuNtpgtTLqVsFC1nPvYx8QArdBf6uQvWSblbevFxQxm3pPgkrLq2 -# UumO4gFcEdgzheL+7NYDoQLeKh4+j7B38/GDgPdKR1slTUqHz/wXneY7Ibrbz47v -# nYplKm8LKJMfWPpwyHRRG7TzlqtBTKv3tXGj8A== -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/internal/ProxyCmdletDefinitions.ps1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/internal/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index 35740570efde..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,879 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets the specified managed HSM Pool. -.Description -Gets the specified managed HSM Pool. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IKeyVaultIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [Id ]: Resource identity path - [Location ]: The location of the deleted vault. - [Name ]: Name of the managed HSM Pool - [OperationKind ]: Name of the operation - [PrivateEndpointConnectionName ]: Name of the private endpoint connection associated with the key vault. - [ResourceGroupName ]: The name of the Resource Group to which the server belongs. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - [VaultName ]: Name of the vault -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultmanagedhsm -#> -function Get-AzKeyVaultManagedHsm { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # The name of the managed HSM Pool. - ${Name}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String[]] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IKeyVaultIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Query')] - [System.Int32] - # Maximum number of results to return. - ${Top}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.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.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.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.KeyVault.private\Get-AzKeyVaultManagedHsm_Get'; - GetViaIdentity = 'Az.KeyVault.private\Get-AzKeyVaultManagedHsm_GetViaIdentity'; - List = 'Az.KeyVault.private\Get-AzKeyVaultManagedHsm_List'; - List1 = 'Az.KeyVault.private\Get-AzKeyVaultManagedHsm_List1'; - } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 an in-memory object for parameter region. -.Description -Create an in-memory object for parameter region. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm -.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. - -PARAMETER : Resource information with extended details. - [Location ]: The supported Azure location where the managed HSM Pool should be created. - [SkuName ]: SKU of the managed HSM Pool - [Tag ]: Resource tags - [(Any) ]: This indicates any property can be added to this object. - [CreateMode ]: The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. - [EnablePurgeProtection ]: Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. Enabling this functionality is irreversible. - [EnableSoftDelete ]: Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. Soft delete is enabled by default for all managed HSMs and is immutable. - [InitialAdminObjectId >]: Array of initial administrators object ids for this managed hsm pool. - [NetworkAclsBypass ]: Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. - [NetworkAclsDefaultAction ]: The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. - [NetworkAclsIPRule >]: The list of IP address rules. - Value : An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). - [NetworkAclsVirtualNetworkRule >]: The list of virtual network rules. - Id : Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. - [PublicNetworkAccess ]: Control permission to the managed HSM from public networks. - [Region >]: List of all regions associated with the managed hsm pool. - [IsPrimary ]: A boolean value that indicates whether the region is the primary region or a secondary region. - [Name ]: Name of the geo replicated region. - [SoftDeleteRetentionInDay ]: Soft deleted data retention days. When you delete an HSM or a key, it will remain recoverable for the configured retention period or for a default period of 90 days. It accepts values between 7 and 90. - [TenantId ]: The Azure Active Directory tenant ID that should be used for authenticating requests to the managed HSM pool. -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/get-parameterforregion -#> -function Get-ParameterForRegion { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String[]] - # List of all regions associated with the managed hsm pool. - ${Region}, - - [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm] - # Resource information with extended details. - ${Parameter}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Specify if add or remove regions to existing regions - ${RemoveRegion} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - $mapping = @{ - __AllParameterSets = 'Az.KeyVault.private\Get-ParameterForRegion'; - } - - $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 -Update a managed HSM Pool in the specified subscription. -.Description -Update a managed HSM Pool in the specified subscription. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IKeyVaultIdentity -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [Id ]: Resource identity path - [Location ]: The location of the deleted vault. - [Name ]: Name of the managed HSM Pool - [OperationKind ]: Name of the operation - [PrivateEndpointConnectionName ]: Name of the private endpoint connection associated with the key vault. - [ResourceGroupName ]: The name of the Resource Group to which the server belongs. - [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - [VaultName ]: Name of the vault - -NETWORKACLSIPRULE : The list of IP address rules. - Value : An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). - -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. - Id : Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. - -PARAMETER : Resource information with extended details. - [Location ]: The supported Azure location where the managed HSM Pool should be created. - [SkuName ]: SKU of the managed HSM Pool - [Tag ]: Resource tags - [(Any) ]: This indicates any property can be added to this object. - [CreateMode ]: The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. - [EnablePurgeProtection ]: Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. Enabling this functionality is irreversible. - [EnableSoftDelete ]: Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. Soft delete is enabled by default for all managed HSMs and is immutable. - [InitialAdminObjectId >]: Array of initial administrators object ids for this managed hsm pool. - [NetworkAclsBypass ]: Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. - [NetworkAclsDefaultAction ]: The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. - [NetworkAclsIPRule >]: The list of IP address rules. - Value : An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). - [NetworkAclsVirtualNetworkRule >]: The list of virtual network rules. - Id : Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. - [PublicNetworkAccess ]: Control permission to the managed HSM from public networks. - [Region >]: List of all regions associated with the managed hsm pool. - [IsPrimary ]: A boolean value that indicates whether the region is the primary region or a secondary region. - [Name ]: Name of the geo replicated region. - [SoftDeleteRetentionInDay ]: Soft deleted data retention days. When you delete an HSM or a key, it will remain recoverable for the configured retention period or for a default period of 90 days. It accepts values between 7 and 90. - [TenantId ]: The Azure Active Directory tenant ID that should be used for authenticating requests to the managed HSM pool. - -REGION : List of all regions associated with the managed hsm pool. - [IsPrimary ]: A boolean value that indicates whether the region is the primary region or a secondary region. - [Name ]: Name of the geo replicated region. -.Link -https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultmanagedhsm -#> -function Update-AzKeyVaultManagedHsm { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the managed HSM Pool - ${Name}, - - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [System.String] - # Name of the resource group that contains the managed HSM pool. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Update')] - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaJsonFilePath')] - [Parameter(ParameterSetName='UpdateViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Subscription credentials which uniquely identify Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IKeyVaultIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsm] - # Resource information with extended details. - ${Parameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.PSArgumentCompleterAttribute("recover", "default")] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. - ${CreateMode}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Property specifying whether protection against purge is enabled for this managed HSM pool. - # Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. - # Enabling this functionality is irreversible. - ${EnablePurgeProtection}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. - # Soft delete is enabled by default for all managed HSMs and is immutable. - ${EnableSoftDelete}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String[]] - # Array of initial administrators object ids for this managed hsm pool. - ${InitialAdminObjectId}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.PSArgumentCompleterAttribute("AzureServices", "None")] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Tells what traffic can bypass network rules. - # This can be 'AzureServices' or 'None'. - # If not specified the default is 'AzureServices'. - ${NetworkAclsBypass}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.PSArgumentCompleterAttribute("Allow", "Deny")] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # The default action when no rule from ipRules and from virtualNetworkRules match. - # This is only used after the bypass property has been evaluated. - ${NetworkAclsDefaultAction}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmipRule[]] - # The list of IP address rules. - ${NetworkAclsIPRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmVirtualNetworkRule[]] - # The list of virtual network rules. - ${NetworkAclsVirtualNetworkRule}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Control permission to the managed HSM from public networks. - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IMhsmGeoReplicatedRegion[]] - # List of all regions associated with the managed hsm pool. - ${Region}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.PSArgumentCompleterAttribute("Standard_B1", "Custom_B32", "Custom_B6")] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # SKU of the managed HSM Pool - ${SkuName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.Int32] - # Soft deleted data retention days. - # When you delete an HSM or a key, it will remain recoverable for the configured retention period or for a default period of 90 days. - # It accepts values between 7 and 90. - ${SoftDeleteRetentionInDay}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Models.IManagedHsmResourceTags]))] - [System.Collections.Hashtable] - # Resource tags - ${Tag}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # The Azure Active Directory tenant ID that should be used for authenticating requests to the managed HSM pool. - ${TenantId}, - - [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Path of Json file supplied to the Update operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Body')] - [System.String] - # Json string supplied to the Update operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.KeyVault.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.KeyVault.private\Update-AzKeyVaultManagedHsm_Update'; - UpdateExpanded = 'Az.KeyVault.private\Update-AzKeyVaultManagedHsm_UpdateExpanded'; - UpdateViaIdentity = 'Az.KeyVault.private\Update-AzKeyVaultManagedHsm_UpdateViaIdentity'; - UpdateViaIdentityExpanded = 'Az.KeyVault.private\Update-AzKeyVaultManagedHsm_UpdateViaIdentityExpanded'; - UpdateViaJsonFilePath = 'Az.KeyVault.private\Update-AzKeyVaultManagedHsm_UpdateViaJsonFilePath'; - UpdateViaJsonString = 'Az.KeyVault.private\Update-AzKeyVaultManagedHsm_UpdateViaJsonString'; - } - if (('Update', 'UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAxHRrDH4wjBP8E -# bTpj2WFOEcRdTCC1185CnH8162ZA96CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5l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ydexGqqRfjb7gT+e4pY -# E2yHWo5IyMYl7+47QyAI5Sb1w0DYVbzSHAv3VyEzxbMjhPiQHdxBnhH6uMIa4RYM -# ysMi14ojxKDVfCCSTwsrL/IYNRT4YAwYo4O65nko6RqmIg7+yVv4Yt2hvSvSjmt4 -# qaCQ/fcZ/E2aRYWxLG0SiZI4cIJeF9Trni+5CJ641Hzaf9EfrpdoWCIN6mnz3QtT -# zj4l90L0w4UmAFS6uaQUmIdxBtOajjzTb98Rve4KWeytWHxrIVM1XFIA3yG0+gIw -# +nyZHitxTaR8O1sRNPJ1y9XR8FyP6y5pIwu0ZBKFQqRR9iTki5AYuNcRjL94/6sb -# JEZeFh0LywWDcdo8LqHHbPYv6cGfYaFY0w64/IKTapKjODrwAoKzU+gRyHT7bS99 -# BkdmQ9LliHMM1vlIL0M1p6vCqfrz61YVB5w80ZKwsePeo0NkP2VVsdQUBzRsECTd -# ut1Znfhh1/xOYSWlP9U= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 deleted file mode 100644 index 9213c3763627..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 +++ /dev/null @@ -1,224 +0,0 @@ -param() -if ($env:AzPSAutorestTestPlaybackMode) { - $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' - . ($loadEnvPath) - return $env.SubscriptionId -} -return (Get-AzContext).Subscription.Id -# SIG # Begin signature block -# MIIoKQYJKoZIhvcNAQcCoIIoGjCCKBYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCC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qcDoA0zpB1qV2y -# XIhlV7jY/LMe0IZdwGkkMyAe93DSgNofTjTotiDLLcI3dn5yIepxjGF0P1fUNQuM -# eAVMPxi+ne47AJm4NixZWBP48Qi2Py6mFjs8FMYTL5gVwYWWMLB7JG1lUQqWKoDG -# rFnouitaw1wRQR0WhA== -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/utils/Unprotect-SecureString.ps1 b/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/utils/Unprotect-SecureString.ps1 deleted file mode 100644 index f186085d93b0..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.Autorest/utils/Unprotect-SecureString.ps1 +++ /dev/null @@ -1,233 +0,0 @@ -#This script converts securestring to plaintext - -param( - [Parameter(Mandatory, ValueFromPipeline)] - [System.Security.SecureString] - ${SecureString} -) - -$ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) -try { - $plaintext = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) -} finally { - [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) -} - -return $plaintext -# SIG # Begin signature block -# MIIoOQYJKoZIhvcNAQcCoIIoKjCCKCYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDT7ZbNoY98P1cW -# CLQEXghewcRRqpuzw+uOgG2nbQ8aHaCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb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BAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV -# BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRp -# bWUtU3RhbXAgUENBIDIwMTACEzMAAAHt4V/L1felXXMAAQAAAe0wIgQgHZJuYFot -# PXySbWtoYQzcjhOI+GdzM2vjq7x+59R0CtQwDQYJKoZIhvcNAQELBQAEggIAZIrQ -# Fu33o8czIck9WXTy7f+Oa+7CJTD7KtQfnM3YL3vgjBt7mopEGazCoqhoa0bWnzr0 -# YkF3ck/7sGUyROa1TQ0/5X+mCJ5yFhlUVdglcq+ARKZBTvXUYljFXfOdP+DqtPUg -# nFG8l6/JGSNYuCFQuQV6EJh0/Jcjt1jFkHH3PMNlzkryQA23TvJe/WOevn3LfGhv -# uwMJi27rNlvCmF63p3HNJZpJYY8ti/aKNgxnydU5SC87mtuhGotAuKAFYO7SNdjx -# fgTmZx+WfObfkvc9qWAP83Dm6nJQsLqUiYnockovlNDEL56XneV6LGQTy54fZ0t3 -# ETd6xpWXjE8+UAz2iASScHFOCBbkOnRgwLTzrByJPiNeTI4Kbh39Ctm1b6PUDGP9 -# iLDLeehaFAH7sbH0ccOk00pXdNCEL7eDmeXTtu6kMbw/L1/rT10n8X15VRa8Mshy -# 503Fd9hjmkcRvvs9MPL2Z3njc3xuQ7HOg7KblPOqBhngHhHs+dIeTrX9qP1gX1XX -# TcrVBzNqVO2C8Swur7/a2m4W8LuXCpqslYzBwWJgaykQ/tqOO13M9rnx4EXGrjSZ -# 4q4gvNI7FsJb0WsbIIBeF+jwktYBoEfUV9Pv5j0OKdcrcrwfCdJ5VJ2latZCoCaq -# TjHwobcIgvCSPH9GiXZgWG2uSWRinDsCc60jJkI= -# SIG # End signature block diff --git a/Modules/Az.KeyVault/6.3.1/KeyVault.format.ps1xml b/Modules/Az.KeyVault/6.3.1/KeyVault.format.ps1xml deleted file mode 100644 index b23735c59fe8..000000000000 --- a/Modules/Az.KeyVault/6.3.1/KeyVault.format.ps1xml +++ /dev/null @@ -1,2240 +0,0 @@ - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - VaultName - - - - Name - - - - Version - - - - Id - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - RecoveryLevel - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - VaultName - - - Left - Enabled - - - Left - Created - - - Left - Expires - - - Left - Tags - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - VaultName - - - - Name - - - - KeyType - - - - KeySize - - - - CurveName - - - - Version - - - - Id - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - RecoveryLevel - - - - ReleasePolicy - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - - - - - - - VaultName - - - - Name - - - - Id - - - - DeletedDate - - - - ScheduledPurgeDate - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - RecoveryLevel - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey - - - - - - - - VaultName - - - - Name - - - - KeyType - - - - KeySize - - - - CurveName - - - - Id - - - - DeletedDate - - - - ScheduledPurgeDate - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - RecoveryLevel - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - - - - VaultName - - - - Name - - - - Version - - - - Id - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - ContentType - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - VaultName - - - Left - Created - - - Left - Expires - - - Left - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem - - - - - - - - VaultName - - - - Name - - - - Id - - - - DeletedDate - - - - ScheduledPurgeDate - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - ContentType - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - - - - VaultName - - - - ResourceGroupName - - - - Location - - - - ResourceId - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - VaultName - - - Left - ResourceGroupName - - - Left - Location - - - Left - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - - - - - - - VaultName - - - - Location - - - - Id - - - - ResourceId - - - - DeletionDate - - - - ScheduledPurgeDate - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - VaultName - - - - ResourceGroupName - - - - Location - - - - ResourceId - - - - VaultUri - - - - TenantName - - - - Sku - - - - EnabledForDeployment - - - - EnabledForTemplateDeployment - - - - EnabledForDiskEncryption - - - - EnableRbacAuthorization - - - - EnableSoftDelete - - - - SoftDeleteRetentionInDays - - - - EnablePurgeProtection - - - - PublicNetworkAccess - - - - AccessPoliciesText - - - - NetworkAclsText - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - ResourceGroupName - - - Left - Location - - - Left - Sku - - - Left - ProvisioningState - - - Left - - if ($_.SecurityDomain -ne $null) - { - $_.SecurityDomain.ActivationStatus; - } - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - Name - - - - VaultName - - - - Version - - - - Id - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - VaultName - - - Left - Enabled - - - Left - Created - - - Left - Expires - - - Left - Tags - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate - - - - - - - - Name - - - - VaultName - - - - Version - - - - Id - - - - KeyId - - - - SecretId - - - - Certificate - - - - Thumbprint - - - - RecoveryLevel - - - - ScheduledPurgeDate - - - - DeletedDate - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - - - - - - - Name - - - - VaultName - - - - Version - - - - Id - - - - KeyId - - - - SecretId - - - - Certificate - - - - Thumbprint - - - - Policy - - - - RecoveryLevel - - - - Enabled - - - - Expires - - - - NotBefore - - - - Created - - - - Updated - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Value - - - Left - Type - - - Left - HsmName - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - Name - - - - ResourceGroupName - - - - Location - - - - ResourceId - - - - HsmPoolUri - - - - TenantName - - - - InitialAdminObjectIds - - - - Sku - - - - EnableSoftDelete - - - - EnablePurgeProtection - - - - SoftDeleteRetentionInDays - - - - PublicNetworkAccess - - - - - if ($_.Identity -ne $null) - { - $_.Identity.Type; - } - - - - - - if ($_.Identity -ne $null) - { - $_.Identity.UserAssignedIdentities; - } - - - - - ProvisioningState - - - - StatusMessage - - - - - if ($_.SecurityDomain -ne $null) - { - $_.SecurityDomain.ActivationStatus; - } - - - - - - if ($_.SecurityDomain -ne $null) - { - $_.SecurityDomain.ActivationStatusMessage; - } - - - - - Regions - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Location - - - Left - DeletionDate - - - Left - ScheduledPurgeDate - - - Left - EnablePurgeProtection - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy - - - - - - - - TenantName - - - - ObjectId - - - - ApplicationIdDisplayName - - - - DisplayName - - - - PermissionsToKeys - - - - PermissionsToSecrets - - - - PermissionsToCertificates - - - - PermissionsToStorage - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyReleasePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyReleasePolicy - - - - - - - - ContentType - - - - PolicyContent - - - - Immutable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - - - - - - - VaultName - - - - Name - - - - Version - - - - Id - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Enabled; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Expires; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.NotBefore; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Created; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Updated; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.ContentType; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.TagsTable; - } - else - { - $_.Attributes; - } - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret - - - - - - - - VaultName - - - - Name - - - - Version - - - - Id - - - - DeletedDate - - - - ScheduledPurgeDate - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Enabled; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Expires; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.NotBefore; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Created; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Updated; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.ContentType; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.TagsTable; - } - else - { - $_.Attributes; - } - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - Id - - - - VaultName - - - - AccountName - - - - AccountResourceId - - - - ActiveKeyName - - - - AutoRegenerateKey - - - - RegenerationPeriod - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Enabled; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Created; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Updated; - } - else - { - $_.Attributes; - } - - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - Id - - - - VaultName - - - - AccountName - - - - AccountResourceId - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Enabled; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Created; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Updated; - } - else - { - $_.Attributes; - } - - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - - - - - - - Id - - - - VaultName - - - - AccountName - - - - Name - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Enabled; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Created; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Updated; - } - else - { - $_.Attributes; - } - - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition - - - - - - - - Id - - - - Sid - - - - VaultName - - - - AccountName - - - - Name - - - - ParameterTable - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Enabled; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Created; - } - else - { - $_.Attributes; - } - - - - - - if ($_.Attributes -ne $null) - { - $_.Attributes.Updated; - } - else - { - $_.Attributes; - } - - - - - TagsTable - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - - - - - - - - - - - - - - - - RoleName - - - Description - - - "$($_.Permissions.Length) permission(s)" - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission - - - - - - - - - - - - - - - - - - - - - "$($_.Actions.Length) action(s)" - - - "$($_.NotActions.Length) action(s)" - - - "$($_.DataActions.Length) action(s)" - - - "$($_.NotDataActions.Length) action(s)" - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - - - - - RoleDefinitionName - - - DisplayName - - - ObjectType - - - Scope - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.KeyVault.WebKey.dll b/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.KeyVault.WebKey.dll deleted file mode 100644 index c6d9e3c7f7f0..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.KeyVault.WebKey.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.KeyVault.dll b/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.KeyVault.dll deleted file mode 100644 index 12ac8ebeb0fe..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.KeyVault.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll b/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll deleted file mode 100644 index 1ba2d1ac6ab3..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll-Help.xml b/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll-Help.xml deleted file mode 100644 index a85dab6a476c..000000000000 --- a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll-Help.xml +++ /dev/null @@ -1,46410 +0,0 @@ - - - - - Add-AzKeyVaultCertificate - Add - AzKeyVaultCertificate - - Adds a certificate to a key vault. - - - - The Add-AzKeyVaultCertificate cmdlet starts the process of enrolling for a certificate in a key vault in Azure Key Vault. - - - - Add-AzKeyVaultCertificate - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to add. - - System.String - - System.String - - - None - - - CertificatePolicy - - Specifies a KeyVaultCertificatePolicy object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultCertificate - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to add. - - System.String - - System.String - - - None - - - PolicyPath - - A file path to specify management policy for the certificate that contains JSON encoded policy definition. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - CertificatePolicy - - Specifies a KeyVaultCertificatePolicy object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the certificate to add. - - System.String - - System.String - - - None - - - PolicyPath - - A file path to specify management policy for the certificate that contains JSON encoded policy definition. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - - - - - - - - - - - - ----------------- Example 1: Add a certificate ----------------- - $Policy = New-AzKeyVaultCertificatePolicy -SecretContentType "application/x-pkcs12" -SubjectName "CN=contoso.com" -IssuerName "Self" -ValidityInMonths 6 -ReuseKeyOnRenewal -Add-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "TestCert01" -CertificatePolicy $Policy - -Status : inProgress -CancellationRequested : False -CertificateSigningRequest : MIICpjCCAY4CAQAwFjEUMBIGA1UEAxMLY29udG9zby5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC73w3VRBOlgJ5Od1PjDh+2ytngNZp+ZP4fkuX8K1Ti5LA6Ih7eWx1fgAN/iTb6l - 5K6LvAIJvsTNVePMNxfSdaEIJ70Inm45wVU4A/kf+UxQWAYVMsBrLtDFWxnVhzf6n7RGYke6HLBj3j5ASb9g+olSs6eON25ibF0t+u6JC+sIR0LmVGar9Q0eZys1rdfzJBIKq+laOM7z2pJijb5ANqve9 - i7rH5mnhQk4V8WsRstOhYR9jgLqSSxokDoeaBClIOidSBYqVc1yNv4ASe1UWUCR7ZK6OQXiecNWSWPmgWEyawu6AR9eb1YotCr2ScheMOCxlm3103luitxrd8A7kMjAgMBAAGgSzBJBgkqhkiG9w0BCQ4 - xPDA6MA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEAIHhsDJV37PKi8hor5eQf7+Tct1preIvSwqV0NF6Uo7O6 - YnC9Py7Wp7CHfKzuqeptUk2Tsu7B5dHB+o9Ypeeqw8fWhTN0GFGRKO7WjZQlDqL+lRNcjlFSaP022oIP0kmvVhBcmZqRQlALXccAaxEclFA/3y/aNj2gwWeKpH/pwAkZ39zMEzpQCaRfnQk7e3l4MV8cf - eC2HPYdRWkXxAeDcNPxBuVmKy49AzYvly+APNVDU3v66gxl3fIKrGRsKi2Cp/nO5rBxG2h8t+0Za4l/HJ7ZWR9wKbd/xg7JhdZZFVBxMHYzw8KQ0ys13x8HY+PXU92Y7yD3uC2Rcj+zbAf+Kg== -ErrorCode : -ErrorMessage : - -Get-AzKeyVaultCertificateOperation -VaultName "ContosoKV01" -Name "TestCert01" -Status : completed -CancellationRequested : False -CertificateSigningRequest : MIICpjCCAY4CAQAwFjEUMBIGA1UEAxMLY29udG9zby5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC73w3VRBOlgJ5Od1PjDh+2ytngNZp+ZP4fkuX8K1Ti5LA6Ih7eWx1fgAN/iTb6l - 5K6LvAIJvsTNVePMNxfSdaEIJ70Inm45wVU4A/kf+UxQWAYVMsBrLtDFWxnVhzf6n7RGYke6HLBj3j5ASb9g+olSs6eON25ibF0t+u6JC+sIR0LmVGar9Q0eZys1rdfzJBIKq+laOM7z2pJijb5ANqve9 - i7rH5mnhQk4V8WsRstOhYR9jgLqSSxokDoeaBClIOidSBYqVc1yNv4ASe1UWUCR7ZK6OQXiecNWSWPmgWEyawu6AR9eb1YotCr2ScheMOCxlm3103luitxrd8A7kMjAgMBAAGgSzBJBgkqhkiG9w0BCQ4 - xPDA6MA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEAIHhsDJV37PKi8hor5eQf7+Tct1preIvSwqV0NF6Uo7O6 - YnC9Py7Wp7CHfKzuqeptUk2Tsu7B5dHB+o9Ypeeqw8fWhTN0GFGRKO7WjZQlDqL+lRNcjlFSaP022oIP0kmvVhBcmZqRQlALXccAaxEclFA/3y/aNj2gwWeKpH/pwAkZ39zMEzpQCaRfnQk7e3l4MV8cf - eC2HPYdRWkXxAeDcNPxBuVmKy49AzYvly+APNVDU3v66gxl3fIKrGRsKi2Cp/nO5rBxG2h8t+0Za4l/HJ7ZWR9wKbd/xg7JhdZZFVBxMHYzw8KQ0ys13x8HY+PXU92Y7yD3uC2Rcj+zbAf+Kg== -ErrorCode : -ErrorMessage : - -Get-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "TestCert01" - -Name : testCert01 -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 2/8/2016 3:11:45 PM - - [Not After] - 8/8/2016 4:21:45 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Tags : -Enabled : True -Created : 2/8/2016 11:21:45 PM -Updated : 2/8/2016 11:21:45 PM - - The first command uses the New-AzKeyVaultCertificatePolicy cmdlet to create a certificate policy, and then stores it in the $Policy variable. The second command uses Add-AzKeyVaultCertificate to start the process to create a certificate. The third command uses the Get-AzKeyVaultCertificateOperation cmdlet to poll the operation to verify that it's complete. The final command uses the Get-AzKeyVaultCertificate cmdlet to get the certificate. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultcertificate - - - Get-AzKeyVaultCertificate - - - - Import-AzKeyVaultCertificate - - - - Remove-AzKeyVaultCertificate - - - - - - - Add-AzKeyVaultCertificateContact - Add - AzKeyVaultCertificateContact - - Adds a contact for certificate notifications. - - - - The Add-AzKeyVaultCertificateContact cmdlet adds a contact for a key vault for certificate notifications in Azure Key Vault. The contact receives updates about events such as certificate close to expiry, certificate renewed, and so on. These events are determined by the certificate policy. - - - - Add-AzKeyVaultCertificateContact - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - EmailAddress - - Specifies the email address of the contact. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultCertificateContact - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - EmailAddress - - Specifies the email address of the contact. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultCertificateContact - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - EmailAddress - - Specifies the email address of the contact. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the email address of the contact. - - System.String[] - - System.String[] - - - None - - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact - - - - - - - - - - - - - - -------- Example 1: Add a key vault certificate contact -------- - Add-AzKeyVaultCertificateContact -VaultName "ContosoKV01" -EmailAddress "patti.fuller@contoso.com" -PassThru - -Email VaultName ------ --------- -patti.fuller@contoso.com ContosoKV01 - - This command adds Patti Fuller as a certificate contact for the ContosoKV01 key vault and returns the list of contacts for the "ContosoKV01" vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultcertificatecontact - - - Get-AzKeyVaultCertificateContact - - - - Remove-AzKeyVaultCertificateContact - - - - - - - Add-AzKeyVaultKey - Add - AzKeyVaultKey - - Creates a key in a key vault or imports a key into a key vault. - - - - The Add-AzKeyVaultKey cmdlet creates a key in a key vault in Azure Key Vault, or imports a key into a key vault. Use this cmdlet to add keys by using any of the following methods: - Create a key in a hardware security module (HSM) in the Key Vault service. - - Create a key in software in the Key Vault service. - - Import a key from your own hardware security module (HSM) to HSMs in the Key Vault service. - - Import a key from a .pfx file on your computer. - - Import a key from a .pfx file on your computer to hardware security modules (HSMs) in the Key Vault service. - For any of these operations, you can provide key attributes or accept default settings. If you create or import a key that has the same name as an existing key in your key vault, the original key is updated with the values that you specify for the new key. You can access the previous values by using the version-specific URI for that version of the key. To learn about key versions and the URI structure, see About Keys and Secrets (http://go.microsoft.com/fwlink/?linkid=518560)in the Key Vault REST API documentation. Note: To import a key from your own hardware security module, you must first generate a BYOK package (a file with a .byok file name extension) by using the Azure Key Vault BYOK toolset. For more information, see How to Generate and Transfer HSM-Protected Keys for Azure Key Vault (http://go.microsoft.com/fwlink/?LinkId=522252). As a best practice, back up your key after it is created or updated, by using the Backup-AzKeyVaultKey cmdlet. There is no undelete functionality, so if you accidentally delete your key or delete it and then change your mind, the key is not recoverable unless you have a backup of it that you can restore. - - - - Add-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault to which this cmdlet adds the key. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - - HSM - Software - HSM - Software - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - - System.Management.Automation.SwitchParameter - - - False - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault to which this cmdlet adds the key. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - - HSM - Software - HSM - Software - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - InputObject - - Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - - HSM - Software - HSM - Software - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - - System.Management.Automation.SwitchParameter - - - False - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - InputObject - - Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - - HSM - Software - HSM - Software - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - - System.Management.Automation.SwitchParameter - - - False - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - ResourceId - - Vault Resource Id. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - - HSM - Software - HSM - Software - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - - System.Management.Automation.SwitchParameter - - - False - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - ResourceId - - Vault Resource Id. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - - HSM - Software - HSM - Software - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - - System.Management.Automation.SwitchParameter - - - False - - - HsmResourceId - - Resource ID of the HSM. - - System.String - - System.String - - - None - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultKey - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - HsmResourceId - - Resource ID of the HSM. - - System.String - - System.String - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - CurveName - - Specifies the curve name of elliptic curve cryptography, this value is valid when KeyType is EC. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies whether to add the key as a software-protected key or an HSM-protected key in the Key Vault service. Valid values are: HSM and Software. Note: To use HSM as your destination, you must have a key vault that supports HSMs. For more information about the service tiers and capabilities for Azure Key Vault, see the Azure Key Vault Pricing website (http://go.microsoft.com/fwlink/?linkid=512521). This parameter is required when you create a new key. If you import a key by using the KeyFilePath parameter, this parameter is optional: - If you do not specify this parameter, and this cmdlet imports a key that has .byok file name extension, it imports that key as an HSM-protected key. The cmdlet cannot import that key as software-protected key. - If you do not specify this parameter, and this cmdlet imports a key that has a .pfx file name extension, it imports the key as a software-protected key. - - System.String - - System.String - - - None - - - Disable - - Indicates that the key you are adding is set to an initial state of disabled. Any attempt to use the key will fail. Use this parameter if you are preloading keys that you intend to enable later. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Expires - - Specifies the expiration time of the key in UTC, as a DateTime object, for the key that this cmdlet adds. If not specified, key will not expire. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Exportable - - Indicates if the private key can be exported. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - HsmResourceId - - Resource ID of the HSM. - - System.String - - System.String - - - None - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - KeyFilePassword - - Specifies a password for the imported file as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. You must specify this password to import a file with a .pfx file name extension. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - KeyFilePath - - Specifies the path of a local file that contains key material that this cmdlet imports. The valid file name extensions are .byok and .pfx. - If the file is a .byok file, the key is automatically protected by HSMs after the import and you cannot override this default. - If the file is a .pfx file, the key is automatically protected by software after the import. To override this default, set the Destination parameter to HSM so that the key is HSM-protected. When you specify this parameter, the Destination parameter is optional. - - System.String - - System.String - - - None - - - KeyOps - - Specifies an array of operations that can be performed by using the key that this cmdlet adds. If you do not specify this parameter, all operations can be performed. The acceptable values for this parameter are a comma-separated list of key operations as defined by the JSON Web Key (JWK) specification (http://go.microsoft.com/fwlink/?LinkID=613300): - encrypt - - decrypt - - wrapKey - - unwrapKey - - sign - - verify - - import (for KEK only, see example 7) - - System.String[] - - System.String[] - - - None - - - KeyType - - Specifies the key type of this key. When importing BYOK keys, it defaults to 'RSA'. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to add to the key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. The name must be a string of 1 through 63 characters in length that contains only 0-9, a-z, A-Z, and - (the dash symbol). - - System.String - - System.String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the key cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. If you do not specify this parameter, the key can be used immediately. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - ResourceId - - Vault Resource Id. - - System.String - - System.String - - - None - - - Size - - RSA key size, in bits. If not specified, the service will provide a safe default. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UseDefaultCVMPolicy - - Specifies to use default policy under which the key can be exported for CVM disk encryption. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Specifies the name of the key vault to which this cmdlet adds the key. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - - - - - - - ------------------- Example 1: Create a key ------------------- - Add-AzKeyVaultKey -VaultName 'contoso' -Name 'ITSoftware' -Destination 'Software' - -Vault/HSM Name : contoso -Name : ITSoftware -Key Type : RSA -Key Size : 2048 -Curve Name : -Version : 67da57e9cadf48a2ad8d366b115843ab -Id : https://contoso.vault.azure.net:443/keys/ITSoftware/67da57e9cadf48a2ad8d366b115843ab -Enabled : True -Expires : -Not Before : -Created : 5/21/2018 11:10:58 PM -Updated : 5/21/2018 11:10:58 PM -Purge Disabled : False -Tags : - - This command creates a software-protected key named ITSoftware in the key vault named Contoso. - - - - - - ----------------- Example 2: Create an EC key ----------------- - Add-AzKeyVaultKey -VaultName test-kv -Name test-key -Destination Software -KeyType EC - -Vault/HSM Name : test-kv -Name : test-key -Key Type : EC -Key Size : -Curve Name : P-256 -Version : 4da74af2b4fd47d6b1aa0b05c9a2ed13 -Id : https://test-kv.vault.azure.net:443/keys/test-key/4da74af2b4fd47d6b1aa0b05c9a2ed13 -Enabled : True -Expires : -Not Before : -Created : 8/24/2021 6:38:34 AM -Updated : 8/24/2021 6:38:34 AM -Recovery Level : Recoverable+Purgeable -Tags : - - This command creates a software-protected EC key named test-key in the key vault named test-kv. Its curve name is P-256 by default. - - - - - - ------------ Example 3: Create an HSM-protected key ------------ - Add-AzKeyVaultKey -VaultName 'contoso' -Name 'ITHsm' -Destination 'HSM' - -Vault Name : contoso -Name : ITHsm -Version : 67da57e9cadf48a2ad8d366b115843ab -Id : https://contoso.vault.azure.net:443/keys/ITSoftware/67da57e9cadf48a2ad8d366b115843ab -Enabled : True -Expires : -Not Before : -Created : 5/21/2018 11:10:58 PM -Updated : 5/21/2018 11:10:58 PM -Purge Disabled : False -Tags : - - This command creates an HSM-protected key in the key vault named Contoso. - - - - - - ------- Example 4: Create a key with non-default values ------- - $KeyOperations = 'decrypt', 'verify' -$Expires = (Get-Date).AddYears(2).ToUniversalTime() -$NotBefore = (Get-Date).ToUniversalTime() -$Tags = @{'Severity' = 'high'; 'Accounting' = "true"} -Add-AzKeyVaultKey -VaultName 'contoso' -Name 'ITHsmNonDefault' -Destination 'HSM' -Expires $Expires -NotBefore $NotBefore -KeyOps $KeyOperations -Disable -Tag $Tags - -Vault/HSM Name : contoso -Name : ITHsmNonDefault -Key Type : RSA -Key Size : 2048 -Version : 929bfc14db84439b823ffd1bedadaf5f -Id : https://contoso.vault.azure.net:443/keys/ITHsmNonDefault/929bfc14db84439b823ffd1bedadaf5f -Enabled : False -Expires : 5/21/2020 11:12:43 PM -Not Before : 5/21/2018 11:12:50 PM -Created : 5/21/2018 11:13:17 PM -Updated : 5/21/2018 11:13:17 PM -Purge Disabled : False -Tags : Name Value - Severity high - Accounting true - - The first command stores the values decrypt and verify in the $KeyOperations variable. The second command creates a DateTime object, defined in UTC, by using the Get-Date cmdlet. That object specifies a time two years in the future. The command stores that date in the $Expires variable. For more information, type `Get-Help Get-Date`. The third command creates a DateTime object by using the Get-Date cmdlet. That object specifies current UTC time. The command stores that date in the $NotBefore variable. The final command creates a key named ITHsmNonDefault that is an HSM-protected key. The command specifies values for allowed key operations stored $KeyOperations. The command specifies times for the Expires and NotBefore parameters created in the previous commands, and tags for high severity and IT. The new key is disabled. You can enable it by using the Set-AzKeyVaultKey cmdlet. - - - - - - ------------ Example 5: Import an HSM-protected key ------------ - Add-AzKeyVaultKey -VaultName 'contoso' -Name 'ITByok' -KeyFilePath 'C:\Contoso\ITByok.byok' -Destination 'HSM' - -Vault Name : contoso -Name : ITByok -Version : 67da57e9cadf48a2ad8d366b115843ab -Id : https://contoso.vault.azure.net:443/keys/ITByok/67da57e9cadf48a2ad8d366b115843ab -Enabled : True -Expires : -Not Before : -Created : 5/21/2018 11:10:58 PM -Updated : 5/21/2018 11:10:58 PM -Purge Disabled : False -Tags : - - This command imports the key named ITByok from the location that the KeyFilePath parameter specifies. The imported key is an HSM-protected key. To import a key from your own hardware security module, you must first generate a BYOK package (a file with a .byok file name extension) by using the Azure Key Vault BYOK toolset. For more information, see How to Generate and Transfer HSM-Protected Keys for Azure Key Vault (http://go.microsoft.com/fwlink/?LinkId=522252). - - - - - - ---------- Example 6: Import a software-protected key ---------- - $Password = ConvertTo-SecureString -String "****" -AsPlainText -Force -Add-AzKeyVaultKey -VaultName 'contoso' -Name 'ITPfx' -KeyFilePath 'C:\Contoso\ITPfx.pfx' -KeyFilePassword $Password - -Vault Name : contoso -Name : ITPfx -Version : 67da57e9cadf48a2ad8d366b115843ab -Id : https://contoso.vault.azure.net:443/keys/ITPfx/67da57e9cadf48a2ad8d366b115843ab -Enabled : True -Expires : -Not Before : -Created : 5/21/2018 11:10:58 PM -Updated : 5/21/2018 11:10:58 PM -Purge Disabled : False -Tags : - - The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Password variable. For more information, type `Get-Help ConvertTo-SecureString`. The second command creates a software password in the Contoso key vault. The command specifies the location for the key and the password stored in $Password. - - - - - - -------- Example 7: Import a key and assign attributes -------- - $Password = ConvertTo-SecureString -String "****" -AsPlainText -Force -$Expires = (Get-Date).AddYears(2).ToUniversalTime() -$Tags = @{ 'Severity' = 'high'; 'Accounting' = "true" } -Add-AzKeyVaultKey -VaultName 'contoso' -Name 'ITPfxToHSM' -Destination 'HSM' -KeyFilePath 'C:\Contoso\ITPfx.pfx' -KeyFilePassword $Password -Expires $Expires -Tag $Tags - -Vault Name : contoso -Name : ITPfxToHSM -Version : 929bfc14db84439b823ffd1bedadaf5f -Id : https://contoso.vault.azure.net:443/keys/ITPfxToHSM/929bfc14db84439b823ffd1bedadaf5f -Enabled : True -Expires : 5/21/2020 11:12:43 PM -Not Before : -Created : 5/21/2018 11:13:17 PM -Updated : 5/21/2018 11:13:17 PM -Purge Disabled : False -Tags : Name Value - Severity high - Accounting true - - The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Password variable. The second command creates a DateTime object by using the Get-Date cmdlet, and then stores that object in the $Expires variable. The third command creates the $tags variable to set tags for high severity and IT. The final command imports a key as an HSM key from the specified location. The command specifies the expiration time stored in $Expires and password stored in $Password, and applies the tags stored in $tags. - - - - - - Example 8: Generate a Key Exchange Key (KEK) for "bring your own key" (BYOK) feature - $key = Add-AzKeyVaultKey -VaultName $vaultName -Name $keyName -Destination HSM -Size 2048 -KeyOps "import" - - Generates a key (referred to as a Key Exchange Key (KEK)). The KEK must be an RSA-HSM key that has only the import key operation. Only Key Vault Premium SKU supports RSA-HSM keys. For more details please refer to https://learn.microsoft.com/azure/key-vault/keys/hsm-protected-keys - - - - - - -------- Example 9: Create a secure key in managed hsm -------- - <# release_policy_template.json -{ - "anyOf": [ - { - "allOf": [ - { - "claim": "<claim name>", - "equals": "<value to match>" - } - ], - "authority": "<issuer>" - } - ], - "version": "1.0.0" -} -#> -Add-AzKeyVaultKey -HsmName testmhsm -Name test-key -KeyType RSA -Exportable -ReleasePolicyPath release_policy.json - -Vault/HSM Name : testmhsm -Name : test-key -Key Type : RSA -Key Size : 2048 -Curve Name : -Version : ed6b026bf0a605042006635713d33ef6 -Id : https://testmhsm.managedhsm.azure.net:443/keys/test-key/ed6b026bf0a605042006635713d33ef6 -Enabled : True -Expires : -Not Before : -Created : 6/2/2022 7:14:37 AM -Updated : 6/2/2022 7:14:37 AM -Recovery Level : Recoverable+Purgeable -Release Policy : - Content Type : application/json; charset=utf-8 - Policy Content : {"anyOf":[{"allOf":[{"claim":"x-ms-sgx-is-debuggable","equals":"true"}],"authority":"htt - ps://sharedeus.eus.attest.azure.net/"}],"version":"1.0.0"} - Immutable : False - - -Tags : - - Create a secure key in managed hsm named testmhsm. Its name is test-key and type is RSA. - - - - - - - Example 10: Add a key for a Confidential VM to a key vault. - - New-AzKeyVault -Name $keyVaultName -Location $location -ResourceGroupName $resourceGroupName -Sku Premium -EnablePurgeProtection -EnabledForDiskEncryption; -$cvmAgent = Get-AzADServicePrincipal -ApplicationId '00001111-aaaa-2222-bbbb-3333cccc4444'; -Set-AzKeyVaultAccessPolicy -VaultName $keyVaultName -ResourceGroupName $resourceGroupName -ObjectId $cvmAgent.id -PermissionsToKeys get,release; - -$keySize = 3072; -Add-AzKeyVaultKey -VaultName $keyVaultName -Name $keyName -Size $keySize -KeyOps wrapKey,unwrapKey -KeyType RSA -Destination HSM -Exportable -UseDefaultCVMPolicy; - -Vault/HSM Name : <Vault Name> -Name : <Key Name> -Key Type : RSA -Key Size : 3072 -Curve Name : -Version : <Version> -Id : <Id> -Enabled : True -Expires : -Not Before : -Created : 9/9/2022 8:36:00 PM -Updated : 9/9/2022 8:36:00 PM -Recovery Level : Recoverable -Release Policy : - Content Type : application/json; charset=utf-8 - Policy Content : <Policy Content> - Immutable : False -Tags : - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultkey - - - Backup-AzKeyVaultKey - - - - Get-AzKeyVaultKey - - - - Remove-AzKeyVaultKey - - - - - - - Add-AzKeyVaultManagedStorageAccount - Add - AzKeyVaultManagedStorageAccount - - Adds an existing Azure Storage Account to the specified key vault for its keys to be managed by the Key Vault service. - - - - Sets up an existing Azure Storage Account with Key Vault for Storage Account keys to be managed by Key Vault. The Storage Account must already exist. The Storage Keys are never exposed to caller. Key Vault auto regenerates and switches the active key based on the regeneration period. See Azure Key Vault managed storage account - PowerShell (https://learn.microsoft.com/azure/key-vault/key-vault-overview-storage-keys-powershell)for an overview of this feature. - - - - Add-AzKeyVaultManagedStorageAccount - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - AccountResourceId - - Azure resource id of the storage account. - - System.String - - System.String - - - None - - - ActiveKeyName - - Name of the storage account key that must be used for generating sas tokens. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Disables the use of managed storage account's key for generation of sas tokens. - - - System.Management.Automation.SwitchParameter - - - False - - - DisableAutoRegenerateKey - - Auto regenerate key. If true, then the managed storage account's inactive key gets auto regenerated and becomes the new active key after the regeneration period. If false, then the keys of managed storage account are not auto regenerated. - - - System.Management.Automation.SwitchParameter - - - False - - - RegenerationPeriod - - Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the new active key. - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - AccountResourceId - - Azure resource id of the storage account. - - System.String - - System.String - - - None - - - ActiveKeyName - - Name of the storage account key that must be used for generating sas tokens. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Disables the use of managed storage account's key for generation of sas tokens. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisableAutoRegenerateKey - - Auto regenerate key. If true, then the managed storage account's inactive key gets auto regenerated and becomes the new active key after the regeneration period. If false, then the keys of managed storage account are not auto regenerated. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RegenerationPeriod - - Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the new active key. - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - - - - - - - Example 1: Set an Azure Storage Account with Key Vault to manage its keys - $storage = Get-AzStorageAccount -ResourceGroupName "mystorageResourceGroup" -StorageAccountName "mystorage" -$servicePrincipal = Get-AzADServicePrincipal -ServicePrincipalName cfa8b339-82a2-471a-a3c9-0fc0be7a4093 -New-AzRoleAssignment -ObjectId $servicePrincipal.Id -RoleDefinitionName 'Storage Account Key Operator Service Role' -Scope $storage.Id -$userPrincipalId = $(Get-AzADUser -SearchString "developer@contoso.com").Id -Set-AzKeyVaultAccessPolicy -VaultName $keyVaultName -ObjectId $userPrincipalId -PermissionsToStorage get, set -$regenerationPeriod = [System.Timespan]::FromDays(90) -Add-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -AccountResourceId '/subscriptions/<subscription id>/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount' -ActiveKeyName 'key1' -RegenerationPeriod $regenerationPeriod - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Active Key Name : key1 -Auto Regenerate Key : True -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 5/21/2018 11:55:58 PM -Updated : 5/21/2018 11:55:58 PM -Tags : - - Sets a Storage Account with Key Vault for its keys to be managed by Key Vault. The active key set is 'key1'. This key will be used to generate sas tokens. Key Vault will regenerate 'key2' key after the regeneration period from the time of this command and set it as the active key. This auto regeneration process will continue between 'key1' and 'key2' with a gap of 90 days. - - - - - - Example 2: Set a Classic Azure Storage Account with Key Vault to manage its keys - $regenerationPeriod = [System.Timespan]::FromDays(90) -Add-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -AccountResourceId '/subscriptions/<subscription id>/resourceGroups/myresourcegroup/providers/Microsoft.ClassicStorage/storageAccounts/mystorageaccount' -ActiveKeyName 'Primary' -RegenerationPeriod $regenerationPeriod - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myvault/providers/Microsoft.Cl - assicStorage/storageAccounts/mystorageaccount -Active Key Name : Primary -Auto Regenerate Key : True -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 5/21/2018 11:55:58 PM -Updated : 5/21/2018 11:55:58 PM -Tags : - - Sets a Classic Storage Account with Key Vault for its keys to be managed by Key Vault. The active key set is 'Primary'. This key will be used to generate sas tokens. Key Vault will regenerate 'Secondary' key after the regeneration period from the time of this command and set it as the active key. This auto regeneration process will continue between 'Primary' and 'Secondary' with a gap of 90 days. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultmanagedstorageaccount - - - Az.KeyVault - - - - - - - Add-AzKeyVaultNetworkRule - Add - AzKeyVaultNetworkRule - - Adds a rule meant to restrict access to a key vault based on the client's internet address. - - - - The Add-AzKeyVaultNetworkRule cmdlet grants or restricts access to a key vault to a set of caller designated by their IP addresses or the virtual network to which they belong. The rule has the potential to restrict access for other users, applications, or security groups which have been granted permissions via the access policy. - Please note that any IP range inside `10.0.0.0-10.255.255.255` (private IP addresses) cannot be used to add network rules. - - - - Add-AzKeyVaultNetworkRule - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultNetworkRule - - VaultName - - Specifies the name of a key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzKeyVaultNetworkRule - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - $frontendSubnet = New-AzVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "10.0.1.0/24" -ServiceEndpoint Microsoft.KeyVault -$virtualNetwork = New-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG -Location westus -AddressPrefix "10.0.0.0/16" -Subnet $frontendSubnet -$myNetworkResId = (Get-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG).Subnets[0].Id -Add-AzKeyVaultNetworkRule -VaultName myvault -IpAddressRange "124.56.78.0/24" -VirtualNetworkResourceId $myNetworkResId -PassThru - -Vault Name : myvault -Resource Group Name : myRG -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myRG/providers - /Microsoft.KeyVault/vaults/myvault -Vault URI : https://myvault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : True -Enabled For Template Deployment? : True -Enabled For Disk Encryption? : False -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : get, create, delete, list, update, - import, backup, restore, recover - Permissions to Secrets : get, list, set, delete, backup, - restore, recover - Permissions to Certificates : get, delete, list, create, import, - update, deleteissuers, getissuers, listissuers, managecontacts, manageissuers, - setissuers, recover - Permissions to (Key Vault Managed) Storage : delete, deletesas, get, getsas, list, - listsas, regeneratekey, set, setsas, update - - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : 124.56.78.0/24 - Virtual Network Rules : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx- - xxxxxxxxxxxxx/resourcegroups/myRG/providers/microsoft.network/virtualnetworks/myvn - et/subnets/frontendsubnet - -Tags : - - This command adds a network rule to the specified vault, allowing access to the specified IP address from the virtual network identified by $myNetworkResId. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/add-azkeyvaultnetworkrule - - - - - - Backup-AzKeyVault - Backup - AzKeyVault - - Fully backup a managed HSM. - - - - Fully backup a managed HSM to a storage account. Use `Restore-AzKeyVault` to restore the backup. - - - - Backup-AzKeyVault - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageAccountName - - Name of the storage account where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerName - - Name of the blob container where the backup is going to be stored. - - System.String - - System.String - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVault - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageContainerUri - - URI of the storage container where the backup is going to be stored. - - System.Uri - - System.Uri - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmObject - - Managed HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageContainerUri - - URI of the storage container where the backup is going to be stored. - - System.Uri - - System.Uri - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmObject - - Managed HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageAccountName - - Name of the storage account where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerName - - Name of the blob container where the backup is going to be stored. - - System.String - - System.String - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - HsmObject - - Managed HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageAccountName - - Name of the storage account where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerName - - Name of the blob container where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerUri - - URI of the storage container where the backup is going to be stored. - - System.Uri - - System.Uri - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.String - - - - - - - - - - - - - - - Example 1 Backup an HSM to Storage Container using SAS token - - $sasToken = ConvertTo-SecureString -AsPlainText -Force "?sv=2019-12-12&ss=bfqt&srt=sco&sp=rwdlacupx&se=2020-10-12T14:42:19Z&st=2020-10-12T06:42:19Z&spr=https&sig=******" - -Backup-AzKeyVault -HsmName myHsm -StorageContainerUri "https://{accountName}.blob.core.windows.net/{containerName}" -SasToken $sasToken - -https://{accountName}.blob.core.windows.net/{containerName}/{backupFolder} - - The cmdlet will create a folder (typically named `mhsm-{name}-{timestamp}`) in the storage container, store the backup in that folder and output the folder URI. - - - - - - Example 2 Backup an HSM to Storage Container via User Assigned Managed Identity Authentication - # Make sure an identity is assigend to the Hsm -Update-AzKeyVaultManagedHsm -UserAssignedIdentity "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identity-name}" -Backup-AzKeyVault -HsmName myHsm -StorageContainerUri "https://{accountName}.blob.core.windows.net/{containerName}" -UseUserManagedIdentity - -https://{accountName}.blob.core.windows.net/{containerName}/{backupFolder} - - The cmdlet will backup the hsm in specific Storage Container and output the folder URI via User Assigned Managed Identity Authentication. The Managed Identity should be assigned access permission to the storage container. - - - - - - Example 3 Backup an HSM to Storage Container using Storage Account Name and Storage Container - Backup-AzKeyVault -HsmName myHsm -StorageAccountName "{accountName}" -StorageContainerName "{containerName}" -UseUserManagedIdentity - -https://{accountName}.blob.core.windows.net/{containerName}/{backupFolder} - - The cmdlet will create a folder (typically named `mhsm-{name}-{timestamp}`) in the storage container, store the backup in that folder and output the folder URI. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/backup-azkeyvault - - - - - - Backup-AzKeyVaultCertificate - Backup - AzKeyVaultCertificate - - Backs up a certificate in a key vault. - - - - The Backup-AzKeyVaultCertificate cmdlet backs up a specified certificate in a key vault by downloading it and storing it in a file. If the certificate has multiple versions, all its versions will be included in the backup. Because the downloaded content is encrypted, it cannot be used outside of Azure Key Vault. You can restore a backed-up certificate to any key vault in the subscription that it was backed up from, as long as the vault is in the same Azure geography. Typical reasons to use this cmdlet are: - You want to retain an offline copy of the certificate in case you accidentally delete the original from the vault. - - You created a certificate using Key Vault and now want to clone the object into a different Azure region, so that you can use it from all instances of your distributed application. Use the Backup-AzKeyVaultCertificate cmdlet to retrieve the certificate in encrypted format and then use the Restore-AzKeyVaultCertificate cmdlet and specify a key vault in the second region. - - - - Backup-AzKeyVaultCertificate - - InputObject - - Secret to be backed up, pipelined in from the output of a retrieval call. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - OutputFile - - Output file. The output file to store the backup of the certificate. If not specified, a default filename will be generated. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVaultCertificate - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - System.String - - System.String - - - None - - - OutputFile - - Output file. The output file to store the backup of the certificate. If not specified, a default filename will be generated. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Secret to be backed up, pipelined in from the output of a retrieval call. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - System.String - - System.String - - - None - - - OutputFile - - Output file. The output file to store the backup of the certificate. If not specified, a default filename will be generated. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Back up a certificate with an automatically generated file name - Backup-AzKeyVaultCertificate -VaultName 'mykeyvault' -Name 'mycert' - -C:\Users\username\mykeyvault-mycert-1527029447.01191 - - This command retrieves the certificate named MyCert from the key vault named MyKeyVault and saves a backup of that certificate to a file that is automatically named for you, and displays the file name. - - - - - - -- Example 2: Back up a certificate to a specified file name -- - Backup-AzKeyVaultCertificate -VaultName 'MyKeyVault' -Name 'MyCert' -OutputFile 'C:\Backup.blob' - -C:\Backup.blob - - This command retrieves the certificate named MyCert from the key vault named MyKeyVault and saves a backup of that certificate to a file named Backup.blob. - - - - - - Example 3: Back up a previously retrieved certificate to a specified file name, overwriting the destination file without prompting. - $cert = Get-AzKeyVaultCertificate -VaultName 'MyKeyVault' -Name 'MyCert' -Backup-AzKeyVaultCertificate -Certificate $cert -OutputFile 'C:\Backup.blob' -Force - -C:\Backup.blob - - This command creates a backup of the certificate named $cert.Name in the vault named $cert.VaultName to a file named Backup.blob, silently overwriting the file if it exists already. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/backup-azkeyvaultcertificate - - - - - - Backup-AzKeyVaultKey - Backup - AzKeyVaultKey - - Backs up a key in a key vault. - - - - The Backup-AzKeyVaultKey cmdlet backs up a specified key in a key vault by downloading it and storing it in a file. If there are multiple versions of the key, all versions are included in the backup. Because the downloaded content is encrypted, it cannot be used outside of Azure Key Vault. You can restore a backed-up key to any key vault in the subscription that it was backed up from. Typical reasons to use this cmdlet are: - You want to escrow a copy of your key, so that you have an offline copy in case you accidentally delete your key in your key vault. - - You created a key using Key Vault and now want to clone the key into a different Azure region, so that you can use it from all instances of your distributed application. Use the Backup-AzKeyVaultKey cmdlet to retrieve the key in encrypted format and then use the Restore-AzKeyVaultKey cmdlet and specify a key vault in the second region. - - - - Backup-AzKeyVaultKey - - Name - - Specifies the name of the key to back up. - - System.String - - System.String - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVaultKey - - InputObject - - Key bundle to back up, pipelined in from the output of a retrieval call. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault that contains the key to back up. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to back up. - - System.String - - System.String - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InputObject - - Key bundle to back up, pipelined in from the output of a retrieval call. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - Name - - Specifies the name of the key to back up. - - System.String - - System.String - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault that contains the key to back up. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Back up a key with an automatically generated file name - Backup-AzKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyKey' - -C:\Users\username\mykeyvault-mykey-1527029447.01191 - - This command retrieves the key named MyKey from the key vault named MyKeyVault and saves a backup of that key to a file that is automatically named for you, and displays the file name. - - - - - - ------ Example 2: Back up a key to a specified file name ------ - Backup-AzKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyKey' -OutputFile 'C:\Backup.blob' - -C:\Backup.blob - - This command retrieves the key named MyKey from the key vaultnamed MyKeyVault and saves a backup of that key to a file named Backup.blob. - - - - - - Example 3: Back up a previously retrieved key to a specified file name, overwriting the destination file without prompting. - $key = Get-AzKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyKey' -Backup-AzKeyVaultKey -Key $key -OutputFile 'C:\Backup.blob' -Force - -C:\Backup.blob - - This command creates a backup of the key named $key.Name in the vault named $key.VaultName to a file named Backup.blob, silently overwriting the file if it exists already. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/backup-azkeyvaultkey - - - Add-AzKeyVaultKey - - - - Get-AzKeyVaultKey - - - - Remove-AzKeyVaultKey - - - - Restore-AzKeyVaultKey - - - - - - - Backup-AzKeyVaultManagedStorageAccount - Backup - AzKeyVaultManagedStorageAccount - - Backs up a KeyVault-managed storage account. - - - - The Backup-AzKeyVaultManagedStorageAccount cmdlet backs up a specified managed storage account in a key vault by downloading it and storing it in a file. Because the downloaded content is encrypted, it cannot be used outside of Azure Key Vault. You can restore a backed-up storage account to any key vault in the subscription that it was backed up from, as long as the vault is in the same Azure geography. Typical reasons to use this cmdlet are: - You want to retain an offline copy of the storage account in case you accidentally delete the original from the vault. - - You created a managed storage account using Key Vault and now want to clone the object into a different Azure region, so that you can use it from all instances of your distributed application. Use the Backup-AzKeyVaultManagedStorageAccount cmdlet to retrieve the managed storage account in encrypted format and then use the Restore-AzKeyVaultManagedStorageAccount cmdlet and specify a key vault in the second region. - - - - Backup-AzKeyVaultManagedStorageAccount - - InputObject - - Storage account bundle to be backed up, pipelined in from the output of a retrieval call. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - OutputFile - - Output file. The output file to store the storage account backup. If not specified, a default filename will be generated. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Backup-AzKeyVaultManagedStorageAccount - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - System.String - - System.String - - - None - - - OutputFile - - Output file. The output file to store the storage account backup. If not specified, a default filename will be generated. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Overwrite the given file if it exists - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account bundle to be backed up, pipelined in from the output of a retrieval call. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - System.String - - System.String - - - None - - - OutputFile - - Output file. The output file to store the storage account backup. If not specified, a default filename will be generated. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Back up a managed storage account with an automatically generated file name - Backup-AzKeyVaultManagedStorageAccount -VaultName 'MyKeyVault' -Name 'MyMSAK' - -C:\Users\username\mykeyvault-mymsak-1527029447.01191 - - This command retrieves the managed storage account named MyMSAK from the key vault named MyKeyVault and saves a backup of that managed storage account to a file that is automatically named for you, and displays the file name. - - - - - - Example 2: Back up a managed storage account to a specified file name - Backup-AzKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyMSAK' -OutputFile 'C:\Backup.blob' - -C:\Backup.blob - - This command retrieves the managed storage account named MyMSAK from the key vault named MyKeyVault and saves a backup of that managed storage account to a file named Backup.blob. - - - - - - Example 3: Back up a previously retrieved managed storage account to a specified file name, overwriting the destination file without prompting. - $msak = Get-AzKeyVaultManagedStorageAccount -VaultName 'MyKeyVault' -Name 'MyMSAK' -Backup-AzKeyVaultManagedStorageAccount -StorageAccount $msak -OutputFile 'C:\Backup.blob' -Force - -C:\Backup.blob - - This command creates a backup of the managed storage account named $msak.Name in the vault named $msak.VaultName to a file named Backup.blob, silently overwriting the file if it exists already. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/backup-azkeyvaultmanagedstorageaccount - - - - - - Backup-AzKeyVaultSecret - Backup - AzKeyVaultSecret - - Backs up a secret in a key vault. - - - - The Backup-AzKeyVaultSecret cmdlet backs up a specified secret in a key vault by downloading it and storing it in a file. If there are multiple versions of the secret, all versions are included in the backup. Because the downloaded content is encrypted, it cannot be used outside of Azure Key Vault. You can restore a backed-up secret to any key vault in the subscription that it was backed up from. Typical reasons to use this cmdlet are: - You want to escrow a copy of your secret, so that you have an offline copy in case you accidentally delete your secret in your key vault. - - You added a secret to a key vault and now want to clone the secret into a different Azure region, so that you can use it from all instances of your distributed application. Use the Backup-AzKeyVaultSecret cmdlet to retrieve the secret in encrypted format and then use the Restore-AzKeyVaultSecret cmdlet and specify a key vault in the second region. (Note that the regions must belong to the same geography.) - - - - Backup-AzKeyVaultSecret - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Prompts you for confirmation before overwriting the output file, if that exists. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Backup-AzKeyVaultSecret - - InputObject - - Secret to be backed up, pipelined in from the output of a retrieval call. - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Prompts you for confirmation before overwriting the output file, if that exists. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Backup-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault that contains the secret to back up. - - String - - String - - - None - - - Name - - Specifies the name of the secret to back up. - - String - - String - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Prompts you for confirmation before overwriting the output file, if that exists. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Prompts you for confirmation before overwriting the output file, if that exists. - - SwitchParameter - - SwitchParameter - - - False - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InputObject - - Secret to be backed up, pipelined in from the output of a retrieval call. - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - Name - - Specifies the name of the secret to back up. - - String - - String - - - None - - - OutputFile - - Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists. - - String - - String - - - None - - - VaultName - - Specifies the name of the key vault that contains the secret to back up. - - String - - String - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Back up a secret with an automatically generated file name - Backup-AzKeyVaultSecret -VaultName 'MyKeyVault' -Name 'MySecret' - -C:\Users\username\mykeyvault-mysecret-1527029447.01191 - - This command retrieves the secret named MySecret from the key vault named MyKeyVault and saves a backup of that secret to a file that is automatically named for you, and displays the file name. - - - - - - Example 2: Back up a secret to a specified file name, overwriting the existing file without prompting - Backup-AzKeyVaultSecret -VaultName 'MyKeyVault' -Name 'MySecret' -OutputFile 'C:\Backup.blob' -Force - -C:\Backup.blob - - This command retrieves the secret named MySecret from the key vaultnamed MyKeyVault and saves a backup of that secret to a file named Backup.blob. - - - - - - Example 3: Back up a secret previously retrieved to a specified file name - $secret = Get-AzKeyVaultSecret -VaultName 'MyKeyVault' -Name 'MySecret' -Backup-AzKeyVaultSecret -Secret $secret -OutputFile 'C:\Backup.blob' - -C:\Backup.blob - - This command uses the $secret object's vault name and name to retrieves the secret and saves its backup to a file named Backup.blob. - - - - - - Example 4: Back up a secret with an automatically generated file name (using Uri) - Backup-AzKeyVaultSecret -Id 'https://MyKeyVault.vault.azure.net:443/secrets/MySecret' - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/backup-azkeyvaultsecret - - - Set-AzKeyVaultSecret - - - - Get-AzKeyVaultSecret - - - - Remove-AzKeyVaultSecret - - - - Restore-AzKeyVaultSecret - - - - - - - Export-AzKeyVaultSecurityDomain - Export - AzKeyVaultSecurityDomain - - Exports the security domain data of a managed HSM. - - - - Exports the security domain data of a managed HSM for importing on another HSM. - - - - Export-AzKeyVaultSecurityDomain - - Certificates - - Paths to the certificates that are used to encrypt the security domain data. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Specify whether to overwrite existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Object representing a managed HSM. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - OutputPath - - Specify the path where security domain data will be downloaded to. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - Quorum - - The minimum number of shares required to decrypt the security domain for recovery. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Export-AzKeyVaultSecurityDomain - - Certificates - - Paths to the certificates that are used to encrypt the security domain data. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Specify whether to overwrite existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - OutputPath - - Specify the path where security domain data will be downloaded to. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - Quorum - - The minimum number of shares required to decrypt the security domain for recovery. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Certificates - - Paths to the certificates that are used to encrypt the security domain data. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Specify whether to overwrite existing file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Object representing a managed HSM. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - OutputPath - - Specify the path where security domain data will be downloaded to. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Quorum - - The minimum number of shares required to decrypt the security domain for recovery. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Export-AzKeyVaultSecurityDomain -Name testmhsm -Certificates sd1.cer, sd2.cer, sd3.cer -OutputPath sd.ps.json -Quorum 2 - - This command retrieves the managed HSM named testmhsm and saves a backup of that managed HSM security domain to the specified output file. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/export-azkeyvaultsecuritydomain - - - - - - Get-AzKeyVault - Get - AzKeyVault - - Gets key vaults. - - - - The Get-AzKeyVault cmdlet gets information about the key vaults in a subscription. You can view all key vaults instances in a subscription, or filter your results by a resource group or a particular key vault. Note that although specifying the resource group is optional for this cmdlet when you get a single key vault, you should do so for better performance. - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /directoryObjects/{id} - - GET /users/{id} - - GET /servicePrincipals/{id} - - GET /groups/{id} - - - - Get-AzKeyVault - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted vaults in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - - Get-AzKeyVault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted vaults in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - - Get-AzKeyVault - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault or key vaults being queried. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted vaults in the output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault or key vaults being queried. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - - - - - - - - - - - - - -- Example 1: Get all key vaults in your current subscription -- - Get-AzKeyVault - -Vault Name : myvault1 -Resource Group Name : myrg -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.Ke - yVault/vaults/myvault1 -Tags : - - -Vault Name : myvault2 -Resource Group Name : myrg1 -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg1/providers/Microsoft.Ke - yVault/vaults/myvault2 -Tags : - -Vault Name : myvault3 -Resource Group Name : myrg1 -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg1/providers/Microsoft.Ke - yVault/vaults/myvault3 -Tags : - - This command gets all the key vaults in your current subscription. - - - - - - ------------- Example 2: Get a specific key vault ------------- - Get-AzKeyVault -VaultName 'myvault' - -Vault Name : myvault -Resource Group Name : myrg -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/myvault -Vault URI : https://myvault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : True -Enabled For Template Deployment? : True -Enabled For Disk Encryption? : False -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : get, create, delete, list, update, - import, backup, restore, recover - Permissions to Secrets : get, list, set, delete, backup, - restore, recover - Permissions to Certificates : get, delete, list, create, import, - update, deleteissuers, getissuers, listissuers, managecontacts, manageissuers, - setissuers, recover - Permissions to (Key Vault Managed) Storage : delete, deletesas, get, getsas, list, - listsas, regeneratekey, set, setsas, update - -Tags : - - This command gets the key vault named myvault in your current subscription. - - - - - - -------- Example 3: Get key vaults in a resource group -------- - Get-AzKeyVault -ResourceGroupName 'myrg1' - -Vault Name : myvault2 -Resource Group Name : myrg1 -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg1/providers/Microsoft.Ke - yVault/vaults/myvault2 -Tags : - -Vault Name : myvault3 -Resource Group Name : myrg1 -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg1/providers/Microsoft.Ke - yVault/vaults/myvault3 -Tags : - - This command gets all the key vaults in the resource group named ContosoPayRollResourceGroup. - - - - - - Example 4: Get all deleted key vaults in your current subscription - Get-AzKeyVault -InRemovedState - -Vault Name : myvault4 -Location : westus -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/providers/Microsoft.KeyVault/locations/westu - s/deletedVaults/myvault4 -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.K - eyVault/vaults/myvault4 -Deletion Date : 5/24/2018 9:33:24 PM -Scheduled Purge Date : 8/22/2018 9:33:24 PM -Tags : - - This command gets all the deleted key vaults in your current subscription. - - - - - - -------------- Example 5: Get a deleted key vault -------------- - Get-AzKeyVault -VaultName 'myvault4' -Location 'westus' -InRemovedState - -Vault Name : myvault4 -Location : westus -Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/providers/Microsoft.KeyVault/locations/westu - s/deletedVaults/myvault4 -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.K - eyVault/vaults/myvault4 -Deletion Date : 5/24/2018 9:33:24 PM -Scheduled Purge Date : 8/22/2018 9:33:24 PM -Tags : - - This command gets the deleted key vault information named myvault4 in your current subscription and in westus region. - - - - - - ---------- Example 6: Get key vaults using filtering ---------- - Get-AzKeyVault -VaultName 'myvault*' - -Vault Name : myvault2 -Resource Group Name : myrg1 -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg1/providers/Microsoft.Ke - yVault/vaults/myvault2 -Tags : - -Vault Name : myvault3 -Resource Group Name : myrg1 -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg1/providers/Microsoft.Ke - yVault/vaults/myvault3 -Tags : - - This command gets all the key vaults in the subscription that start with "myvault". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvault - - - New-AzKeyVault - - - - Remove-AzKeyVault - - - - - - - Get-AzKeyVaultCertificate - Get - AzKeyVaultCertificate - - Gets a certificate from a key vault. - - - - The Get-AzKeyVaultCertificate cmdlet gets the specified certificate or the versions of a certificate from a key vault in Azure Key Vault. - - - - Get-AzKeyVaultCertificate - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludePending - - Specifies whether to include pending certificates in the output - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Specifies whether to include previously deleted certificates in the output - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultCertificate - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludePending - - Specifies whether to include pending certificates in the output - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Specifies whether to include previously deleted certificates in the output - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultCertificate - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludePending - - Specifies whether to include pending certificates in the output - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Specifies whether to include previously deleted certificates in the output - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultCertificate - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this operation gets all versions of the certificate. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultCertificate - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this operation gets all versions of the certificate. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultCertificate - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this operation gets all versions of the certificate. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultCertificate - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - Version - - Specifies the version of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificate - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - Version - - Specifies the version of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificate - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - Version - - Specifies the version of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludePending - - Specifies whether to include pending certificates in the output - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeVersions - - Indicates that this operation gets all versions of the certificate. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InRemovedState - - Specifies whether to include previously deleted certificates in the output - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the certificate to get. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Version - - Specifies the version of a certificate. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem - - - - - - - - - - - - - - ----------------- Example 1: Get a certificate ----------------- - Get-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "TestCert01" - -Name : testCert01 -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 2/8/2016 3:11:45 PM - - [Not After] - 8/8/2016 4:21:45 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -KeyId : https://contoso.vault.azure.net:443/keys/TestCert01/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -SecretId : https://contoso.vault.azure.net:443/secrets/TestCert01/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Tags : -Enabled : True -Created : 2/8/2016 11:21:45 PM -Updated : 2/8/2016 11:21:45 PM - - This command gets the certificate named `TestCert01` from the key vault named `ContosoKV01` - - - - - - ------------ Example 2: Get cert and save it as pfx ------------ - $CertBase64 = Get-AzKeyVaultSecret -VaultName $vaultName -Name $certName -AsPlainText -$CertBytes = [Convert]::FromBase64String($CertBase64) -Set-Content -Path cert.pfx -Value $CertBytes -AsByteStream - - This command gets the certificate named `$certName` from the key vault named `$vaultName`. These commands access secret `$certName` and then save the content as a pfx file. - - - - - - Example 3: Get all the certificates that have been deleted but not purged for this key vault. - Get-AzKeyVaultCertificate -VaultName 'contoso' -InRemovedState - -DeletedDate : 5/24/2018 6:08:32 PM -Enabled : True -Expires : 11/24/2018 6:08:13 PM -NotBefore : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Tags : -VaultName : contoso -Name : test1 -Version : -Id : https://contoso.vault.azure.net:443/certificates/test1 - -ScheduledPurgeDate : 8/22/2018 6:10:47 PM -DeletedDate : 5/24/2018 6:10:47 PM -Enabled : True -Expires : 11/24/2018 6:09:44 PM -NotBefore : 5/24/2018 5:59:44 PM -Created : 5/24/2018 6:09:44 PM -Updated : 5/24/2018 6:09:44 PM -Tags : -VaultName : contoso -Name : test2 -Version : -Id : https://contoso.vault.azure.net:443/certificates/test2 - - This command gets all the certificates that have been previously deleted, but not purged, in the key vault named Contoso. - - - - - - Example 4: Gets the certificate MyCert that has been deleted but not purged for this key vault. - Get-AzKeyVaultCertificate -VaultName 'contoso' -Name 'test1' -InRemovedState - -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 5/24/2018 10:58:13 AM - - [Not After] - 11/24/2018 10:08:13 AM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -KeyId : https://contoso.vault.azure.net:443/keys/test1/7fe415d5518240c1a6fce89986b8d334 -SecretId : https://contoso.vault.azure.net:443/secrets/test1/7fe415d5518240c1a6fce89986b8d334 -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -RecoveryLevel : Recoverable+Purgeable -ScheduledPurgeDate : 8/22/2018 6:08:32 PM -DeletedDate : 5/24/2018 6:08:32 PM -Enabled : True -Expires : 11/24/2018 6:08:13 PM -NotBefore : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Tags : -VaultName : contoso -Name : test1 -Version : 7fe415d5518240c1a6fce89986b8d334 -Id : https://contoso.vault.azure.net:443/certificates/test1/7fe415d5518240c1a6fce89986b8d334 - - This command gets the certificate named 'MyCert' that has been previously deleted, but not purged, in the key vault named Contoso. This command will return metadata such as the deletion date, and the scheduled purging date of this deleted certificate. - - - - - - --------- Example 5: List certificates using filtering --------- - Get-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "test*" - -Enabled : True -Expires : 8/5/2019 2:39:25 AM -NotBefore : 2/5/2019 2:29:25 AM -Created : 2/5/2019 2:39:25 AM -Updated : 2/5/2019 2:39:25 AM -Tags : -VaultName : ContosoKV01 -Name : test1 -Version : -Id : https://ContosoKV01.vault.azure.net:443/certificates/test1 - -Enabled : True -Expires : 8/5/2019 2:39:25 AM -NotBefore : 2/5/2019 2:29:25 AM -Created : 2/5/2019 2:39:25 AM -Updated : 2/5/2019 2:39:25 AM -Tags : -VaultName : ContosoKV01 -Name : test2 -Version : -Id : https://ContosoKV01.vault.azure.net:443/certificates/test2 - - This command gets all certificates starting with "test" from the key vault named ContosoKV01. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultcertificate - - - Add-AzKeyVaultCertificate - - - - Import-AzKeyVaultCertificate - - - - Remove-AzKeyVaultCertificate - - - - - - - Get-AzKeyVaultCertificateContact - Get - AzKeyVaultCertificateContact - - Gets contacts that are registered for certificate notifications for a key vault. - - - - The Get-AzKeyVaultCertificateContact cmdlet gets contacts that are registered for certificate notifications for a key vault in Azure Key Vault. - - - - Get-AzKeyVaultCertificateContact - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificateContact - - ResourceId - - KeyVault Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificateContact - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - ResourceId - - KeyVault Id. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact - - - - - - - - - - - - - - ----------- Example 1: Get all certificate contacts ----------- - $Contacts = Get-AzKeyVaultCertificateContact -VaultName "Contoso" - -Email VaultName ------ --------- -username@microsoft.com Contoso -username1@microsoft.com Contoso - - This command gets all of the contacts for the certificate objects in the Contoso key vault, and then stores them in the $Contacts variable. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultcertificatecontact - - - Add-AzKeyVaultCertificateContact - - - - Remove-AzKeyVaultCertificateContact - - - - - - - Get-AzKeyVaultCertificateIssuer - Get - AzKeyVaultCertificateIssuer - - Gets a certificate issuer for a key vault. - - - - The Get-AzKeyVaultCertificateIssuer cmdlet gets a specified certificate issuer or all certificate issuers for a key vault in Azure Key Vault. - - - - Get-AzKeyVaultCertificateIssuer - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the certificate issuer to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificateIssuer - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate issuer to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificateIssuer - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate issuer to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the certificate issuer to get. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer - - - - - - - - - - - - - - ------------- Example 1: Get a certificate issuer ------------- - Get-AzKeyVaultCertificateIssuer -VaultName "Contosokv01" -Name "TestIssuer01" - -AccountId : 555 -ApiKey : -OrganizationDetails : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails -Name : TestIssuer01 -IssuerProvider : Test -VaultName : Contosokv01 - - This command gets the certificate issuer named TestIssuer01. - - - - - - ----- Example 2: List certificate issuers using filtering ----- - Get-AzKeyVaultCertificateIssuer -VaultName "Contosokv01" -Name "test*" - -AccountId : 555 -ApiKey : -OrganizationDetails : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails -Name : TestIssuer01 -IssuerProvider : Test -VaultName : Contosokv01 - -AccountId : 555 -ApiKey : -OrganizationDetails : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails -Name : TestIssuer02 -IssuerProvider : Test -VaultName : Contosokv01 - - This command gets the certificate issuers that start with "test". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultcertificateissuer - - - Remove-AzKeyVaultCertificateIssuer - - - - Set-AzKeyVaultCertificateIssuer - - - - - - - Get-AzKeyVaultCertificateOperation - Get - AzKeyVaultCertificateOperation - - Gets the status of a certificate operation. - - - - The Get-AzKeyVaultCertificateOperation cmdlet gets the status of a certificate operation. - - - - Get-AzKeyVaultCertificateOperation - - InputObject - - Certificate Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificateOperation - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Certificate Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - - - - - - - - - - - - ----- Example 1: Get the status of a certificate operation ----- - Get-AzKeyVaultCertificateOperation -VaultName "contosoKV01" -Name "TestCert01" - -Id : https://contosoKV01.vault.azure.net/certificates/TestCert01/pending -Status : inProgress -StatusDetails : Pending certificate created. Certificate request is in progress. This may take some time - based on the issuer provider. Please check again later. -RequestId : 32a63e80568442a2892dafb9f7cf366t -Target : -Issuer : Self -CancellationRequested : False -CertificateSigningRequest : MIICpjCCAY4CAQAwFjEUMBIGA1UEAxMLY29udG9zby5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC73w3VRBOlgJ5Od1PjDh+2ytngNZp+ZP4fkuX8K1Ti5LA6Ih7eWx1fgAN/iTb6l - 5K6LvAIJvsTNVePMNxfSdaEIJ70Inm45wVU4A/kf+UxQWAYVMsBrLtDFWxnVhzf6n7RGYke6HLBj3j5ASb9g+olSs6eON25ibF0t+u6JC+sIR0LmVGar9Q0eZys1rdfzJBIKq+laOM7z2pJijb5ANqve9 - i7rH5mnhQk4V8WsRstOhYR9jgLqSSxokDoeaBClIOidSBYqVc1yNv4ASe1UWUCR7ZK6OQXiecNWSWPmgWEyawu6AR9eb1YotCr2ScheMOCxlm3103luitxrd8A7kMjAgMBAAGgSzBJBgkqhkiG9w0BCQ4 - xPDA6MA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEAIHhsDJV37PKi8hor5eQf7+Tct1preIvSwqV0NF6Uo7O6 - YnC9Py7Wp7CHfKzuqeptUk2Tsu7B5dHB+o9Ypeeqw8fWhTN0GFGRKO7WjZQlDqL+lRNcjlFSaP022oIP0kmvVhBcmZqRQlALXccAaxEclFA/3y/aNj2gwWeKpH/pwAkZ39zMEzpQCaRfnQk7e3l4MV8cf - eC2HPYdRWkXxAeDcNPxBuVmKy49AzYvly+APNVDU3v66gxl3fIKrGRsKi2Cp/nO5rBxG2h8t+0Za4l/HJ7ZWR9wKbd/xg7JhdZZFVBxMHYzw8KQ0ys13x8HY+PXU92Y7yD3uC2Rcj+zbAf+Kg== -ErrorCode : -ErrorMessage : -Name : -VaultName : - - This command gets the status of the certificate operation for TestCert01 on the ContosoKV01 key vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultcertificateoperation - - - Remove-AzKeyVaultCertificateOperation - - - - Stop-AzKeyVaultCertificateOperation - - - - - - - Get-AzKeyVaultCertificatePolicy - Get - AzKeyVaultCertificatePolicy - - Gets the policy for a certificate in a key vault. - - - - The Get-AzKeyVaultCertificatePolicy cmdlet gets the policy for a certificate in a key vault in Azure Key Vault. - - - - Get-AzKeyVaultCertificatePolicy - - InputObject - - Certificate Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultCertificatePolicy - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Certificate Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - - - - - - - - - - - - ------------- Example 1: Get a certificate policy ------------- - Get-AzKeyVaultCertificatePolicy -VaultName "ContosoKV01" -Name "TestCert01" - -SecretContentType : application/x-pkcs12 -Kty : RSA -KeySize : 2048 -Exportable : True -ReuseKeyOnRenewal : True -SubjectName : CN=contoso.com -DnsNames : -Ekus : {1.3.6.1.5.5.7.3.1, 1.3.6.1.5.5.7.3.2} -ValidityInMonths : 6 -IssuerName : Self -CertificateType : -RenewAtNumberOfDaysBeforeExpiry : -RenewAtPercentageLifetime : 80 -EmailAtNumberOfDaysBeforeExpiry : -EmailAtPercentageLifetime : -Enabled : True -Created : 2/8/2016 11:10:29 PM -Updated : 2/8/2016 11:10:29 PM - - This command gets the certificate policy for TestCert01 certificate in the ContosoKV01 key vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultcertificatepolicy - - - New-AzKeyVaultCertificatePolicy - - - - Set-AzKeyVaultCertificatePolicy - - - - - - - Get-AzKeyVaultKey - Get - AzKeyVaultKey - - Gets Key Vault keys. Please notes that detailed information about a key, like key type or key size, only available when querying a specific key version. - - - - The Get-AzKeyVaultKey cmdlet gets Azure Key Vault keys. This cmdlet gets a specific Microsoft.Azure.Commands.KeyVault.Models.KeyBundle or a list of all KeyBundle objects in a key vault or by version. - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmResourceId - - HSM Resource Id. - - System.String - - System.String - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmResourceId - - HSM Resource Id. - - System.String - - System.String - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmResourceId - - HSM Resource Id. - - System.String - - System.String - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault from which this cmdlet gets keys. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your selected environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault from which this cmdlet gets keys. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your selected environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - - System.Management.Automation.SwitchParameter - - - False - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault from which this cmdlet gets keys. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your selected environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultKey - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - HsmObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - HsmResourceId - - HSM Resource Id. - - System.String - - System.String - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a key. The current version of a key is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the key with the specified Name . - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InRemovedState - - Specifies whether to show the previously deleted keys in the output - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the key bundle to get. - - System.String - - System.String - - - None - - - OutFile - - Specifies the output file for which this cmdlet saves the key. The public key is saved in PEM format by default. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault from which this cmdlet gets keys. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your selected environment. - - System.String - - System.String - - - None - - - Version - - Specifies the key version. This cmdlet constructs the FQDN of a key based on the key vault name, your currently selected environment, the key name, and the key version. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey - - - - - - - - - - - - - - ---------- Example 1: Get all the keys in a key vault ---------- - Get-AzKeyVaultKey -VaultName 'contoso' - -Vault/HSM Name : contoso -Name : test1 -Version : -Id : https://contoso.vault.azure.net:443/keys/test1 -Enabled : True -Expires : 11/24/2018 6:08:13 PM -Not Before : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Purge Disabled : False -Tags : - -Vault Name : contoso -Name : test2 -Version : -Id : https://contoso.vault.azure.net:443/keys/test2 -Enabled : True -Expires : 11/24/2018 6:09:44 PM -Not Before : 5/24/2018 5:59:44 PM -Created : 5/24/2018 6:09:44 PM -Updated : 5/24/2018 6:09:44 PM -Purge Disabled : False -Tags : - - This command gets all the keys in the key vault named Contoso. - - - - - - --------- Example 2: Get the current version of a key --------- - Get-AzKeyVaultKey -VaultName 'contoso' -KeyName 'test1' - -Vault/HSM Name : contoso -Name : test1 -Key Type : RSA -Key Size : 2048 -Version : 7fe415d5518240c1a6fce89986b8d334 -Id : https://contoso.vault.azure.net:443/keys/test1/7fe415d5518240c1a6fce89986b8d334 -Enabled : True -Expires : 11/24/2018 6:08:13 PM -Not Before : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Purge Disabled : False -Tags : - - This command gets the current version of the key named test1 in the key vault named Contoso. - - - - - - ------------- Example 3: Get all versions of a key ------------- - Get-AzKeyVaultKey -VaultName 'contoso' -KeyName 'test1' -IncludeVersions - -Vault/HSM Name : contoso -Name : test1 -Version : 7fe415d5518240c1a6fce89986b8d334 -Id : https://contoso.vault.azure.net:443/keys/test1/7fe415d5518240c1a6fce89986b8d334 -Enabled : True -Expires : 11/24/2018 6:08:13 PM -Not Before : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Purge Disabled : False -Tags : - -Vault/HSM Name : contoso -Name : test1 -Version : e4e95940e669407fbdb4298bc21a3e1d -Id : https://contoso.vault.azure.net:443/keys/test1/e4e95940e669407fbdb4298bc21a3e1d -Enabled : False -Expires : 11/24/2018 6:08:08 PM -Not Before : 5/24/2018 5:58:08 PM -Created : 5/24/2018 6:08:08 PM -Updated : 5/24/2018 6:08:08 PM -Purge Disabled : False -Tags : - - This command gets all versions the key named ITPfx in the key vault named Contoso. - - - - - - ---------- Example 4: Get a specific version of a key ---------- - Get-AzKeyVaultKey -VaultName 'contoso' -KeyName 'test1' -Version 'e4e95940e669407fbdb4298bc21a3e1d' - -Vault/HSM Name : contoso -Name : test1 -Key Type : RSA -Key Size : 2048 -Version : e4e95940e669407fbdb4298bc21a3e1d -Id : https://contoso.vault.azure.net:443/keys/test1/e4e95940e669407fbdb4298bc21a3e1d -Enabled : False -Expires : 11/24/2018 6:08:08 PM -Not Before : 5/24/2018 5:58:08 PM -Created : 5/24/2018 6:08:08 PM -Updated : 5/24/2018 6:08:08 PM -Purge Disabled : False -Tags : - - This command gets a specific version of the key named test1 in the key vault named Contoso. After running this command, you can inspect various properties of the key by navigating the $Key object. - - - - - - Example 5: Get all the keys that have been deleted but not purged for this key vault - Get-AzKeyVaultKey -VaultName 'contoso' -InRemovedState - -Vault/HSM Name : contoso -Name : test3 -Id : https://contoso.vault.azure.net:443/keys/test3 -Deleted Date : 5/24/2018 8:32:42 PM -Scheduled Purge Date : 8/22/2018 8:32:42 PM -Enabled : True -Expires : -Not Before : -Created : 5/24/2018 8:32:27 PM -Updated : 5/24/2018 8:32:27 PM -Purge Disabled : False -Tags : - - This command gets all the keys that have been previously deleted, but not purged, in the key vault named Contoso. - - - - - - Example 6: Gets the key ITPfx that has been deleted but not purged for this key vault. - Get-AzKeyVaultKey -VaultName 'contoso' -KeyName 'test3' -InRemovedState - -Vault/HSM Name : contoso -Name : test3 -Id : https://contoso.vault.azure.net:443/keys/test3/1af807cc331a49d0b52b7c75e1b2366e -Deleted Date : 5/24/2018 8:32:42 PM -Scheduled Purge Date : 8/22/2018 8:32:42 PM -Enabled : True -Expires : -Not Before : -Created : 5/24/2018 8:32:27 PM -Updated : 5/24/2018 8:32:27 PM -Purge Disabled : False -Tags : - - This command gets the key test3 that has been previously deleted, but not purged, in the key vault named Contoso. This command will return metadata such as the deletion date, and the scheduled purging date of this deleted key. - - - - - - -- Example 7: Get all the keys in a key vault using filtering -- - Get-AzKeyVaultKey -VaultName 'contoso' -KeyName "test*" - -Vault/HSM Name : contoso -Name : test1 -Version : -Id : https://contoso.vault.azure.net:443/keys/test1 -Enabled : True -Expires : 11/24/2018 6:08:13 PM -Not Before : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Purge Disabled : False -Tags : - -Vault/HSM Name : contoso -Name : test2 -Version : -Id : https://contoso.vault.azure.net:443/keys/test2 -Enabled : True -Expires : 11/24/2018 6:09:44 PM -Not Before : 5/24/2018 5:59:44 PM -Created : 5/24/2018 6:09:44 PM -Updated : 5/24/2018 6:09:44 PM -Purge Disabled : False -Tags : - - This command gets all the keys in the key vault named Contoso that start with "test". - - - - - - ------- Example 8: Download a public key as a .pem file ------- - $path = "D:\public.pem" -Get-AzKeyVaultKey -VaultName $vaultName -KeyName $keyName -OutFile $path - - You can download the public key of a RSA key by specifying the `-OutFile` parameter. This is one step of importing HSM-protected keys to Azure Key Vault. See https://learn.microsoft.com/azure/key-vault/keys/hsm-protected-keys - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultkey - - - Add-AzKeyVaultKey - - - - Remove-AzKeyVaultKey - - - - Undo-AzKeyVaultKeyRemoval - - - - - - - Get-AzKeyVaultKeyRotationPolicy - Get - AzKeyVaultKeyRotationPolicy - - Gets the key rotation policy for the specified key in Key Vault. - - - - This cmdlet requires the keys/get permission. It returns key rotation policy for the specified key. - - - - Get-AzKeyVaultKeyRotationPolicy - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultKeyRotationPolicy - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzKeyVaultKeyRotationPolicy -VaultName test-kv -Name test-key - -Id : -VaultName : test-kv -KeyName : test-key -LifetimeActions : {[Action: Notify, TimeAfterCreate: , TimeBeforeExpiry: P30D]} -ExpiresIn : -CreatedOn : -UpdatedOn : - - This cmdlet gets the key rotation policy for test-kv. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultkeyrotationpolicy - - - Set-AzKeyVaultKeyRotationPolicy.md - - - - Invoke-AzKeyVaultKeyRotation.md - - - - - - - Get-AzKeyVaultManagedHsm - Get - AzKeyVaultManagedHsm - - Get managed HSMs. - - - - The Get-AzKeyVaultManagedHsm cmdlet gets information about the managed HSMs in a subscription. You can view all managed HSMs instances in a subscription, or filter your results by a resource group or a particular managed HSM. Note that although specifying the resource group is optional for this cmdlet when you get a single managed HSM, you should do so for better performance. - - - - Get-AzKeyVaultManagedHsm - - Name - - HSM name. Cmdlet constructs the FQDN of a HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Location - - The location of the deleted managed HSM pool. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted managed HSM pool in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Specifies the key and optional value of the specified tag to filter the list of managed HSMs by. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - - Get-AzKeyVaultManagedHsm - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted managed HSM pool in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Specifies the key and optional value of the specified tag to filter the list of managed HSMs by. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - - Get-AzKeyVaultManagedHsm - - Name - - HSM name. Cmdlet constructs the FQDN of a HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the managed HSM being queried. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Specifies the key and optional value of the specified tag to filter the list of managed HSMs by. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted managed HSM pool in the output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Location - - The location of the deleted managed HSM pool. - - System.String - - System.String - - - None - - - Name - - HSM name. Cmdlet constructs the FQDN of a HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the managed HSM being queried. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Specifies the key and optional value of the specified tag to filter the list of managed HSMs by. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - - - - System.String - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - - - - - - - - - - - Example 1: Get all managed HSMs in your current subscription - - Get-AzKeyVaultManagedHsm - -Name Resource Group Name Location SKU ProvisioningState Security Domain ActivationStatus ----- ------------------- -------- --- ----------------- -------------------------------- -myhsm test-rg eastus StandardB1 Succeeded Active - - This command gets all managed HSMs in your current subscription. - - - - - - ------------ Example 2: Get a specific managed HSM ------------ - Get-AzKeyVaultManagedHsm -Name 'myhsm' - -Name Resource Group Name Location SKU ProvisioningState Security Domain ActivationStatus ----- ------------------- -------- --- ----------------- -------------------------------- -myhsm test-rg eastus StandardB1 Succeeded Active - - This command gets the managed HSM named myhsm in your current subscription. - - - - - - ------- Example 3: Get managed HSMs in a resource group ------- - Get-AzKeyVaultManagedHsm -ResourceGroupName 'myrg1' - -Name Resource Group Name Location SKU ProvisioningState Security Domain ActivationStatus ----- ------------------- -------- --- ----------------- -------------------------------- -myhsm myrg1 eastus2euap StandardB1 Succeeded Active - - This command gets all managed HSMs in the resource group named myrg1. - - - - - - --------- Example 4: Get managed HSMs using filtering --------- - Get-AzKeyVaultManagedHsm -Name 'myhsm*' - -Name Resource Group Name Location SKU ProvisioningState Security Domain ActivationStatus ----- ------------------- -------- --- ----------------- -------------------------------- -myhsm myrg1 eastus2euap StandardB1 Succeeded Active - - This command gets all managed HSMs in the subscription that start with "myhsm". - - - - - - ------------- Example 5: List deleted managed HSMs ------------- - Get-AzKeyVaultManagedHsm -InRemovedState - -Name Location DeletionDate ScheduledPurgeDate Purge Protection Enabled? ----- -------- ------------ ------------------ ------------------------- -xxxxxxxx-mhsm-4op2n2g4xe eastus2 12/30/2021 2:29:00 AM 3/30/2022 2:29:00 AM True -xxxxxxx-mhsm-ertopo7tnxa westus 12/29/2021 11:48:42 PM 3/29/2022 11:48:42 PM True -xxxxxxx-mhsm-gg66fgctz67 westus 12/29/2021 11:48:42 PM 3/29/2022 11:48:42 PM False -xxxxxxx-mhsm-2m5jiop6mfo westcentralus 12/30/2021 12:26:14 AM 3/30/2022 12:26:14 AM True - - This command gets all deleted managed HSMs in current subscription. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultmanagedhsm - - - New-AzKeyVaultManagedHsm - - - - Remove-AzKeyVaultManagedHsm - - - - Update-AzKeyVaultManagedHsm - - - - Undo-AzKeyVaultManagedHsmRemoval - - - - - - - Get-AzKeyVaultManagedStorageAccount - Get - AzKeyVaultManagedStorageAccount - - Gets Key Vault managed Azure Storage Accounts. - - - - Gets a Key Vault managed Azure Storage Account if the name of the account is specified and the account keys are managed by the specified vault. If the account name is not specified, then all the accounts whose keys are managed by specified vault are listed. - - - - Get-AzKeyVaultManagedStorageAccount - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage accounts in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultManagedStorageAccount - - InputObject - - Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage accounts in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultManagedStorageAccount - - ResourceId - - Vault resource id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage accounts in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage accounts in the output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceId - - Vault resource id. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount - - - - - - - - - - - - - - ---- Example 1: List all Key Vault managed Storage Accounts ---- - Get-AzKeyVaultManagedStorageAccount -VaultName 'myvault' - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - - Lists all the accounts whose keys are managed by vault 'myvault' - - - - - - ------ Example 2: Get a Key Vault managed Storage Account ------ - Get-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -Name 'mystorageaccount' - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/maddie1/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Active Key Name : key2 -Auto Regenerate Key : False -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - - Gets the details of Key Vault managed Storage Account of 'mystorageaccount' if its keys are managed by vault 'myvault' - - - - - - Example 3: List all Key Vault managed Storage Accounts using filtering - Get-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -Name "test*" - -Id : https://myvault.vault.azure.net:443/storage/test1 -Vault Name : myvault -AccountName : test1 -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/test1 -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - -Id : https://myvault.vault.azure.net:443/storage/test2 -Vault Name : myvault -AccountName : test2 -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/test2 -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - - Lists all the accounts whose keys are managed by vault 'myvault' that start with "test" - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultmanagedstorageaccount - - - Azure PowerShell Key Vault cmdlets - - - - - - - Get-AzKeyVaultManagedStorageSasDefinition - Get - AzKeyVaultManagedStorageSasDefinition - - Gets Key Vault managed Storage SAS Definitions. - - - - Gets a Key Vault managed Storage SAS Definition if the name of the definition is specified. If the definition name is not specified, then all the SAS definitions associated with the specified Key Vault managed Storage Account in the vault are listed. - - - - Get-AzKeyVaultManagedStorageSasDefinition - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage sas definitions in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzKeyVaultManagedStorageSasDefinition - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage sas definitions in the output. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - InRemovedState - - Specifies whether to show the previously deleted storage sas definitions in the output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem - - - - - - - - - - - - - - Example 1: List all Key Vault managed Storage SAS Definitions - Get-AzKeyVaultManagedStorageSasDefinition -VaultName 'myvault' -AccountName 'mystorageaccount' - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount/sas/accountsas -Vault Name : myvault -AccountName : mystorageaccount -Name : accountsas -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - - Lists all the SAS definitions associated with Key Vault managed Storage Account 'mystorageaccount' managed by vault 'myvault' - - - - - - ------ Example 2: Get a Key Vault managed Storage Account ------ - Get-AzKeyVaultManagedStorageSasDefinition -VaultName 'myvault' -AccountName 'mystorageaccount' -Name 'accountsas' - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount/sas/accountsas -Secret Id : https://myvault.vault.azure.net/secrets/mystorageaccount-accountsas -Vault Name : myvault -AccountName : mystorageaccount -Name : accountsas -Parameter : -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - - Gets the details of SAS Definition 'accountsas' associated with Key Vault managed Storage Account 'mystorageaccount' managed by vault 'myvault'. - - - - - - Example 3: List all Key Vault managed Storage SAS Definitions using filtering - Get-AzKeyVaultManagedStorageSasDefinition -VaultName 'myvault' -AccountName 'mystorageaccount' -Name "account*" - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount/sas/accountsas1 -Vault Name : myvault -AccountName : mystorageaccount -Name : accountsas1 -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount/sas/accountsas2 -Vault Name : myvault -AccountName : mystorageaccount -Name : accountsas2 -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - - Lists all the SAS definitions associated with Key Vault managed Storage Account 'mystorageaccount' managed by vault 'myvault' that start with "account". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultmanagedstoragesasdefinition - - - Remove-AzKeyVaultManagedStorageSasDefinition - - - - Set-AzKeyVaultManagedStorageSasDefinition - - - - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - - - - - - - Get-AzKeyVaultRandomNumber - Get - AzKeyVaultRandomNumber - - Get the requested number of bytes containing random values from a managed HSM. - - - - Get the requested number of bytes containing random values from a managed HSM. - - - - Get-AzKeyVaultRandomNumber - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AsBase64String - - If specified, return random number as base-64 digit. By default, this command retruns random number as byte array. - - - System.Management.Automation.SwitchParameter - - - False - - - Count - - The requested number of random bytes. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultRandomNumber - - InputObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - AsBase64String - - If specified, return random number as base-64 digit. By default, this command retruns random number as byte array. - - - System.Management.Automation.SwitchParameter - - - False - - - Count - - The requested number of random bytes. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultRandomNumber - - ResourceId - - HSM resource id. - - System.String - - System.String - - - None - - - AsBase64String - - If specified, return random number as base-64 digit. By default, this command retruns random number as byte array. - - - System.Management.Automation.SwitchParameter - - - False - - - Count - - The requested number of random bytes. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - AsBase64String - - If specified, return random number as base-64 digit. By default, this command retruns random number as byte array. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Count - - The requested number of random bytes. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InputObject - - HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - ResourceId - - HSM resource id. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - - - System.String - - - - - - - - System.Byte - - - - - - - - - - - - - - Example 1: Get requested number of random bytes by managed HSM name - Get-AzKeyVaultRandomNumber -HsmName testmhsm -Count 10 - -158 -171 -96 -142 -109 -28 -1 -85 -178 -201 - - This command gets 10 random bytes from managed HSM "testmhsm" - - - - - - --- Example 2: Get random number as base64 string by piping --- - Get-AzKeyVaultManagedHsm -HsmName bezmhsm2022 | Get-AzKeyVaultRandomNumber -Count 10 -AsBase64String - -G1CsEqa9yUp/EA== - - This command gets 10 random bytes as base-64 string from managed HSM "testmhsm" - - - - - - --------- Example 3: Get random number by resource id --------- - Get-AzKeyVaultRandomNumber -ResourceId /subscriptions/0b1fxxxx-xxxx-xxxx-aec3-xxxx72f09590/resourceGroups/test-rg/provders/Microsoft.KeyVault/managedHSMs/testhsm -Count 10 - -158 -171 -96 -142 -109 -28 -1 -85 -178 -201 - - This command gets 10 random bytes from managed HSM with specified resource id - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultrandomnumber - - - - - - Get-AzKeyVaultRoleAssignment - Get - AzKeyVaultRoleAssignment - - Get or list role assignments of a managed HSM. Use respective parameters to list assignments to a specific user or a role definition. - - - - Use the `Get-AzKeyVaultRoleAssignment` command to list all role assignments that are effective on a scope. Without any parameters, this command returns all the role assignments made under the managed HSM. This list can be filtered using filtering parameters for principal, role and scope. The subject of the assignment must be specified. To specify a user, use SignInName or Microsoft Entra ObjectId parameters. To specify a security group, use Microsoft Entra ObjectId parameter. And to specify a Microsoft Entra application, use ApplicationId or ObjectId parameters. The role that is being assigned must be specified using the RoleDefinitionName or RoleDefinitionId parameter. The scope at which access is being granted may be specified. It defaults to "/". - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /directoryObjects/{id} - - GET /users/{id} - - GET /servicePrincipals/{id} - - GET /groups/{id} - - - - Get-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - RoleAssignmentName - - Name of the role assignment. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - RoleAssignmentName - - Name of the role assignment. - - System.String - - System.String - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzKeyVaultRoleAssignment -HsmName myHsm - -RoleDefinitionName DisplayName ObjectType Scope ------------------- ----------- ---------- ----- -Managed HSM Administrator User 1 (user1@microsoft.com) User / -Managed HSM Crypto Auditor User 2 (user2@microsoft.com) User /keys -Managed HSM Backup User 2 (user2@microsoft.com) User / -Managed HSM Administrator User 2 (user2@microsoft.com) User / - - This example lists all role assignments of "myHsm" on all the scope. - - - - - - -------------------------- Example 2 -------------------------- - Get-AzKeyVaultRoleAssignment -HsmName myHsm -SignInName user1@microsoft.com -Scope "/keys" - -RoleDefinitionName DisplayName ObjectType Scope ------------------- ----------- ---------- ----- -Managed HSM Crypto Auditor User 1 (user1@microsoft.com) User /keys -Managed HSM Backup User 1 (user1@microsoft.com) User /keys - - This example lists all role assignments of "myHsm" on "/keys" scope and filters the result by user sign-in name. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultroleassignment - - - - - - Get-AzKeyVaultRoleDefinition - Get - AzKeyVaultRoleDefinition - - List role definitions of a given managed HSM at a given scope. - - - - List role definitions of a given managed HSM at a given scope. - - - - Get-AzKeyVaultRoleDefinition - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - Custom - - If specified, only displays the custom created roles in the directory. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - - Get-AzKeyVaultRoleDefinition - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - RoleDefinitionName - - Name of the role definition to get. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - - - - Custom - - If specified, only displays the custom created roles in the directory. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - RoleDefinitionName - - Name of the role definition to get. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzKeyVaultRoleDefinition -HsmName myHsm -Scope "/keys" - -RoleName Description Permissions --------- ----------- ----------- -Managed HSM Administrator 1 permission(s) -Managed HSM Crypto Officer 1 permission(s) -Managed HSM Crypto User 1 permission(s) -Managed HSM Policy Administrator 1 permission(s) -Managed HSM Crypto Auditor 1 permission(s) -Managed HSM Crypto Service Encryption 1 permission(s) -Managed HSM Backup 1 permission(s) - - The example lists all the roles at "/keys" scope. - - - - - - -------------------------- Example 2 -------------------------- - $backupRole = Get-AzKeyVaultRoleDefinition -HsmName myHsm -RoleDefinitionName "Managed HSM Backup User" - -$backupRole.Permissions - -Actions NotActions DataActions NotDataActions -------- ---------- ----------- -------------- -0 action(s) 0 action(s) 3 action(s) 0 action(s) - -$backupRole.Permissions.DataActions - -Microsoft.KeyVault/managedHsm/backup/start/action -Microsoft.KeyVault/managedHsm/backup/status/action -Microsoft.KeyVault/managedHsm/keys/backup/action - - The example gets the "Managed HSM Backup" role and inspects its permissions. - - - - - - -------------------------- Example 3 -------------------------- - Get-AzKeyVaultRoleDefinition -HsmName myHsm -Custom - - This example lists all the custom role definitions belong to "myHsm". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultroledefinition - - - - - - Get-AzKeyVaultSecret - Get - AzKeyVaultSecret - - Gets the secrets in a key vault. - - - - The Get-AzKeyVaultSecret cmdlet gets secrets in a key vault. This cmdlet gets a specific secret or all the secrets in a key vault. - - - - Get-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted secrets in the output - - - SwitchParameter - - - False - - - - Get-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - Version - - Specifies the secret version. This cmdlet constructs the FQDN of a secret based on the key vault name, your currently selected environment, the secret name, and the secret version. - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - - Get-AzKeyVaultSecret - - InputObject - - KeyVault Object. - - PSKeyVault - - PSKeyVault - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted secrets in the output - - - SwitchParameter - - - False - - - - Get-AzKeyVaultSecret - - InputObject - - KeyVault Object. - - PSKeyVault - - PSKeyVault - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - Version - - Specifies the secret version. This cmdlet constructs the FQDN of a secret based on the key vault name, your currently selected environment, the secret name, and the secret version. - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - - Get-AzKeyVaultSecret - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted secrets in the output - - - SwitchParameter - - - False - - - - Get-AzKeyVaultSecret - - ParentResourceId - - KeyVault Resource Id. - - String - - String - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - InRemovedState - - Specifies whether to show the previously deleted secrets in the output - - - SwitchParameter - - - False - - - - Get-AzKeyVaultSecret - - ParentResourceId - - KeyVault Resource Id. - - String - - String - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - Version - - Specifies the secret version. This cmdlet constructs the FQDN of a secret based on the key vault name, your currently selected environment, the secret name, and the secret version. - - String - - String - - - None - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - - Get-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a secret. The current version of a secret is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the secret with the specified Name . - - - SwitchParameter - - - False - - - - Get-AzKeyVaultSecret - - InputObject - - KeyVault Object. - - PSKeyVault - - PSKeyVault - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a secret. The current version of a secret is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the secret with the specified Name . - - - SwitchParameter - - - False - - - - Get-AzKeyVaultSecret - - ParentResourceId - - KeyVault Resource Id. - - String - - String - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a secret. The current version of a secret is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the secret with the specified Name . - - - SwitchParameter - - - False - - - - - - AsPlainText - - When set, the cmdlet will convert secret in secure string to the decrypted plaintext string as output. - - SwitchParameter - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InRemovedState - - Specifies whether to show the previously deleted secrets in the output - - SwitchParameter - - SwitchParameter - - - False - - - IncludeVersions - - Indicates that this cmdlet gets all versions of a secret. The current version of a secret is the first one on the list. If you specify this parameter you must also specify the Name and VaultName parameters. If you do not specify the IncludeVersions parameter, this cmdlet gets the current version of the secret with the specified Name . - - SwitchParameter - - SwitchParameter - - - False - - - InputObject - - KeyVault Object. - - PSKeyVault - - PSKeyVault - - - None - - - Name - - Specifies the name of the secret to get. - - String - - String - - - None - - - ParentResourceId - - KeyVault Resource Id. - - String - - String - - - None - - - VaultName - - Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - Version - - Specifies the secret version. This cmdlet constructs the FQDN of a secret based on the key vault name, your currently selected environment, the secret name, and the secret version. - - String - - String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret - - - - - - - - - - - - - - Example 1: Get all current versions of all secrets in a key vault - Get-AzKeyVaultSecret -VaultName 'Contoso' - -Vault Name : contoso -Name : secret1 -Version : -Id : https://contoso.vault.azure.net:443/secrets/secret1 -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - -Vault Name : contoso -Name : secret2 -Version : -Id : https://contoso.vault.azure.net:443/secrets/secret2 -Enabled : True -Expires : -Not Before : -Created : 4/11/2018 11:45:06 PM -Updated : 4/11/2018 11:45:06 PM -Content Type : -Tags : - - This command gets the current versions of all secrets in the key vault named Contoso. - - - - - - ------- Example 2: Get all versions of a specific secret ------- - Get-AzKeyVaultSecret -VaultName 'Contoso' -Name 'secret1' -IncludeVersions - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - -Vault Name : contoso -Name : secret1 -Version : 5d1a74ba2c454439886fb8509b6cab3c -Id : https://contoso.vault.azure.net:443/secrets/secret1/5d1a74ba2c454439886fb8509b6cab3c -Enabled : True -Expires : -Not Before : -Created : 4/5/2018 11:44:50 PM -Updated : 4/5/2018 11:44:50 PM -Content Type : -Tags : - - This command gets all versions of the secret named secret1 in the key vault named Contoso. - - - - - - --- Example 3: Get the current version of a specific secret --- - Get-AzKeyVaultSecret -VaultName 'Contoso' -Name 'secret1' - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - - This command gets the current version of the secret named secret1 in the key vault named Contoso. - - - - - - ---- Example 4: Get a specific version of a specific secret ---- - Get-AzKeyVaultSecret -VaultName 'Contoso' -Name 'secret1' -Version '5d1a74ba2c454439886fb8509b6cab3c' - -Vault Name : contoso -Name : secret1 -Version : 5d1a74ba2c454439886fb8509b6cab3c -Id : https://contoso.vault.azure.net:443/secrets/secret1/5d1a74ba2c454439886fb8509b6cab3c -Enabled : True -Expires : -Not Before : -Created : 4/5/2018 11:44:50 PM -Updated : 4/5/2018 11:44:50 PM -Content Type : -Tags : - - This command gets a specific version of the secret named secret1 in the key vault named Contoso. - - - - - - Example 5: Get the current version of a specific secret using Uri - Get-AzKeyVaultSecret -Id 'https://contoso.vault.azure.net/secrets/secret1/' - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - - This command gets the current version of the secret named secret1 in the key vault named Contoso. - - - - - - Example 6: Get a specific version of a specific secret using Uri - Get-AzKeyVaultSecret -Id 'https://contoso.vault.azure.net/secrets/secret1/7128133570f84a71b48d7d0550deb74c' - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - - This command gets a specific version of the secret named secret1 in the key vault named Contoso. - - - - - - Example 7: Get the current version of all the secrets using Uri - Get-AzKeyVaultSecret -Id 'https://contoso.vault.azure.net/secrets/' - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - -Vault Name : contoso -Name : secret2 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret2/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - - This command gets the current version of all the secrets in the key vault named Contoso. - - - - - - Example 8: Get the plain text value of the current version of a specific secret - $secretText = Get-AzKeyVaultSecret -VaultName 'Contoso' -Name 'ITSecret' -AsPlainText - - The cmdlet returns the secret as a string when `-AsPlainText` is applied. Note: When listing secrets, i.e. not providing `-Name`, the `-AsPlainText` is ignored. - - - - - - Example 9: Get all the secrets that have been deleted but not purged for this key vault. - Get-AzKeyVaultSecret -VaultName 'Contoso' -InRemovedState - -Vault Name : contoso -Name : secret1 -Id : https://contoso.vault.azure.net:443/secrets/secret1 -Deleted Date : 4/4/2018 8:51:58 PM -Scheduled Purge Date : 7/3/2018 8:51:58 PM -Enabled : True -Expires : -Not Before : -Created : 4/4/2018 8:51:03 PM -Updated : 4/4/2018 8:51:03 PM -Content Type : -Tags : - -Vault Name : contoso -Name : secret2 -Id : https://contoso.vault.azure.net:443/secrets/secret2 -Deleted Date : 5/7/2018 7:56:34 PM -Scheduled Purge Date : 8/5/2018 7:56:34 PM -Enabled : True -Expires : -Not Before : -Created : 4/6/2018 8:39:15 PM -Updated : 4/6/2018 10:11:24 PM -Content Type : -Tags : - - This command gets all the secrets that have been previously deleted, but not purged, in the key vault named Contoso. - - - - - - Example 10: Gets the secret ITSecret that has been deleted but not purged for this key vault. - Get-AzKeyVaultSecret -VaultName 'Contoso' -Name 'secret1' -InRemovedState - -Vault Name : contoso -Name : secret1 -Version : 689d23346e9c42a2a64f4e3d75094dcc -Id : https://contoso.vault.azure.net:443/secrets/secret1/689d23346e9c42a2a64f4e3d75094dcc -Deleted Date : 4/4/2018 8:51:58 PM -Scheduled Purge Date : 7/3/2018 8:51:58 PM -Enabled : True -Expires : -Not Before : -Created : 4/4/2018 8:51:03 PM -Updated : 4/4/2018 8:51:03 PM -Content Type : -Tags : - - This command gets the secret 'secret1' that has been previously deleted, but not purged, in the key vault named Contoso. This command will return metadata such as the deletion date, and the scheduled purging date of this deleted secret. - - - - - - Example 11: Get all current versions of all secrets in a key vault using filtering - Get-AzKeyVaultSecret -VaultName 'Contoso' -Name "secret*" - -Vault Name : contoso -Name : secret1 -Version : -Id : https://contoso.vault.azure.net:443/secrets/secret1 -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - -Vault Name : contoso -Name : secret2 -Version : -Id : https://contoso.vault.azure.net:443/secrets/secret2 -Enabled : True -Expires : -Not Before : -Created : 4/11/2018 11:45:06 PM -Updated : 4/11/2018 11:45:06 PM -Content Type : -Tags : - - This command gets the current versions of all secrets in the key vault named Contoso that start with "secret". - - - - - - Example 12: Get a secret in Azure Key Vault by command Get-Secret in module Microsoft.PowerShell.SecretManagement - # Install module Microsoft.PowerShell.SecretManagement -Install-Module Microsoft.PowerShell.SecretManagement -Repository PSGallery -AllowPrerelease -# Register vault for Secret Management -Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @{ AZKVaultName = 'test-kv'; SubscriptionId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' } -# Set secret for vault AzKeyVault -$secure = ConvertTo-SecureString -String "****" -AsPlainText -Force -Set-Secret -Vault AzKeyVault -Name secureSecret -SecureStringSecret $secure -Get-Secret -Vault AzKeyVault -Name secureSecret -AsPlainText - -Password - - This example Gets a secret named `secureSecret` in Azure Key Vault named `test-kv` by command `Get-Secret` in module `Microsoft.PowerShell.SecretManagement`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultsecret - - - Remove-AzKeyVaultSecret - - - - Undo-AzKeyVaultSecretRemoval - - - - Set-AzKeyVaultSecret - - - - - - - Get-AzKeyVaultSetting - Get - AzKeyVaultSetting - - Retrieves a specified key vault account setting or all available key vault account settings that can be configured. - - - - The Get-AzKeyVaultSetting cmdlet gets key vault account settings. This cmdlet gets a specific key vault account setting or all key vault account settings. - - - - Get-AzKeyVaultSetting - - HsmId - - Hsm Resource Id. - - System.String - - System.String - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultSetting - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzKeyVaultSetting - - HsmObject - - Hsm Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmId - - Hsm Resource Id. - - System.String - - System.String - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - HsmObject - - Hsm Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - - - - - - - - - - - - - ----- Example 1: Get all account settings in a Managed HSM ----- - Get-AzKeyVaultSetting -HsmName testmhsm - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM false boolean testmhsm - - This cmdlet gets all account settings in a Managed HSM named `testmhsm`. - - - - - - Example 2: Get a specific key vault account setting in a Managed HSM - Get-AzKeyVaultSetting -HsmName testmhsm -Name AllowKeyManagementOperationsThroughARM - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM false boolean testmhsm - - This cmdlet gets a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed HSM named `testmhsm`. - - - - - - Example 3: Get a specific key vault account setting in a Managed HSM via HsmObject - $hsmObject = Get-AzKeyVaultManagedHsm -Name testmhsm -Get-AzKeyVaultSetting -HsmObject $hsmObject -Name AllowKeyManagementOperationsThroughARM - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM false boolean testmhsm - - This cmdlet gets a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed HSM named `testmhsm` via HsmObject. - - - - - - Example 4: Get a specific key vault account setting in a Managed HSM by piping HsmObject - Get-AzKeyVaultManagedHsm -Name testmhsm | Get-AzKeyVaultSetting -Name AllowKeyManagementOperationsThroughARM - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM false boolean testmhsm - - This cmdlet gets a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed HSM named `testmhsm` via HsmObject. - - - - - - Example 4: Get a specific key vault account setting in a Managed HSM by piping HsmObject - Get-AzKeyVaultManagedHsm -Name testmhsm | Get-AzKeyVaultSetting -Name AllowKeyManagementOperationsThroughARM - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM false boolean testmhsm - - This cmdlet gets a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed HSM named `testmhsm` by piping HsmObject. - - - - - - Example 5: Get a specific key vault account setting in a Managed HSM via HsmId - Get-AzKeyVaultSetting -HsmId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/managedHSMs/testmhsm -Name AllowKeyManagementOperationsThroughARM - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM false boolean testmhsm - - This cmdlet gets a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed HSM named `testmhsm` via HsmId. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/get-azkeyvaultsetting - - - Update-AzKeyVaultSetting - - - - - - - Import-AzKeyVaultCertificate - Import - AzKeyVaultCertificate - - Imports a certificate to a key vault. - - - - The Import-AzKeyVaultCertificate cmdlet imports a certificate into a key vault. You can create the certificate to import by using one of the following methods: - Use `Add-AzKeyVaultCertificate` to create a certificate signing request and submit it to a certificate authority. See https://learn.microsoft.com/azure/key-vault/certificates/create-certificate-signing-request - - Use an existing certificate package file, such as a .pfx or .p12 file, which contains both the certificate and private key. - - - - Import-AzKeyVaultCertificate - - VaultName - - Specifies the key vault name into which this cmdlet imports certificates. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Specifies the certificate name. This cmdlet constructs the fully qualified domain name (FQDN) of a certificate from key vault name, currently selected environment, and certificate name. - - System.String - - System.String - - - None - - - CertificateCollection - - Specifies the certificate collection to add to a key vault. - - System.Security.Cryptography.X509Certificates.X509Certificate2Collection - - System.Security.Cryptography.X509Certificates.X509Certificate2Collection - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PolicyObject - - An in-memory object to specify management policy for the certificate. Mutual-exclusive to PolicyPath. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - PolicyPath - - A file path to specify management policy for the certificate that contains JSON encoded policy definition. Mutual-exclusive to PolicyObject. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzKeyVaultCertificate - - VaultName - - Specifies the key vault name into which this cmdlet imports certificates. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Specifies the certificate name. This cmdlet constructs the fully qualified domain name (FQDN) of a certificate from key vault name, currently selected environment, and certificate name. - - System.String - - System.String - - - None - - - CertificateString - - Base64 encoded representation of the certificate object to import. This certificate needs to contain the private key. - - System.String - - System.String - - - None - - - ContentType - - Specifies the type of the certificate to be imported. Regards certificate string as PFX format by default. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Password - - Specifies the password for a certificate file. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - PolicyObject - - An in-memory object to specify management policy for the certificate. Mutual-exclusive to PolicyPath. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - PolicyPath - - A file path to specify management policy for the certificate that contains JSON encoded policy definition. Mutual-exclusive to PolicyObject. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzKeyVaultCertificate - - VaultName - - Specifies the key vault name into which this cmdlet imports certificates. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Specifies the certificate name. This cmdlet constructs the fully qualified domain name (FQDN) of a certificate from key vault name, currently selected environment, and certificate name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FilePath - - Specifies the path of the certificate file that this cmdlet imports. - - System.String - - System.String - - - None - - - Password - - Specifies the password for a certificate file. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - PolicyObject - - An in-memory object to specify management policy for the certificate. Mutual-exclusive to PolicyPath. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - PolicyPath - - A file path to specify management policy for the certificate that contains JSON encoded policy definition. Mutual-exclusive to PolicyObject. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - CertificateCollection - - Specifies the certificate collection to add to a key vault. - - System.Security.Cryptography.X509Certificates.X509Certificate2Collection - - System.Security.Cryptography.X509Certificates.X509Certificate2Collection - - - None - - - CertificateString - - Base64 encoded representation of the certificate object to import. This certificate needs to contain the private key. - - System.String - - System.String - - - None - - - ContentType - - Specifies the type of the certificate to be imported. Regards certificate string as PFX format by default. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FilePath - - Specifies the path of the certificate file that this cmdlet imports. - - System.String - - System.String - - - None - - - Name - - Specifies the certificate name. This cmdlet constructs the fully qualified domain name (FQDN) of a certificate from key vault name, currently selected environment, and certificate name. - - System.String - - System.String - - - None - - - Password - - Specifies the password for a certificate file. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - PolicyObject - - An in-memory object to specify management policy for the certificate. Mutual-exclusive to PolicyPath. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - PolicyPath - - A file path to specify management policy for the certificate that contains JSON encoded policy definition. Mutual-exclusive to PolicyObject. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Specifies the key vault name into which this cmdlet imports certificates. This cmdlet constructs the fully qualified domain name (FQDN) of a key vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Security.Cryptography.X509Certificates.X509Certificate2Collection - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - - - - - - - - - - - - - ---------- Example 1: Import a key vault certificate ---------- - $Password = ConvertTo-SecureString -String "****" -AsPlainText -Force -Import-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "ImportCert01" -FilePath "C:\Users\contosoUser\Desktop\import.pfx" -Password $Password - -Name : importCert01 -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 2/8/2016 3:11:45 PM - - [Not After] - 8/8/2016 4:21:45 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Tags : -Enabled : True -Created : 2/8/2016 11:50:43 PM -Updated : 2/8/2016 11:50:43 PM - - The first command uses the ConvertTo-SecureString cmdlet to create a secure password, and then stores it in the $Password variable. The second command imports the certificate named ImportCert01 into the CosotosoKV01 key vault. - - - - - - Example 2: Import a key vault certificate by CertificateString - $Password = ConvertTo-SecureString -String "****" -AsPlainText -Force -$Base64String = [System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("import.pfx")) -Import-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "ImportCert01" -CertificateString $Base64String -Password $Password - -Name : importCert01 -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 2/8/2016 3:11:45 PM - - [Not After] - 8/8/2016 4:21:45 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Tags : -Enabled : True -Created : 2/8/2016 11:50:43 PM -Updated : 2/8/2016 11:50:43 PM - - The first command uses the ConvertTo-SecureString cmdlet to create a secure password, and then stores it in the $Password variable. The second command reads a certificate as a Base64 encoded representation. The third command imports the certificate named ImportCert01 into the CosotosoKV01 key vault. - - - - - - -- Example 3: Import a key vault certificate with PolicyFile -- - $Password = ConvertTo-SecureString -String "****" -AsPlainText -Force -Import-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "ImportCert01" -FilePath "C:\Users\contosoUser\Desktop\import.pfx" -Password $Password -PolicyPath "C:\Users\contosoUser\Desktop\policy.json" - -Name : importCert01 -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 2/8/2016 3:11:45 PM - - [Not After] - 8/8/2016 4:21:45 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -KeyId : https://ContosoKV01.vault.azure.net/keys/ImportCert01/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -SecretId : https://ContosoKV01.vault.azure.net/secrets/ImportCert01/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Policy : - Secret Content Type: application/x-pkcs12 - Issuer Name : Unknown - Created On : 3/22/2023 6:00:52 AM - Updated On : 4/27/2023 9:52:53 AM - ... -RecoveryLevel : Recoverable+Purgeable -Enabled : True -Expires : 6/9/2023 6:20:26 AM -NotBefore : 3/11/2023 6:20:26 AM -Created : 4/24/2023 9:05:51 AM -Updated : 4/24/2023 9:05:51 AM -Tags : {} -VaultName : ContosoKV01 -Name : ImportCert01 -Version : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Id : https://ContosoKV01.vault.azure.net/certificates/ImportCert01/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - The first command uses the ConvertTo-SecureString cmdlet to create a secure password, and then stores it in the $Password variable. The second command imports the certificate named ImportCert01 into the CosotosoKV01 key vault with a policy defined by file. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/import-azkeyvaultcertificate - - - Remove-AzKeyVaultCertificate - - - - Creating and merging CSR in Key Vault - https://learn.microsoft.com/azure/key-vault/certificates/create-certificate-signing-request - - - - - - Import-AzKeyVaultSecurityDomain - Import - AzKeyVaultSecurityDomain - - Imports previously exported security domain data to a managed HSM. - - - - This cmdlet imports previously exported security domain data to a managed HSM. - - - - Import-AzKeyVaultSecurityDomain - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DownloadExchangeKey - - When specified, an exchange key will be downloaded to specified path. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Specify whether to overwrite existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - OutFile - - Local file path to store the security domain encrypted with the exchange key. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzKeyVaultSecurityDomain - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExchangeKeyPath - - Local path of exchange key used to encrypt the security domain data. Generated by running Import-AzKeyVaultSecurityDomain with -DownloadExchangeKey. - - System.String - - System.String - - - None - - - Force - - Specify whether to overwrite existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - Keys - - Information about the keys that are used to decrypt the security domain data. See examples for how it is constructed. - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - - None - - - OutFile - - Local file path to store the security domain encrypted with the exchange key. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - RestoreBlob - - When specified, the security domain data will be decrypted and encrypted using generated ExchangeKey locally. - - - System.Management.Automation.SwitchParameter - - - False - - - SecurityDomainPath - - Specify the path to the encrypted security domain data. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzKeyVaultSecurityDomain - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ImportRestoredBlob - - When specified, SecurityDomainPath should be encrypted security domain data generated by Restore-AzKeyVaultSecurityDomainBlob. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - SecurityDomainPath - - Specify the path to the encrypted security domain data. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzKeyVaultSecurityDomain - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Object representing a managed HSM. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - Keys - - Information about the keys that are used to decrypt the security domain data. See examples for how it is constructed. - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - SecurityDomainPath - - Specify the path to the encrypted security domain data. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Import-AzKeyVaultSecurityDomain - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Keys - - Information about the keys that are used to decrypt the security domain data. See examples for how it is constructed. - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - - None - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - - System.Management.Automation.SwitchParameter - - - False - - - SecurityDomainPath - - Specify the path to the encrypted security domain data. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DownloadExchangeKey - - When specified, an exchange key will be downloaded to specified path. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ExchangeKeyPath - - Local path of exchange key used to encrypt the security domain data. Generated by running Import-AzKeyVaultSecurityDomain with -DownloadExchangeKey. - - System.String - - System.String - - - None - - - Force - - Specify whether to overwrite existing file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ImportRestoredBlob - - When specified, SecurityDomainPath should be encrypted security domain data generated by Restore-AzKeyVaultSecurityDomainBlob. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Object representing a managed HSM. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - Keys - - Information about the keys that are used to decrypt the security domain data. See examples for how it is constructed. - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[] - - - None - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - OutFile - - Local file path to store the security domain encrypted with the exchange key. - - System.String - - System.String - - - None - - - PassThru - - When specified, a boolean will be returned when cmdlet succeeds. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RestoreBlob - - When specified, the security domain data will be decrypted and encrypted using generated ExchangeKey locally. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - SecurityDomainPath - - Specify the path to the encrypted security domain data. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------- Example 1: Import Security domain -------------- - $keys = @{PublicKey = "sd1.cer"; PrivateKey = "sd1.key"}, @{PublicKey = "sd2.cer"; PrivateKey = "sd2.key"}, @{PublicKey = "sd3.cer"; PrivateKey = "sd3.key"} -Import-AzKeyVaultSecurityDomain -Name testmhsm -Keys $keys -SecurityDomainPath sd.ps.json - - First, the keys need be provided to decrypt the security domain data. Then, The Import-AzKeyVaultSecurityDomain command restores previous backed up security domain data to a managed HSM using these keys. - - - - - - ----- Example 2: Import Security domain by separate steps ----- - $exchangeKeyOutputPath = "ExchangeKey.cer" -$SecurityDomainRestoredBlob = "HsmRestoreBlob.json" -$keys = @{PublicKey = "sd1.cer"; PrivateKey = "sd1.key"}, @{PublicKey = "sd2.cer"; PrivateKey = "sd2.key"}, @{PublicKey = "sd3.cer"; PrivateKey = "sd3.key"} -Import-AzKeyVaultSecurityDomain -Name testmhsm -OutFile $exchangeKeyOutputPath -DownloadExchangeKey -Import-AzKeyVaultSecurityDomain -Keys $keys -ExchangeKeyPath $exchangeKeyPath -SecurityDomainPath sd.ps.json -OutFile sd_restored.ps.json -RestoreBlob -Import-AzKeyVaultSecurityDomain -Name testmhsm -SecurityDomainPath $SecurityDomainRestoredBlob -ImportRestoredBlob - - First, an exchange key should be downloaded by adding `-DownloadExchangeKey`. Then, the security domain data should be decrypted locally using key pairs and encrypted using generated exchange key by adding `-RestoreBlob`. Finally, the restored security domain data can be imported to a managed HSM using `-ImportRestoredBlob`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/import-azkeyvaultsecuritydomain - - - - - - Invoke-AzKeyVaultKeyOperation - Invoke - AzKeyVaultKeyOperation - - Performs operation like "Encrypt", "Decrypt", "Wrap" or "Unwrap" using a specified key stored in a key vault or managed hsm. - - - - Invoke-AzKeyVaultKeyOperation cmdlet supports 1. Encrypting an arbitrary sequence of bytes using an encryption key. 2. Decrypting a single block of encrypted data. 3. Wrapping a symmetric key using a specified key. 4. Unwrapping a symmetric key using the specified key that was initially used for wrapping that key. - - - - Invoke-AzKeyVaultKeyOperation - - HsmName - - HSM name. - - System.String - - System.String - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - Algorithm - - Algorithm identifier - - System.String - - System.String - - - None - - - ByteArrayValue - - The value to be operated in byte array format. - - System.Byte[] - - System.Byte[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Operation - - Algorithm identifier - - System.String - - System.String - - - None - - - Version - - Key version. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzKeyVaultKeyOperation - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - Algorithm - - Algorithm identifier - - System.String - - System.String - - - None - - - ByteArrayValue - - The value to be operated in byte array format. - - System.Byte[] - - System.Byte[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Operation - - Algorithm identifier - - System.String - - System.String - - - None - - - Version - - Key version. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzKeyVaultKeyOperation - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - Algorithm - - Algorithm identifier - - System.String - - System.String - - - None - - - ByteArrayValue - - The value to be operated in byte array format. - - System.Byte[] - - System.Byte[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Operation - - Algorithm identifier - - System.String - - System.String - - - None - - - Version - - Key version. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Algorithm - - Algorithm identifier - - System.String - - System.String - - - None - - - ByteArrayValue - - The value to be operated in byte array format. - - System.Byte[] - - System.Byte[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. - - System.String - - System.String - - - None - - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - Operation - - Algorithm identifier - - System.String - - System.String - - - None - - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Version - - Key version. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyOperationResult - - - - - - - - - - - - - - ---- Example 1: Encrypts byte array using an encryption key ---- - $byteArray = [Byte[]]@(58, 219) -$encryptedData = Invoke-AzKeyVaultKeyOperation -Operation Encrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $byteArray -$encryptedData - -KeyId : https://bez-kv.vault.azure.net/keys/bez-key/c96ce0fb18de446c9f4b911b686988af -RawResult : {21, 39, 82, 56…} -Algorithm : RSA1_5 - - Encrypts `$byteArray` using test-key stored in test-kv. - - - - - - ---- Example 2: Decrypts byte array using an encryption key ---- - $decryptedData = Invoke-AzKeyVaultKeyOperation -Operation Decrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $encryptedData.RawResult -$decryptedData - -KeyId : https://bez-kv.vault.azure.net/keys/bez-key/c96ce0fb18de446c9f4b911b686988af -RawResult : {58, 219} -Algorithm : RSA1_5 - - Decrypts `$encryptedData.RawResult` using test-key stored in test-kv. The `$decryptedData.RawResult` is same with `$byteArray`, which is original data. - - - - - - ---- Example 3: Encrypts plain text using an encryption key ---- - $plainText = "test" -$byteArray = [system.Text.Encoding]::UTF8.GetBytes($plainText) -$encryptedData = Invoke-AzKeyVaultKeyOperation -Operation Encrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $byteArray -$encryptedData - -KeyId : https://test-kv.vault.azure.net/keys/test-key/bd8b77352a2443d4983bd70e9f660bc6 -RawResult : {58, 219, 6, 236…} -Algorithm : RSA1_5 - - Encrypts string "test" using test-key stored in test-kv. The `RawResult` is the encrypted result in byte array format. - - - - - - ------- Example 4: Decrypt encrypted data to plain text ------- - $decryptedData = Invoke-AzKeyVaultKeyOperation -Operation Decrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $encryptedData.RawResult -$plainText = [system.Text.Encoding]::UTF8.GetString($decryptedData.RawResult) -$plainText - -test - - Decrypts encrypted data that is encrypted using test-key stored in test-kv. The `RawResult` is the decrypted result in byte array format. - - - - - - ---- Example 5: Wraps a symmetric key using a specified key ---- - $key = "ovQIlbB0DgWhZA7sgkPxbg9H-Ly-VlNGPSgGrrZvlIo" -$byteArray = [system.Text.Encoding]::UTF8.GetBytes($key) -$wrappedResult = Invoke-AzKeyVaultKeyOperation -Operation Wrap -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $byteArray -$wrappedResult | Format-List - -KeyId : https://test-kv.vault.azure.net/keys/test-key/375cdf20252043b79c8ca0c57b6c7679 -RawResult : {58, 219, 6, 236…} -Algorithm : RSA1_5 - - Wraps a symmetric key using key named test-key stored in test-kv. The `RawResult` is wrapped result in byte array format. - - - - - - --- Example 6: Unwraps a symmetric key using a specified key --- - $unwrappedResult = Invoke-AzKeyVaultKeyOperation -Operation Unwrap -Algorithm RSA1_5 -VaultName test-kv -Name test-key -ByteArrayValue $wrappedResult.RawResult -$key = [system.Text.Encoding]::UTF8.GetString($unwrappedResult.RawResult) -$key - -ovQIlbB0DgWhZA7sgkPxbg9H-Ly-VlNGPSgGrrZvlIo - - Unwraps a symmetric key using a specified key test-key stored in test-kv. The `RawResult` is unwrapped result in byte array format. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/invoke-azkeyvaultkeyoperation - - - - - - Invoke-AzKeyVaultKeyRotation - Invoke - AzKeyVaultKeyRotation - - Creates a new key version in Key Vault, stores it, then returns the new key. - - - - The cmdlet will rotate the key based on the key policy. It requires the keys/rotate permission. It will returns a new version of the rotate key. - - - - Invoke-AzKeyVaultKeyRotation - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzKeyVaultKeyRotation - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Invoke-AzKeyVaultKeyRotation -VaultName test-kv -Name test-key - -Vault/HSM Name : test-kv -Name : test-key -Key Type : RSA -Key Size : 2048 -Curve Name : -Version : xxxxxxxxxxxxxx4939xxxxxxxxxxxxxxxx -Id : https://test-kv.vault.azure.net:443/keys/test-key/xxxxxxxxxxxxxx4939xxxxxxxxxxxxxxxx -Enabled : True -Expires : -Not Before : -Created : 12/10/2021 2:57:58 AM -Updated : 12/10/2021 2:57:58 AM -Recovery Level : Recoverable+Purgeable -Tags : - - This cmdlet creates a new key version for test-key. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/invoke-azkeyvaultkeyrotation - - - Get-AzKeyVaultKeyRotationPolicy.md - - - - Set-AzKeyVaultKeyRotationPolicy.md - - - - - - - New-AzKeyVault - New - AzKeyVault - - Creates a key vault. - - - - The New-AzKeyVault cmdlet creates a key vault in the specified resource group. This cmdlet also grants permissions to the currently logged on user to add, remove, or list keys and secrets in the key vault. Note: If you see the error **The subscription is not registered to use namespace 'Microsoft.KeyVault'** when you try to create your new key vault, run Register-AzResourceProvider -ProviderNamespace "Microsoft.KeyVault" and then rerun your New-AzKeyVault command. For more information, see Register-AzResourceProvider. - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /directoryObjects/{id} - - GET /users/{id} - - GET /servicePrincipals/{id} - - GET /groups/{id} - - GET /me - - - - New-AzKeyVault - - Name - - Specifies a name of the key vault to create. The name can be any combination of letters, digits, or hyphens. The name must start and end with a letter or digit. The name must be universally unique. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of an existing resource group in which to create the key vault. - - System.String - - System.String - - - None - - - Location - - Specifies the Azure region in which to create the key vault. Use the command Get-AzLocation (/powershell/module/az.resources/get-azlocation)to see your choices. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableRbacAuthorization - - If specified, disables to authorize data actions by Role Based Access Control (RBAC), and then the access policies specified in vault properties will be honored. Note that management actions are always authorized with RBAC. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDeployment - - Enables the Microsoft.Compute resource provider to retrieve secrets from this key vault when this key vault is referenced in resource creation, for example when creating a virtual machine. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - Enables the Azure disk encryption service to get secrets and unwrap keys from this key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment. - - - System.Management.Automation.SwitchParameter - - - False - - - EnablePurgeProtection - - If specified, protection against immediate deletion is enabled for this vault; requires soft delete to be enabled as well. - - - System.Management.Automation.SwitchParameter - - - False - - - NetworkRuleSet - - Specifies the network rule set of the vault. It governs the accessibility of the key vault from specific network locations. Created by `New-AzKeyVaultNetworkRuleSetObject`. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet - - - None - - - PublicNetworkAccess - - Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. By default, we will enable public network access. - - System.String - - System.String - - - None - - - Sku - - Specifies the SKU of the key vault instance. For information about which features are available for each SKU, see the Azure Key Vault Pricing website (https://go.microsoft.com/fwlink/?linkid=512521). - - System.String - - System.String - - - None - - - SoftDeleteRetentionInDays - - Specifies how long deleted resources are retained, and how long until a vault or an object in the deleted state can be purged. The default is 90 days. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableRbacAuthorization - - If specified, disables to authorize data actions by Role Based Access Control (RBAC), and then the access policies specified in vault properties will be honored. Note that management actions are always authorized with RBAC. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDeployment - - Enables the Microsoft.Compute resource provider to retrieve secrets from this key vault when this key vault is referenced in resource creation, for example when creating a virtual machine. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - Enables the Azure disk encryption service to get secrets and unwrap keys from this key vault. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnablePurgeProtection - - If specified, protection against immediate deletion is enabled for this vault; requires soft delete to be enabled as well. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Location - - Specifies the Azure region in which to create the key vault. Use the command Get-AzLocation (/powershell/module/az.resources/get-azlocation)to see your choices. - - System.String - - System.String - - - None - - - Name - - Specifies a name of the key vault to create. The name can be any combination of letters, digits, or hyphens. The name must start and end with a letter or digit. The name must be universally unique. - - System.String - - System.String - - - None - - - NetworkRuleSet - - Specifies the network rule set of the vault. It governs the accessibility of the key vault from specific network locations. Created by `New-AzKeyVaultNetworkRuleSetObject`. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet - - - None - - - PublicNetworkAccess - - Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. By default, we will enable public network access. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of an existing resource group in which to create the key vault. - - System.String - - System.String - - - None - - - Sku - - Specifies the SKU of the key vault instance. For information about which features are available for each SKU, see the Azure Key Vault Pricing website (https://go.microsoft.com/fwlink/?linkid=512521). - - System.String - - System.String - - - None - - - SoftDeleteRetentionInDays - - Specifies how long deleted resources are retained, and how long until a vault or an object in the deleted state can be purged. The default is 90 days. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Management.Automation.SwitchParameter - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - ------------ Example 1: Create a Standard key vault ------------ - New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' - -Vault Name : contoso03vault -Resource Group Name : group14 -Location : East US -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/group14/providers - /Microsoft.KeyVault/vaults/contoso03vault -Vault URI : https://contoso03vault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : -Enabled For Template Deployment? : -Enabled For Disk Encryption? : -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : all - Permissions to Secrets : all - Permissions to Certificates : all - Permissions to (Key Vault Managed) Storage : all - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : - Virtual Network Rules : - -Tags : - - This command creates a key vault named Contoso03Vault, in the Azure region East US. The command adds the key vault to the resource group named Group14. Because the command does not specify a value for the SKU parameter, it creates a Standard key vault. - - - - - - ------------ Example 2: Create a Premium key vault ------------ - New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' -Sku 'Premium' - -Vault Name : contoso03vault -Resource Group Name : group14 -Location : East US -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/group14/providers - /Microsoft.KeyVault/vaults/contoso03vault -Vault URI : https://contoso03vault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Premium -Enabled For Deployment? : False -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : all - Permissions to Secrets : all - Permissions to Certificates : all - Permissions to (Key Vault Managed) Storage : all - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : - Virtual Network Rules : - -Tags : - - This command creates a key vault, just like the previous example. However, it specifies a value of Premium for the SKU parameter to create a Premium key vault. - - - - - - -------------------------- Example 3 -------------------------- - $frontendSubnet = New-AzVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "110.0.1.0/24" -ServiceEndpoint Microsoft.KeyVault -$virtualNetwork = New-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG -Location westus -AddressPrefix "110.0.0.0/16" -Subnet $frontendSubnet -$myNetworkResId = (Get-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG).Subnets[0].Id -$ruleSet = New-AzKeyVaultNetworkRuleSetObject -DefaultAction Allow -Bypass AzureServices -IpAddressRange "110.0.1.0/24" -VirtualNetworkResourceId $myNetworkResId -New-AzKeyVault -ResourceGroupName "myRg" -VaultName "myVault" -NetworkRuleSet $ruleSet -Location westus - -Vault Name : myVault -Resource Group Name : myRg -Location : East US -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myRg/providers - /Microsoft.KeyVault/vaults/myVault -Vault URI : https://myVault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Premium -Enabled For Deployment? : False -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : all - Permissions to Secrets : all - Permissions to Certificates : all - Permissions to (Key Vault Managed) Storage : all - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : 110.0.1.0/24 - Virtual Network Rules : /subscriptions/0b1f6471-1bf0-4dda-ae - c3-cb9272f09590/resourcegroups/myRg/providers/microsoft.network/virtualnetworks - /myvnet/subnets/frontendsubnet - -Tags : - - Creating a key vault and specifies network rules to allow access to the specified IP address from the virtual network identified by $myNetworkResId. See `New-AzKeyVaultNetworkRuleSetObject` for more information. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvault - - - Get-AzKeyVault - - - - Remove-AzKeyVault - - - - - - - New-AzKeyVaultCertificateAdministratorDetail - New - AzKeyVaultCertificateAdministratorDetail - - Creates an in-memory certificate administrator details object. - - - - The New-AzKeyVaultCertificateAdministratorDetail cmdlet creates an in-memory certificate administrator details object. - - - - New-AzKeyVaultCertificateAdministratorDetail - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the email address for the certificate administrator. - - System.String - - System.String - - - None - - - FirstName - - Specifies the first name of the certificate administrator. - - System.String - - System.String - - - None - - - LastName - - Specifies the last name of the certificate administrator. - - System.String - - System.String - - - None - - - PhoneNumber - - Specifies the phone number of the certificate administrator. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the email address for the certificate administrator. - - System.String - - System.String - - - None - - - FirstName - - Specifies the first name of the certificate administrator. - - System.String - - System.String - - - None - - - LastName - - Specifies the last name of the certificate administrator. - - System.String - - System.String - - - None - - - PhoneNumber - - Specifies the phone number of the certificate administrator. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails - - - - - - - - - - - - - - - Example 1: Create a certificate administrator details object - - $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName "Patti" -LastName "Fuller" -EmailAddress "patti.fuller@contoso.com" -PhoneNumber "5553334444" -$AdminDetails - -FirstName LastName EmailAddress PhoneNumber ---------- -------- ------------ ----------- -Patti Fuller patti.fuller@contoso.com 5553334444 - - This command creates an in-memory certificate administrator details object, and then stores it in the $AdminDetails variable. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultcertificateadministratordetail - - - New-AzKeyVaultCertificateOrganizationDetail - - - - - - - New-AzKeyVaultCertificateOrganizationDetail - New - AzKeyVaultCertificateOrganizationDetail - - Creates an in-memory certificate organization details object. - - - - The New-AzKeyVaultCertificateOrganizationDetail cmdlet creates an in-memory certificate organization details object. - - - - New-AzKeyVaultCertificateOrganizationDetail - - AdministratorDetails - - Specifies the certificate organization administrators. - - System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails] - - System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Id - - Specifies the identifier for the organization. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AdministratorDetails - - Specifies the certificate organization administrators. - - System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails] - - System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Id - - Specifies the identifier for the organization. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails - - - - - - - - - - - - - - ------- Example 1: Create an organization details object ------- - $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName "Patti" -LastName "Fuller" -EmailAddress "Patti.Fuller@contoso.com" -PhoneNumber "1234567890" -New-AzKeyVaultCertificateOrganizationDetail -AdministratorDetails $AdminDetails - -Id AdministratorDetails --- -------------------- - {Patti} - - The first command creates a certificate administrator details object, and then stores it in the $AdminDetails variable. The second command creates a certificate organization details object, and then stores it in the $OrgDetails variable. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultcertificateorganizationdetail - - - New-AzKeyVaultCertificateAdministratorDetail - - - - - - - New-AzKeyVaultCertificatePolicy - New - AzKeyVaultCertificatePolicy - - Creates an in-memory certificate policy object. - - - - The New-AzKeyVaultCertificatePolicy cmdlet creates an in-memory certificate policy object for Azure Key Vault. - - - - New-AzKeyVaultCertificatePolicy - - IssuerName - - Specifies the name of the issuer for the certificate. - - System.String - - System.String - - - None - - - DnsName - - Specifies the DNS names in the certificate. Subject Alternative Names (SANs) can be specified as DNS names. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - SubjectName - - Specifies the subject name of the certificate. - > [!NOTE] > If you must use a comma (,) or a period (.) within a property in the `SubjectName` parameter, > you must enclose the property field in quotation marks. For example, you may use O="Contoso, Ltd." in the Organization Name field. - - System.String - - System.String - - - None - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true' - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - CertificateType - - Specifies the type of certificate to the issuer. - - System.String - - System.String - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - - P-256 - P-384 - P-521 - P-256K - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - Indicates that the certificate policy is disabled. - - - System.Management.Automation.SwitchParameter - - - False - - - Ekus - - Specifies the enhanced key usages (EKUs) in the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies how many days before expiry the automatic notification process begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - KeyNotExportable - - Indicates that the key is not exportable. - - - System.Management.Automation.SwitchParameter - - - False - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - - 2048 - 3072 - 4096 - 256 - 384 - 521 - - System.Int32 - - System.Int32 - - - None - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - - RSA - RSA-HSM - EC - EC-HSM - - System.String - - System.String - - - RSA - - - KeyUsage - - Specifies the key usages in the certificate. - - - None - EncipherOnly - CrlSign - KeyCertSign - KeyAgreement - DataEncipherment - KeyEncipherment - NonRepudiation - DigitalSignature - DecipherOnly - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - - None - - - RenewAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiry after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - RenewAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ReuseKeyOnRenewal - - Indicates that the certificate reuse the key during renewal. - - - System.Management.Automation.SwitchParameter - - - False - - - SecretContentType - - Specifies the content type of the new key vault secret. The acceptable values for this parameter are: - application/x-pkcs12 - - application/x-pem-file - - - application/x-pkcs12 - application/x-pem-file - - System.String - - System.String - - - None - - - ValidityInMonths - - Specifies the number of months the certificate is valid. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultCertificatePolicy - - IssuerName - - Specifies the name of the issuer for the certificate. - - System.String - - System.String - - - None - - - SubjectName - - Specifies the subject name of the certificate. - > [!NOTE] > If you must use a comma (,) or a period (.) within a property in the `SubjectName` parameter, > you must enclose the property field in quotation marks. For example, you may use O="Contoso, Ltd." in the Organization Name field. - - System.String - - System.String - - - None - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true' - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - CertificateType - - Specifies the type of certificate to the issuer. - - System.String - - System.String - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - - P-256 - P-384 - P-521 - P-256K - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - Indicates that the certificate policy is disabled. - - - System.Management.Automation.SwitchParameter - - - False - - - Ekus - - Specifies the enhanced key usages (EKUs) in the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies how many days before expiry the automatic notification process begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - KeyNotExportable - - Indicates that the key is not exportable. - - - System.Management.Automation.SwitchParameter - - - False - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - - 2048 - 3072 - 4096 - 256 - 384 - 521 - - System.Int32 - - System.Int32 - - - None - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - - RSA - RSA-HSM - EC - EC-HSM - - System.String - - System.String - - - RSA - - - KeyUsage - - Specifies the key usages in the certificate. - - - None - EncipherOnly - CrlSign - KeyCertSign - KeyAgreement - DataEncipherment - KeyEncipherment - NonRepudiation - DigitalSignature - DecipherOnly - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - - None - - - RenewAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiry after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - RenewAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ReuseKeyOnRenewal - - Indicates that the certificate reuse the key during renewal. - - - System.Management.Automation.SwitchParameter - - - False - - - SecretContentType - - Specifies the content type of the new key vault secret. The acceptable values for this parameter are: - application/x-pkcs12 - - application/x-pem-file - - - application/x-pkcs12 - application/x-pem-file - - System.String - - System.String - - - None - - - ValidityInMonths - - Specifies the number of months the certificate is valid. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true' - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - CertificateType - - Specifies the type of certificate to the issuer. - - System.String - - System.String - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - Indicates that the certificate policy is disabled. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DnsName - - Specifies the DNS names in the certificate. Subject Alternative Names (SANs) can be specified as DNS names. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - Ekus - - Specifies the enhanced key usages (EKUs) in the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies how many days before expiry the automatic notification process begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - IssuerName - - Specifies the name of the issuer for the certificate. - - System.String - - System.String - - - None - - - KeyNotExportable - - Indicates that the key is not exportable. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - System.Int32 - - System.Int32 - - - None - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - System.String - - System.String - - - RSA - - - KeyUsage - - Specifies the key usages in the certificate. - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - - None - - - RenewAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiry after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - RenewAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ReuseKeyOnRenewal - - Indicates that the certificate reuse the key during renewal. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - SecretContentType - - Specifies the content type of the new key vault secret. The acceptable values for this parameter are: - application/x-pkcs12 - - application/x-pem-file - - System.String - - System.String - - - None - - - SubjectName - - Specifies the subject name of the certificate. - > [!NOTE] > If you must use a comma (,) or a period (.) within a property in the `SubjectName` parameter, > you must enclose the property field in quotation marks. For example, you may use O="Contoso, Ltd." in the Organization Name field. - - System.String - - System.String - - - None - - - ValidityInMonths - - Specifies the number of months the certificate is valid. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] - - - - - - - - System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] - - - - - - - - System.Management.Automation.SwitchParameter - - - - - - - - System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]] - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - - - - - - - - - - - - ------------ Example 1: Create a certificate policy ------------ - New-AzKeyVaultCertificatePolicy -SecretContentType "application/x-pkcs12" -SubjectName "CN=contoso.com" -IssuerName "Self" -ValidityInMonths 6 -ReuseKeyOnRenewal - -SecretContentType : application/x-pkcs12 -Kty : -KeySize : 2048 -Curve : -Exportable : -ReuseKeyOnRenewal : True -SubjectName : CN=contoso.com -DnsNames : -KeyUsage : -Ekus : -ValidityInMonths : 6 -IssuerName : Self -CertificateType : -RenewAtNumberOfDaysBeforeExpiry : -RenewAtPercentageLifetime : -EmailAtNumberOfDaysBeforeExpiry : -EmailAtPercentageLifetime : -CertificateTransparency : -Enabled : True -Created : -Updated : - - This command creates a certificate policy that is valid for six months and reuses the key to renew the certificate. - - - - - - -------------------------- Example 2 -------------------------- - New-AzKeyVaultCertificatePolicy -IssuerName 'Self' -KeyType RSA -RenewAtNumberOfDaysBeforeExpiry <Int32> -SecretContentType application/x-pkcs12 -SubjectName 'CN=contoso.com' -ValidityInMonths 6 - - - - - - - - Example 3: Create a Subject Alternate Name (or SAN) certificate - New-AzKeyVaultCertificatePolicy -SecretContentType "application/x-pkcs12" -SubjectName "CN=contoso.com" -DnsName "contoso.com","support.contoso.com","docs.contoso.com" -IssuerName "Self" - -SecretContentType : application/x-pkcs12 -Kty : RSA -KeySize : 2048 -Curve : -Exportable : -ReuseKeyOnRenewal : False -SubjectName : CN=contoso.com -DnsNames : {contoso.com, support.contoso.com, docs.contoso.com} -KeyUsage : -Ekus : -ValidityInMonths : -IssuerName : Self -CertificateType : -RenewAtNumberOfDaysBeforeExpiry : -RenewAtPercentageLifetime : -EmailAtNumberOfDaysBeforeExpiry : -EmailAtPercentageLifetime : -CertificateTransparency : -Enabled : True -Created : -Updated : - - This example creates a SAN certificate with 3 DNS names. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultcertificatepolicy - - - Get-AzKeyVaultCertificatePolicy - - - - Set-AzKeyVaultCertificatePolicy - - - - - - - New-AzKeyVaultManagedHsm - New - AzKeyVaultManagedHsm - - Creates a managed HSM. - - - - The New-AzKeyVaultManagedHsm cmdlet creates a managed HSM in the specified resource group. To add, remove, or list keys in the managed HSM, user should: 1. grant permissions by adding user ID to Administrator; 2. add role assignment for user like "Managed HSM Crypto User" and so on; 3. back up security domain data of a managed HSM using `Export-AzKeyVaultSecurityDomain`. - - - - New-AzKeyVaultManagedHsm - - Name - - Specifies a name of the managed HSM to create. The name can be any combination of letters, digits, or hyphens. The name must start and end with a letter or digit. The name must be universally unique. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of an existing resource group in which to create the key vault. - - System.String - - System.String - - - None - - - Location - - Specifies the Azure region in which to create the key vault. Use the command Get-AzResourceProvider with the ProviderNamespace parameter to see your choices. - - System.String - - System.String - - - None - - - Administrator - - Initial administrator object id for this managed HSM pool. - - System.String[] - - System.String[] - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnablePurgeProtection - - specifying whether protection against purge is enabled for this managed HSM pool. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. - - - System.Management.Automation.SwitchParameter - - - False - - - PublicNetworkAccess - - Controls permission for data plane traffic coming from public networks while private endpoint is enabled. - - System.String - - System.String - - - None - - - Sku - - Specifies the SKU of the managed HSM instance. - - System.String - - System.String - - - None - - - SoftDeleteRetentionInDays - - Specifies how long the deleted managed hsm pool is retained, and how long until the managed hsm pool in the deleted state can be purged. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentity - - The set of user assigned identities associated with the managed HSM. Its value will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Administrator - - Initial administrator object id for this managed HSM pool. - - System.String[] - - System.String[] - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnablePurgeProtection - - specifying whether protection against purge is enabled for this managed HSM pool. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Location - - Specifies the Azure region in which to create the key vault. Use the command Get-AzResourceProvider with the ProviderNamespace parameter to see your choices. - - System.String - - System.String - - - None - - - Name - - Specifies a name of the managed HSM to create. The name can be any combination of letters, digits, or hyphens. The name must start and end with a letter or digit. The name must be universally unique. - - System.String - - System.String - - - None - - - PublicNetworkAccess - - Controls permission for data plane traffic coming from public networks while private endpoint is enabled. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of an existing resource group in which to create the key vault. - - System.String - - System.String - - - None - - - Sku - - Specifies the SKU of the managed HSM instance. - - System.String - - System.String - - - None - - - SoftDeleteRetentionInDays - - Specifies how long the deleted managed hsm pool is retained, and how long until the managed hsm pool in the deleted state can be purged. - - System.Int32 - - System.Int32 - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentity - - The set of user assigned identities associated with the managed HSM. Its value will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.String[] - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - - - - - - - ---------- Example 1: Create a StandardB1 managed HSM ---------- - New-AzKeyVaultManagedHsm -Name 'myhsm' -ResourceGroupName 'myrg1' -Location 'eastus2euap' -Administrator "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -SoftDeleteRetentionInDays 70 - -Name Resource Group Name Location SKU ----- ------------------- -------- --- -myhsm myrg1 eastus2euap StandardB1 - - This command creates a managed HSM named myhsm in the location eastus2euap. The command adds the managed HSM to the resource group named myrg1. Because the command does not specify a value for the SKU parameter, it creates a Standard_B1 managed HSM. - - - - - - ---------- Example 2: Create a CustomB32 managed HSM ---------- - New-AzKeyVaultManagedHsm -Name 'myhsm' -ResourceGroupName 'myrg1' -Location 'eastus2euap' -Administrator "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Sku 'CustomB32' -SoftDeleteRetentionInDays 70 - -Name Resource Group Name Location SKU - ----- ------------------- -------- --- -myhsm myrg1 eastus2euap CustomB32 - - This command creates a managed HSM, just like the previous example. However, it specifies a value of CustomB32 for the SKU parameter to create a CustomB32 managed HSM. - - - - - - Example 3: Create a managed HSM with an user assigned identity - New-AzKeyVaultManagedHsm -Name 'myhsm' -ResourceGroupName 'myrg1' -Location 'eastus2euap' -Administrator "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"-SoftDeleteRetentionInDays 70 -UserAssignedIdentity /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName | Format-List - -Managed HSM Name : myhsm -Resource Group Name : myrg1 -Location : eastus2euap -Resource ID : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/bez-rg/pro - viders/Microsoft.KeyVault/managedHSMs/bezmhsm -HSM Pool URI : -Tenant ID : 00001111-aaaa-2222-bbbb-3333cccc4444 -Initial Admin Object Ids : {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} -SKU : StandardB1 -Soft Delete Enabled? : True -Enabled Purge Protection? : False -Soft Delete Retention Period (days) : 70 -Public Network Access : Enabled -IdentityType : UserAssigned -UserAssignedIdentities : /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName -Provisioning State : Succeeded -Status Message : The Managed HSM is provisioned and ready to use. -Security Domain ActivationStatus : Active -Security Domain ActivationStatusMessage : Your HSM has been activated and can be used for cryptographic operations. -Regions : -Tags - - This command creates a managed HSM with an user assigned identity. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultmanagedhsm - - - Get-AzKeyVaultManagedHsm - - - - Remove-AzKeyVaultManagedHsm - - - - Update-AzKeyVaultManagedHsm - - - - Undo-AzKeyVaultManagedHsmRemoval - - - - - - - New-AzKeyVaultNetworkRuleSetObject - New - AzKeyVaultNetworkRuleSetObject - - Create an object representing the network rule settings. - - - - Create an object representing the network rule settings that can be used when creating a vault. - - - - New-AzKeyVaultNetworkRuleSetObject - - Bypass - - Specifies bypass of network rule. - - - None - AzureServices - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum - - - None - - - DefaultAction - - Specifies default action of network rule. - - - Allow - Deny - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - - - - Bypass - - Specifies bypass of network rule. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum - - - None - - - DefaultAction - - Specifies default action of network rule. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - $frontendSubnet = New-AzVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "110.0.1.0/24" -ServiceEndpoint Microsoft.KeyVault -$virtualNetwork = New-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG -Location westus -AddressPrefix "110.0.0.0/16" -Subnet $frontendSubnet -$myNetworkResId = (Get-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG).Subnets[0].Id -$ruleSet = New-AzKeyVaultNetworkRuleSetObject -DefaultAction Allow -Bypass AzureServices -IpAddressRange "110.0.1.0/24" -VirtualNetworkResourceId $myNetworkResId -New-AzKeyVault -ResourceGroupName "myRg" -VaultName "myVault" -NetworkRuleSet $ruleSet - - Creating a new vault and specifies network rules to allow access to the specified IP address from the virtual network identified by $myNetworkResId. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultnetworkrulesetobject - - - - - - New-AzKeyVaultRoleAssignment - New - AzKeyVaultRoleAssignment - - Assigns the specified RBAC role to the specified principal, at the specified scope. - - - - Use the `New-AzKeyVaultRoleAssignment` command to grant access. Access is granted by assigning the appropriate RBAC role to them at the right scope. The subject of the assignment must be specified. To specify a user, use SignInName or Microsoft Entra ObjectId parameters. To specify a security group, use Microsoft Entra ObjectId parameter. And to specify a Microsoft Entra application, use ApplicationId or ObjectId parameters. The role that is being assigned must be specified using the RoleDefinitionName pr RoleDefinitionId parameter. The scope at which access is being granted may be specified. It defaults to the selected subscription. - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /directoryObjects/{id} - - GET /users/{id} - - GET /servicePrincipals/{id} - - GET /servicePrincipals - - GET /groups/{id} - - - - New-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - New-AzKeyVaultRoleAssignment -HsmName bez-hsm -RoleDefinitionName "Managed Hsm Crypto User" -ObjectId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - - This example assigns role "Managed Hsm Crypto User" to user "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" at top scope. If user wants to perform operations on keys. "Managed Hsm Crypto *" role is required for that user. - - - - - - -------------------------- Example 2 -------------------------- - New-AzKeyVaultRoleAssignment -HsmName myHsm -RoleDefinitionName "Managed HSM Policy Administrator" -SignInName user1@microsoft.com - -RoleDefinitionName DisplayName ObjectType Scope ------------------- ----------- ---------- ----- -Managed HSM Policy Administrator User 1 (user1@microsoft.com) User / - - This example assigns role "Managed HSM Policy Administrator" to user "user1@microsoft.com" at top scope. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultroleassignment - - - - - - New-AzKeyVaultRoleDefinition - New - AzKeyVaultRoleDefinition - - Creates a custom role definition on an HSM. - - - - The `New-AzKeyVaultRoleDefinition` cmdlet creates a custom role in Azure Role-Based Access Control of an Azure KeyVault managed HSM. - Provide either a JSON role definition file or a `PSKeyVaultRoleDefinition` object as input. First, use the `Get-AzKeyVaultRoleDefinition` command to generate a baseline role definition object. Then, modify its properties as required. Finally, use this command to create a custom role using role definition. - - - - New-AzKeyVaultRoleDefinition - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - InputFile - - File name containing a single role definition. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzKeyVaultRoleDefinition - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - Role - - A role definition object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - InputFile - - File name containing a single role definition. - - System.String - - System.String - - - None - - - Role - - A role definition object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - $role = Get-AzKeyVaultRoleDefinition -HsmName myHsm -RoleDefinitionName 'Managed HSM Crypto User' -$role.Name = $null -$role.RoleName = "my custom role" -$role.Description = "description for my role" -$role.Permissions[0].DataActions = @("Microsoft.KeyVault/managedHsm/roleAssignments/write/action", "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action") # todo -New-AzKeyVaultRoleDefinition -HsmName myHsm -Role $role - - This example uses the predefined "Managed HSM Crypto User" role as a template to create a custom role. - - - - - - -------------------------- Example 2 -------------------------- - Get-AzKeyVaultRoleDefinition -HsmName myHsm -RoleDefinitionName 'Managed HSM Crypto User' | ConvertTo-Json -Depth 9 > C:\Temp\roleDefinition.json -# Edit roleDefinition.json. Make sure to clear "Name" so as not to overwrite an existing role. -New-AzKeyVaultRoleDefinition -HsmName myHsm -InputFile C:\Temp\roleDefinition.json - - This example uses a JSON file as the input of the custom role. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/new-azkeyvaultroledefinition - - - - - - Remove-AzKeyVault - Remove - AzKeyVault - - Deletes a key vault. - - - - The Remove-AzKeyVault cmdlet deletes the specified key vault. It also deletes all keys and secrets contained in that instance. Note that although specifying the resource group is optional for this cmdlet, you should so for better performance. - - - - Remove-AzKeyVault - - InputObject - - Key Vault object to be deleted. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVault - - InputObject - - Key Vault object to be deleted. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted vault permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVault - - VaultName - - Specifies the name of the key vault to remove. - - System.String - - System.String - - - None - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted vault permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVault - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted vault permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVault - - VaultName - - Specifies the name of the key vault to remove. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVault - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the key vault. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Key Vault object to be deleted. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InRemovedState - - Remove the previously deleted vault permanently. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Location - - The location of the deleted vault. - - System.String - - System.String - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault to remove. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ---------------- Example 1: Remove a key vault ---------------- - Remove-AzKeyVault -VaultName "Contoso03Vault" -PassThru - -True - - This command removes the key vault named Contoso03Vault from your current subscription. - - - - - - Example 2: Remove a key vault from a specified resource group - Remove-AzKeyVault -Name "Contoso03Vault" -ResourceGroupName "Group14" -PassThru - -True - - This command removes the key vault named Contoso03Vault from the named resource group. If you do not specify the resource group name, the cmdlet searches for the named key vault to delete in your current subscription. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvault - - - Get-AzKeyVault - - - - New-AzKeyVault - - - - - - - Remove-AzKeyVaultAccessPolicy - Remove - AzKeyVaultAccessPolicy - - Removes all permissions for a user or application from a key vault. - - - - The Remove-AzKeyVaultAccessPolicy cmdlet removes all permissions for a user or application or for all users and applications from a key vault. Even if you remove all permissions, the owner of the Azure subscription that contains the key vault can add permissions to the key vault. Note that although specifying the resource group is optional for this cmdlet, you should do so for better performance. - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /directoryObjects/{id} - - GET /users/{id} - - GET /users - - GET /servicePrincipals/{id} - - GET /servicePrincipals - - GET /groups/{id} - - - - Remove-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of the key vault. This cmdlet removes permissions for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. - - System.String - - System.String - - - None - - - ApplicationId - - Specifies the ID of application whose permissions should be removed - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to remove permissions. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - InputObject - - Key Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - ApplicationId - - Specifies the ID of application whose permissions should be removed - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to remove permissions. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - ApplicationId - - Specifies the ID of application whose permissions should be removed - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to remove permissions. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of the key vault. This cmdlet removes permissions for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user whose access you want to remove. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - InputObject - - Key Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user whose access you want to remove. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user whose access you want to remove. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of the key vault. This cmdlet removes permissions for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledForDeployment - - If specified, disables the retrieval of secrets from this key vault by the Microsoft.Compute resource provider when referenced in resource creation. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - If specified, disables the retrieval of secrets from this key vault by Azure Disk Encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - If specified, disables the retrieval of secrets from this key vault by Azure Resource Manager when referenced in templates. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - InputObject - - Key Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledForDeployment - - If specified, disables the retrieval of secrets from this key vault by the Microsoft.Compute resource provider when referenced in resource creation. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - If specified, disables the retrieval of secrets from this key vault by Azure Disk Encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - If specified, disables the retrieval of secrets from this key vault by Azure Resource Manager when referenced in templates. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledForDeployment - - If specified, disables the retrieval of secrets from this key vault by the Microsoft.Compute resource provider when referenced in resource creation. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - If specified, disables the retrieval of secrets from this key vault by Azure Disk Encryption. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - If specified, disables the retrieval of secrets from this key vault by Azure Resource Manager when referenced in templates. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - InputObject - - Key Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - ServicePrincipalName - - Specifies the service principal name of the application whose permissions you want to remove. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - InputObject - - Key Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user whose access you want to remove. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of the key vault. This cmdlet removes permissions for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user whose access you want to remove. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of the key vault. This cmdlet removes permissions for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - ServicePrincipalName - - Specifies the service principal name of the application whose permissions you want to remove. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - ServicePrincipalName - - Specifies the service principal name of the application whose permissions you want to remove. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultAccessPolicy - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user whose access you want to remove. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ApplicationId - - Specifies the ID of application whose permissions should be removed - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user whose access you want to remove. - - System.String - - System.String - - - None - - - EnabledForDeployment - - If specified, disables the retrieval of secrets from this key vault by the Microsoft.Compute resource provider when referenced in resource creation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - If specified, disables the retrieval of secrets from this key vault by Azure Disk Encryption. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - If specified, disables the retrieval of secrets from this key vault by Azure Resource Manager when referenced in templates. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Key Vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to remove permissions. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - ServicePrincipalName - - Specifies the service principal name of the application whose permissions you want to remove. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user whose access you want to remove. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault. This cmdlet removes permissions for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - ----------- Example 1: Remove permissions for a user ----------- - Remove-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -UserPrincipalName 'PattiFuller@contoso.com' -PassThru - -Vault Name : Contoso03Vault -Resource Group Name : myrg -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/contoso03vault -Vault URI : https://contoso03vault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : False -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : - Permissions to Secrets : - Permissions to Certificates : get, create - Permissions to (Key Vault Managed) Storage : - - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : - Virtual Network Rules : - -Tags : - - This command removes all the permissions that a user PattiFuller@contoso.com has on the key vault named Contoso03Vault. If -PassThru is specified, the KeyVault object is returned. - - - - - - ------- Example 2: Remove permissions for an application ------- - Remove-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ServicePrincipalName 'http://payroll.contoso.com' - - This command removes all the permissions that an application has on the key vault named Contoso03Vault. This example identifies the application by using the service principal name registered in Microsoft Entra ID, `http://payroll.contoso.com`. - - - - - - Example 3: Remove permissions for an application by using its object ID - Remove-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ObjectID 34595082-9346-41b6-8d6b-295a2808b8db - - This command removes all the permissions that an application has on the key vault named Contoso03Vault. This example identifies the application by the object ID of the service principal. - - - - - - Example 4: Remove permissions for the Microsoft.Compute resource provider - Remove-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -EnabledForDeployment - - This command removes permission for the Microsoft.Compute resource provider to get secrets from the Contoso03Vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultaccesspolicy - - - Set-AzKeyVaultAccessPolicy - - - - - - - Remove-AzKeyVaultCertificate - Remove - AzKeyVaultCertificate - - Removes a certificate from a key vault. - - - - The Remove-AzKeyVaultCertificate cmdlet removes a certificate from a key vault. - - - - Remove-AzKeyVaultCertificate - - InputObject - - Certificate Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - If present, removes the previously deleted certificate permanently - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultCertificate - - VaultName - - Specifies the name of the key vault from which this cmdlet removes a certificate. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate that this cmdlet removes from a key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a certificate based on the name that this parameter specifies, the name of the key vault, and your current environment. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - If present, removes the previously deleted certificate permanently - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Certificate Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - InRemovedState - - If present, removes the previously deleted certificate permanently - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the certificate that this cmdlet removes from a key vault. This cmdlet constructs the fully qualified domain name (FQDN) of a certificate based on the name that this parameter specifies, the name of the key vault, and your current environment. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Specifies the name of the key vault from which this cmdlet removes a certificate. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate - - - - - - - - - - - - - - --------------- Example 1: Remove a certificate --------------- - Remove-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "SelfSigned01" -PassThru -Force - -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 4/11/2018 4:28:39 PM - - [Not After] - 10/11/2018 4:38:39 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -KeyId : https://contosokv01.vault.azure.net:443/keys/selfsigned01/968c3920884a435abf8faea11f565456 -SecretId : https://contosokv01.vault.azure.net:443/secrets/selfsigned01/968c3920884a435abf8faea11f565456 -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -RecoveryLevel : Purgeable -ScheduledPurgeDate : -DeletedDate : -Enabled : True -Expires : 10/11/2018 11:38:39 PM -NotBefore : 4/11/2018 11:28:39 PM -Created : 4/11/2018 11:38:39 PM -Updated : 4/11/2018 11:38:39 PM -Tags : -VaultName : ContosoKV01 -Name : SelfSigned01 -Version : 968c3920884a435abf8faea11f565456 -Id : https://contosokv01.vault.azure.net:443/certificates/selfsigned01/968c3920884a435abf8faea11f565456 - - This command removes the certificate named SelfSigned01 from the key vault named ContosoKV01. This command specifies the Force parameter. Therefore, the cmdlet does not prompt you for confirmation. - - - - - - Example 2: Purge the deleted certificate from the key vault permanently - Remove-AzKeyVaultCertificate -VaultName 'Contoso' -Name 'MyCert' -InRemovedState - - This command permanently removes the certificate named 'MyCert' from the key vault named 'Contoso'. Executing this cmdlet requires the 'purge' permission, which must have been previously and explicitly granted to the user on this key vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultcertificate - - - Add-AzKeyVaultCertificate - - - - Get-AzKeyVaultCertificate - - - - Import-AzKeyVaultCertificate - - - - Undo-AzKeyVaultCertificateRemoval - - - - - - - Remove-AzKeyVaultCertificateContact - Remove - AzKeyVaultCertificateContact - - Deletes a contact that is registered for certificate notifications from a key vault. - - - - The Remove-AzKeyVaultCertificateContact cmdlet deletes a contact that is registered for certificate notifications from a key vault. - - - - Remove-AzKeyVaultCertificateContact - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - EmailAddress - - Specifies the email address of the contact to remove. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultCertificateContact - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - EmailAddress - - Specifies the email address of the contact to remove. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultCertificateContact - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - EmailAddress - - Specifies the email address of the contact to remove. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the email address of the contact to remove. - - System.String[] - - System.String[] - - - None - - - InputObject - - KeyVault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceId - - KeyVault Resource Id. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact - - - - - - - - - - - - - - ----------- Example 1: Remove a certificate contact ----------- - Remove-AzKeyVaultCertificateContact -VaultName "Contoso01" -EmailAddress "patti.fuller@contoso.com" -PassThru - -Email VaultName ------ --------- -user1@microsoft.com mvault2 -user2@microsoft.com mvault2 -user3@microsoft.com mvault2 -user4@microsoft.com mvault2 - - This command removes Patti Fuller as a certificate contact for the Contoso01 key vault. If PassThru is specified, the cmdlet returns the list of remaining certificate contacts. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultcertificatecontact - - - Add-AzKeyVaultCertificateContact - - - - Get-AzKeyVaultCertificateContact - - - - - - - Remove-AzKeyVaultCertificateIssuer - Remove - AzKeyVaultCertificateIssuer - - Deletes a certificate issuer from a key vault. - - - - The Remove-AzKeyVaultCertificateIssuer cmdlet deletes a certificate issuer from a key vault. - - - - Remove-AzKeyVaultCertificateIssuer - - InputObject - - Certificate Issuer Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultCertificateIssuer - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the issuer to remove. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Certificate Issuer Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - None - - - Name - - Specifies the name of the issuer to remove. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer - - - - - - - - - - - - - - ------------ Example 1: Remove a certificate issuer ------------ - Remove-AzKeyVaultCertificateIssuer -VaultName "ContosoKV01" -Name "TestIssuer01" -Force - -AccountId : -ApiKey : -OrganizationDetails : -Name : TestIssuer01 -IssuerProvider : test -VaultName : ContosoKV01 - - This command removes the certificate issuer named TestIssuer01 from the ContosoKV01 key vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultcertificateissuer - - - Get-AzKeyVaultCertificateIssuer - - - - Set-AzKeyVaultCertificateIssuer - - - - - - - Remove-AzKeyVaultCertificateOperation - Remove - AzKeyVaultCertificateOperation - - Deletes a certificate operation from a key vault. - - - - The Remove-AzKeyVaultCertificateOperation cmdlet deletes a certificate operation from a key vault. - - - - Remove-AzKeyVaultCertificateOperation - - InputObject - - Operation object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultCertificateOperation - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Operation object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - - - - - - - - - - - - ---------- Example 1: Remove a certificate operation ---------- - Remove-AzKeyVaultCertificateOperation -VaultName "ContosoKV01" -Name "TestCert01" -Force - -Id : https://contosokv01.vault.azure.net/certificates/testcert01/pending -Status : completed -StatusDetails : -RequestId : f5dfd2ae486149a594dc98e800dceaaa -Target : https://contosokv01.vault.azure.net/certificates/testcert01 -Issuer : Self -CancellationRequested : False -CertificateSigningRequest : MIICpjCCAY4CAQAwFjEUMBIGA1UEAxMLY29udG9zby5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC73w3VRBOlgJ5Od1PjDh+2ytngNZp+ZP4fkuX8K1Ti5LA6Ih7eWx1fgAN/iTb6l - 5K6LvAIJvsTNVePMNxfSdaEIJ70Inm45wVU4A/kf+UxQWAYVMsBrLtDFWxnVhzf6n7RGYke6HLBj3j5ASb9g+olSs6eON25ibF0t+u6JC+sIR0LmVGar9Q0eZys1rdfzJBIKq+laOM7z2pJijb5ANqve9 - i7rH5mnhQk4V8WsRstOhYR9jgLqSSxokDoeaBClIOidSBYqVc1yNv4ASe1UWUCR7ZK6OQXiecNWSWPmgWEyawu6AR9eb1YotCr2ScheMOCxlm3103luitxrd8A7kMjAgMBAAGgSzBJBgkqhkiG9w0BCQ4 - xPDA6MA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEAIHhsDJV37PKi8hor5eQf7+Tct1preIvSwqV0NF6Uo7O6 - YnC9Py7Wp7CHfKzuqeptUk2Tsu7B5dHB+o9Ypeeqw8fWhTN0GFGRKO7WjZQlDqL+lRNcjlFSaP022oIP0kmvVhBcmZqRQlALXccAaxEclFA/3y/aNj2gwWeKpH/pwAkZ39zMEzpQCaRfnQk7e3l4MV8cf - eC2HPYdRWkXxAeDcNPxBuVmKy49AzYvly+APNVDU3v66gxl3fIKrGRsKi2Cp/nO5rBxG2h8t+0Za4l/HJ7ZWR9wKbd/xg7JhdZZFVBxMHYzw8KQ0ys13x8HY+PXU92Y7yD3uC2Rcj+zbAf+Kg== - == -ErrorCode : -ErrorMessage : -Name : -VaultName : - - This command removes the certificate operation named TestCert01 from the ContosoKV01 key vault without prompting for confirmation. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultcertificateoperation - - - Get-AzKeyVaultCertificateOperation - - - - Stop-AzKeyVaultCertificateOperation - - - - - - - Remove-AzKeyVaultKey - Remove - AzKeyVaultKey - - Deletes a key in a key vault. - - - - The Remove-AzKeyVaultKey cmdlet deletes a key in a key vault. If the key was accidentally deleted the key can be recovered using Undo-AzKeyVaultKeyRemoval by a user with special 'recover' permissions. This cmdlet has a value of high for the ConfirmImpact property. - - - - Remove-AzKeyVaultKey - - Name - - Specifies the name of the key to remove. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InRemovedState - - Remove the previously deleted key permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey object. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultKey - - InputObject - - KeyBundle Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted key permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey object. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault from which to remove the key. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the key to remove. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted key permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey object. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InputObject - - KeyBundle Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - InRemovedState - - Remove the previously deleted key permanently. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the key to remove. This cmdlet constructs the fully qualified domain name (FQDN) of a key based on the name that this parameter specifies, the name of the key vault, and your current environment. - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey object. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Specifies the name of the key vault from which to remove the key. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey - - - - - - - - - - - - - - ----------- Example 1: Remove a key from a key vault ----------- - Remove-AzKeyVaultKey -VaultName 'Contoso' -Name 'ITSoftware' -PassThru - -Vault Name : contoso -Name : key2 -Id : https://contoso.vault.azure.net:443/keys/itsoftware/fdad15793ba0437e960497908ef9eb32 -Deleted Date : 5/24/2018 11:28:25 PM -Scheduled Purge Date : 8/22/2018 11:28:25 PM -Enabled : False -Expires : 10/11/2018 11:32:49 PM -Not Before : 4/11/2018 11:22:49 PM -Created : 4/12/2018 10:16:38 PM -Updated : 4/12/2018 10:16:38 PM -Purge Disabled : False -Tags : - - This command removes the key named ITSoftware from the key vault named Contoso. - - - - - - ------ Example 2: Remove a key without user confirmation ------ - Remove-AzKeyVaultKey -VaultName 'Contoso' -Name 'ITSoftware' -Force - - This command removes the key named ITSoftware from the key vault named Contoso. The command specifies the Force parameter, and, therefore, the cmdlet does not prompt you for confirmation. - - - - - - Example 3: Purge a deleted key from the key vault permanently - Remove-AzKeyVaultKey -VaultName 'Contoso' -Name 'ITSoftware' -InRemovedState - - This command removes the key named ITSoftware from the key vault named Contoso permanently. Executing this cmdlet requires the 'purge' permission, which must have been previously and explicitly granted to the user for this key vault. - - - - - - ---- Example 4: Remove keys by using the pipeline operator ---- - Get-AzKeyVaultKey -VaultName 'Contoso' | Where-Object {$_.Attributes.Enabled -eq $False} | Remove-AzKeyVaultKey - - This command gets all the keys in the key vault named Contoso, and passes them to the Where-Object cmdlet by using the pipeline operator. That cmdlet passes the keys that have a value of $False for the Enabled attribute to the current cmdlet. That cmdlet removes those keys. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultkey - - - Add-AzKeyVaultKey - - - - Get-AzKeyVaultKey - - - - Undo-AzKeyVaultKeyRemoval - - - - - - - Remove-AzKeyVaultManagedHsm - Remove - AzKeyVaultManagedHsm - - Deletes/Purges a managed HSM. - - - - The Remove-AzKeyVaultManagedHsm cmdlet deletes the specified managed HSM. It also deletes all keys contained in that instance. Note that although specifying the resource group is optional for this cmdlet, you should so for better performance. - - - - Remove-AzKeyVaultManagedHsm - - InputObject - - Managed HSM object to be deleted. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedHsm - - InputObject - - Managed HSM object to be deleted. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted managed HSM pool permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedHsm - - Name - - Specifies the name of the managed HSM to remove. - - System.String - - System.String - - - None - - - Location - - The location of the deleted managed HSM pool. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted managed HSM pool permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedHsm - - ResourceId - - ManagedHsm Resource Id. - - System.String - - System.String - - - None - - - Location - - The location of the deleted managed HSM pool. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Remove the previously deleted managed HSM pool permanently. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedHsm - - Name - - Specifies the name of the managed HSM to remove. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of resource group for Azure managed HSM to remove. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedHsm - - ResourceId - - ManagedHsm Resource Id. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that the cmdlet does not prompt you for confirmation. By default, this cmdlet prompts you to confirm that you want to delete the managed HSM. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Managed HSM object to be deleted. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - InRemovedState - - Remove the previously deleted managed HSM pool permanently. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Location - - The location of the deleted managed HSM pool. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the managed HSM to remove. - - System.String - - System.String - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of resource group for Azure managed HSM to remove. - - System.String - - System.String - - - None - - - ResourceId - - ManagedHsm Resource Id. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - System.String - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - --------------- Example 1: Remove a managed HSM --------------- - Remove-AzKeyVaultManagedHsm -HsmName 'myhsm' -Force - -True - - This command removes the managed HSM named myhsm from your current subscription. - - - - - - Example 2: Remove a managed hsm from a specified resource group - Remove-AzKeyVaultManagedHsm -HsmName 'myhsm' -ResourceGroupName "myrg1" -PassThru - -True - - This command removes the managed HSM named myhsm from the resource group named myrg1. If you do not specify the resource group name, the cmdlet searches for the named managed HSM to delete in your current subscription. - - - - - - ------------ Example 3: Purge a deleted managed hsm ------------ - Remove-AzKeyVaultManagedHsm -Name 'myhsm' -Location "eastus" -Force -PassThru - -True - - This command purges the managed HSM named myhsm located at eastus. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultmanagedhsm - - - Get-AzKeyVaultManagedHsm - - - - New-AzKeyVaultManagedHsm - - - - Update-AzKeyVaultManagedHsm - - - - Undo-AzKeyVaultManagedHsmRemoval - - - - - - - Remove-AzKeyVaultManagedStorageAccount - Remove - AzKeyVaultManagedStorageAccount - - Removes a Key Vault managed Azure Storage Account and all associated SAS definitions. - - - - Disassociates an Azure Storage Account from Key Vault. This does not remove an Azure Storage Account but removes the account keys from being managed by Azure Key Vault. All associated Key Vault managed Storage SAS definitions are also removed. - - - - Remove-AzKeyVaultManagedStorageAccount - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Permanently remove the previously deleted managed storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedStorageAccount - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - InRemovedState - - Permanently remove the previously deleted managed storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - InRemovedState - - Permanently remove the previously deleted managed storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount - - - - - - - - - - - - - - Example 1: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions. - Remove-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -PassThru - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - - Disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account 'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed. - - - - - - Example 2: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions without user confirmation. - Remove-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -PassThru -Force - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - - Disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account 'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed. - - - - - - Example 3: Permanently delete (purge) a Key Vault managed Azure Storage Account and all associated SAS definitions from a soft-delete-enabled vault. - Remove-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -Get-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -InRemovedState -Remove-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -InRemovedState - - The example assumes that soft-delete is enabled for this vault. Verify whether that is the case by examining the vault properties, or the RecoveryLevel attribute of an entity in the vault. The first cmdlet disassociates Azure Storage Account 'mystorageaccount' from Key Vault 'myvault' and stops Key Vault from managing its keys. The account 'mystorageaccount' will not be removed. All Key Vault managed Storage SAS definitions associated with this account will be removed. The second cmdlet verifies that the storage account is in a deleted, but recoverable state. Reaching this state may require some time, please allow ~30s before attempting. The third cmdlet permanently removes the storage account - recovery will no longer be possible. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultmanagedstorageaccount - - - Azure Key Vault PowerShell cmdlets - - - - - - - Remove-AzKeyVaultManagedStorageSasDefinition - Remove - AzKeyVaultManagedStorageSasDefinition - - Removes a Key Vault managed Azure Storage SAS definitions. - - - - Removes a Key Vault managed Azure Storage SAS definitions. This also removes the secret used to get the SAS token per this SAS definition. - - - - Remove-AzKeyVaultManagedStorageSasDefinition - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and storage account name. - - System.String - - System.String - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultManagedStorageSasDefinition - - InputObject - - ManagedStorageSasDefinition object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - ManagedStorageSasDefinition object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition - - - - - - - - - - - - - - Example 1: Remove a Key Vault managed Azure Storage SAS definition. - Remove-AzKeyVaultManagedStorageSasDefinition -VaultName 'myvault' -AccountName 'mystorageaccount' -Name 'mysasdef' -PassThru - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount/sas/mysasdef -Vault Name : myvault -AccountName : mystorageaccount -Name : mysasdef -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - - Removes a Key Vault managed Storage SAS definition 'mysasdef' associated with the account 'mystorageaccount' in vault 'myvault'. - - - - - - Example 2: Remove a Key Vault managed Azure Storage SAS definition without user confirmation. - Remove-AzKeyVaultManagedStorageSasDefinition -VaultName 'myvault' -AccountName 'mystorageaccount' -Name 'mysasdef' -PassThru -Force - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount/sas/mysasdef -Vault Name : myvault -AccountName : mystorageaccount -Name : mysasdef -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - - Removes a Key Vault managed Storage SAS definition 'mysasdef' associated with the account 'mystorageaccount' in vault 'myvault'. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultmanagedstoragesasdefinition - - - Get-AzKeyVaultManagedStorageSasDefinition - - - - Set-AzKeyVaultManagedStorageSasDefinition - - - - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - - - - - - - Remove-AzKeyVaultNetworkRule - Remove - AzKeyVaultNetworkRule - - Removes a network rule from a key vault. - - - - Removes a network rule from a key vault. - - - - Remove-AzKeyVaultNetworkRule - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultNetworkRule - - VaultName - - Specifies the name of a key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultNetworkRule - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - $myNetworkResId = (Get-AzVirtualNetwork -Name myVNetName -ResourceGroupName myRG).Subnets[0].Id -Remove-AzKeyVaultNetworkRule -VaultName myVault -IpAddressRange "10.0.0.1/26" -VirtualNetworkResourceId $myNetworkResId -PassThru - -Vault Name : myVault -Resource Group Name : myrg -Location : West US -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/myvault -Vault URI : https://myvault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : False -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : get, create, delete, list, update, - import, backup, restore, recover - Permissions to Secrets : get, list, set, delete, backup, - restore, recover - Permissions to Certificates : get, delete, list, create, import, - update, deleteissuers, getissuers, listissuers, managecontacts, manageissuers, - setissuers, recover, backup, restore - Permissions to (Key Vault Managed) Storage : delete, deletesas, get, getsas, list, - listsas, regeneratekey, set, setsas, update, recover, backup, restore - - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : - Virtual Network Rules : - -Tags : - - This command removes a network rule from the specified vault, provided a rule is found matching the specified IP address and the virtual network resource identifier. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultnetworkrule - - - - - - Remove-AzKeyVaultRoleAssignment - Remove - AzKeyVaultRoleAssignment - - Removes a role assignment to the specified principal who is assigned to a particular role at a particular scope. - - - - Use the `Remove-AzKeyVaultRoleAssignment` cmdlet to revoke access to any principal at given scope and given role. The object of the assignment i.e. the principal MUST be specified. The principal can be a user (use SignInName or ObjectId parameters to identify a user), security group (use ObjectId parameter to identify a group) or service principal (use ApplicationId or ObjectId parameters to identify a ServicePrincipal. The role that the principal is assigned to MUST be specified using the RoleDefinitionName or RoleDefinitionId parameter. - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /users/{id} - - GET /servicePrincipals - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleAssignmentName - - Name of the role assignment. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleAssignment - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Role assignment object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ApplicationId - - The app SPN. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - InputObject - - Role assignment object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - None - - - ObjectId - - The user or group object id. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RoleAssignmentName - - Name of the role assignment. - - System.String - - System.String - - - None - - - RoleDefinitionId - - Role Id the principal is assigned to. - - System.String - - System.String - - - None - - - RoleDefinitionName - - Name of the RBAC role to assign the principal with. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. '/' is used when omitted. - - System.String - - System.String - - - None - - - SignInName - - The user SignInName. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Remove-AzKeyVaultRoleAssignment -HsmName myHsm -RoleDefinitionName "Managed HSM Policy Administrator" -SignInName user1@microsoft.com -Scope "/keys" - - This example revokes "Managed HSM Policy Administrator" role of "user1@microsoft.com" at "/keys" scope. - - - - - - -------------------------- Example 2 -------------------------- - Get-AzKeyVaultRoleAssignment -HsmName myHsm -SignInName user1@microsoft.com | Remove-AzKeyVaultRoleAssignment - - This example revokes all roles of "user1@microsoft.com" at all scopes. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultroleassignment - - - - - - Remove-AzKeyVaultRoleDefinition - Remove - AzKeyVaultRoleDefinition - - Removes a custom role definition from an HSM. - - - - The `Remove-AzKeyVaultRoleDefinition` cmdlet deletes a custom role in Azure Role-Based Access Control of Azure KeyVault managed HSM. Provide the `-RoleName` parameter of an existing custom role or a role object to delete that custom role. By default, `Remove-AzKeyVaultRoleDefinition` prompts you for confirmation. To suppress the prompt, use the `-Force` parameter. - - - - Remove-AzKeyVaultRoleDefinition - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirm. - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - The object representing the role definition to be removed. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - None - - - PassThru - - This cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzKeyVaultRoleDefinition - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirm. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - This cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - - System.Management.Automation.SwitchParameter - - - False - - - RoleName - - Name of the role definition to get. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirm. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - InputObject - - The object representing the role definition to be removed. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - None - - - PassThru - - This cmdlet does not return an object by default. If this switch is specified, it returns true if successful. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RoleName - - Name of the role definition to get. - - System.String - - System.String - - - None - - - Scope - - Scope at which the role assignment or definition applies to, e.g., '/' or '/keys' or '/keys/{keyName}'. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Remove-AzKeyVaultRoleDefinition -HsmName myHsm -RoleName "my role" - - This example removes a custom role named "my role". - - - - - - -------------------------- Example 2 -------------------------- - $role = Get-AzKeyVaultRoleDefinition -HsmName myHsm -RoleName "my role" -$role | Remove-AzKeyVaultRoleDefinition -HsmName myHsm -Force - - This example removes a custom role named "my role" by piping the role object. It also suppress the prompt by `-Force`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultroledefinition - - - - - - Remove-AzKeyVaultSecret - Remove - AzKeyVaultSecret - - Deletes a secret in a key vault. - - - - The Remove-AzKeyVaultSecret cmdlet deletes a secret in a key vault. If the secret was accidentally deleted the secret can be recovered using Undo-AzKeyVaultSecretRemoval by a user with special 'recover' permissions. This cmdlet has a value of high for the ConfirmImpact property. - - - - Remove-AzKeyVaultSecret - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - SwitchParameter - - - False - - - InRemovedState - - If present, removes the previously deleted secret permanently. - - - SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.Secret object. By default, this cmdlet does not generate any output. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Remove-AzKeyVaultSecret - - InputObject - - Key Vault Secret Object - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - SwitchParameter - - - False - - - InRemovedState - - If present, removes the previously deleted secret permanently. - - - SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.Secret object. By default, this cmdlet does not generate any output. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Remove-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - Name - - Specifies the name of a secret. This cmdlet constructs the fully qualified domain name (FQDN) of a secret based on the name that this parameter specifies, the name of the key vault, and your current environment. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - SwitchParameter - - - False - - - InRemovedState - - If present, removes the previously deleted secret permanently. - - - SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.Secret object. By default, this cmdlet does not generate any output. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - False - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InRemovedState - - If present, removes the previously deleted secret permanently. - - SwitchParameter - - SwitchParameter - - - False - - - InputObject - - Key Vault Secret Object - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - Name - - Specifies the name of a secret. This cmdlet constructs the fully qualified domain name (FQDN) of a secret based on the name that this parameter specifies, the name of the key vault, and your current environment. - - String - - String - - - None - - - PassThru - - Indicates that this cmdlet returns a Microsoft.Azure.Commands.KeyVault.Models.Secret object. By default, this cmdlet does not generate any output. - - SwitchParameter - - SwitchParameter - - - False - - - VaultName - - Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret - - - - - - - - - - - - - - --------- Example 1: Remove a secret from a key vault --------- - Remove-AzKeyVaultSecret -VaultName 'Contoso' -Name 'FinanceSecret' -PassThru - -Vault Name : Contoso -Name : FinanceSecret -Version : f622abc7b1394092812f1eb0f85dc91c -Id : https://contoso.vault.azure.net:443/secrets/financesecret/f622abc7b1394092812f1eb0f85dc91c -Deleted Date : 5/25/2018 4:45:34 PM -Scheduled Purge Date : 8/23/2018 4:45:34 PM -Enabled : True -Expires : -Not Before : -Created : 4/19/2018 5:56:02 PM -Updated : 4/26/2018 7:48:40 PM -Content Type : -Tags : - - This command removes the secret named FinanceSecret from the key vault named Contoso.' - - - - - - Example 2: Remove a secret from a key vault without user confirmation - Remove-AzKeyVaultSecret -VaultName 'Contoso' -Name 'FinanceSecret' -PassThru -Force - -Vault Name : Contoso -Name : FinanceSecret -Version : f622abc7b1394092812f1eb0f85dc91c -Id : https://contoso.vault.azure.net:443/secrets/financesecret/f622abc7b1394092812f1eb0f85dc91c -Deleted Date : 5/25/2018 4:45:34 PM -Scheduled Purge Date : 8/23/2018 4:45:34 PM -Enabled : True -Expires : -Not Before : -Created : 4/19/2018 5:56:02 PM -Updated : 4/26/2018 7:48:40 PM -Content Type : -Tags : - - This command removes the secret named FinanceSecret from the key vault named Contoso. The command specifies the Force and Confirm parameters, and, therefore, the cmdlet does not prompt you for confirmation. - - - - - - --- Example 3: Remove a secret from a key vault (using uri) --- - Remove-AzKeyVaultSecret -Id 'https://contoso.vault.azure.net:443/secrets/financesecret' -PassThru - -Vault Name : Contoso -Name : FinanceSecret -Version : f622abc7b1394092812f1eb0f85dc91c -Id : https://contoso.vault.azure.net:443/secrets/financesecret/f622abc7b1394092812f1eb0f85dc91c -Deleted Date : 5/25/2018 4:45:34 PM -Scheduled Purge Date : 8/23/2018 4:45:34 PM -Enabled : True -Expires : -Not Before : -Created : 4/19/2018 5:56:02 PM -Updated : 4/26/2018 7:48:40 PM -Content Type : -Tags : - - This command removes the secret named 'FinanceSecret' from the key vault named 'Contoso'. - - - - - - Example 4: Remove a secret in Azure Key Vault by command Remove-Secret in module Microsoft.PowerShell.SecretManagement - # Install module Microsoft.PowerShell.SecretManagement -Install-Module Microsoft.PowerShell.SecretManagement -Repository PSGallery -AllowPrerelease -# Register vault for Secret Management -Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @{ AZKVaultName = 'test-kv'; SubscriptionId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' } -# Set secret for vault AzKeyVault -$secure = ConvertTo-SecureString -String "****" -AsPlainText -Force -Set-Secret -Vault AzKeyVault -Name secureSecret -SecureStringSecret $secure -Remove-Secret -Vault AzKeyVault -Name secureSecret - -None - - This example removes a secret named `secureSecret` in Azure Key Vault `test-kv` by command `Remove-Secret` in module `Microsoft.PowerShell.SecretManagement`. - - - - - - Example 4: Purge deleted secret from the key vault permanently - Remove-AzKeyVaultSecret -VaultName 'Contoso' -Name 'FinanceSecret' -InRemovedState - - This command removes the secret named FinanceSecret from the key vault named Contoso permanently. Executing this cmdlet requires the 'purge' permission, which must have been previously and explicitly granted to the user for this key vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/remove-azkeyvaultsecret - - - Get-AzKeyVaultSecret - - - - Set-AzKeyVaultSecret - - - - Undo-AzKeyVaultSecretRemoval - - - - - - - Restore-AzKeyVault - Restore - AzKeyVault - - Fully restores a managed HSM from backup. - - - - Fully restores a managed HSM from a backup stored in a storage account. Use `Backup-AzKeyVault` to backup. - - - - Restore-AzKeyVault - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - BackupFolder - - Folder name of the backup, e.g. 'mhsm-*-2020101309020403'. It can also be nested such as 'backups/mhsm-*-2020101309020403'. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - KeyName - - Key name to restore. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageAccountName - - Name of the storage account where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerName - - Name of the blob container where the backup is going to be stored. - - System.String - - System.String - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVault - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - BackupFolder - - Folder name of the backup, e.g. 'mhsm-*-2020101309020403'. It can also be nested such as 'backups/mhsm-*-2020101309020403'. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - KeyName - - Key name to restore. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageContainerUri - - URI of the storage container where the backup is going to be stored. - - System.Uri - - System.Uri - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVault - - BackupFolder - - Folder name of the backup, e.g. 'mhsm-*-2020101309020403'. It can also be nested such as 'backups/mhsm-*-2020101309020403'. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmObject - - Managed HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - KeyName - - Key name to restore. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageContainerUri - - URI of the storage container where the backup is going to be stored. - - System.Uri - - System.Uri - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVault - - BackupFolder - - Folder name of the backup, e.g. 'mhsm-*-2020101309020403'. It can also be nested such as 'backups/mhsm-*-2020101309020403'. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmObject - - Managed HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - KeyName - - Key name to restore. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - - System.Management.Automation.SwitchParameter - - - False - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageAccountName - - Name of the storage account where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerName - - Name of the blob container where the backup is going to be stored. - - System.String - - System.String - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - BackupFolder - - Folder name of the backup, e.g. 'mhsm-*-2020101309020403'. It can also be nested such as 'backups/mhsm-*-2020101309020403'. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - HsmObject - - Managed HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - KeyName - - Key name to restore. - - System.String - - System.String - - - None - - - PassThru - - Return true when the HSM is restored. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - SasToken - - The shared access signature (SAS) token to authenticate the storage account. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - StorageAccountName - - Name of the storage account where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerName - - Name of the blob container where the backup is going to be stored. - - System.String - - System.String - - - None - - - StorageContainerUri - - URI of the storage container where the backup is going to be stored. - - System.Uri - - System.Uri - - - None - - - UseUserManagedIdentity - - Specified to use User Managed Identity to authenticate the storage account. Only valid when SasToken is not set. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - None - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ---------------- Example 1 Restore a Key Vault ---------------- - $sasToken = ConvertTo-SecureString -AsPlainText -Force "?sv=2019-12-12&ss=bfqt&srt=sco&sp=rwdlacupx&se=2020-10-12T14:42:19Z&st=2020-10-12T06:42:19Z&spr=https&sig=******" -Restore-AzKeyVault -HsmName myHsm -StorageContainerUri "https://{accountName}.blob.core.windows.net/{containerName}" -BackupFolder "mhsm-myHsm-2020101308504935" -SasToken $sasToken - - The example restores a backup stored in a folder named "mhsm-myHsm-2020101308504935" of a storage container "https://{accountName}.blob.core.windows.net/{containerName}". - - - - - - Example 2 Restore a Key Vault via User Assigned Managed Identity Authentication - # Make sure an identity is assigend to the Hsm -Update-AzKeyVaultManagedHsm -UserAssignedIdentity "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identity-name}" -Restore-AzKeyVault -HsmName myHsm -StorageContainerUri "https://{accountName}.blob.core.windows.net/{containerName}" -BackupFolder "mhsm-myHsm-2020101308504935" -UseUserManagedIdentity - - The example restores an HSM via User Assigned Managed Identity Authentication. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/restore-azkeyvault - - - - - - Restore-AzKeyVaultCertificate - Restore - AzKeyVaultCertificate - - Restores a certificate in a key vault from a backup file. - - - - The Restore-AzKeyVaultCertificate cmdlet creates a certificate in the specified key vault from a backup file. This certificate is a replica of the backed-up certificate in the input file and has the same name as the original certificate. If the key vault already contains a certificate by the same name, this cmdlet fails instead of overwriting the original certificate. If the backup contains multiple versions of a certificate, all versions are restored. The key vault that you restore the certificate into can be different from the key vault that you backed up the certificate from. However, the key vault must use the same subscription and be in an Azure region in the same geography (for example, North America). See the Microsoft Azure Trust Center (https://azure.microsoft.com/support/trust-center/) for the mapping of Azure regions to geographies. - - - - Restore-AzKeyVaultCertificate - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultCertificate - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultCertificate - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - - - - - - - - - - - - - ---------- Example 1: Restore a backed-up certificate ---------- - Restore-AzKeyVaultCertificate -VaultName 'MyKeyVault' -InputFile "C:\Backup.blob" - -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 5/25/2018 3:47:41 AM - - [Not After] - 11/25/2018 2:57:41 AM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -KeyId : https://mykeyvault.vault.azure.net:443/keys/cert1/bd406f6d6b3a41a1a1c633494d8c3c3a -SecretId : https://mykeyvault.vault.azure.net:443/secrets/cert1/bd406f6d6b3a41a1a1c633494d8c3c3a -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -RecoveryLevel : Purgeable -Enabled : True -Expires : 11/25/2018 10:57:41 AM -NotBefore : 5/25/2018 10:47:41 AM -Created : 5/25/2018 10:57:41 AM -Updated : 5/25/2018 10:57:41 AM -Tags : -VaultName : MyKeyVault -Name : cert1 -Version : bd406f6d6b3a41a1a1c633494d8c3c3a -Id : https://mykeyvault.vault.azure.net:443/certificates/cert1/bd406f6d6b3a41a1a1c633494d8c3c3a - - This command restores a certificate, including all of its versions, from the backup file named Backup.blob into the key vault named MyKeyVault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/restore-azkeyvaultcertificate - - - - - - Restore-AzKeyVaultKey - Restore - AzKeyVaultKey - - Creates a key in a key vault from a backed-up key. - - - - The Restore-AzKeyVaultKey cmdlet creates a key in the specified key vault. This key is a replica of the backed-up key in the input file and has the same name as the original key. If the key vault already has a key by the same name, this cmdlet fails instead of overwriting the original key. If the backup contains multiple versions of a key, all versions are restored. The key vault that you restore the key into can be different from the key vault that you backed up the key from. However, the key vault must use the same subscription and be in an Azure region in the same geography (for example, North America). See the Microsoft Azure Trust Center (https://azure.microsoft.com/support/trust-center/) for the mapping of Azure regions to geographies. - - - - Restore-AzKeyVaultKey - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultKey - - HsmObject - - HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultKey - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmResourceId - - Hsm Resource Id - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultKey - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultKey - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultKey - - VaultName - - Specifies the name of the key vault into which to restore the key. - - System.String - - System.String - - - None - - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - HsmObject - - HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - HsmResourceId - - Hsm Resource Id - - System.String - - System.String - - - None - - - InputFile - - Specifies the input file that contains the backup of the key to restore. - - System.String - - System.String - - - None - - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of the key vault into which to restore the key. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - - - - - - - -------------- Example 1: Restore a backed-up key -------------- - Restore-AzKeyVaultKey -VaultName 'MyKeyVault' -InputFile "C:\Backup.blob" - -Vault Name : MyKeyVault -Name : key1 -Version : 394f9379a47a4e2086585468de6c7ae5 -Id : https://mykeyvault.vault.azure.net:443/keys/key1/394f9379a47a4e2086585468de6c7ae5 -Enabled : True -Expires : -Not Before : -Created : 4/6/2018 11:31:36 PM -Updated : 4/6/2018 11:35:04 PM -Purge Disabled : False -Tags : - - This command restores a key, including all of its versions, from the backup file named Backup.blob into the key vault named MyKeyVault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/restore-azkeyvaultkey - - - Add-AzKeyVaultKey - - - - Backup-AzKeyVaultKey - - - - Get-AzKeyVaultKey - - - - Remove-AzKeyVaultKey - - - - - - - Restore-AzKeyVaultManagedStorageAccount - Restore - AzKeyVaultManagedStorageAccount - - Restores a managed storage account in a key vault from a backup file. - - - - The Restore-AzKeyVaultManagedStorageAccount cmdlet creates a managed storage account in the specified key vault from a backup file. This managed storage account is a replica of the backed-up managed storage account in the input file and has the same name as the original. If the key vault already contains a managed storage account by the same name, this cmdlet fails instead of overwriting the original. The key vault that you restore the managed storage account into can be different from the key vault that you backed up the managed storage account from. However, the key vault must use the same subscription and be in an Azure region in the same geography (for example, North America). See the Microsoft Azure Trust Center (https://azure.microsoft.com/support/trust-center/) for the mapping of Azure regions to geographies. - - - - Restore-AzKeyVaultManagedStorageAccount - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultManagedStorageAccount - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzKeyVaultManagedStorageAccount - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputFile - - Input file. The input file containing the backed-up blob - - System.String - - System.String - - - None - - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - - - - - - - ---- Example 1: Restore a backed-up managed storage account ---- - Restore-AzKeyVaultManagedStorageAccount -VaultName 'MyKeyVault' -InputFile "C:\Backup.blob" - -Id : https://mykeyvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : MyKeyVault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Active Key Name : key1 -Auto Regenerate Key : True -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 5/21/2018 11:55:58 PM -Updated : 5/21/2018 11:55:58 PM -Tags : - - This command restores a managed storage account, including all of its versions, from the backup file named Backup.blob into the key vault named MyKeyVault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/restore-azkeyvaultmanagedstorageaccount - - - - - - Restore-AzKeyVaultSecret - Restore - AzKeyVaultSecret - - Creates a secret in a key vault from a backed-up secret. - - - - The Restore-AzKeyVaultSecret cmdlet creates a secret in the specified key vault. This secret is a replica of the backed-up secret in the input file and has the same name as the original secret. If the key vault already has a secret by the same name, this cmdlet fails instead of overwriting the original secret. If the backup contains multiple versions of a secret, all versions are restored. The key vault that you restore the secret into can be different from the key vault that you backed up the secret from. However, the key vault must use the same subscription and be in an Azure region in the same geography (for example, North America). See the Microsoft Azure Trust Center (https://azure.microsoft.com/support/trust-center/) for the mapping of Azure regions to geographies. - - - - Restore-AzKeyVaultSecret - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InputFile - - Specifies the input file that contains the backup of the secret to restore. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Restore-AzKeyVaultSecret - - InputObject - - KeyVault object - - PSKeyVault - - PSKeyVault - - - None - - - InputFile - - Specifies the input file that contains the backup of the secret to restore. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Restore-AzKeyVaultSecret - - ParentResourceId - - KeyVault Resource Id - - String - - String - - - None - - - InputFile - - Specifies the input file that contains the backup of the secret to restore. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Restore-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault into which to restore the secret. - - String - - String - - - None - - - InputFile - - Specifies the input file that contains the backup of the secret to restore. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InputFile - - Specifies the input file that contains the backup of the secret to restore. - - String - - String - - - None - - - InputObject - - KeyVault object - - PSKeyVault - - PSKeyVault - - - None - - - ParentResourceId - - KeyVault Resource Id - - String - - String - - - None - - - VaultName - - Specifies the name of the key vault into which to restore the secret. - - String - - String - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - - - - - - - - - - - - - ------------ Example 1: Restore a backed-up secret ------------ - Restore-AzKeyVaultSecret -VaultName 'contoso' -InputFile "C:\Backup.blob" - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - - This command restores a secret, including all of its versions, from the backup file named Backup.blob into the key vault named contoso. - - - - - - ------ Example 2: Restore a backed-up secret (using Uri) ------ - Restore-AzKeyVaultSecret -Id "https://contoso.vault.azure.net:443/secrets/" -InputFile "C:\Backup.blob" - -Vault Name : contoso -Name : secret1 -Version : 7128133570f84a71b48d7d0550deb74c -Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c -Enabled : True -Expires : 4/6/2018 3:59:43 PM -Not Before : -Created : 4/5/2018 11:46:28 PM -Updated : 4/6/2018 11:30:17 PM -Content Type : -Tags : - - This command restores a secret, including all of its versions, from the backup file named Backup.blob into the key vault named contoso. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/restore-azkeyvaultsecret - - - Set-AzKeyVaultSecret - - - - Backup-AzKeyVaultSecret - - - - Get-AzKeyVaultSecret - - - - Remove-AzKeyVaultSecret - - - - - - - Set-AzKeyVaultAccessPolicy - Set - AzKeyVaultAccessPolicy - - Grants or modifies existing permissions for a user, application, or security group to perform operations with a key vault. - - - - The Set-AzKeyVaultAccessPolicy cmdlet grants or modifies existing permissions for a user, application, or security group to perform the specified operations with a key vault. It does not modify the permissions that other users, applications, or security groups have on the key vault. If you are setting permissions for a security group, this operation affects only users in that security group. The following directories must all be the same Azure directory: - The default directory of the Azure subscription in which the key vault resides. - - The Azure directory that contains the user or application group that you are granting permissions to. - Examples of scenarios when these conditions are not met and this cmdlet will not work are: - Authorizing a user from a different organization to manage your key vault. Each organization has its own directory. - Your Azure account has multiple directories. If you register an application in a directory other than the default directory, you cannot authorize that application to use your key vault. The application must be in the default directory. Note that although specifying the resource group is optional for this cmdlet, you should do so for better performance. - The cmdlet may call below Microsoft Graph API according to input parameters: - - GET /directoryObjects/{id} - - GET /users/{id} - - GET /users - - GET /servicePrincipals/{id} - - GET /servicePrincipals - - GET /groups/{id} - - > [!NOTE] > When using a service principal to grant access policy permissions, you must use the `-BypassObjectIdValidation` parameter. - - - - Set-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of a key vault. This cmdlet modifies the access policy for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - ApplicationId - - For future use. - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - BypassObjectIdValidation - - Enables you to specify an object ID without validating that the object exists in Microsoft Entra ID. Use this parameter only if you want to grant access to your key vault to an object ID that refers to a delegated security group from another Azure tenant. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to grant permissions. Its value is in the format of GUID. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - InputObject - - Key Vault Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - ApplicationId - - For future use. - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - BypassObjectIdValidation - - Enables you to specify an object ID without validating that the object exists in Microsoft Entra ID. Use this parameter only if you want to grant access to your key vault to an object ID that refers to a delegated security group from another Azure tenant. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to grant permissions. Its value is in the format of GUID. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - ResourceId - - Key Vault Resource Id - - System.String - - System.String - - - None - - - ApplicationId - - For future use. - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - BypassObjectIdValidation - - Enables you to specify an object ID without validating that the object exists in Microsoft Entra ID. Use this parameter only if you want to grant access to your key vault to an object ID that refers to a delegated security group from another Azure tenant. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to grant permissions. Its value is in the format of GUID. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of a key vault. This cmdlet modifies the access policy for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user to whom to grant permissions. This email address must exist in the directory associated with the current subscription and be unique. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - InputObject - - Key Vault Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user to whom to grant permissions. This email address must exist in the directory associated with the current subscription and be unique. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - ResourceId - - Key Vault Resource Id - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user to whom to grant permissions. This email address must exist in the directory associated with the current subscription and be unique. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of a key vault. This cmdlet modifies the access policy for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledForDeployment - - Enables the Microsoft.Compute resource provider to retrieve secrets from this key vault when this key vault is referenced in resource creation, for example when creating a virtual machine. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - Enables the Azure disk encryption service to get secrets and unwrap keys from this key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - InputObject - - Key Vault Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledForDeployment - - Enables the Microsoft.Compute resource provider to retrieve secrets from this key vault when this key vault is referenced in resource creation, for example when creating a virtual machine. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - Enables the Azure disk encryption service to get secrets and unwrap keys from this key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - ResourceId - - Key Vault Resource Id - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledForDeployment - - Enables the Microsoft.Compute resource provider to retrieve secrets from this key vault when this key vault is referenced in resource creation, for example when creating a virtual machine. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - Enables the Azure disk encryption service to get secrets and unwrap keys from this key vault. - - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - InputObject - - Key Vault Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - ServicePrincipalName - - Specifies the service principal name of the application to which to grant permissions. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. The application with the service principal name that this parameter specifies must be registered in the Azure directory that contains your current subscription. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - InputObject - - Key Vault Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user to whom to grant permissions. This user principal name must exist in the directory associated with the current subscription. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of a key vault. This cmdlet modifies the access policy for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user to whom to grant permissions. This user principal name must exist in the directory associated with the current subscription. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - VaultName - - Specifies the name of a key vault. This cmdlet modifies the access policy for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - ServicePrincipalName - - Specifies the service principal name of the application to which to grant permissions. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. The application with the service principal name that this parameter specifies must be registered in the Azure directory that contains your current subscription. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - ResourceId - - Key Vault Resource Id - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - ServicePrincipalName - - Specifies the service principal name of the application to which to grant permissions. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. The application with the service principal name that this parameter specifies must be registered in the Azure directory that contains your current subscription. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultAccessPolicy - - ResourceId - - Key Vault Resource Id - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user to whom to grant permissions. This user principal name must exist in the directory associated with the current subscription. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ApplicationId - - For future use. - - System.Nullable`1[System.Guid] - - System.Nullable`1[System.Guid] - - - None - - - BypassObjectIdValidation - - Enables you to specify an object ID without validating that the object exists in Microsoft Entra ID. Use this parameter only if you want to grant access to your key vault to an object ID that refers to a delegated security group from another Azure tenant. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAddress - - Specifies the user email address of the user to whom to grant permissions. This email address must exist in the directory associated with the current subscription and be unique. - - System.String - - System.String - - - None - - - EnabledForDeployment - - Enables the Microsoft.Compute resource provider to retrieve secrets from this key vault when this key vault is referenced in resource creation, for example when creating a virtual machine. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForDiskEncryption - - Enables the Azure disk encryption service to get secrets and unwrap keys from this key vault. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnabledForTemplateDeployment - - Enables Azure Resource Manager to get secrets from this key vault when this key vault is referenced in a template deployment. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Key Vault Object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - None - - - ObjectId - - Specifies the object ID of the user or service principal in Microsoft Entra ID for which to grant permissions. Its value is in the format of GUID. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PermissionsToCertificates - - Specifies an array of certificate permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Delete - - Create - - Import - - Update - - Managecontacts - - Getissuers - - Listissuers - - Setissuers - - Deleteissuers - - Manageissuers - - Recover - - Backup - - Restore - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToKeys - - Specifies an array of key operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Decrypt - - Encrypt - - UnwrapKey - - WrapKey - - Verify - - Sign - - Get - - List - - Update - - Create - - Import - - Delete - - Backup - - Restore - - Recover - - Purge - - Rotate - - System.String[] - - System.String[] - - - None - - - PermissionsToSecrets - - Specifies an array of secret operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - All - - Get - - List - - Set - - Delete - - Backup - - Restore - - Recover - - Purge - - System.String[] - - System.String[] - - - None - - - PermissionsToStorage - - Specifies managed storage account and SaS-definition operation permissions to grant to a user or service principal. 'All' will grant all the permissions except 'Purge' The acceptable values for this parameter: - all - - get - - list - - delete - - set - - update - - regeneratekey - - getsas - - listsas - - deletesas - - setsas - - recover - - backup - - restore - - purge - - System.String[] - - System.String[] - - - None - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - None - - - ResourceId - - Key Vault Resource Id - - System.String - - System.String - - - None - - - ServicePrincipalName - - Specifies the service principal name of the application to which to grant permissions. Specify the application ID, also known as client ID, registered for the application in Microsoft Entra ID. The application with the service principal name that this parameter specifies must be registered in the Azure directory that contains your current subscription. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - UserPrincipalName - - Specifies the user principal name of the user to whom to grant permissions. This user principal name must exist in the directory associated with the current subscription. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. This cmdlet modifies the access policy for the key vault that this parameter specifies. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - Example 1: Grant permissions to a user for a key vault and modify the permissions - Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -UserPrincipalName 'PattiFuller@contoso.com' -PermissionsToKeys create,import,delete,list -PermissionsToSecrets set,delete -PassThru - -Vault Name : Contoso03Vault -Resource Group Name : myrg -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/contoso03vault -Vault URI : https://contoso03vault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : True -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : create, import, delete, list - Permissions to Secrets : set, delete - Permissions to Certificates : - Permissions to (Key Vault Managed) Storage : - -Tags : - -Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -UserPrincipalName 'PattiFuller@contoso.com' -PermissionsToSecrets set,delete,get -PassThru - -Vault Name : Contoso03Vault -Resource Group Name : myrg -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/contoso03vault -Vault URI : https://contoso03vault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : True -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : create, import, delete, list - Permissions to Secrets : set, delete, get - Permissions to Certificates : - Permissions to (Key Vault Managed) Storage : - -Tags : - -Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -UserPrincipalName 'PattiFuller@contoso.com' -PermissionsToKeys @() -PassThru - -Vault Name : Contoso03Vault -Resource Group Name : myrg -Location : westus -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/contoso03vault -Vault URI : https://contoso03vault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : True -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : - Permissions to Secrets : set, delete, get - Permissions to Certificates : - Permissions to (Key Vault Managed) Storage : - -Tags : - - The first command grants permissions for a user in your Microsoft Entra ID, PattiFuller@contoso.com, to perform operations on keys and secrets with a key vault named Contoso03Vault. The PassThru parameter results in the updated object being returned by the cmdlet. The second command modifies the permissions that were granted to PattiFuller@contoso.com in the first command, to now allow getting secrets in addition to setting and deleting them. The permissions to key operations remain unchanged after this command. The final command further modifies the existing permissions for PattiFuller@contoso.com to remove all permissions to key operations. The permissions to secret operations remain unchanged after this command. - - - - - - Example 2: Grant permissions for an application service principal to read and write secrets - Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ServicePrincipalName 'http://payroll.contoso.com' -PermissionsToSecrets Get,Set - - This command grants permissions for an application for a key vault named Contoso03Vault. The ServicePrincipalName parameter specifies the application. The application must be registered in your Microsoft Entra ID. The value of the ServicePrincipalName parameter must be either the service principal name of the application or the application ID GUID. This example specifies the service principal name `http://payroll.contoso.com`, and the command grants the application permissions to read and write secrets. - - - - - - Example 3: Grant permissions for an application using its object ID - Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ObjectId 34595082-9346-41b6-8d6b-295a2808b8db -PermissionsToSecrets Get,Set - - This command grants the application permissions to read and write secrets. This example specifies the application using the object ID of the service principal of the application. - - - - - - ---- Example 4: Grant permissions for a user principal name ---- - Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -UserPrincipalName 'PattiFuller@contoso.com' -PermissionsToSecrets Get,List,Set - - This command grants get, list, and set permissions for the specified user principal name for access to secrets. - - - - - - Example 5: Enable secrets to be retrieved from a key vault by the Microsoft.Compute resource provider - Set-AzKeyVaultAccessPolicy -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -EnabledForDeployment - - This command grants the permissions for secrets to be retrieved from the Contoso03Vault key vault by the Microsoft.Compute resource provider. - - - - - - ------- Example 6: Grant permissions to a security group ------- - Get-AzADGroup -Set-AzKeyVaultAccessPolicy -VaultName 'myownvault' -ObjectId (Get-AzADGroup -SearchString 'group2')[0].Id -PermissionsToKeys get, set -PermissionsToSecrets get, set - - The first command uses the Get-AzADGroup cmdlet to get all Active Directory groups. From the output, you see 3 groups returned, named group1 , group2 , and group3 . Multiple groups can have the same name but always have a unique ObjectId. When more than one group that has the same name is returned, use the ObjectId in the output to identify the one you want to use. You then use the output of this command with Set-AzKeyVaultAccessPolicy to grant permissions to group2 for your key vault, named myownvault . This example enumerates the groups named 'group2' inline in the same command line. There may be multiple groups in the returned list that are named 'group2'. This example picks the first one, indicated by index [0] in the returned list. - - - - - - Example 7: Grant Azure Information Protection access to the customer-managed tenant key (BYOK) - Set-AzKeyVaultAccessPolicy -VaultName 'Contoso04Vault' -ServicePrincipalName 'MyServicePrincipal' -PermissionsToKeys decrypt,sign,get - - This command authorizes Azure Information Protection to use a customer-managed key (the bring your own key, or "BYOK" scenario) as the Azure Information Protection tenant key. When you run this command, specify your own key vault name but you must specify the ServicePrincipalName parameter and specify the permissions in the example. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/set-azkeyvaultaccesspolicy - - - Get-AzKeyVault - - - - Remove-AzKeyVaultAccessPolicy - - - - - - - Set-AzKeyVaultCertificateIssuer - Set - AzKeyVaultCertificateIssuer - - Sets a certificate issuer in a key vault. - - - - The Set-AzKeyVaultCertificateIssuer cmdlet sets a certificate issuer in a key vault. - - - - Set-AzKeyVaultCertificateIssuer - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Issuer. - - System.String - - System.String - - - None - - - AccountId - - Specifies the account ID for the certificate issuer. - - System.String - - System.String - - - None - - - ApiKey - - Specifies the API key for the certificate issuer. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IssuerProvider - - Specifies the type of certificate issuer. - - System.String - - System.String - - - None - - - OrganizationDetails - - Organization details to be used with the issuer. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultCertificateIssuer - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Issuer. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Specifies the certificate issuer to set. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountId - - Specifies the account ID for the certificate issuer. - - System.String - - System.String - - - None - - - ApiKey - - Specifies the API key for the certificate issuer. - - System.Security.SecureString - - System.Security.SecureString - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Specifies the certificate issuer to set. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - None - - - IssuerProvider - - Specifies the type of certificate issuer. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Issuer. - - System.String - - System.String - - - None - - - OrganizationDetails - - Organization details to be used with the issuer. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Specifies the name of the key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - - - - - - - - - - - - ------------- Example 1: Set a certificate issuer ------------- - $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName user -LastName name -EmailAddress username@microsoft.com -$OrgDetails = New-AzKeyVaultCertificateOrganizationDetail -AdministratorDetails $AdminDetails -$Password = ConvertTo-SecureString -String "****" -AsPlainText -Force -Set-AzKeyVaultCertificateIssuer -VaultName "Contosokv01" -Name "TestIssuer01" -IssuerProvider "Test" -AccountId "555" -ApiKey $Password -OrganizationDetails $OrgDetails -PassThru - -AccountId : 555 -ApiKey : -OrganizationDetails : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails -Name : TestIssuer01 -IssuerProvider : Test -VaultName : Contosokv01 - - This command sets the properties for a certificate issuer. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/set-azkeyvaultcertificateissuer - - - Get-AzKeyVaultCertificateIssuer - - - - Remove-AzKeyVaultCertificateIssuer - - - - - - - Set-AzKeyVaultCertificatePolicy - Set - AzKeyVaultCertificatePolicy - - Creates or updates the policy for a certificate in a key vault. - - - - The Set-AzKeyVaultCertificatePolicy cmdlet creates or updates the policy for a certificate in a key vault. - - - - Set-AzKeyVaultCertificatePolicy - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate. - - System.String - - System.String - - - None - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true'. `-IssuerName` needs to be specified when setting this property. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - CertificateType - - Specifies the type of certificate to the issuer. - - System.String - - System.String - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - - P-256 - P-384 - P-521 - P-256K - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - Indicates that the certificate policy is disabled. - - - System.Management.Automation.SwitchParameter - - - False - - - DnsName - - Specifies the subject name of the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - Ekus - - Specifies the enhanced key usages (EKUs) in the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiration when automatic renewal should start. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - IssuerName - - Specifies the name of the issuer for this certificate. - - System.String - - System.String - - - None - - - KeyNotExportable - - Indicates that the key is not exportable. - - - System.Management.Automation.SwitchParameter - - - False - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - - 2048 - 3072 - 4096 - 256 - 384 - 521 - - System.Int32 - - System.Int32 - - - 2048 - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - - RSA - RSA-HSM - EC - EC-HSM - - System.String - - System.String - - - RSA - - - KeyUsage - - Specifies the key usages in the certificate. - - - None - EncipherOnly - CrlSign - KeyCertSign - KeyAgreement - DataEncipherment - KeyEncipherment - NonRepudiation - DigitalSignature - DecipherOnly - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - RenewAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ReuseKeyOnRenewal - - Indicates that the certificate reuse the key during renewal. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - SecretContentType - - Specifies the content type of the new key vault secret. The acceptable values for this parameter are: - application/x-pkcs12 - - application/x-pem-file - - - application/x-pkcs12 - application/x-pem-file - - System.String - - System.String - - - None - - - SubjectName - - Specifies the subject name of the certificate. - - System.String - - System.String - - - None - - - ValidityInMonths - - Specifies the number of months the certificate is valid. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultCertificatePolicy - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate. - - System.String - - System.String - - - None - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true'. `-IssuerName` needs to be specified when setting this property. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - CertificateType - - Specifies the type of certificate to the issuer. - - System.String - - System.String - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - - P-256 - P-384 - P-521 - P-256K - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - Indicates that the certificate policy is disabled. - - - System.Management.Automation.SwitchParameter - - - False - - - DnsName - - Specifies the subject name of the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - Ekus - - Specifies the enhanced key usages (EKUs) in the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiration when automatic renewal should start. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - IssuerName - - Specifies the name of the issuer for this certificate. - - System.String - - System.String - - - None - - - KeyNotExportable - - Indicates that the key is not exportable. - - - System.Management.Automation.SwitchParameter - - - False - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - - 2048 - 3072 - 4096 - 256 - 384 - 521 - - System.Int32 - - System.Int32 - - - 2048 - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - - RSA - RSA-HSM - EC - EC-HSM - - System.String - - System.String - - - RSA - - - KeyUsage - - Specifies the key usages in the certificate. - - - None - EncipherOnly - CrlSign - KeyCertSign - KeyAgreement - DataEncipherment - KeyEncipherment - NonRepudiation - DigitalSignature - DecipherOnly - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - RenewAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiry after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ReuseKeyOnRenewal - - Indicates that the certificate reuse the key during renewal. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - SecretContentType - - Specifies the content type of the new key vault secret. The acceptable values for this parameter are: - application/x-pkcs12 - - application/x-pem-file - - - application/x-pkcs12 - application/x-pem-file - - System.String - - System.String - - - None - - - SubjectName - - Specifies the subject name of the certificate. - - System.String - - System.String - - - None - - - ValidityInMonths - - Specifies the number of months the certificate is valid. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultCertificatePolicy - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the certificate. - - System.String - - System.String - - - None - - - InputObject - - Specifies the certificate policy. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true'. `-IssuerName` needs to be specified when setting this property. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - - P-256 - P-384 - P-521 - P-256K - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiration when automatic renewal should start. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - - 2048 - 3072 - 4096 - 256 - 384 - 521 - - System.Int32 - - System.Int32 - - - 2048 - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - - RSA - RSA-HSM - EC - EC-HSM - - System.String - - System.String - - - RSA - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - CertificateTransparency - - Indicates whether certificate transparency is enabled for this certificate/issuer; if not specified, the default is 'true'. `-IssuerName` needs to be specified when setting this property. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - CertificateType - - Specifies the type of certificate to the issuer. - - System.String - - System.String - - - None - - - Curve - - Specifies the elliptic curve name of the key of the certificate. The acceptable values for this parameter are: - P-256 - - P-384 - - P-521 - - P-256K - - SECP256K1 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - Indicates that the certificate policy is disabled. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DnsName - - Specifies the subject name of the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - Ekus - - Specifies the enhanced key usages (EKUs) in the certificate. - - System.Collections.Generic.List`1[System.String] - - System.Collections.Generic.List`1[System.String] - - - None - - - EmailAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiration when automatic renewal should start. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - EmailAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for the notification begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - InputObject - - Specifies the certificate policy. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - None - - - IssuerName - - Specifies the name of the issuer for this certificate. - - System.String - - System.String - - - None - - - KeyNotExportable - - Indicates that the key is not exportable. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - KeySize - - Specifies the key size of the certificate. The acceptable values for this parameter are: - 2048 - - 3072 - - 4096 - - 256 - - 384 - - 521 - - System.Int32 - - System.Int32 - - - 2048 - - - KeyType - - Specifies the key type of the key that backs the certificate. The acceptable values for this parameter are: - RSA - - RSA-HSM - - EC - - EC-HSM - - System.String - - System.String - - - RSA - - - KeyUsage - - Specifies the key usages in the certificate. - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags] - - - None - - - Name - - Specifies the name of the certificate. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RenewAtNumberOfDaysBeforeExpiry - - Specifies the number of days before expiry after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - RenewAtPercentageLifetime - - Specifies the percentage of the lifetime after which the automatic process for certificate renewal begins. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ReuseKeyOnRenewal - - Indicates that the certificate reuse the key during renewal. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - SecretContentType - - Specifies the content type of the new key vault secret. The acceptable values for this parameter are: - application/x-pkcs12 - - application/x-pem-file - - System.String - - System.String - - - None - - - SubjectName - - Specifies the subject name of the certificate. - - System.String - - System.String - - - None - - - ValidityInMonths - - Specifies the number of months the certificate is valid. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy - - - - - - - - - - - - - - ------------- Example 1: Set a certificate policy ------------- - Set-AzKeyVaultCertificatePolicy -VaultName "ContosoKV01" -Name "TestCert01" -SecretContentType "application/x-pkcs12" -SubjectName "CN=contoso.com" -IssuerName "Self" -ValidityInMonths 6 -ReuseKeyOnRenewal $True -PassThru - -SecretContentType : application/x-pkcs12 -Kty : -KeySize : 2048 -Curve : -Exportable : -ReuseKeyOnRenewal : True -SubjectName : CN=contoso.com -DnsNames : -KeyUsage : -Ekus : -ValidityInMonths : 6 -IssuerName : Self -CertificateType : -RenewAtNumberOfDaysBeforeExpiry : -RenewAtPercentageLifetime : -EmailAtNumberOfDaysBeforeExpiry : -EmailAtPercentageLifetime : -CertificateTransparency : -Enabled : True -Created : -Updated : - - This command sets the policy for the TestCert01 certificate in the ContosoKV01 key vault. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/set-azkeyvaultcertificatepolicy - - - Get-AzKeyVaultCertificatePolicy - - - - New-AzKeyVaultCertificatePolicy - - - - - - - Set-AzKeyVaultKeyRotationPolicy - Set - AzKeyVaultKeyRotationPolicy - - Sets the key rotation policy for the specified key in Key Vault. - - - - This cmdlet requires the key update permission. It returns a key rotation policy for the specified key. - - - - Set-AzKeyVaultKeyRotationPolicy - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiresIn - - The expiryTime will be applied on the new key version. It should be at least 28 days. It will be in ISO 8601 Format. Examples: 90 days: P90D, 3 months: P3M, 48 hours: PT48H, 1 year and 10 days: P1Y10D. - - System.String - - System.String - - - None - - - KeyRotationLifetimeAction - - PSKeyRotationLifetimeAction object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationLifetimeAction[] - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationLifetimeAction[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultKeyRotationPolicy - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiresIn - - The expiryTime will be applied on the new key version. It should be at least 28 days. It will be in ISO 8601 Format. Examples: 90 days: P90D, 3 months: P3M, 48 hours: PT48H, 1 year and 10 days: P1Y10D. - - System.String - - System.String - - - None - - - KeyRotationLifetimeAction - - PSKeyRotationLifetimeAction object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationLifetimeAction[] - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationLifetimeAction[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultKeyRotationPolicy - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PolicyPath - - A path to the rotation policy file that contains JSON policy definition. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultKeyRotationPolicy - - KeyRotationPolicy - - PSKeyRotationPolicy object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultKeyRotationPolicy - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PolicyPath - - A path to the rotation policy file that contains JSON policy definition. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiresIn - - The expiryTime will be applied on the new key version. It should be at least 28 days. It will be in ISO 8601 Format. Examples: 90 days: P90D, 3 months: P3M, 48 hours: PT48H, 1 year and 10 days: P1Y10D. - - System.String - - System.String - - - None - - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - KeyRotationLifetimeAction - - PSKeyRotationLifetimeAction object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationLifetimeAction[] - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationLifetimeAction[] - - - None - - - KeyRotationPolicy - - PSKeyRotationPolicy object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - - None - - - Name - - Key name. - - System.String - - System.String - - - None - - - PolicyPath - - A path to the rotation policy file that contains JSON policy definition. - - System.String - - System.String - - - None - - - VaultName - - Vault name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyRotationPolicy - - - - - - - - - - - - - - ------- Example 1: Sets key rotation policy by JSON file ------- - <# -rotation_policy.json -{ - "lifetimeActions": [ - { - "trigger": { - "timeAfterCreate": "P18M", - "timeBeforeExpiry": null - }, - "action": { - "type": "Rotate" - } - }, - { - "trigger": { - "timeBeforeExpiry": "P30D" - }, - "action": { - "type": "Notify" - } - } - ], - "attributes": { - "expiryTime": "P2Y" - } - } -#> -Set-AzKeyVaultKeyRotationPolicy -VaultName test-kv -Name test-key -PolicyPath rotation_policy.json - -Id : https://test-kv.vault.azure.net/keys/test-key/rotationpolicy -VaultName : test-kv -KeyName : test-keyAM +00:00 -LifetimeActions : {[Action: Notify, TimeAfterCreate: , TimeBeforeExpiry: P30D]} -ExpiresIn : P2Y -CreatedOn : 12/10/2021 3:21:51 AM +00:00 -UpdatedOn : 6/9/2022 7:43:27 - - These commands set the rotation policy of key `test-key` by JSON file. - - - - - - ------- Example 2: Sets key rotation policy expiry time ------- - Set-AzKeyVaultKeyRotationPolicy -VaultName test-kv -Name test-key -ExpiresIn P2Y - -Id : https://test-kv.vault.azure.net/keys/test-key/rotationpolicy -VaultName : test-kv -KeyName : test-keyAM +00:00 -LifetimeActions : {[Action: Notify, TimeAfterCreate: , TimeBeforeExpiry: P30D]} -ExpiresIn : P2Y -CreatedOn : 12/10/2021 3:21:51 AM +00:00 -UpdatedOn : 6/9/2022 7:43:27 - - These commands set the expiry time will be applied on the new key version of `test-key` as 2 years. - - - - - - -------- Example 3: Sets key rotation policy via piping -------- - Get-AzKeyVaultKey -VaultName test-kv -Name test-key | Set-AzKeyVaultKeyRotationPolicy -KeyRotationLifetimeAction @{Action = "Rotate"; TimeBeforeExpiry = "P18M"} - -Id : https://test-kv.vault.azure.net/keys/test-key/rotationpolicy -VaultName : test-kv -KeyName : test-key -LifetimeActions : {[Action: Rotate, TimeAfterCreate: , TimeBeforeExpiry: P18M], [Action: Notify, TimeAfterCreate: , - TimeBeforeExpiry: P30D]} -ExpiresIn : P2Y -CreatedOn : 12/10/2021 3:21:51 AM +00:00 -UpdatedOn : 6/9/2022 8:10:43 AM +00:00 - - These commands set the duration before expiry to attempt to rotate `test-key` as 18 months. - - - - - - Example 4: Copy key rotation policy to another key via PSKeyRotationPolicy object - $policy = Get-AzKeyVaultKeyRotationPolicy -VaultName test-kv -Name test-key1 -$policy.KeyName = "test-key2" -$policy | Set-AzKeyVaultKeyRotationPolicy - -Id : https://test-kv.vault.azure.net/keys/test-key2/rotationpolicy -VaultName : test-kv -KeyName : test-key2 -LifetimeActions : {[Action: Rotate, TimeAfterCreate: , TimeBeforeExpiry: P18M], [Action: Notify, TimeAfterCreate: , - TimeBeforeExpiry: P30D]} -ExpiresIn : P2Y -CreatedOn : 6/9/2022 8:26:35 AM +00:00 -UpdatedOn : 6/9/2022 8:26:35 AM +00:00 - - These commands copy the key rotation policy `test-key1` to key `test-key2`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/set-azkeyvaultkeyrotationpolicy - - - Get-AzKeyVaultKeyRotationPolicy - - - - Invoke-AzKeyVaultKeyRotation - - - - - - - Set-AzKeyVaultManagedStorageSasDefinition - Set - AzKeyVaultManagedStorageSasDefinition - - Sets a Shared Access Signature (SAS) definition with Key Vault for a given Key Vault managed Azure Storage Account. - - - - Sets a Shared Access Signature (SAS) definition with a given Key Vault managed Azure Storage Account. This also sets a secret which can be used to get the SAS token per this SAS definition. SAS token is generated using these parameters and the active key of the Key Vault managed Azure Storage Account. - - - - Set-AzKeyVaultManagedStorageSasDefinition - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - TemplateUri - - Storage SAS definition template uri. - - System.String - - System.String - - - None - - - SasType - - Storage SAS type. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Disables the use of sas definition for generation of sas token. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - ValidityPeriod - - Validity period that will get used to set the expiry time of sas token from the time it gets generated - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzKeyVaultManagedStorageSasDefinition - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - TemplateUri - - Storage SAS definition template uri. - - System.String - - System.String - - - None - - - SasType - - Storage SAS type. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Disables the use of sas definition for generation of sas token. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - ValidityPeriod - - Validity period that will get used to set the expiry time of sas token from the time it gets generated - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disable - - Disables the use of sas definition for generation of sas token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - Name - - Storage sas definition name. Cmdlet constructs the FQDN of a storage sas definition from vault name, currently selected environment, storage account name and sas definition name. - - System.String - - System.String - - - None - - - SasType - - Storage SAS type. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TemplateUri - - Storage SAS definition template uri. - - System.String - - System.String - - - None - - - ValidityPeriod - - Validity period that will get used to set the expiry time of sas token from the time it gets generated - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition - - - - - - - - - - - - - - Example 1: Set an account-type SAS definition, and obtain a current SAS token based on it - $sa = Get-AzStorageAccount -Name mysa -ResourceGroupName myrg -$kv = Get-AzKeyVault -VaultName mykv -Add-AzKeyVaultManagedStorageAccount -VaultName $kv.VaultName -AccountName $sa.StorageAccountName -AccountResourceId $sa.Id -ActiveKeyName key1 -RegenerationPeriod ([System.Timespan]::FromDays(180)) -$sctx = New-AzStorageContext -StorageAccountName $sa.StorageAccountName -Protocol Https -StorageAccountKey Key1 -$start = [System.DateTime]::Now.AddDays(-1) -$end = [System.DateTime]::Now.AddMonths(1) -$at = "sv=2018-03-28&ss=bfqt&srt=sco&sp=rw&spr=https" -$sas = Set-AzKeyVaultManagedStorageSasDefinition -AccountName $sa.StorageAccountName -VaultName $kv.VaultName -Name accountsas -TemplateUri $at -SasType 'account' -ValidityPeriod ([System.Timespan]::FromDays(30)) -Get-AzKeyVaultSecret -VaultName $kv.VaultName -Name $sas.Sid.Substring($sas.Sid.LastIndexOf('/')+1) - - Sets an account SAS definition 'accountsas' on a KeyVault-managed storage account 'mysa' in vault 'mykv'. Specifically, the sequence above performs the following: - gets a (pre-existing) storage account - gets a (pre-existing) key vault - adds a KeyVault-managed storage account to the vault, setting Key1 as the active key, and with a regeneration period of 180 days - sets a storage context for the specified storage account, with Key1 - creates an account SAS token for services Blob, File, Table and Queue, for resource types Service, Container and Object, with all permissions, over https and with the specified start and end dates - sets a KeyVault-managed storage SAS definition in the vault, with the template uri as the SAS token created above, of SAS type 'account' and valid for 30 days - retrieves the actual access token from the KeyVault secret corresponding to the SAS definition - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/set-azkeyvaultmanagedstoragesasdefinition - - - Get-AzKeyVaultManagedStorageSasDefinition - - - - Remove-AzKeyVaultManagedStorageSasDefinition - - - - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - - - - - - - Set-AzKeyVaultSecret - Set - AzKeyVaultSecret - - Creates or updates a secret in a key vault. - - - - The Set-AzKeyVaultSecret cmdlet creates or updates a secret in a key vault in Azure Key Vault. If the secret does not exist, this cmdlet creates it. If the secret already exists, this cmdlet creates a new version of that secret. - - - - Set-AzKeyVaultSecret - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - SecretValue - - Specifies the value for the secret as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. - - SecureString - - SecureString - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - ContentType - - Specifies the content type of a secret. To delete the existing content type, specify an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Disable - - Indicates that this cmdlet disables a secret. - - - SwitchParameter - - - False - - - Expires - - Specifies the expiration time, as a DateTime object, for the secret that this cmdlet updates. This parameter uses Coordinated Universal Time (UTC). To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. - - DateTime - - DateTime - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the secret cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. - - DateTime - - DateTime - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - Hashtable - - Hashtable - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Set-AzKeyVaultSecret - - InputObject - - Secret object - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - SecretValue - - Specifies the value for the secret as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. - - SecureString - - SecureString - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - ContentType - - Specifies the content type of a secret. To delete the existing content type, specify an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Disable - - Indicates that this cmdlet disables a secret. - - - SwitchParameter - - - False - - - Expires - - Specifies the expiration time, as a DateTime object, for the secret that this cmdlet updates. This parameter uses Coordinated Universal Time (UTC). To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. - - DateTime - - DateTime - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the secret cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. - - DateTime - - DateTime - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - Hashtable - - Hashtable - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Set-AzKeyVaultSecret - - VaultName - - Specifies the name of the key vault to which this secret belongs. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - Name - - Specifies the name of a secret to modify. This cmdlet constructs the fully qualified domain name (FQDN) of a secret based on the name that this parameter specifies, the name of the key vault, and your current environment. - - String - - String - - - None - - - SecretValue - - Specifies the value for the secret as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. - - SecureString - - SecureString - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - ContentType - - Specifies the content type of a secret. To delete the existing content type, specify an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Disable - - Indicates that this cmdlet disables a secret. - - - SwitchParameter - - - False - - - Expires - - Specifies the expiration time, as a DateTime object, for the secret that this cmdlet updates. This parameter uses Coordinated Universal Time (UTC). To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. - - DateTime - - DateTime - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the secret cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. - - DateTime - - DateTime - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - Hashtable - - Hashtable - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - False - - - ContentType - - Specifies the content type of a secret. To delete the existing content type, specify an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Disable - - Indicates that this cmdlet disables a secret. - - SwitchParameter - - SwitchParameter - - - False - - - Expires - - Specifies the expiration time, as a DateTime object, for the secret that this cmdlet updates. This parameter uses Coordinated Universal Time (UTC). To obtain a DateTime object, use the Get-Date cmdlet. For more information, type `Get-Help Get-Date`. - - DateTime - - DateTime - - - None - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InputObject - - Secret object - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - Name - - Specifies the name of a secret to modify. This cmdlet constructs the fully qualified domain name (FQDN) of a secret based on the name that this parameter specifies, the name of the key vault, and your current environment. - - String - - String - - - None - - - NotBefore - - Specifies the time, as a DateTime object, before which the secret cannot be used. This parameter uses UTC. To obtain a DateTime object, use the Get-Date cmdlet. - - DateTime - - DateTime - - - None - - - SecretValue - - Specifies the value for the secret as a SecureString object. To obtain a SecureString object, use the ConvertTo-SecureString cmdlet. For more information, type `Get-Help ConvertTo-SecureString`. - - SecureString - - SecureString - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - Hashtable - - Hashtable - - - None - - - VaultName - - Specifies the name of the key vault to which this secret belongs. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. - - String - - String - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - - - - - - - - - - - - - Example 1: Modify the value of a secret using default attributes - $Secret = ConvertTo-SecureString -String "****" -AsPlainText -Force -Set-AzKeyVaultSecret -VaultName 'Contoso' -Name 'ITSecret' -SecretValue $Secret - -Vault Name : Contoso -Name : ITSecret -Version : 8b5c0cb0326e4350bd78200fac932b51 -Id : https://contoso.vault.azure.net:443/secrets/ITSecret/8b5c0cb0326e4350bd78200fac932b51 -Enabled : True -Expires : -Not Before : -Created : 5/25/2018 6:39:30 PM -Updated : 5/25/2018 6:39:30 PM -Content Type : -Tags : - - The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Secret variable. For more information, type `Get-Help ConvertTo-SecureString`. The second command modifies value of the secret named ITSecret in the key vault named Contoso. The secret value becomes the value stored in $Secret. - - - - - - Example 2: Modify the value of a secret using custom attributes - $Secret = ConvertTo-SecureString -String "****" -AsPlainText -Force -$Expires = (Get-Date).AddYears(2).ToUniversalTime() -$NBF =(Get-Date).ToUniversalTime() -$Tags = @{ 'Severity' = 'medium'; 'IT' = 'true'} -$ContentType = 'txt' -Set-AzKeyVaultSecret -VaultName 'Contoso' -Name 'ITSecret' -SecretValue $Secret -Expires $Expires -NotBefore $NBF -ContentType $ContentType -Disable -Tags $Tags - -Vault Name : Contoso -Name : ITSecret -Version : a2c150be3ea24dd6b8286986e6364851 -Id : https://contoso.vault.azure.net:443/secrets/ITSecret/a2c150be3ea24dd6b8286986e6364851 -Enabled : False -Expires : 5/25/2020 6:40:00 PM -Not Before : 5/25/2018 6:40:05 PM -Created : 5/25/2018 6:41:22 PM -Updated : 5/25/2018 6:41:22 PM -Content Type : txt -Tags : Name Value - Severity medium - IT true - - The first command converts a string into a secure string by using the ConvertTo-SecureString cmdlet, and then stores that string in the $Secret variable. For more information, type `Get-Help ConvertTo-SecureString`. The next commands define custom attributes for the expiry date, tags, and context type, and store the attributes in variables. The final command modifies values of the secret named ITSecret in the key vault named Contoso, by using the values specified previously as variables. - - - - - - Example 3: Modify the value of a secret using default attributes (using Uri) - $Secret = ConvertTo-SecureString -String "****" -AsPlainText -Force -Set-AzKeyVaultSecret -Id 'https://contoso.vault.azure.net/secrets/ITSecret' -SecretValue $Secret - -Vault Name : Contoso -Name : ITSecret -Version : 8b5c0cb0326e4350bd78200fac932b51 -Id : https://contoso.vault.azure.net:443/secrets/ITSecret/8b5c0cb0326e4350bd78200fac932b51 -Enabled : True -Expires : -Not Before : -Created : 5/25/2018 6:39:30 PM -Updated : 5/25/2018 6:39:30 PM -Content Type : -Tags : - - This command sets or updates the value of the secret named secret1 in the Key Vault named Contoso using the secret’s URI. - - - - - - Example 4: Create a secret in azure key vault by command Set-Secret in module Microsoft.PowerShell.SecretManagement - # Install module Microsoft.PowerShell.SecretManagement -Install-Module Microsoft.PowerShell.SecretManagement -Repository PSGallery -AllowPrerelease -# Register vault for Secret Management -Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @{ AZKVaultName = 'test-kv'; SubscriptionId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' } -# Set secret for vault AzKeyVault -$secure = ConvertTo-SecureString -String "****" -AsPlainText -Force -Set-Secret -Name secureSecret -SecureStringSecret $secure -Vault AzKeyVault - -None - - This example sets a secret named `secureSecret` in azure key vault `test-kv` by command `Set-Secret` in module `Microsoft.PowerShell.SecretManagement`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/set-azkeyvaultsecret - - - Get-AzKeyVaultSecret - - - - Remove-AzKeyVaultSecret - - - - - - - Stop-AzKeyVaultCertificateOperation - Stop - AzKeyVaultCertificateOperation - - Cancels a certificate operation in key vault. - - - - The Stop-AzKeyVaultCertificateOperation cmdlet cancels a certificate operation in the Azure Key Vault service. - - - - Stop-AzKeyVaultCertificateOperation - - InputObject - - Operation object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Stop-AzKeyVaultCertificateOperation - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Operation object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - None - - - Name - - Specifies the name of a certificate. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation - - - - - - - - - - - - - - ---------- Example 1: Cancel a certificate operation ---------- - Stop-AzKeyVaultCertificateOperation -VaultName "Contoso01" -Name "TestCert02" -Force - -Status : inProgress -CancellationRequested : True -CertificateSigningRequest : MIICpjCCAY4CAQAwFjEUMBIGA1UEAxMLY29udG9zby5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCVr6EVwsd48qDVORsF4V4w4N1aQCUirFW7b+kwoTvSOL4SfMiWcPmno0uxmQQoh - gz157bC3sKFLyBUsGCmS4i7uWkBOSEpCh8L3FKU4XMqRROlUM9AqswzB0e1sURCqevEJA80xFpfTgkeqpm44m4jr6p7gu+h1PBf9Dt7b43Gybde5DUlGrrOiTkOIAF0eU2iNVeHOapoj8m1XHmzO1BARs - oa0pSDxO/aMgeuq/QPkWG64Iiw55U20byKZ86u3Y4g192HsPwsrHkf9ZSYR2M9BYM3YGoT/dkCmAtP4LQAsOwf1+S0a/TwRtrnoOHbPFI6HYSY3TY1iqzZ9xItfgalAgMBAAGgSzBJBgkqhkiG9w0BCQ4 - xPDA6MA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEAjxUX5PGhri9qJTxSleGEbMVkxhhn3nuPUgxujEzrcQVr - fZAACJHbOnga/QYwpxumKWnkX9YdWxb58PPn+nLV2gYP3eYEyJ4DR9XDcKpoQxZahUdqD3JZXhWPIcN05tw9Fuq8ziw94BjLZW3h3iDamqkBnysJYW58FBp1H8Ejqk0Iynbo0V223Innq/7QB2fVwe3ZJ - JecT8YxHJjVQ5psdDpEWgLUG/DFiAPHdwupI7JjvtvQmT3AotL0x5GNx2bWNH5hHIXsX4bnbxZgNQnTB2w3tQ3QeuKt8fUx2S0xtxPllaCUul6efa84TNqdMcMfyxCarIwDP6qdhS+CDU1uUA== -ErrorCode : -ErrorMessage : - - This command cancels the TestCert02 certificate operation. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/stop-azkeyvaultcertificateoperation - - - Get-AzKeyVaultCertificateOperation - - - - Remove-AzKeyVaultCertificateOperation - - - - - - - Undo-AzKeyVaultCertificateRemoval - Undo - AzKeyVaultCertificateRemoval - - Recovers a deleted certificate in a key vault into an active state. - - - - The Undo-AzKeyVaultCertificateRemoval cmdlet will recover a previously deleted certificate. The recovered certificate will be active and can be used for all operations. Caller needs to have 'recover' permission in order to perform this operation. - - - - Undo-AzKeyVaultCertificateRemoval - - InputObject - - Deleted Certificate object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultCertificateRemoval - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Certificate name. Cmdlet constructs the FQDN of a certificate from vault name, currently selected environment and certificate name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Deleted Certificate object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem - - - None - - - Name - - Certificate name. Cmdlet constructs the FQDN of a certificate from vault name, currently selected environment and certificate name. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Undo-AzKeyVaultCertificateRemoval -VaultName 'MyKeyVault' -Name 'MyCertificate' - -Certificate : [Subject] - CN=contoso.com - - [Issuer] - CN=contoso.com - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 5/24/2018 10:58:13 AM - - [Not After] - 11/24/2018 10:08:13 AM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -KeyId : https://mykeyvault.vault.azure.net:443/keys/mycertificate/7fe415d5518240c1a6fce89986b8d334 -SecretId : https://mykeyvault.vault.azure.net:443/secrets/mycertificate/7fe415d5518240c1a6fce89986b8d334 -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -RecoveryLevel : Recoverable+Purgeable -Enabled : True -Expires : 11/24/2018 6:08:13 PM -NotBefore : 5/24/2018 5:58:13 PM -Created : 5/24/2018 6:08:13 PM -Updated : 5/24/2018 6:08:13 PM -Tags : -VaultName : MyKeyVault -Name : MyCertificate -Version : 7fe415d5518240c1a6fce89986b8d334 -Id : https://mykeyvault.vault.azure.net:443/certificates/mycertificate/7fe415d5518240c1a6fce89986b8d334 - - This command will recover the certificate 'MyCertificate' that was previously deleted, into an active and usable state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultcertificateremoval - - - Remove-AzKeyVaultCertificate - - - - Get-AzKeyVaultCertificate - - - - - - - Undo-AzKeyVaultKeyRemoval - Undo - AzKeyVaultKeyRemoval - - Recovers a deleted key in a key vault into an active state. - - - - The Undo-AzKeyVaultKeyRemoval cmdlet will recover a previously deleted key. The recovered key will be active and can be used for all normal key operations. Caller needs to have 'recover' permission in order to perform this operation. - - - - Undo-AzKeyVaultKeyRemoval - - Name - - Key name. Cmdlet constructs the FQDN of a key from vault name, currently selected environment and key name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultKeyRemoval - - InputObject - - Deleted key object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultKeyRemoval - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Key name. Cmdlet constructs the FQDN of a key from vault name, currently selected environment and key name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - InputObject - - Deleted key object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - - None - - - Name - - Key name. Cmdlet constructs the FQDN of a key from vault name, currently selected environment and key name. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Undo-AzKeyVaultKeyRemoval -VaultName 'MyKeyVault' -Name 'MyKey' - -Vault Name : MyKeyVault -Name : MyKey -Version : 1af807cc331a49d0b52b7c75e1b2366e -Id : https://mykeybault.vault.azure.net:443/keys/mykey/1af807cc331a49d0b52b7c75e1b2366e -Enabled : True -Expires : -Not Before : -Created : 5/24/2018 8:32:27 PM -Updated : 5/24/2018 8:32:27 PM -Purge Disabled : False -Tags : - - This command will recover the key 'MyKey' that was previously deleted, into an active and usable state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultkeyremoval - - - Remove-AzKeyVaultKey - - - - Add-AzKeyVaultKey - - - - Get-AzKeyVaultKey - - - - - - - Undo-AzKeyVaultManagedHsmRemoval - Undo - AzKeyVaultManagedHsmRemoval - - Recover a managed HSM. - - - - Recover a previously deleted HSM for which soft delete was enabled. - - - - Undo-AzKeyVaultManagedHsmRemoval - - InputObject - - Deleted HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - The ID of the subscription. - By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. - Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultManagedHsmRemoval - - Name - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the deleted HSM resource group. - - System.String - - System.String - - - None - - - Location - - Specifies the deleted HSM original Azure region. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - The ID of the subscription. - By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. - Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Deleted HSM object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - - None - - - Location - - Specifies the deleted HSM original Azure region. - - System.String - - System.String - - - None - - - Name - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the deleted HSM resource group. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. - By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. - Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedManagedHsm - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - - - - - - - --------------- Example 1: Recover a deleted HSM --------------- - Undo-AzKeyVaultManagedHsmRemoval -Name test001 -ResourceGroupName test-rg -Location westus - -Name Resource Group Name Location SKU ProvisioningState ----- ------------------- -------- --- ----------------- -test001 test-rg West US StandardB1 Succeeded - - This command recovers a managed HSM called `test001` from deleted state. - - - - - - ---------- Example 2: Recover a deleted HSM by piping ---------- - Get-AzKeyVaultManagedHsm -Name test001 -Location westus -InRemovedState | Undo-AzKeyVaultManagedHsmRemoval - -Name Resource Group Name Location SKU ProvisioningState ----- ------------------- -------- --- ----------------- -test001 test-rg West US StandardB1 Succeeded - - This command recovers a managed HSM called `test001` from deleted state by piping. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultmanagedhsmremoval - - - New-AzKeyVaultManagedHsm - - - - Get-AzKeyVaultManagedHsm - - - - Remove-AzKeyVaultManagedHsm - - - - Update-AzKeyVaultManagedHsm - - - - - - - Undo-AzKeyVaultManagedStorageAccountRemoval - Undo - AzKeyVaultManagedStorageAccountRemoval - - Recovers a previously deleted KeyVault-managed storage account. - - - - The Undo-AzKeyVaultManagedStorageAccountRemoval command recovers a previously deleted managed storage account, provided that soft delete is enabled for this vault, and that the attempt to recover occurs during the recovery interval. - - - - Undo-AzKeyVaultManagedStorageAccountRemoval - - InputObject - - Deleted Managed Storage Account object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultManagedStorageAccountRemoval - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Name of the KeyVault managed storage account. Cmdlet constructs the FQDN of the target from vault name, currently selected environment and the name of the managed storage account. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Deleted Managed Storage Account object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem - - - None - - - Name - - Name of the KeyVault managed storage account. Cmdlet constructs the FQDN of the target from vault name, currently selected environment and the name of the managed storage account. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzKeyVaultManagedStorageAccount -VaultName myVault -Name myAccount -InRemovedState -Undo-AzKeyVaultManagedStorageAccountRemoval -VaultName myVault -Name myAccount - -Id : https://myvault.vault.azure.net:443/storage/myaccount -Vault Name : myVault -AccountName : myAccount -Account Resource Id : /subscriptions/8bc48661-1801-4b7a-8ca1-6a3cadfb4870/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/myaccount -Active Key Name : key2 -Auto Regenerate Key : False -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 4/25/2018 1:50:32 AM -Updated : 4/25/2018 1:50:32 AM -Tags : - - This sequence of commands determines whether the specified storage account exists in the vault in a deleted state; the subsequent command recovers the deleted storage account, bringing it back into an active state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultmanagedstorageaccountremoval - - - - - - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - Undo - AzKeyVaultManagedStorageSasDefinitionRemoval - - Recovers a previously deleted KeyVault-managed storage SAS definition. - - - - The Undo-AzKeyVaultManagedStorageSasDefinitionRemoval command recovers a previously deleted managed storage SAS definition, provided that soft delete is enabled for this vault, and that the attempt to recover occurs during the recovery interval. - - - - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - - InputObject - - Deleted managed storage SAS definition object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem - - - None - - - AccountName - - KeyVault-managed storage account name. Cmdlet constructs the FQDN of a managed storage SAS definition from vault name, currently-selected environment and managed storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - KeyVault-managed storage account name. Cmdlet constructs the FQDN of a managed storage SAS definition from vault name, currently-selected environment and managed storage account name. - - System.String - - System.String - - - None - - - Name - - Name of the KeyVault-managed storage SAS definition. Cmdlet constructs the FQDN of the target from vault name, currently-selected environment, the name of the managed storage account and the name of the SAS definition. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - KeyVault-managed storage account name. Cmdlet constructs the FQDN of a managed storage SAS definition from vault name, currently-selected environment and managed storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Deleted managed storage SAS definition object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem - - - None - - - Name - - Name of the KeyVault-managed storage SAS definition. Cmdlet constructs the FQDN of the target from vault name, currently-selected environment, the name of the managed storage account and the name of the SAS definition. - - System.String - - System.String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Get-AzKeyVaultManagedStorageSasDefinition -VaultName myVault -AccountName myAccount -Name mySasName -InRemovedState -Undo-AzKeyVaultManagedStorageSasDefinitionRemoval -VaultName myVault -AccountName myAccount -Name mySasName - -Id : https://myvault.vault.azure.net:443/storage/myaccount/sas/mysasname -Secret Id : https://myvault.vault.azure.net/secrets/myaccount-mysasname -Vault Name : myVault -AccountName : myAccount -Name : mySasName -Parameter : -Enabled : True -Created : 5/24/2018 9:11:08 PM -Updated : 5/24/2018 9:11:08 PM -Tags : - - This sequence of commands determines whether the specified storage SAS definition exists in the vault in a deleted state; the subsequent command recovers the deleted sas definition, bringing it back into an active state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultmanagedstoragesasdefinitionremoval - - - Get-AzKeyVaultManagedStorageSasDefinition - - - - Remove-AzKeyVaultManagedStorageSasDefinition - - - - Set-AzKeyVaultManagedStorageSasDefinition - - - - - - - Undo-AzKeyVaultRemoval - Undo - AzKeyVaultRemoval - - Recovers a deleted key vault into an active state. - - - - The Undo-AzKeyVaultRemoval cmdlet will recover a previously deleted key vault. The recovered vault will be active after recovery - - - - Undo-AzKeyVaultRemoval - - InputObject - - Deleted vault object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Undo-AzKeyVaultRemoval - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of an existing resource group in which to create the key vault. - - System.String - - System.String - - - None - - - Location - - Specifies the deleted vault original Azure region. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Deleted vault object - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - - None - - - Location - - Specifies the deleted vault original Azure region. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of an existing resource group in which to create the key vault. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Undo-AzKeyVaultRemoval -VaultName 'MyKeyVault' -ResourceGroupName 'MyResourceGroup' -Location 'eastus2' -Tag @{"x"= "y"} - -Vault Name : MyKeyVault -Resource Group Name : MyResourceGroup -Location : eastus2 -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myresourcegroup/providers - /Microsoft.KeyVault/vaults/mykeyvault -Vault URI : https://mykeyvault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : True -Enabled For Template Deployment? : True -Enabled For Disk Encryption? : True -Soft Delete Enabled? : True -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : get, create, delete, list, update, - import, backup, restore, recover - Permissions to Secrets : get, list, set, delete, backup, - restore, recover - Permissions to Certificates : get, delete, list, create, import, - update, deleteissuers, getissuers, listissuers, managecontacts, manageissuers, - setissuers, recover - Permissions to (Key Vault Managed) Storage : delete, deletesas, get, getsas, list, - listsas, regeneratekey, set, setsas, update - -Tags : - Name Value - ==== ===== - x y - - This command will recover the key vault 'MyKeyVault' that was previously deleted from eastus2 region and 'MyResourceGroup' resource group, into an active and usable state. It also replaces the tags with new tag. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultremoval - - - Remove-AzKeyVault - - - - New-AzKeyVault - - - - Get-AzKeyVault - - - - - - - Undo-AzKeyVaultSecretRemoval - Undo - AzKeyVaultSecretRemoval - - Recovers a deleted secret in a key vault into an active state. - - - - The Undo-AzKeyVaultSecretRemoval cmdlet will recover a previously deleted secret. The recovered secret will be active and can be used for all normal secret operations. Caller needs to have 'recover' permission in order to perform this operation. - - - - Undo-AzKeyVaultSecretRemoval - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Undo-AzKeyVaultSecretRemoval - - InputObject - - Deleted secret object - - PSDeletedKeyVaultSecretIdentityItem - - PSDeletedKeyVaultSecretIdentityItem - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Undo-AzKeyVaultSecretRemoval - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - String - - String - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InputObject - - Deleted secret object - - PSDeletedKeyVaultSecretIdentityItem - - PSDeletedKeyVaultSecretIdentityItem - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - String - - String - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - String - - String - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - Undo-AzKeyVaultSecretRemoval -VaultName 'MyKeyVault' -Name 'MySecret' - -Vault Name : MyKeyVault -Name : MySecret -Version : f622abc7b1394092812f1eb0f85dc91c -Id : https://mykeyvault.vault.azure.net:443/secrets/mysecret/f622abc7b1394092812f1eb0f85dc91c -Enabled : True -Expires : -Not Before : -Created : 4/19/2018 5:56:02 PM -Updated : 4/26/2018 7:48:40 PM -Content Type : -Tags : - - This command will recover the secret 'MySecret' that was previously deleted, into an active and usable state. - - - - - - -------------------------- Example 2 -------------------------- - Undo-AzKeyVaultSecretRemoval -Id "https://mykeyvault.vault.azure.net:443/secrets/mysecret/" - -Vault Name : MyKeyVault -Name : MySecret -Version : f622abc7b1394092812f1eb0f85dc91c -Id : https://mykeyvault.vault.azure.net:443/secrets/mysecret/f622abc7b1394092812f1eb0f85dc91c -Enabled : True -Expires : -Not Before : -Created : 4/19/2018 5:56:02 PM -Updated : 4/26/2018 7:48:40 PM -Content Type : -Tags : - - This command will recover the secret 'MySecret' that was previously deleted, into an active and usable state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultsecretremoval - - - Remove-AzKeyVaultSecret - - - - Set-AzKeyVaultSecret - - - - Get-AzKeyVaultSecret - - - - - - - Update-AzKeyVault - Update - AzKeyVault - - Update the state of an Azure key vault. - - - - This cmdlet updates the state of an Azure key vault. - - - - Update-AzKeyVault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableRbacAuthorization - - Disable or enable this key vault to authorize data actions by Role Based Access Control (RBAC). - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - EnablePurgeProtection - - Enable the purge protection functionality for this key vault. Once enabled it cannot be disabled. It requires soft-delete to be turned on. - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Key vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - PublicNetworkAccess - - Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableRbacAuthorization - - Disable or enable this key vault to authorize data actions by Role Based Access Control (RBAC). - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - EnablePurgeProtection - - Enable the purge protection functionality for this key vault. Once enabled it cannot be disabled. It requires soft-delete to be turned on. - - - System.Management.Automation.SwitchParameter - - - False - - - PublicNetworkAccess - - Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. - - System.String - - System.String - - - None - - - ResourceGroupName - - Name of the resource group. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Name of the key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVault - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableRbacAuthorization - - Disable or enable this key vault to authorize data actions by Role Based Access Control (RBAC). - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - EnablePurgeProtection - - Enable the purge protection functionality for this key vault. Once enabled it cannot be disabled. It requires soft-delete to be turned on. - - - System.Management.Automation.SwitchParameter - - - False - - - PublicNetworkAccess - - Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. - - System.String - - System.String - - - None - - - ResourceId - - Resource ID of the key vault. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableRbacAuthorization - - Disable or enable this key vault to authorize data actions by Role Based Access Control (RBAC). - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - EnablePurgeProtection - - Enable the purge protection functionality for this key vault. Once enabled it cannot be disabled. It requires soft-delete to be turned on. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Key vault object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - PublicNetworkAccess - - Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. - - System.String - - System.String - - - None - - - ResourceGroupName - - Name of the resource group. - - System.String - - System.String - - - None - - - ResourceId - - Resource ID of the key vault. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Name of the key vault. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - -------------- Example 1: Enable purge protection -------------- - Get-AzKeyVault -VaultName $keyVaultName -ResourceGroupName $resourceGroupName | Update-AzKeyVault -EnablePurgeProtection - - Enables purge protection using piping syntax. - - - - - - ------------- Example 2: Enable RBAC Authorization ------------- - Get-AzKeyVault -VaultName $keyVaultName -ResourceGroupName $resourceGroupName | Update-AzKeyVault -DisableRbacAuthorization $false - - Enables RBAC Authorization using piping syntax. - - - - - - --------------------- Example 3: Set tags --------------------- - Get-AzKeyVault -VaultName $keyVaultName | Update-AzKeyVault -Tags @{key = "value"} - - Sets the tags of a key vault named $keyVaultName. - - - - - - -------------------- Example 4: Clean tags -------------------- - Get-AzKeyVault -VaultName $keyVaultName | Update-AzKeyVault -Tags @{} - - Deletes all tags of a key vault named $keyVaultName. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvault - - - - - - Update-AzKeyVaultCertificate - Update - AzKeyVaultCertificate - - Modifies editable attributes of a certificate. - - - - The Update-AzKeyVaultCertificate cmdlet modifies the editable attributes of a certificate. - - - - Update-AzKeyVaultCertificate - - InputObject - - Certificate object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - Version - - Certificate version. Cmdlet constructs the FQDN of a certificate from vault name, currently selected environment, certificate name and certificate version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - If present, enable a certificate if value is true. Disable a certificate if value is false. If not specified, the existing value of the certificate's enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return certificate object. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - A hashtable representing certificate tags. If not specified, the existing tags of the sertificate remain unchanged. Remove a tag by specifying an empty Hashtable. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultCertificate - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Certificate name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - System.String - - System.String - - - None - - - Version - - Certificate version. Cmdlet constructs the FQDN of a certificate from vault name, currently selected environment, certificate name and certificate version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - If present, enable a certificate if value is true. Disable a certificate if value is false. If not specified, the existing value of the certificate's enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return certificate object. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - A hashtable representing certificate tags. If not specified, the existing tags of the sertificate remain unchanged. Remove a tag by specifying an empty Hashtable. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - If present, enable a certificate if value is true. Disable a certificate if value is false. If not specified, the existing value of the certificate's enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - InputObject - - Certificate object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - None - - - Name - - Certificate name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - System.String - - System.String - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return certificate object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - A hashtable representing certificate tags. If not specified, the existing tags of the sertificate remain unchanged. Remove a tag by specifying an empty Hashtable. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Version - - Certificate version. Cmdlet constructs the FQDN of a certificate from vault name, currently selected environment, certificate name and certificate version. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate - - - - - - - - - - - - - - --- Example 1: Modify the tags associated with a certificate --- - $Tags = @{ "Team" = "Azure" ; "Role" = "Engg" } -Update-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "TestCert01" -Tag $Tags -PassThru - -Name : TestCert01 -Certificate : [Subject] - CN=AZURE - - [Issuer] - CN=AZURE - - [Serial Number] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - - [Not Before] - 7/27/2016 6:50:01 PM - - [Not After] - 7/27/2018 7:00:01 PM - - [Thumbprint] - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -Id : https://ContosoKV01.vault.azure.net:443/certificates/TestCert01 -KeyId : https://ContosoKV01.vault.azure.net:443/keys/TestCert01 -SecretId : https://ContosoKV01.vault.azure.net:443/secrets/TestCert01 -Thumbprint : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -Tags : {[Role, Engg], [Team, Azure]} -Enabled : True -Created : 7/28/2016 2:00:01 AM -Updated : 8/1/2016 5:37:48 PM - - The first command assigns an array of key/value pairs to the $Tags variable. The second command sets the tags value of the certificate named TestCert01 to be $Tags. - - - - - - -------------------------- Example 2 -------------------------- - Update-AzKeyVaultCertificate -Enable $true -Name 'TestCert01' -VaultName 'ContosoKV01' - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultcertificate - - - - - - Update-AzKeyVaultKey - Update - AzKeyVaultKey - - Updates the attributes of a key in a key vault. - - - - The Update-AzKeyVaultKey cmdlet updates the editable attributes of a key in a key vault. - - - - Update-AzKeyVaultKey - - Name - - Key name. Cmdlet constructs the FQDN of a key from vault name, currently selected environment and key name. - - System.String - - System.String - - - None - - - Version - - Key version. Cmdlet constructs the FQDN of a key from vault name, currently selected environment, key name and key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - Value of true enables the key and a value of false disabless the key. If not specified, the existing enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Expires - - The expiration time of a key in UTC time. If not specified, the existing expiration time of the key remains unchanged. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyOps - - The operations that can be performed with the key. If not specified, the existing key operations of the key remain unchanged. - - System.String[] - - System.String[] - - - None - - - NotBefore - - The UTC time before which key can't be used. If not specified, the existing NotBefore attribute of the key remains unchanged. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, returns the updated key bundle object. - - - System.Management.Automation.SwitchParameter - - - False - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Tag - - A hashtable represents key tags. If not specified, the existings tags of the key remain unchanged. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultKey - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - Version - - Key version. Cmdlet constructs the FQDN of a key from vault name, currently selected environment, key name and key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - Value of true enables the key and a value of false disabless the key. If not specified, the existing enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Expires - - The expiration time of a key in UTC time. If not specified, the existing expiration time of the key remains unchanged. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - KeyOps - - The operations that can be performed with the key. If not specified, the existing key operations of the key remain unchanged. - - System.String[] - - System.String[] - - - None - - - NotBefore - - The UTC time before which key can't be used. If not specified, the existing NotBefore attribute of the key remains unchanged. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, returns the updated key bundle object. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - A hashtable represents key tags. If not specified, the existings tags of the key remain unchanged. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultKey - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Name - - Key name. Cmdlet constructs the FQDN of a key from vault name, currently selected environment and key name. - - System.String - - System.String - - - None - - - Version - - Key version. Cmdlet constructs the FQDN of a key from vault name, currently selected environment, key name and key version. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - Value of true enables the key and a value of false disabless the key. If not specified, the existing enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Expires - - The expiration time of a key in UTC time. If not specified, the existing expiration time of the key remains unchanged. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - KeyOps - - The operations that can be performed with the key. If not specified, the existing key operations of the key remain unchanged. - - System.String[] - - System.String[] - - - None - - - NotBefore - - The UTC time before which key can't be used. If not specified, the existing NotBefore attribute of the key remains unchanged. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, returns the updated key bundle object. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - A hashtable represents key tags. If not specified, the existings tags of the key remain unchanged. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - Value of true enables the key and a value of false disabless the key. If not specified, the existing enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Expires - - The expiration time of a key in UTC time. If not specified, the existing expiration time of the key remains unchanged. Please notice that expirys is ignored for Key Exchange Key used in BYOK process. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - HsmName - - HSM name. Cmdlet constructs the FQDN of a managed HSM based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Immutable - - Sets the release policy as immutable state. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Key object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - None - - - KeyOps - - The operations that can be performed with the key. If not specified, the existing key operations of the key remain unchanged. - - System.String[] - - System.String[] - - - None - - - Name - - Key name. Cmdlet constructs the FQDN of a key from vault name, currently selected environment and key name. - - System.String - - System.String - - - None - - - NotBefore - - The UTC time before which key can't be used. If not specified, the existing NotBefore attribute of the key remains unchanged. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, returns the updated key bundle object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ReleasePolicyPath - - A path to a file containing JSON policy definition. The policy rules under which a key can be exported. - - System.String - - System.String - - - None - - - Tag - - A hashtable represents key tags. If not specified, the existings tags of the key remain unchanged. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Version - - Key version. Cmdlet constructs the FQDN of a key from vault name, currently selected environment, key name and key version. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey - - - - - - - - - - - - - - Example 1: Modify a key to enable it, and set the expiration date and tags - $Expires = (Get-Date).AddYears(2).ToUniversalTime() -$Tags = @{'Severity' = 'high'; 'Accounting' = 'true'} -Update-AzKeyVaultKey -VaultName 'Contoso' -Name 'ITSoftware' -Expires $Expires -Enable $True -Tag $Tags -PassThru - -Vault Name : Contoso -Name : ITSoftware -Version : 394f9379a47a4e2086585468de6c7ae5 -Id : https://Contoso.vault.azure.net:443/keys/ITSoftware/394f9379a47a4e2086585468de6c7ae5 -Enabled : True -Expires : 5/25/2020 7:58:07 PM -Not Before : -Created : 4/6/2018 11:31:36 PM -Updated : 5/25/2018 7:59:02 PM -Purge Disabled : False -Tags : Name Value - Severity high - Accounting true - - The first command creates a DateTime object by using the Get-Date cmdlet. That object specifies a time two years in the future. The command stores that date in the $Expires variable. For more information, type `Get-Help Get-Date`. The second command creates a variable to store tag values of high severity and Accounting. The final command modifies a key named ITSoftware. The command enables the key, sets its expiration time to the time stored in $Expires, and sets the tags that are stored in $Tags. - - - - - - ---------- Example 2: Modify a key to delete all tags ---------- - Update-AzKeyVaultKey -VaultName 'Contoso' -Name 'ITSoftware' -Version '394f9379a47a4e2086585468de6c7ae5' -Tag @{} - -Vault Name : Contoso -Name : ITSoftware -Version : 394f9379a47a4e2086585468de6c7ae5 -Id : https://Contoso.vault.azure.net:443/keys/ITSoftware/394f9379a47a4e2086585468de6c7ae5 -Enabled : True -Expires : 5/25/2020 7:58:07 PM -Not Before : -Created : 4/6/2018 11:31:36 PM -Updated : 5/25/2018 8:00:08 PM -Purge Disabled : False -Tags : - - This commands deletes all tags for a specific version of a key named ITSoftware. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultkey - - - - - - Update-AzKeyVaultManagedHsm - Update - AzKeyVaultManagedHsm - - Update the state of an Azure managed HSM. - - - - This cmdlet updates the state of an Azure managed HSM. - - - - Update-AzKeyVaultManagedHsm - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnablePurgeProtection - - specifying whether protection against purge is enabled for this managed HSM pool. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Managed HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - PublicNetworkAccess - - Controls permission for data plane traffic coming from public networks while private endpoint is enabled. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentity - - The set of user assigned identities associated with the managed HSM. Its value will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultManagedHsm - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnablePurgeProtection - - specifying whether protection against purge is enabled for this managed HSM pool. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - PublicNetworkAccess - - Controls permission for data plane traffic coming from public networks while private endpoint is enabled. - - System.String - - System.String - - - None - - - ResourceGroupName - - Name of the resource group. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentity - - The set of user assigned identities associated with the managed HSM. Its value will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultManagedHsm - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnablePurgeProtection - - specifying whether protection against purge is enabled for this managed HSM pool. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. - - - System.Management.Automation.SwitchParameter - - - False - - - PublicNetworkAccess - - Controls permission for data plane traffic coming from public networks while private endpoint is enabled. - - System.String - - System.String - - - None - - - ResourceId - - Resource ID of the managed HSM. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentity - - The set of user assigned identities associated with the managed HSM. Its value will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnablePurgeProtection - - specifying whether protection against purge is enabled for this managed HSM pool. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Managed HSM object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Name of the managed HSM. - - System.String - - System.String - - - None - - - PublicNetworkAccess - - Controls permission for data plane traffic coming from public networks while private endpoint is enabled. - - System.String - - System.String - - - None - - - ResourceGroupName - - Name of the resource group. - - System.String - - System.String - - - None - - - ResourceId - - Resource ID of the managed HSM. - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - Tag - - A hash table which represents resource tags. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentity - - The set of user assigned identities associated with the managed HSM. Its value will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - System.String - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - - - - - - - ----------- Example 1: Update a managed Hsm directly ----------- - Update-AzKeyVaultManagedHsm -Name $hsmName -ResourceGroupName $resourceGroupName -Tag @{testKey="testValue"} | Format-List - -Managed HSM Name : testmhsm -Resource Group Name : testmhsm -Location : eastus2euap -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testmhsm/provid - ers/Microsoft.KeyVault/managedHSMs/testmhsm -HSM Pool URI : -Tenant ID : xxxxxx-xxxx-xxxx-xxxxxxxxxxxx -Initial Admin Object Ids : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -SKU : StandardB1 -Soft Delete Enabled? : True -Enabled Purge Protection? : False -Soft Delete Retention Period (days) : 90 -Provisioning State : Provisioning -Status Message : Resource creation in progress. Starting service... -Tags : - Name Value - ==== ===== - testKey testValued - - Updates tags for the managed Hsm named `$hsmName` in resource group `$resourceGroupName`. - - - - - - --------- Example 2: Update a managed Hsm using piping --------- - Get-AzKeyVaultManagedHsm -Name $hsmName -ResourceGroupName $resourceGroupName | Update-AzKeyVaultManagedHsm -Tag @{testKey="testValue"} - - Updates tags for the managed Hsm using piping syntax. - - - - - - ----- Example 3: Enable purge protection for a managed Hsm ----- - Update-AzKeyVaultManagedHsm -Name $hsmName -ResourceGroupName $resourceGroupName -EnablePurgeProtection | Format-List - -Managed HSM Name : testmhsm -Resource Group Name : test-rg -Location : eastus -Resource ID : /subscriptions/xxxxxx71-1bf0-4dda-aec3-xxxxxxxxxxxx/resourceGroups/test-rg/provide - rs/Microsoft.KeyVault/managedHSMs/testmhsm -HSM Pool URI : -Tenant ID : 54xxxxxx-38d6-4fb2-bad9-xxxxxxxxxxxx -Initial Admin Object Ids : {xxxxxx9e-5be9-4f43-abd2-xxxxxxxxxxxx} -SKU : StandardB1 -Soft Delete Enabled? : True -Enabled Purge Protection? : True -Soft Delete Retention Period (days) : 70 -Provisioning State : Succeeded -Status Message : The Managed HSM is provisioned and ready to use. -Tags : - - Enables purge protection for the managed Hsm named `$hsmName` in resource group `$resourceGroupName`. - - - - - - -- Example 4: Update user assigned identity for a managed Hsm -- - Update-AzKeyVaultManagedHsm -Name testmhsm -ResourceGroupName test-rg -UserAssignedIdentity /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bez-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/bez-id02 | Format-List - -Managed HSM Name : testmshm -Resource Group Name : test-rg -Location : eastus2euap -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/pro - viders/Microsoft.KeyVault/managedHSMs/testmhsm -HSM Pool URI : -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Initial Admin Object Ids : {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} -SKU : StandardB1 -Soft Delete Enabled? : True -Enabled Purge Protection? : False -Soft Delete Retention Period (days) : 70 -Public Network Access : Enabled -IdentityType : UserAssigned -UserAssignedIdentities : /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName -Provisioning State : Succeeded -Status Message : The Managed HSM is provisioned and ready to use. -Security Domain ActivationStatus : Active -Security Domain ActivationStatusMessage : Your HSM has been activated and can be used for cryptographic operations. -Regions : -Tags - - This command adds an user assigned identity for the managed Hsm named `testmshm` in resource group `test-rg`. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultmanagedhsm - - - New-AzKeyVaultManagedHsm - - - - Remove-AzKeyVaultManagedHsm - - - - Get-AzKeyVaultManagedHsm - - - - Undo-AzKeyVaultManagedHsmRemoval - - - - - - - Update-AzKeyVaultManagedStorageAccount - Update - AzKeyVaultManagedStorageAccount - - Update editable attributes of a Key Vault managed Azure Storage Account. - - - - Update the editable attributes of a Key Vault managed Azure Storage Account. - - - - Update-AzKeyVaultManagedStorageAccount - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - ActiveKeyName - - Active key name. If not specified, the existing value of managed storage account's active key name remains unchanged - - System.String - - System.String - - - None - - - AutoRegenerateKey - - Auto regenerate key. If not specified, the existing value of auto regenerate key of managed storage account remains unchanged - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - If present, enables a use of a managed storage account key for sas token generation if value is true. Disables use of a managed storage account key for sas token generation if value is false. If not specified, the existing value of the storage account's enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return managed storage account object. - - - System.Management.Automation.SwitchParameter - - - False - - - RegenerationPeriod - - Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the active key. If not specified, the existing value of regeneration period of keys of managed storage account remains unchanged - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultManagedStorageAccount - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - ActiveKeyName - - Active key name. If not specified, the existing value of managed storage account's active key name remains unchanged - - System.String - - System.String - - - None - - - AutoRegenerateKey - - Auto regenerate key. If not specified, the existing value of auto regenerate key of managed storage account remains unchanged - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - If present, enables a use of a managed storage account key for sas token generation if value is true. Disables use of a managed storage account key for sas token generation if value is false. If not specified, the existing value of the storage account's enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return managed storage account object. - - - System.Management.Automation.SwitchParameter - - - False - - - RegenerationPeriod - - Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the active key. If not specified, the existing value of regeneration period of keys of managed storage account remains unchanged - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - ActiveKeyName - - Active key name. If not specified, the existing value of managed storage account's active key name remains unchanged - - System.String - - System.String - - - None - - - AutoRegenerateKey - - Auto regenerate key. If not specified, the existing value of auto regenerate key of managed storage account remains unchanged - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Enable - - If present, enables a use of a managed storage account key for sas token generation if value is true. Disables use of a managed storage account key for sas token generation if value is false. If not specified, the existing value of the storage account's enabled/disabled state remains unchanged. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return managed storage account object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RegenerationPeriod - - Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the active key. If not specified, the existing value of regeneration period of keys of managed storage account remains unchanged - - System.Nullable`1[System.TimeSpan] - - System.Nullable`1[System.TimeSpan] - - - None - - - Tag - - Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - - - - - - - Example 1: Update the active key to 'key2' on a Key Vault managed Azure Storage Account. - Update-AzKeyVaultManagedStorageAccount -VaultName 'myvault' -AccountName 'mystorageaccount' -ActiveKeyName 'key2' - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Active Key Name : key2 -Auto Regenerate Key : True -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 5/21/2018 11:55:58 PM -Updated : 5/21/2018 11:55:58 PM -Tags : - - Updates the Key Vault managed Azure Storage Account active key to 'key2'. 'key2' will be used to generate SAS tokens after this update. - - - - - - -------------------------- Example 2 -------------------------- - Update-AzKeyVaultManagedStorageAccount -AccountName 'mystorageaccount' -AutoRegenerateKey $false -RegenerationPeriod $regenerationPeriod -VaultName 'myvault' - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultmanagedstorageaccount - - - Az.KeyVault - - - - - - - Update-AzKeyVaultManagedStorageAccountKey - Update - AzKeyVaultManagedStorageAccountKey - - Regenerates the specified key of Key Vault managed Azure Storage Account. - - - - Regenerates the specified key of Key Vault managed Azure Storage Account and sets the key as the active key. Key Vault proxies the call to Azure Resource Manager to regenerate the key. The caller must posses permissions to regenerate keys on given Azure Storage Account. - - - - Update-AzKeyVaultManagedStorageAccountKey - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - KeyName - - Name of storage account key to regenerate and make active. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultManagedStorageAccountKey - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - KeyName - - Name of storage account key to regenerate and make active. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccountName - - Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected environment and manged storage account name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Do not ask for confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - ManagedStorageAccount object. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - None - - - KeyName - - Name of storage account key to regenerate and make active. - - System.String - - System.String - - - None - - - PassThru - - Cmdlet does not return an object by default. If this switch is specified, cmdlet returns the managed storage account that was deleted. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount - - - - - - - - - - - - - - ----------------- Example 1: Regenerate a key ----------------- - Update-AzKeyVaultManagedStorageAccountKey -VaultName 'myvault' -AccountName 'mystorageaccount' -KeyName 'key1' - -Id : https://myvault.vault.azure.net:443/storage/mystorageaccount -Vault Name : myvault -AccountName : mystorageaccount -Account Resource Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.St - orage/storageAccounts/mystorageaccount -Active Key Name : key1 -Auto Regenerate Key : True -Regeneration Period : 90.00:00:00 -Enabled : True -Created : 5/21/2018 11:55:58 PM -Updated : 5/21/2018 11:55:58 PM -Tags : - - Regenerates 'key1' of account 'mystorageaccount' and sets 'key1' as the active of the Key Vault managed Azure Storage Account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultmanagedstorageaccountkey - - - Azure Key Vault PowerShell cmdlets - - - - - - - Update-AzKeyVaultNetworkRuleSet - Update - AzKeyVaultNetworkRuleSet - - Updates the network rule set on a key vault. - - - - The Update-AzKeyVaultNetworkRuleSet command updates the network rules in effect on the specified key vault. - - - - Update-AzKeyVaultNetworkRuleSet - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - Bypass - - Specifies bypass of network rule. - - - None - AzureServices - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - - None - - - DefaultAction - - Specifies default action of network rule. - - - Allow - Deny - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultNetworkRuleSet - - VaultName - - Specifies the name of a key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - Bypass - - Specifies bypass of network rule. - - - None - AzureServices - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - - None - - - DefaultAction - - Specifies default action of network rule. - - - Allow - Deny - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultNetworkRuleSet - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - Bypass - - Specifies bypass of network rule. - - - None - AzureServices - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - - None - - - DefaultAction - - Specifies default action of network rule. - - - Allow - Deny - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - - System.Management.Automation.SwitchParameter - - - False - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Bypass - - Specifies bypass of network rule. - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum] - - - None - - - DefaultAction - - Specifies default action of network rule. - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - KeyVault object - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - None - - - IpAddressRange - - Specifies allowed network IP address range of network rule. - - System.String[] - - System.String[] - - - None - - - PassThru - - This Cmdlet does not return an object by default. If this switch is specified, it returns the updated key vault object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of the resource group associated with the key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - ResourceId - - KeyVault Resource Id - - System.String - - System.String - - - None - - - SubscriptionId - - The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets. - - System.String - - System.String - - - None - - - VaultName - - Specifies the name of a key vault whose network rule is being modified. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - Specifies allowed virtual network resource identifier of network rule. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - System.String - - - - - - - - System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] - - - - - - - - System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - $frontendSubnet = New-AzVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix "10.0.1.0/24" -ServiceEndpoint Microsoft.KeyVault -$virtualNetwork = New-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG -Location westus -AddressPrefix "10.0.0.0/16" -Subnet $frontendSubnet -$myNetworkResId = (Get-AzVirtualNetwork -Name myVNet -ResourceGroupName myRG).Subnets[0].Id -Update-AzKeyVaultNetworkRuleSet -VaultName 'myVault' -ResourceGroupName myRG -Bypass AzureServices -IpAddressRange "10.0.1.0/24" -VirtualNetworkResourceId $myNetworkResId -PassThru - -Vault Name : myVault -Resource Group Name : myRG -Location : West US -Resource ID : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myrg/providers - /Microsoft.KeyVault/vaults/myvault -Vault URI : https://myvault.vault.azure.net/ -Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx -SKU : Standard -Enabled For Deployment? : False -Enabled For Template Deployment? : False -Enabled For Disk Encryption? : False -Soft Delete Enabled? : -Access Policies : - Tenant ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Object ID : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx - Application ID : - Display Name : User Name (username@microsoft.com) - Permissions to Keys : get, create, delete, list, update, - import, backup, restore, recover - Permissions to Secrets : get, list, set, delete, backup, - restore, recover - Permissions to Certificates : get, delete, list, create, import, - update, deleteissuers, getissuers, listissuers, managecontacts, manageissuers, - setissuers, recover, backup, restore - Permissions to (Key Vault Managed) Storage : delete, deletesas, get, getsas, list, - listsas, regeneratekey, set, setsas, update, recover, backup, restore - - -Network Rule Set : - Default Action : Allow - Bypass : AzureServices - IP Rules : 10.0.1.0/24 - Virtual Network Rules : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx- - xxxxxxxxxxxxx/resourcegroups/myrg/providers/microsoft.network/virtualnetworks/myvn - et/subnets/frontendsubnet - -Tags : - - This command updates the network ruleset on the vault named 'myVault' for the specified IP range and the virtual network, allowing bypassing of the network rule for Azure services. - - - - - - -------------------------- Example 2 -------------------------- - Update-AzKeyVaultNetworkRuleSet -DefaultAction Allow -VaultName 'myVault' - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultnetworkruleset - - - - - - Update-AzKeyVaultSecret - Update - AzKeyVaultSecret - - Updates attributes of a secret in a key vault. - - - - The Update-AzKeyVaultSecret cmdlet updates editable attributes of a secret in a key vault. - - - - Update-AzKeyVaultSecret - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - Version - - Secret version. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment, secret name and secret version. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - ContentType - - Secret's content type. If not specified, the existing value of the secret's content type remains unchanged. Remove the existing content type value by specifying an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Enable - - If present, enable a secret if value is true. Disable a secret if value is false. If not specified, the existing value of the secret's enabled/disabled state remains unchanged. - - Boolean - - Boolean - - - None - - - Expires - - The expiration time of a secret in UTC time. If not specified, the existing value of the secret's expiration time remains unchanged. - - DateTime - - DateTime - - - None - - - NotBefore - - The UTC time before which secret can't be used. If not specified, the existing value of the secret's NotBefore attribute remains unchanged. - - DateTime - - DateTime - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - SwitchParameter - - - False - - - Tag - - A hashtable representing secret tags. If not specified, the existing tags of the secret remain unchanged. Remove a tag by specifying an empty Hashtable. - - Hashtable - - Hashtable - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Update-AzKeyVaultSecret - - InputObject - - Secret object - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - Version - - Secret version. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment, secret name and secret version. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - ContentType - - Secret's content type. If not specified, the existing value of the secret's content type remains unchanged. Remove the existing content type value by specifying an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Enable - - If present, enable a secret if value is true. Disable a secret if value is false. If not specified, the existing value of the secret's enabled/disabled state remains unchanged. - - Boolean - - Boolean - - - None - - - Expires - - The expiration time of a secret in UTC time. If not specified, the existing value of the secret's expiration time remains unchanged. - - DateTime - - DateTime - - - None - - - NotBefore - - The UTC time before which secret can't be used. If not specified, the existing value of the secret's NotBefore attribute remains unchanged. - - DateTime - - DateTime - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - SwitchParameter - - - False - - - Tag - - A hashtable representing secret tags. If not specified, the existing tags of the secret remain unchanged. Remove a tag by specifying an empty Hashtable. - - Hashtable - - Hashtable - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - Update-AzKeyVaultSecret - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - String - - String - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - String - - String - - - None - - - Version - - Secret version. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment, secret name and secret version. - - String - - String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - ContentType - - Secret's content type. If not specified, the existing value of the secret's content type remains unchanged. Remove the existing content type value by specifying an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Enable - - If present, enable a secret if value is true. Disable a secret if value is false. If not specified, the existing value of the secret's enabled/disabled state remains unchanged. - - Boolean - - Boolean - - - None - - - Expires - - The expiration time of a secret in UTC time. If not specified, the existing value of the secret's expiration time remains unchanged. - - DateTime - - DateTime - - - None - - - NotBefore - - The UTC time before which secret can't be used. If not specified, the existing value of the secret's NotBefore attribute remains unchanged. - - DateTime - - DateTime - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - SwitchParameter - - - False - - - Tag - - A hashtable representing secret tags. If not specified, the existing tags of the secret remain unchanged. Remove a tag by specifying an empty Hashtable. - - Hashtable - - Hashtable - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - False - - - ContentType - - Secret's content type. If not specified, the existing value of the secret's content type remains unchanged. Remove the existing content type value by specifying an empty string. - - String - - String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - IAzureContextContainer - - IAzureContextContainer - - - None - - - Enable - - If present, enable a secret if value is true. Disable a secret if value is false. If not specified, the existing value of the secret's enabled/disabled state remains unchanged. - - Boolean - - Boolean - - - None - - - Expires - - The expiration time of a secret in UTC time. If not specified, the existing value of the secret's expiration time remains unchanged. - - DateTime - - DateTime - - - None - - - Id - - The URI of the KeyVault Secret. Please ensure it follows the format: `https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>` - - String - - String - - - None - - - InputObject - - Secret object - - PSKeyVaultSecretIdentityItem - - PSKeyVaultSecretIdentityItem - - - None - - - Name - - Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name. - - String - - String - - - None - - - NotBefore - - The UTC time before which secret can't be used. If not specified, the existing value of the secret's NotBefore attribute remains unchanged. - - DateTime - - DateTime - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - SwitchParameter - - SwitchParameter - - - False - - - Tag - - A hashtable representing secret tags. If not specified, the existing tags of the secret remain unchanged. Remove a tag by specifying an empty Hashtable. - - Hashtable - - Hashtable - - - None - - - VaultName - - Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. - - String - - String - - - None - - - Version - - Secret version. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment, secret name and secret version. - - String - - String - - - None - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret - - - - - - - - - - - - - - --------- Example 1: Modify the attributes of a secret --------- - $Expires = (Get-Date).AddYears(2).ToUniversalTime() -$Nbf = (Get-Date).ToUniversalTime() -$Tags = @{ 'Severity' = 'medium'; 'HR' = 'true'} -$ContentType= 'xml' -Update-AzKeyVaultSecret -VaultName 'ContosoVault' -Name 'HR' -Expires $Expires -NotBefore $Nbf -ContentType $ContentType -Enable $True -Tag $Tags -PassThru - -Vault Name : ContosoVault -Name : HR -Version : d476edfcd3544017a03bc49c1f3abec0 -Id : https://ContosoVault.vault.azure.net:443/secrets/HR/d476edfcd3544017a03bc49c1f3abec0 -Enabled : True -Expires : 5/25/2020 8:01:58 PM -Not Before : 5/25/2018 8:02:02 PM -Created : 4/11/2018 11:45:06 PM -Updated : 5/25/2018 8:02:45 PM -Content Type : xml -Tags : Name Value - Severity medium - HR true - - The first four commands define attributes for the expiry date, the NotBefore date, tags, and context type, and store the attributes in variables. The final command modifies the attributes for the secret named HR in the key vault named ContosoVault, using the stored variables. - - - - - - --- Example 2: Delete the tags and content type for a secret --- - Update-AzKeyVaultSecret -VaultName 'ContosoVault' -Name 'HR' -Version '9EEA45C6EE50490B9C3176A80AC1A0DF' -ContentType '' -Tag @{} - - This command deletes the tags and the content type for the specified version of the secret named HR in the key vault named Contoso. - - - - - - Example 3: Disable the current version of secrets whose name begins with IT - $Vault = 'ContosoVault' -$Prefix = 'IT' -Get-AzKeyVaultSecret $Vault | Where-Object {$_.Name -like $Prefix + '*'} | Update-AzKeyVaultSecret -Enable $False - - The first command stores the string value Contoso in the $Vault variable. The second command stores the string value IT in the $Prefix variable. The third command uses the Get-AzKeyVaultSecret cmdlet to get the secrets in the specified key vault, and then passes those secrets to the Where-Object cmdlet. The Where-Object cmdlet filters the secrets for names that begin with the characters IT. The command pipes the secrets that match the filter to the Update-AzKeyVaultSecret cmdlet, which disables them. - - - - - - - Example 4: Set the ContentType for all versions of a secret - - $VaultName = 'ContosoVault' -$Name = 'HR' -$ContentType = 'xml' -Get-AzKeyVaultKey -VaultName $VaultName -Name $Name -IncludeVersions | Update-AzKeyVaultSecret -ContentType $ContentType - - The first three commands define string variables to use for the VaultName , Name , and ContentType parameters. The fourth command uses the Get-AzKeyVaultKey cmdlet to get the specified keys, and pipes the keys to the Update-AzKeyVaultSecret cmdlet to set their content type to XML. - - - - - - Example 5: Delete the tags and content type for a secret (using Uri) - Update-AzKeyVaultSecret -Id 'https://ContosoVault.vault.azure.net:443/secrets/HR/9EEA45C6EE50490B9C3176A80AC1A0DF' -ContentType '' -Tag @{} - - This command deletes the tags and the content type for the specified version of the secret named HR in the key vault named Contoso. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultsecret - - - - - - Update-AzKeyVaultSetting - Update - AzKeyVaultSetting - - Update specific setting associated with the managed HSM. - - - - The Update-AzKeyVaultSetting cmdlet updates key vault account settings. This cmdlet updates a specific key vault account setting. - - - - Update-AzKeyVaultSetting - - HsmId - - Hsm Resource Id. - - System.String - - System.String - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - Value - - Value of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultSetting - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - Value - - Value of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultSetting - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - InputObject - - The location of the deleted vault. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - - None - - - Value - - Value of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzKeyVaultSetting - - HsmObject - - Hsm Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - Value - - Value of the setting. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HsmId - - Hsm Resource Id. - - System.String - - System.String - - - None - - - HsmName - - Name of the HSM. - - System.String - - System.String - - - None - - - HsmObject - - Hsm Object. - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - None - - - InputObject - - The location of the deleted vault. - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - - None - - - Name - - Name of the setting. - - System.String - - System.String - - - None - - - PassThru - - Cmdlet does not return object by default. If this switch is specified, return Secret object. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Value - - Value of the setting. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm - - - - - - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSetting - - - - - - - - - - - - - - ---- Example 1: Update a specific key vault account setting ---- - Update-AzKeyVaultSetting -HsmName testmhsm -Name AllowKeyManagementOperationsThroughARM -Value true -PassThru - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM true boolean testmhsm - - Update a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed Hsm named `testmhsm`. - - - - - - Example 2: Update a specific key vault account setting same as another account setting - $setting = Get-AzKeyVaultSetting -HsmName testmhsm1 -Name AllowKeyManagementOperationsThroughARM -$setting | Update-AzKeyVaultSetting -HsmName testmhsm2 -PassThru - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM true boolean testmhsm2 - - Update a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed Hsm named `testmhsm2` same with `testmhsm1`. - - - - - - Example 3: Update a specific key vault account setting via HsmObject - $hsmObject = Get-AzKeyVaultManagedHsm -Name testmhsm -Update-AzKeyVaultSetting -HsmObject $hsmObject -Name AllowKeyManagementOperationsThroughARM -Value true -PassThru - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM true boolean testmhsm - - Update a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed Hsm named `testmhsm` via HsmObject. - - - - - - Example 4: Update a specific key vault account setting via HsmId - $hsmObject = Get-AzKeyVaultManagedHsm -Name testmhsm -Update-AzKeyVaultSetting -HsmId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/managedHSMs/testmhsm-Name AllowKeyManagementOperationsThroughARM -Value true -PassThru - -Name Value Type HSM Name ----- ----- ---- -------- -AllowKeyManagementOperationsThroughARM true boolean testmhsm - - Update a specific key vault account setting named `AllowKeyManagementOperationsThroughARM` in a Managed Hsm named `testmhsm` via HsmObject. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.keyvault/update-azkeyvaultsetting - - - Get-AzKeyVaultSetting - - - - - \ No newline at end of file diff --git a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.KeyVault.Management.Sdk.dll b/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.KeyVault.Management.Sdk.dll deleted file mode 100644 index d4a22992eb53..000000000000 Binary files a/Modules/Az.KeyVault/6.3.1/Microsoft.Azure.PowerShell.KeyVault.Management.Sdk.dll and /dev/null differ diff --git a/Modules/Az.KeyVault/6.3.1/PSGetModuleInfo.xml b/Modules/Az.KeyVault/6.3.1/PSGetModuleInfo.xml deleted file mode 100644 index 53382a82510c..000000000000 --- a/Modules/Az.KeyVault/6.3.1/PSGetModuleInfo.xml +++ /dev/null @@ -1,323 +0,0 @@ - - - - Microsoft.PowerShell.Commands.PSRepositoryItemInfo - System.Management.Automation.PSCustomObject - System.Object - - - Az.KeyVault - 6.3.1 - Module - Microsoft Azure PowerShell - Key Vault service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core._x000D__x000A__x000D__x000A_For more information on Key Vault, please visit the following: https://learn.microsoft.com/azure/key-vault/ - Microsoft Corporation - azure-sdk - Microsoft Corporation. All rights reserved. -
2025-01-14T03:15:54-05:00
- - - https://aka.ms/azps-license - https://github.com/Azure/azure-powershell - - - - System.Object[] - System.Array - System.Object - - - Azure - ResourceManager - ARM - KeyVault - SecretManagement - PSModule - PSEdition_Core - PSEdition_Desktop - - - - - System.Collections.Hashtable - System.Object - - - - RoleCapability - - - - - - - Function - - - - Add-AzKeyVaultManagedHsmRegion - Get-AzKeyVaultManagedHsmRegion - Remove-AzKeyVaultManagedHsmRegion - Test-AzKeyVaultManagedHsmNameAvailability - Test-AzKeyVaultNameAvailability - - - - - Cmdlet - - - - Add-AzKeyVaultCertificate - Add-AzKeyVaultCertificateContact - Add-AzKeyVaultKey - Add-AzKeyVaultManagedStorageAccount - Add-AzKeyVaultNetworkRule - Backup-AzKeyVault - Backup-AzKeyVaultCertificate - Backup-AzKeyVaultKey - Backup-AzKeyVaultManagedStorageAccount - Backup-AzKeyVaultSecret - Export-AzKeyVaultSecurityDomain - Get-AzKeyVault - Get-AzKeyVaultCertificate - Get-AzKeyVaultCertificateContact - Get-AzKeyVaultCertificateIssuer - Get-AzKeyVaultCertificateOperation - Get-AzKeyVaultCertificatePolicy - Get-AzKeyVaultKey - Get-AzKeyVaultKeyRotationPolicy - Get-AzKeyVaultManagedHsm - Get-AzKeyVaultManagedStorageAccount - Get-AzKeyVaultManagedStorageSasDefinition - Get-AzKeyVaultRandomNumber - Get-AzKeyVaultRoleAssignment - Get-AzKeyVaultRoleDefinition - Get-AzKeyVaultSecret - Get-AzKeyVaultSetting - Import-AzKeyVaultCertificate - Import-AzKeyVaultSecurityDomain - Invoke-AzKeyVaultKeyOperation - Invoke-AzKeyVaultKeyRotation - New-AzKeyVault - New-AzKeyVaultCertificateAdministratorDetail - New-AzKeyVaultCertificateOrganizationDetail - New-AzKeyVaultCertificatePolicy - New-AzKeyVaultManagedHsm - New-AzKeyVaultNetworkRuleSetObject - New-AzKeyVaultRoleAssignment - New-AzKeyVaultRoleDefinition - Remove-AzKeyVault - Remove-AzKeyVaultAccessPolicy - Remove-AzKeyVaultCertificate - Remove-AzKeyVaultCertificateContact - Remove-AzKeyVaultCertificateIssuer - Remove-AzKeyVaultCertificateOperation - Remove-AzKeyVaultKey - Remove-AzKeyVaultManagedHsm - Remove-AzKeyVaultManagedStorageAccount - Remove-AzKeyVaultManagedStorageSasDefinition - Remove-AzKeyVaultNetworkRule - Remove-AzKeyVaultRoleAssignment - Remove-AzKeyVaultRoleDefinition - Remove-AzKeyVaultSecret - Restore-AzKeyVault - Restore-AzKeyVaultCertificate - Restore-AzKeyVaultKey - Restore-AzKeyVaultManagedStorageAccount - Restore-AzKeyVaultSecret - Set-AzKeyVaultAccessPolicy - Set-AzKeyVaultCertificateIssuer - Set-AzKeyVaultCertificatePolicy - Set-AzKeyVaultKeyRotationPolicy - Set-AzKeyVaultManagedStorageSasDefinition - Set-AzKeyVaultSecret - Stop-AzKeyVaultCertificateOperation - Undo-AzKeyVaultCertificateRemoval - Undo-AzKeyVaultKeyRemoval - Undo-AzKeyVaultManagedHsmRemoval - Undo-AzKeyVaultManagedStorageAccountRemoval - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - Undo-AzKeyVaultRemoval - Undo-AzKeyVaultSecretRemoval - Update-AzKeyVault - Update-AzKeyVaultCertificate - Update-AzKeyVaultKey - Update-AzKeyVaultManagedHsm - Update-AzKeyVaultManagedStorageAccount - Update-AzKeyVaultManagedStorageAccountKey - Update-AzKeyVaultNetworkRuleSet - Update-AzKeyVaultSecret - Update-AzKeyVaultSetting - - - - - DscResource - - - - Workflow - - - - Command - - - - Add-AzKeyVaultCertificate - Add-AzKeyVaultCertificateContact - Add-AzKeyVaultKey - Add-AzKeyVaultManagedStorageAccount - Add-AzKeyVaultNetworkRule - Backup-AzKeyVault - Backup-AzKeyVaultCertificate - Backup-AzKeyVaultKey - Backup-AzKeyVaultManagedStorageAccount - Backup-AzKeyVaultSecret - Export-AzKeyVaultSecurityDomain - Get-AzKeyVault - Get-AzKeyVaultCertificate - Get-AzKeyVaultCertificateContact - Get-AzKeyVaultCertificateIssuer - Get-AzKeyVaultCertificateOperation - Get-AzKeyVaultCertificatePolicy - Get-AzKeyVaultKey - Get-AzKeyVaultKeyRotationPolicy - Get-AzKeyVaultManagedHsm - Get-AzKeyVaultManagedStorageAccount - Get-AzKeyVaultManagedStorageSasDefinition - Get-AzKeyVaultRandomNumber - Get-AzKeyVaultRoleAssignment - Get-AzKeyVaultRoleDefinition - Get-AzKeyVaultSecret - Get-AzKeyVaultSetting - Import-AzKeyVaultCertificate - Import-AzKeyVaultSecurityDomain - Invoke-AzKeyVaultKeyOperation - Invoke-AzKeyVaultKeyRotation - New-AzKeyVault - New-AzKeyVaultCertificateAdministratorDetail - New-AzKeyVaultCertificateOrganizationDetail - New-AzKeyVaultCertificatePolicy - New-AzKeyVaultManagedHsm - New-AzKeyVaultNetworkRuleSetObject - New-AzKeyVaultRoleAssignment - New-AzKeyVaultRoleDefinition - Remove-AzKeyVault - Remove-AzKeyVaultAccessPolicy - Remove-AzKeyVaultCertificate - Remove-AzKeyVaultCertificateContact - Remove-AzKeyVaultCertificateIssuer - Remove-AzKeyVaultCertificateOperation - Remove-AzKeyVaultKey - Remove-AzKeyVaultManagedHsm - Remove-AzKeyVaultManagedStorageAccount - Remove-AzKeyVaultManagedStorageSasDefinition - Remove-AzKeyVaultNetworkRule - Remove-AzKeyVaultRoleAssignment - Remove-AzKeyVaultRoleDefinition - Remove-AzKeyVaultSecret - Restore-AzKeyVault - Restore-AzKeyVaultCertificate - Restore-AzKeyVaultKey - Restore-AzKeyVaultManagedStorageAccount - Restore-AzKeyVaultSecret - Set-AzKeyVaultAccessPolicy - Set-AzKeyVaultCertificateIssuer - Set-AzKeyVaultCertificatePolicy - Set-AzKeyVaultKeyRotationPolicy - Set-AzKeyVaultManagedStorageSasDefinition - Set-AzKeyVaultSecret - Stop-AzKeyVaultCertificateOperation - Undo-AzKeyVaultCertificateRemoval - Undo-AzKeyVaultKeyRemoval - Undo-AzKeyVaultManagedHsmRemoval - Undo-AzKeyVaultManagedStorageAccountRemoval - Undo-AzKeyVaultManagedStorageSasDefinitionRemoval - Undo-AzKeyVaultRemoval - Undo-AzKeyVaultSecretRemoval - Update-AzKeyVault - Update-AzKeyVaultCertificate - Update-AzKeyVaultKey - Update-AzKeyVaultManagedHsm - Update-AzKeyVaultManagedStorageAccount - Update-AzKeyVaultManagedStorageAccountKey - Update-AzKeyVaultNetworkRuleSet - Update-AzKeyVaultSecret - Update-AzKeyVaultSetting - Add-AzKeyVaultManagedHsmRegion - Get-AzKeyVaultManagedHsmRegion - Remove-AzKeyVaultManagedHsmRegion - Test-AzKeyVaultManagedHsmNameAvailability - Test-AzKeyVaultNameAvailability - - - - - - - * Upgraded nuget package to signed package._x000D__x000A_* Upgraded Azure.Core to 1.44.1. - - - - - - System.Collections.Specialized.OrderedDictionary - System.Object - - - - Name - Az.Accounts - - - MinimumVersion - 4.0.1 - - - CanonicalId - nuget:Az.Accounts/4.0.1 - - - - - - https://www.powershellgallery.com/api/v2 - PSGallery - NuGet - - - System.Management.Automation.PSCustomObject - System.Object - - - Microsoft Corporation. All rights reserved. - Microsoft Azure PowerShell - Key Vault service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core._x000D__x000A__x000D__x000A_For more information on Key Vault, please visit the following: https://learn.microsoft.com/azure/key-vault/ - True - * Upgraded nuget package to signed package._x000D__x000A_* Upgraded Azure.Core to 1.44.1. - True - True - 3374973 - 143464978 - 2962648 - 1/14/2025 3:15:54 AM -05:00 - 1/14/2025 3:15:54 AM -05:00 - 1/30/2025 5:40:00 PM -05:00 - Azure ResourceManager ARM KeyVault SecretManagement PSModule PSEdition_Core PSEdition_Desktop PSCmdlet_Add-AzKeyVaultCertificate PSCommand_Add-AzKeyVaultCertificate PSCmdlet_Add-AzKeyVaultCertificateContact PSCommand_Add-AzKeyVaultCertificateContact PSCmdlet_Add-AzKeyVaultKey PSCommand_Add-AzKeyVaultKey PSCmdlet_Add-AzKeyVaultManagedStorageAccount PSCommand_Add-AzKeyVaultManagedStorageAccount PSCmdlet_Add-AzKeyVaultNetworkRule PSCommand_Add-AzKeyVaultNetworkRule PSCmdlet_Backup-AzKeyVault PSCommand_Backup-AzKeyVault PSCmdlet_Backup-AzKeyVaultCertificate PSCommand_Backup-AzKeyVaultCertificate PSCmdlet_Backup-AzKeyVaultKey PSCommand_Backup-AzKeyVaultKey PSCmdlet_Backup-AzKeyVaultManagedStorageAccount PSCommand_Backup-AzKeyVaultManagedStorageAccount PSCmdlet_Backup-AzKeyVaultSecret PSCommand_Backup-AzKeyVaultSecret PSCmdlet_Export-AzKeyVaultSecurityDomain PSCommand_Export-AzKeyVaultSecurityDomain PSCmdlet_Get-AzKeyVault PSCommand_Get-AzKeyVault PSCmdlet_Get-AzKeyVaultCertificate PSCommand_Get-AzKeyVaultCertificate PSCmdlet_Get-AzKeyVaultCertificateContact PSCommand_Get-AzKeyVaultCertificateContact PSCmdlet_Get-AzKeyVaultCertificateIssuer PSCommand_Get-AzKeyVaultCertificateIssuer PSCmdlet_Get-AzKeyVaultCertificateOperation PSCommand_Get-AzKeyVaultCertificateOperation PSCmdlet_Get-AzKeyVaultCertificatePolicy PSCommand_Get-AzKeyVaultCertificatePolicy PSCmdlet_Get-AzKeyVaultKey PSCommand_Get-AzKeyVaultKey PSCmdlet_Get-AzKeyVaultKeyRotationPolicy PSCommand_Get-AzKeyVaultKeyRotationPolicy PSCmdlet_Get-AzKeyVaultManagedHsm PSCommand_Get-AzKeyVaultManagedHsm PSCmdlet_Get-AzKeyVaultManagedStorageAccount PSCommand_Get-AzKeyVaultManagedStorageAccount PSCmdlet_Get-AzKeyVaultManagedStorageSasDefinition PSCommand_Get-AzKeyVaultManagedStorageSasDefinition PSCmdlet_Get-AzKeyVaultRandomNumber PSCommand_Get-AzKeyVaultRandomNumber PSCmdlet_Get-AzKeyVaultRoleAssignment PSCommand_Get-AzKeyVaultRoleAssignment PSCmdlet_Get-AzKeyVaultRoleDefinition PSCommand_Get-AzKeyVaultRoleDefinition PSCmdlet_Get-AzKeyVaultSecret PSCommand_Get-AzKeyVaultSecret PSCmdlet_Get-AzKeyVaultSetting PSCommand_Get-AzKeyVaultSetting PSCmdlet_Import-AzKeyVaultCertificate PSCommand_Import-AzKeyVaultCertificate PSCmdlet_Import-AzKeyVaultSecurityDomain PSCommand_Import-AzKeyVaultSecurityDomain PSCmdlet_Invoke-AzKeyVaultKeyOperation PSCommand_Invoke-AzKeyVaultKeyOperation PSCmdlet_Invoke-AzKeyVaultKeyRotation PSCommand_Invoke-AzKeyVaultKeyRotation PSCmdlet_New-AzKeyVault PSCommand_New-AzKeyVault PSCmdlet_New-AzKeyVaultCertificateAdministratorDetail PSCommand_New-AzKeyVaultCertificateAdministratorDetail PSCmdlet_New-AzKeyVaultCertificateOrganizationDetail PSCommand_New-AzKeyVaultCertificateOrganizationDetail PSCmdlet_New-AzKeyVaultCertificatePolicy PSCommand_New-AzKeyVaultCertificatePolicy PSCmdlet_New-AzKeyVaultManagedHsm PSCommand_New-AzKeyVaultManagedHsm PSCmdlet_New-AzKeyVaultNetworkRuleSetObject PSCommand_New-AzKeyVaultNetworkRuleSetObject PSCmdlet_New-AzKeyVaultRoleAssignment PSCommand_New-AzKeyVaultRoleAssignment PSCmdlet_New-AzKeyVaultRoleDefinition PSCommand_New-AzKeyVaultRoleDefinition PSCmdlet_Remove-AzKeyVault PSCommand_Remove-AzKeyVault PSCmdlet_Remove-AzKeyVaultAccessPolicy PSCommand_Remove-AzKeyVaultAccessPolicy PSCmdlet_Remove-AzKeyVaultCertificate PSCommand_Remove-AzKeyVaultCertificate PSCmdlet_Remove-AzKeyVaultCertificateContact PSCommand_Remove-AzKeyVaultCertificateContact PSCmdlet_Remove-AzKeyVaultCertificateIssuer PSCommand_Remove-AzKeyVaultCertificateIssuer PSCmdlet_Remove-AzKeyVaultCertificateOperation PSCommand_Remove-AzKeyVaultCertificateOperation PSCmdlet_Remove-AzKeyVaultKey PSCommand_Remove-AzKeyVaultKey PSCmdlet_Remove-AzKeyVaultManagedHsm PSCommand_Remove-AzKeyVaultManagedHsm PSCmdlet_Remove-AzKeyVaultManagedStorageAccount PSCommand_Remove-AzKeyVaultManagedStorageAccount PSCmdlet_Remove-AzKeyVaultManagedStorageSasDefinition PSCommand_Remove-AzKeyVaultManagedStorageSasDefinition PSCmdlet_Remove-AzKeyVaultNetworkRule PSCommand_Remove-AzKeyVaultNetworkRule PSCmdlet_Remove-AzKeyVaultRoleAssignment PSCommand_Remove-AzKeyVaultRoleAssignment PSCmdlet_Remove-AzKeyVaultRoleDefinition PSCommand_Remove-AzKeyVaultRoleDefinition PSCmdlet_Remove-AzKeyVaultSecret PSCommand_Remove-AzKeyVaultSecret PSCmdlet_Restore-AzKeyVault PSCommand_Restore-AzKeyVault PSCmdlet_Restore-AzKeyVaultCertificate PSCommand_Restore-AzKeyVaultCertificate PSCmdlet_Restore-AzKeyVaultKey PSCommand_Restore-AzKeyVaultKey PSCmdlet_Restore-AzKeyVaultManagedStorageAccount PSCommand_Restore-AzKeyVaultManagedStorageAccount PSCmdlet_Restore-AzKeyVaultSecret PSCommand_Restore-AzKeyVaultSecret PSCmdlet_Set-AzKeyVaultAccessPolicy PSCommand_Set-AzKeyVaultAccessPolicy PSCmdlet_Set-AzKeyVaultCertificateIssuer PSCommand_Set-AzKeyVaultCertificateIssuer PSCmdlet_Set-AzKeyVaultCertificatePolicy PSCommand_Set-AzKeyVaultCertificatePolicy PSCmdlet_Set-AzKeyVaultKeyRotationPolicy PSCommand_Set-AzKeyVaultKeyRotationPolicy PSCmdlet_Set-AzKeyVaultManagedStorageSasDefinition PSCommand_Set-AzKeyVaultManagedStorageSasDefinition PSCmdlet_Set-AzKeyVaultSecret PSCommand_Set-AzKeyVaultSecret PSCmdlet_Stop-AzKeyVaultCertificateOperation PSCommand_Stop-AzKeyVaultCertificateOperation PSCmdlet_Undo-AzKeyVaultCertificateRemoval PSCommand_Undo-AzKeyVaultCertificateRemoval PSCmdlet_Undo-AzKeyVaultKeyRemoval PSCommand_Undo-AzKeyVaultKeyRemoval PSCmdlet_Undo-AzKeyVaultManagedHsmRemoval PSCommand_Undo-AzKeyVaultManagedHsmRemoval PSCmdlet_Undo-AzKeyVaultManagedStorageAccountRemoval PSCommand_Undo-AzKeyVaultManagedStorageAccountRemoval PSCmdlet_Undo-AzKeyVaultManagedStorageSasDefinitionRemoval PSCommand_Undo-AzKeyVaultManagedStorageSasDefinitionRemoval PSCmdlet_Undo-AzKeyVaultRemoval PSCommand_Undo-AzKeyVaultRemoval PSCmdlet_Undo-AzKeyVaultSecretRemoval PSCommand_Undo-AzKeyVaultSecretRemoval PSCmdlet_Update-AzKeyVault PSCommand_Update-AzKeyVault PSCmdlet_Update-AzKeyVaultCertificate PSCommand_Update-AzKeyVaultCertificate PSCmdlet_Update-AzKeyVaultKey PSCommand_Update-AzKeyVaultKey PSCmdlet_Update-AzKeyVaultManagedHsm PSCommand_Update-AzKeyVaultManagedHsm PSCmdlet_Update-AzKeyVaultManagedStorageAccount PSCommand_Update-AzKeyVaultManagedStorageAccount PSCmdlet_Update-AzKeyVaultManagedStorageAccountKey PSCommand_Update-AzKeyVaultManagedStorageAccountKey PSCmdlet_Update-AzKeyVaultNetworkRuleSet PSCommand_Update-AzKeyVaultNetworkRuleSet PSCmdlet_Update-AzKeyVaultSecret PSCommand_Update-AzKeyVaultSecret PSCmdlet_Update-AzKeyVaultSetting PSCommand_Update-AzKeyVaultSetting PSIncludes_Cmdlet PSFunction_Add-AzKeyVaultManagedHsmRegion PSCommand_Add-AzKeyVaultManagedHsmRegion PSFunction_Get-AzKeyVaultManagedHsmRegion PSCommand_Get-AzKeyVaultManagedHsmRegion PSFunction_Remove-AzKeyVaultManagedHsmRegion PSCommand_Remove-AzKeyVaultManagedHsmRegion PSFunction_Test-AzKeyVaultManagedHsmNameAvailability PSCommand_Test-AzKeyVaultManagedHsmNameAvailability PSFunction_Test-AzKeyVaultNameAvailability PSCommand_Test-AzKeyVaultNameAvailability PSIncludes_Function - False - 2025-01-30T17:40:00Z - 6.3.1 - Microsoft Corporation - false - Module - Az.KeyVault.nuspec|KeyVault.Autorest\utils\Unprotect-SecureString.ps1|Az.KeyVault.psm1|Azure.Security.KeyVault.Certificates.dll|BouncyCastle.Crypto.dll|keyvault.generated.format.ps1xml|Microsoft.Azure.KeyVault.WebKey.dll|Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll-Help.xml|Az.KeyVault.Extension\Az.KeyVault.Extension.psd1|KeyVault.Autorest\Az.KeyVault.format.ps1xml|KeyVault.Autorest\bin\Az.KeyVault.private.dll|KeyVault.Autorest\custom\Az.KeyVault.custom.psm1|KeyVault.Autorest\custom\ManagedHsm.json.cs|KeyVault.Autorest\exports\ProxyCmdletDefinitions.ps1|KeyVault.Autorest\internal\ProxyCmdletDefinitions.ps1|KeyVault.Autorest\utils\Get-SubscriptionIdTestSafe.ps1|Az.KeyVault.psd1|Azure.Security.KeyVault.Administration.dll|Azure.Security.KeyVault.Keys.dll|KeyVault.format.ps1xml|Microsoft.Azure.KeyVault.dll|Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll|Microsoft.Azure.PowerShell.KeyVault.Management.Sdk.dll|Az.KeyVault.Extension\Az.KeyVault.Extension.psm1|KeyVault.Autorest\Az.KeyVault.psm1|KeyVault.Autorest\custom\Add-AzKeyVaultManagedHsmRegion.ps1|KeyVault.Autorest\custom\Get-ParameterForRegion.cs|KeyVault.Autorest\custom\Remove-AzKeyVaultManagedHsmRegion.ps1|KeyVault.Autorest\internal\Az.KeyVault.internal.psm1|.signature.p7s - cd188042-f215-4657-adfe-c17ae28cf730 - 5.1 - 4.7.2 - Microsoft Corporation - - - C:\GitHub\CIPP Workspace\CIPP-API\Modules\Az.KeyVault\6.3.1 -
-
-
diff --git a/Modules/Az.KeyVault/6.3.1/keyvault.generated.format.ps1xml b/Modules/Az.KeyVault/6.3.1/keyvault.generated.format.ps1xml deleted file mode 100644 index f586ecd1de60..000000000000 --- a/Modules/Az.KeyVault/6.3.1/keyvault.generated.format.ps1xml +++ /dev/null @@ -1,248 +0,0 @@ - - - - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyOperationResult - - Microsoft.Azure.Commands.KeyVault.Models.PSKeyOperationResult - - - - - - - KeyId - - - - RawResult - - - - Algorithm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Storage/8.1.0/.signature.p7s b/Modules/Az.Storage/8.1.0/.signature.p7s deleted file mode 100644 index 13dfbd7d7057..000000000000 Binary files a/Modules/Az.Storage/8.1.0/.signature.p7s and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Az.Storage.psd1 b/Modules/Az.Storage/8.1.0/Az.Storage.psd1 deleted file mode 100644 index 47a92893ca13..000000000000 --- a/Modules/Az.Storage/8.1.0/Az.Storage.psd1 +++ /dev/null @@ -1,495 +0,0 @@ -# -# Module manifest for module 'Az.Storage' -# -# Generated by: Microsoft Corporation -# -# Generated on: 1/9/2025 -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = 'Az.Storage.psm1' - -# Version number of this module. -ModuleVersion = '8.1.0' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = 'dfa9e4ea-1407-446d-9111-79122977ab20' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell - Storage service data plane and management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. Creates and manages storage accounts in Azure Resource Manager. - -For more information on Storage, please visit the following: https://learn.microsoft.com/azure/storage/' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @() - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Azure.Data.Tables.dll', 'Azure.Storage.Blobs.dll', - 'Azure.Storage.Common.dll', 'Azure.Storage.Files.DataLake.dll', - 'Azure.Storage.Files.Shares.dll', 'Azure.Storage.Queues.dll', - 'Microsoft.Azure.Cosmos.Table.dll', - 'Microsoft.Azure.DocumentDB.Core.dll', - 'Microsoft.Azure.KeyVault.Core.dll', - 'Microsoft.Azure.PowerShell.Storage.Common.dll', - 'Microsoft.Azure.PowerShell.Storage.Management.Sdk.dll', - 'Microsoft.Azure.Storage.Blob.dll', - 'Microsoft.Azure.Storage.Common.dll', - 'Microsoft.Azure.Storage.DataMovement.dll', - 'Microsoft.Azure.Storage.File.dll', - 'Microsoft.Azure.Storage.Queue.dll', 'Microsoft.OData.Core.dll', - 'Microsoft.OData.Edm.dll', 'Microsoft.Spatial.dll', - 'Storage.Autorest/bin/Az.Storage.private.dll', - 'System.IO.Hashing.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'Storage.Autorest/Az.Storage.format.ps1xml', - 'Storage.format.ps1xml', 'Storage.generated.format.ps1xml', - 'Storage.Management.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Storage.Autorest/Az.Storage.psm1') - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzStorageAccountMigration', 'Start-AzStorageAccountMigration' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Add-AzRmStorageContainerLegalHold', - 'Add-AzStorageAccountManagementPolicyAction', - 'Add-AzStorageAccountNetworkRule', 'Close-AzStorageFileHandle', - 'Copy-AzStorageBlob', 'Disable-AzStorageBlobDeleteRetentionPolicy', - 'Disable-AzStorageBlobLastAccessTimeTracking', - 'Disable-AzStorageBlobRestorePolicy', - 'Disable-AzStorageContainerDeleteRetentionPolicy', - 'Disable-AzStorageDeleteRetentionPolicy', - 'Disable-AzStorageStaticWebsite', - 'Enable-AzStorageBlobDeleteRetentionPolicy', - 'Enable-AzStorageBlobLastAccessTimeTracking', - 'Enable-AzStorageBlobRestorePolicy', - 'Enable-AzStorageContainerDeleteRetentionPolicy', - 'Enable-AzStorageDeleteRetentionPolicy', - 'Enable-AzStorageStaticWebsite', 'Get-AzDataLakeGen2ChildItem', - 'Get-AzDataLakeGen2DeletedItem', 'Get-AzDataLakeGen2Item', - 'Get-AzDataLakeGen2ItemContent', 'Get-AzRmStorageContainer', - 'Get-AzRmStorageContainerImmutabilityPolicy', - 'Get-AzRmStorageShare', 'Get-AzStorageAccount', - 'Get-AzStorageAccountKey', 'Get-AzStorageAccountManagementPolicy', - 'Get-AzStorageAccountNameAvailability', - 'Get-AzStorageAccountNetworkRuleSet', 'Get-AzStorageBlob', - 'Get-AzStorageBlobByTag', 'Get-AzStorageBlobContent', - 'Get-AzStorageBlobCopyState', 'Get-AzStorageBlobInventoryPolicy', - 'Get-AzStorageBlobQueryResult', 'Get-AzStorageBlobServiceProperty', - 'Get-AzStorageBlobTag', 'Get-AzStorageContainer', - 'Get-AzStorageContainerStoredAccessPolicy', 'Get-AzStorageCORSRule', - 'Get-AzStorageEncryptionScope', 'Get-AzStorageFile', - 'Get-AzStorageFileContent', 'Get-AzStorageFileCopyState', - 'Get-AzStorageFileHandle', 'Get-AzStorageFileServiceProperty', - 'Get-AzStorageLocalUser', 'Get-AzStorageLocalUserKey', - 'Get-AzStorageObjectReplicationPolicy', 'Get-AzStorageQueue', - 'Get-AzStorageQueueStoredAccessPolicy', - 'Get-AzStorageServiceLoggingProperty', - 'Get-AzStorageServiceMetricsProperty', - 'Get-AzStorageServiceProperty', 'Get-AzStorageShare', - 'Get-AzStorageShareStoredAccessPolicy', 'Get-AzStorageTable', - 'Get-AzStorageTableStoredAccessPolicy', 'Get-AzStorageUsage', - 'Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration', - 'Invoke-AzStorageAccountFailover', - 'Invoke-AzStorageAccountHierarchicalNamespaceUpgrade', - 'Lock-AzRmStorageContainerImmutabilityPolicy', - 'Move-AzDataLakeGen2Item', 'New-AzDataLakeGen2Item', - 'New-AzDataLakeGen2SasToken', 'New-AzRmStorageContainer', - 'New-AzRmStorageShare', 'New-AzStorageAccount', - 'New-AzStorageAccountKey', - 'New-AzStorageAccountManagementPolicyBlobIndexMatchObject', - 'New-AzStorageAccountManagementPolicyFilter', - 'New-AzStorageAccountManagementPolicyRule', - 'New-AzStorageAccountSASToken', - 'New-AzStorageBlobInventoryPolicyRule', - 'New-AzStorageBlobQueryConfig', 'New-AzStorageBlobRangeToRestore', - 'New-AzStorageBlobSASToken', 'New-AzStorageContainer', - 'New-AzStorageContainerSASToken', - 'New-AzStorageContainerStoredAccessPolicy', 'New-AzStorageContext', - 'New-AzStorageDirectory', 'New-AzStorageEncryptionScope', - 'New-AzStorageFileSASToken', - 'New-AzStorageLocalUserPermissionScope', - 'New-AzStorageLocalUserSshPassword', - 'New-AzStorageLocalUserSshPublicKey', - 'New-AzStorageObjectReplicationPolicyRule', 'New-AzStorageQueue', - 'New-AzStorageQueueSASToken', - 'New-AzStorageQueueStoredAccessPolicy', 'New-AzStorageShare', - 'New-AzStorageShareSASToken', - 'New-AzStorageShareStoredAccessPolicy', 'New-AzStorageTable', - 'New-AzStorageTableSASToken', - 'New-AzStorageTableStoredAccessPolicy', - 'Remove-AzDataLakeGen2AclRecursive', 'Remove-AzDataLakeGen2Item', - 'Remove-AzRmStorageContainer', - 'Remove-AzRmStorageContainerImmutabilityPolicy', - 'Remove-AzRmStorageContainerLegalHold', 'Remove-AzRmStorageShare', - 'Remove-AzStorageAccount', - 'Remove-AzStorageAccountManagementPolicy', - 'Remove-AzStorageAccountNetworkRule', 'Remove-AzStorageBlob', - 'Remove-AzStorageBlobImmutabilityPolicy', - 'Remove-AzStorageBlobInventoryPolicy', 'Remove-AzStorageContainer', - 'Remove-AzStorageContainerStoredAccessPolicy', - 'Remove-AzStorageCORSRule', 'Remove-AzStorageDirectory', - 'Remove-AzStorageFile', 'Remove-AzStorageLocalUser', - 'Remove-AzStorageObjectReplicationPolicy', 'Remove-AzStorageQueue', - 'Remove-AzStorageQueueStoredAccessPolicy', 'Remove-AzStorageShare', - 'Remove-AzStorageShareStoredAccessPolicy', 'Remove-AzStorageTable', - 'Remove-AzStorageTableStoredAccessPolicy', - 'Rename-AzStorageDirectory', 'Rename-AzStorageFile', - 'Restore-AzDataLakeGen2DeletedItem', 'Restore-AzRmStorageShare', - 'Restore-AzStorageBlobRange', 'Restore-AzStorageContainer', - 'Revoke-AzStorageAccountUserDelegationKeys', - 'Set-AzCurrentStorageAccount', 'Set-AzDataLakeGen2AclRecursive', - 'Set-AzDataLakeGen2ItemAclObject', - 'Set-AzRmStorageContainerImmutabilityPolicy', - 'Set-AzStorageAccount', 'Set-AzStorageAccountManagementPolicy', - 'Set-AzStorageBlobContent', 'Set-AzStorageBlobImmutabilityPolicy', - 'Set-AzStorageBlobInventoryPolicy', 'Set-AzStorageBlobLegalHold', - 'Set-AzStorageBlobTag', 'Set-AzStorageContainerAcl', - 'Set-AzStorageContainerStoredAccessPolicy', 'Set-AzStorageCORSRule', - 'Set-AzStorageFileContent', 'Set-AzStorageLocalUser', - 'Set-AzStorageObjectReplicationPolicy', - 'Set-AzStorageQueueStoredAccessPolicy', - 'Set-AzStorageServiceLoggingProperty', - 'Set-AzStorageServiceMetricsProperty', 'Set-AzStorageShareQuota', - 'Set-AzStorageShareStoredAccessPolicy', - 'Set-AzStorageTableStoredAccessPolicy', 'Start-AzStorageBlobCopy', - 'Start-AzStorageBlobIncrementalCopy', 'Start-AzStorageFileCopy', - 'Stop-AzStorageAccountHierarchicalNamespaceUpgrade', - 'Stop-AzStorageBlobCopy', 'Stop-AzStorageFileCopy', - 'Update-AzDataLakeGen2AclRecursive', 'Update-AzDataLakeGen2Item', - 'Update-AzRmStorageContainer', 'Update-AzRmStorageShare', - 'Update-AzStorageAccountNetworkRuleSet', - 'Update-AzStorageBlobServiceProperty', - 'Update-AzStorageEncryptionScope', - 'Update-AzStorageFileServiceProperty', - 'Update-AzStorageServiceProperty' - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = 'Disable-AzStorageSoftDelete', 'Enable-AzStorageSoftDelete', - 'Get-AzDatalakeGen2FileSystem', 'Get-AzStorageContainerAcl', - 'New-AzDatalakeGen2FileSystem', 'New-AzDataLakeGen2ItemAclObject', - 'Remove-AzDatalakeGen2FileSystem', 'Start-CopyAzureStorageBlob', - 'Stop-CopyAzureStorageBlob' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -ModuleList = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Storage','StorageAccount' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Upgraded nuget package to signed package. -* Added warning message for account migration cmdlet. - - ''Start-AzStorageAccountMigration'' -* Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount. - - ''New-AzStorageContext'' -* Upgraded Azure.Storage.Blobs to 12.23.0 -* Upgraded Azure.Storage.Files.Shares to 12.21.0 -* Upgraded Azure.Storage.Files.DataLake to 12.21.0 -* Upgraded Azure.Storage.Queues to 12.21.0 -* Supported ClientName property when listing file handles - - ''Get-AzStorageFileHandle'' -* Upgraded Azure.Core to 1.44.1.' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} - - -# SIG # Begin signature block -# MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCdvhDU+kBf4iej -# Xj/yr8wlkwJG4s1Ad2IchMhiIuTBsaCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdSn8qMzCBzR7rvH2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ya7MNWtwWV2k00jWgG -# n+GGfAOVQ5zgp4TUR5fhl1FPkWNoyhwMd4N2WX33W/dgSuiS8/oBtHXi8H6wPVPC -# uQ8YWSt9wsOsO8O0+DSrgWo8VWvIh109Fek5bPAy0SMD9NALoxd1mzzIqh95Rs4L -# MwcER0TerBPLVxmTAmvOrsxVY3sC0wiL/lBaD7pZNW+eKLuujbJvVa3SLcx0BO4k -# MYdHMhhvuWfiuEvcz90d8cLPM5/HQa3vbWIvxl7xw5XeUDr88VHepl8/X78e1bdA -# 4ZV6p2VYKzR3N5c6EQcDmqAxVJ7Bqh5xG48mgfYXPkr9lv39xzkWPwwx7ItriZfs -# gVRABGRq3OGV89hFu/myMuDsEyMc64eolprblbCeesaLL3NBBWu04mg9jwT4BN2O -# R+4h/dNplsEg3ZhXrQ0st9thbY2J71oimeRKOsYlqdcCJBCT1NnL -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Az.Storage.psm1 b/Modules/Az.Storage/8.1.0/Az.Storage.psm1 deleted file mode 100644 index b2592fb4a8df..000000000000 --- a/Modules/Az.Storage/8.1.0/Az.Storage.psm1 +++ /dev/null @@ -1,363 +0,0 @@ -# -# Script module for module 'Az.Storage' that is executed when 'Az.Storage' is imported in a PowerShell session. -# -# Generated by: Microsoft Corporation -# -# Generated on: 01/09/2025 06:21:00 -# - -$PSDefaultParameterValues.Clear() -Set-StrictMode -Version Latest - -function Test-DotNet -{ - try - { - if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | Where-Object { $_ -ge 461808 }))) - { - throw ".NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher." - } - } - catch [System.Management.Automation.DriveNotFoundException] - { - Write-Verbose ".NET Framework version check failed." - } -} - -function Preload-Assembly { - param ( - [string] - $AssemblyDirectory - ) - if($PSEdition -eq 'Desktop' -and (Test-Path $AssemblyDirectory -ErrorAction Ignore)) - { - try - { - Get-ChildItem -ErrorAction Stop -Path $AssemblyDirectory -Filter "*.dll" | ForEach-Object { - try - { - Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null - } - catch { - Write-Verbose $_ - } - } - } - catch {} - } -} - -if ($true -and ($PSEdition -eq 'Desktop')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'5.1') - { - throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher." - } - - Test-DotNet -} - -if ($true -and ($PSEdition -eq 'Core')) -{ - if ($PSVersionTable.PSVersion -lt [Version]'6.2.4') - { - throw "Current Az version doesn't support PowerShell Core versions lower than 6.2.4. Please upgrade to PowerShell Core 6.2.4 or higher." - } -} - -if (Test-Path -Path "$PSScriptRoot\StartupScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\StartupScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -# [windows powershell] preload assemblies - - -# [windows powershell] preload module alc assemblies -$preloadPath = (Join-Path $PSScriptRoot -ChildPath "ModuleAlcAssemblies") -Preload-Assembly -AssemblyDirectory $preloadPath - -if (Get-Module AzureRM.profile -ErrorAction Ignore) -{ - Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") - throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + - "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") -} - -$module = Get-Module Az.Accounts - if ($module -ne $null -and $module.Version -lt [System.Version]"4.0.1") -{ - Write-Error "This module requires Az.Accounts version 4.0.1. An earlier version of Az.Accounts is imported in the current PowerShell session. Please open a new session before importing this module. This error could indicate that multiple incompatible versions of the Azure PowerShell cmdlets are installed on your system. Please see https://aka.ms/azps-version-error for troubleshooting information." -ErrorAction Stop -} -elseif ($module -eq $null) -{ - Import-Module Az.Accounts -MinimumVersion 4.0.1 -Scope Global -} -Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Azure.PowerShell.Cmdlets.Storage.dll) -Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll) - - -if (Test-Path -Path "$PSScriptRoot\PostImportScripts" -ErrorAction Ignore) -{ - Get-ChildItem "$PSScriptRoot\PostImportScripts" -ErrorAction Stop | ForEach-Object { - . $_.FullName - } -} - -$FilteredCommands = @('Add-AzStorageAccountNetworkRule:ResourceGroupName','Get-AzStorageAccountKey:ResourceGroupName','Get-AzStorageAccountNetworkRuleSet:ResourceGroupName','New-AzStorageAccount:ResourceGroupName','New-AzStorageAccountKey:ResourceGroupName','Remove-AzStorageAccount:ResourceGroupName','Remove-AzStorageAccountNetworkRule:ResourceGroupName','Set-AzStorageAccount:ResourceGroupName','Update-AzStorageAccountNetworkRuleSet:ResourceGroupName') - -if ($Env:ACC_CLOUD -eq $null) -{ - $FilteredCommands | ForEach-Object { - - $existingDefault = $false - foreach ($key in $global:PSDefaultParameterValues.Keys) - { - if ($_ -like "$key") - { - $existingDefault = $true - } - } - - if (!$existingDefault) - { - $global:PSDefaultParameterValues.Add($_, - { - if ((Get-Command Get-AzContext -ErrorAction Ignore) -eq $null) - { - $context = Get-AzureRmContext - } - else - { - $context = Get-AzContext - } - if (($context -ne $null) -and $context.ExtendedProperties.ContainsKey("Default Resource Group")) { - $context.ExtendedProperties["Default Resource Group"] - } - }) - } - } -} - - - -# SIG # Begin signature block -# MIIoLQYJKoZIhvcNAQcCoIIoH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nAhjWDztv0/JjS+OM1mEiOuUB59ySV -# RowLJjcBbAXXxcrsmUqqBaa4S8jv9R3VH/yll39JovBN8XV6r9FJ8/5OYcmSIUUs -# 547f/0PS6ZSKt4H1tFiP8lIkUr76piaAKD8dOYWkw8QbSSoQLNqcJj2uPB4vXyaS -# AGdwM52HSmPywz65yc5EDC1S1uCJxjPYAMS3gT1Ct1vOHPeXlZTBloxTjflEMyHJ -# hNz8Hxu3s7fFhEKUiTdrFZ/8xzDbgOWSMpECRp4i3XPt5kSPojmuM9xDW4U7/gbA -# II6d1HZyF9q8XML9hQZaXUE= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Azure.Data.Tables.dll b/Modules/Az.Storage/8.1.0/Azure.Data.Tables.dll deleted file mode 100644 index 8073b79d2b68..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Azure.Data.Tables.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Azure.Storage.Blobs.dll b/Modules/Az.Storage/8.1.0/Azure.Storage.Blobs.dll deleted file mode 100644 index 31612396a04c..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Azure.Storage.Blobs.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Azure.Storage.Common.dll b/Modules/Az.Storage/8.1.0/Azure.Storage.Common.dll deleted file mode 100644 index fa3a764ff338..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Azure.Storage.Common.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Azure.Storage.Files.DataLake.dll b/Modules/Az.Storage/8.1.0/Azure.Storage.Files.DataLake.dll deleted file mode 100644 index 241b93b09a5d..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Azure.Storage.Files.DataLake.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Azure.Storage.Files.Shares.dll b/Modules/Az.Storage/8.1.0/Azure.Storage.Files.Shares.dll deleted file mode 100644 index 9f84c2d11287..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Azure.Storage.Files.Shares.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Azure.Storage.Queues.dll b/Modules/Az.Storage/8.1.0/Azure.Storage.Queues.dll deleted file mode 100644 index 29ad40b9cdb2..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Azure.Storage.Queues.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Cosmos.Table.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.Cosmos.Table.dll deleted file mode 100644 index d2fc43049374..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Cosmos.Table.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.DocumentDB.Core.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.DocumentDB.Core.dll deleted file mode 100644 index 08ee37ff689f..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.DocumentDB.Core.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.KeyVault.Core.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.KeyVault.Core.dll deleted file mode 100644 index 3e899b4f76d2..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.KeyVault.Core.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll deleted file mode 100644 index 88b67a17e4b3..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll-Help.xml b/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll-Help.xml deleted file mode 100644 index 6da511f023e1..000000000000 --- a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll-Help.xml +++ /dev/null @@ -1,35583 +0,0 @@ - - - - - Add-AzRmStorageContainerLegalHold - Add - AzRmStorageContainerLegalHold - - Adds legal hold tags to a Storage blob container - - - - The Add-AzRmStorageContainerLegalHold cmdlet adds legal hold tags to a Storage blob container - - - - Add-AzRmStorageContainerLegalHold - - AllowProtectedAppendWriteAll - - When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. - - System.Boolean - - System.Boolean - - - None - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzRmStorageContainerLegalHold - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AllowProtectedAppendWriteAll - - When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. - - System.Boolean - - System.Boolean - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzRmStorageContainerLegalHold - - AllowProtectedAppendWriteAll - - When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. - - System.Boolean - - System.Boolean - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AllowProtectedAppendWriteAll - - When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. - - System.Boolean - - System.Boolean - - - None - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold - - - - - - - - - - - - - - Example 1: Add legal hold tags to a Storage blob container with Storage account name and container name - Add-AzRmStorageContainerLegalHold -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Tag tag1,tag2 -AllowProtectedAppendWriteAll $true - - This command adds legal hold tags to a Storage blob container with Storage account name and container name, and set AllowProtectedAppendWriteAll as true to allow append new blocks to append or block blob. - - - - - - Example 2: Add legal hold tags to a Storage blob container with Storage account object and container name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Add-AzRmStorageContainerLegalHold -StorageAccount $accountObject -ContainerName "myContainer" -Tag tag1 - - This command adds legal hold tags to a Storage blob container with Storage account object and container name. - - - - - - Example 3: Add legal hold tags to all Storage blob containers in a Storage account with pipeline - Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" | Add-AzRmStorageContainerLegalHold -Tag tag1,tag2,tag3 - - This command adds legal hold tags to all Storage blob containers in a Storage account with pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/add-azrmstoragecontainerlegalhold - - - - - - Add-AzStorageAccountManagementPolicyAction - Add - AzStorageAccountManagementPolicyAction - - Adds an action to the input ManagementPolicy Action Group object, or creates a ManagementPolicy Action Group object with the action. The object can be used in New-AzStorageAccountManagementPolicyRule. - - - - The Add-AzStorageAccountManagementPolicyAction cmdlet adds an action to the input ManagementPolicy Action Group object, or creates a ManagementPolicy Action Group object with the action. - - - - Add-AzStorageAccountManagementPolicyAction - - BaseBlobAction - - The management policy action for baseblob. - - - Delete - TierToArchive - TierToCool - TierToCold - TierToHot - - System.String - - System.String - - - None - - - DaysAfterLastTierChangeGreaterThan - - Integer value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions. It requires daysAfterModificationGreaterThan to be set for baseBlobs based actions, or daysAfterModificationGreaterThan to be set for snapshots and blob version based actions. - - System.Int32 - - System.Int32 - - - None - - - DaysAfterModificationGreaterThan - - Integer value indicating the age in days after last modification. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - If input the ManagementPolicy Action object, will set the action to the input action object. If not input, will create a new action object. - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - - Add-AzStorageAccountManagementPolicyAction - - BaseBlobAction - - The management policy action for baseblob. - - - Delete - TierToArchive - TierToCool - TierToCold - TierToHot - - System.String - - System.String - - - None - - - DaysAfterLastAccessTimeGreaterThan - - Integer value indicating the age in days after last blob access. This property can only be used in conjuction with last access time tracking policy. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableAutoTierToHotFromCool - - Enables auto tiering of a blob from cool to hot on a blob access. It only works with TierToCool action and DaysAfterLastAccessTimeGreaterThan. - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - If input the ManagementPolicy Action object, will set the action to the input action object. If not input, will create a new action object. - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - - Add-AzStorageAccountManagementPolicyAction - - BaseBlobAction - - The management policy action for baseblob. - - - Delete - TierToArchive - TierToCool - TierToCold - TierToHot - - System.String - - System.String - - - None - - - DaysAfterCreationGreaterThan - - Integer value indicating the age in days after creation. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - If input the ManagementPolicy Action object, will set the action to the input action object. If not input, will create a new action object. - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - - Add-AzStorageAccountManagementPolicyAction - - BlobVersionAction - - The management policy action for blob version. - - - Delete - TierToArchive - TierToCool - TierToCold - TierToHot - - System.String - - System.String - - - None - - - DaysAfterCreationGreaterThan - - Integer value indicating the age in days after creation. - - System.Int32 - - System.Int32 - - - None - - - DaysAfterLastTierChangeGreaterThan - - Integer value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions. It requires daysAfterModificationGreaterThan to be set for baseBlobs based actions, or daysAfterModificationGreaterThan to be set for snapshots and blob version based actions. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - If input the ManagementPolicy Action object, will set the action to the input action object. If not input, will create a new action object. - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - - Add-AzStorageAccountManagementPolicyAction - - DaysAfterCreationGreaterThan - - Integer value indicating the age in days after creation. - - System.Int32 - - System.Int32 - - - None - - - DaysAfterLastTierChangeGreaterThan - - Integer value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions. It requires daysAfterModificationGreaterThan to be set for baseBlobs based actions, or daysAfterModificationGreaterThan to be set for snapshots and blob version based actions. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - If input the ManagementPolicy Action object, will set the action to the input action object. If not input, will create a new action object. - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - SnapshotAction - - The management policy action for snapshot. - - - Delete - TierToArchive - TierToCool - TierToCold - TierToHot - - System.String - - System.String - - - None - - - - - - BaseBlobAction - - The management policy action for baseblob. - - System.String - - System.String - - - None - - - BlobVersionAction - - The management policy action for blob version. - - System.String - - System.String - - - None - - - DaysAfterCreationGreaterThan - - Integer value indicating the age in days after creation. - - System.Int32 - - System.Int32 - - - None - - - DaysAfterLastAccessTimeGreaterThan - - Integer value indicating the age in days after last blob access. This property can only be used in conjuction with last access time tracking policy. - - System.Int32 - - System.Int32 - - - None - - - DaysAfterLastTierChangeGreaterThan - - Integer value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions. It requires daysAfterModificationGreaterThan to be set for baseBlobs based actions, or daysAfterModificationGreaterThan to be set for snapshots and blob version based actions. - - System.Int32 - - System.Int32 - - - None - - - DaysAfterModificationGreaterThan - - Integer value indicating the age in days after last modification. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableAutoTierToHotFromCool - - Enables auto tiering of a blob from cool to hot on a blob access. It only works with TierToCool action and DaysAfterLastAccessTimeGreaterThan. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - If input the ManagementPolicy Action object, will set the action to the input action object. If not input, will create a new action object. - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - SnapshotAction - - The management policy action for snapshot. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - - - - - - - - - - - - Example 1: Creates a ManagementPolicy Action Group object with 4 actions, then add it to a management policy rule and set to a Storage account - $action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -DaysAfterCreationGreaterThan 100 -$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -DaysAfterLastTierChangeGreaterThan 40 -InputObject $action -$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -DaysAfterLastAccessTimeGreaterThan 30 -EnableAutoTierToHotFromCool -InputObject $action -$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToHot -DaysAfterCreationGreaterThan 100 -InputObject $action -$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -InputObject $action -$action - -BaseBlob.TierToCool.DaysAfterModificationGreaterThan : -BaseBlob.TierToCool.DaysAfterLastAccessTimeGreaterThan : 30 -BaseBlob.TierToCool.DaysAfterCreationGreaterThan : -BaseBlob.EnableAutoTierToHotFromCool : True -BaseBlob.TierToArchive.DaysAfterModificationGreaterThan : 50 -BaseBlob.TierToArchive.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToArchive.DaysAfterCreationGreaterThan : -BaseBlob.TierToArchive.DaysAfterLastTierChangeGreaterThan : 40 -BaseBlob.Delete.DaysAfterModificationGreaterThan : -BaseBlob.Delete.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.Delete.DaysAfterCreationGreaterThan : 100 -BaseBlob.TierToCold.DaysAfterModificationGreaterThan : -BaseBlob.TierToCold.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToCold.DaysAfterCreationGreaterThan : -BaseBlob.TierToHot.DaysAfterModificationGreaterThan : -BaseBlob.TierToHot.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToHot.DaysAfterCreationGreaterThan : 100 -Snapshot.TierToCool.DaysAfterCreationGreaterThan : -Snapshot.TierToArchive.DaysAfterCreationGreaterThan : -Snapshot.TierToArchive.DaysAfterLastTierChangeGreaterThan : -Snapshot.Delete.DaysAfterCreationGreaterThan : 100 -Snapshot.TierToCold.DaysAfterCreationGreaterThan : -Snapshot.TierToHot.DaysAfterCreationGreaterThan : -Version.TierToCool.DaysAfterCreationGreaterThan : -Version.TierToArchive.DaysAfterCreationGreaterThan : -Version.TierToArchive.DaysAfterLastTierChangeGreaterThan : -Version.Delete.DaysAfterCreationGreaterThan : -Version.TierToCold.DaysAfterCreationGreaterThan : -Version.TierToHot.DaysAfterCreationGreaterThan : - -$filter = New-AzStorageAccountManagementPolicyFilter -$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter -$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule - - The first command create a ManagementPolicy Action Group object, the following 3 commands add 3 actions to the object. Then add it to a management policy rule and set to a Storage account. - - - - - - Example 2: Creates a ManagementPolicy Action Group object with 7 actions on snapshot and blob version, then add it to a management policy rule and set to a Storage account - $action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 40 -$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -SnapshotAction TierToArchive -daysAfterCreationGreaterThan 50 -$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -SnapshotAction TierToCool -daysAfterCreationGreaterThan 60 -$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction Delete -daysAfterCreationGreaterThan 70 -$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToArchive -daysAfterCreationGreaterThan 80 -$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToCool -daysAfterCreationGreaterThan 90 -$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToCold -daysAfterCreationGreaterThan 100 -$action - -BaseBlob.TierToCool.DaysAfterModificationGreaterThan : -BaseBlob.TierToCool.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToCool.DaysAfterCreationGreaterThan : -BaseBlob.EnableAutoTierToHotFromCool : -BaseBlob.TierToArchive.DaysAfterModificationGreaterThan : -BaseBlob.TierToArchive.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToArchive.DaysAfterCreationGreaterThan : -BaseBlob.TierToArchive.DaysAfterLastTierChangeGreaterThan : -BaseBlob.Delete.DaysAfterModificationGreaterThan : -BaseBlob.Delete.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.Delete.DaysAfterCreationGreaterThan : -BaseBlob.TierToCold.DaysAfterModificationGreaterThan : -BaseBlob.TierToCold.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToCold.DaysAfterCreationGreaterThan : -BaseBlob.TierToHot.DaysAfterModificationGreaterThan : -BaseBlob.TierToHot.DaysAfterLastAccessTimeGreaterThan : -BaseBlob.TierToHot.DaysAfterCreationGreaterThan : -Snapshot.TierToCool.DaysAfterCreationGreaterThan : 60 -Snapshot.TierToArchive.DaysAfterCreationGreaterThan : 50 -Snapshot.TierToArchive.DaysAfterLastTierChangeGreaterThan : -Snapshot.Delete.DaysAfterCreationGreaterThan : 40 -Snapshot.TierToCold.DaysAfterCreationGreaterThan : -Snapshot.TierToHot.DaysAfterCreationGreaterThan : -Version.TierToCool.DaysAfterCreationGreaterThan : 90 -Version.TierToArchive.DaysAfterCreationGreaterThan : 80 -Version.TierToArchive.DaysAfterLastTierChangeGreaterThan : -Version.Delete.DaysAfterCreationGreaterThan : 70 -Version.TierToCold.DaysAfterCreationGreaterThan : 100 -Version.TierToHot.DaysAfterCreationGreaterThan : - -$filter = New-AzStorageAccountManagementPolicyFilter -$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter -$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule - - The first command create a ManagementPolicy Action Group object, the following 5 commands add 5 actions on snapshot and blob version to the object. Then add it to a management policy rule and set to a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/add-Azstorageaccountmanagementpolicyaction - - - - - - Add-AzStorageAccountNetworkRule - Add - AzStorageAccountNetworkRule - - Add IpRules or VirtualNetworkRules to the NetworkRule property of a Storage account - - - - The Add-AzStorageAccountNetworkRule cmdlet adds IpRules or VirtualNetworkRules to the NetworkRule property of a Storage account - - - - Add-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPAddressOrRange - - The Array of IpAddressOrRange, add IpRules with the input IpAddressOrRange and default Action Allow to NetworkRule Property. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPRule - - The Array of IpRule objects to add to the NetworkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceAccessRule - - Storage Account NetworkRule ResourceAccessRules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceId - - Storage Account ResourceAccessRule ResourceId in string. - - System.String - - System.String - - - None - - - TenantId - - Storage Account ResourceAccessRule TenantId in string. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - VirtualNetworkResourceId - - The Array of VirtualNetworkResourceId, will add VirtualNetworkRule with input VirtualNetworkResourceId and default Action Allow to NetworkRule Property. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Add-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - VirtualNetworkRule - - The Array of VirtualNetworkRule objects to add to the NetworkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPAddressOrRange - - The Array of IpAddressOrRange, add IpRules with the input IpAddressOrRange and default Action Allow to NetworkRule Property. - - System.String[] - - System.String[] - - - None - - - IPRule - - The Array of IpRule objects to add to the NetworkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - ResourceAccessRule - - Storage Account NetworkRule ResourceAccessRules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - - None - - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - ResourceId - - Storage Account ResourceAccessRule ResourceId in string. - - System.String - - System.String - - - None - - - TenantId - - Storage Account ResourceAccessRule TenantId in string. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - The Array of VirtualNetworkResourceId, will add VirtualNetworkRule with input VirtualNetworkResourceId and default Action Allow to NetworkRule Property. - - System.String[] - - System.String[] - - - None - - - VirtualNetworkRule - - The Array of VirtualNetworkRule objects to add to the NetworkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule - - - - - - - - - - - - - - ----- Example 1: Add several IpRules with IPAddressOrRange ----- - Add-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -IPAddressOrRange "10.0.0.0/7","28.2.0.0/16" - - This command add several IpRules with IPAddressOrRange. - - - - - - Example 2: Add a VirtualNetworkRule with VirtualNetworkResourceID - $subnet = Get-AzVirtualNetwork -ResourceGroupName "myResourceGroup" -Name "myvirtualnetwork" | Get-AzVirtualNetworkSubnetConfig -Add-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -VirtualNetworkResourceId $subnet[0].Id - - This command add a VirtualNetworkRule with VirtualNetworkResourceID. - - - - - - Example 3: Add VirtualNetworkRules with VirtualNetworkRule Objects from another account - $networkrule = Get-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount1" -Add-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount2" -VirtualNetworkRule $networkrule.VirtualNetworkRules - - This command add VirtualNetworkRules with VirtualNetworkRule Objects from another account. - - - - - - Example 4: Add several IpRule with IpRule objects, input with JSON - Add-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -IPRule (@{IPAddressOrRange="10.0.0.0/7";Action="allow"},@{IPAddressOrRange="28.2.0.0/16";Action="allow"}) - - This command add several IpRule with IpRule objects, input with JSON. - - - - - - ------------ Example 5: Add a resource access rule ------------ - Add-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -TenantId $tenantId -ResourceId $ResourceId - - This command adds a resource access rule with TenantId and ResourceId. - - - - - - Example 6: Add all resource access rules of one storage account to another storage account - (Get-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount1").ResourceAccessRules | Add-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount2" - - This command gets all resource access rules from one storage account, and adds them to another storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/add-azstorageaccountnetworkrule - - - - - - Disable-AzStorageBlobDeleteRetentionPolicy - Disable - AzStorageBlobDeleteRetentionPolicy - - Disable delete retention policy for the Azure Storage Blob service. - - - - The Disable-AzStorageBlobDeleteRetentionPolicy cmdlet disables delete retention policy for the Azure Storage Blob service. - - - - Disable-AzStorageBlobDeleteRetentionPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageBlobDeleteRetentionPolicy - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageBlobDeleteRetentionPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy - - - - - - - - - - - - - - Example 1: Disable delete retention policy for the Blob services - Disable-AzStorageBlobDeleteRetentionPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PassThru - -Enabled Days -------- ---- - False - - This command disables delete retention policy for the Blob service. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/disable-azstorageblobdeleteretentionpolicy - - - - - - Disable-AzStorageBlobLastAccessTimeTracking - Disable - AzStorageBlobLastAccessTimeTracking - - Disable last access time tracking for the Azure Storage Blob service. - - - - The Disable-AzStorageBlobDeleteRetentionPolicy cmdlet disables delete retention policy for the Azure Storage Blob service. - - - - Disable-AzStorageBlobLastAccessTimeTracking - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageBlobLastAccessTimeTracking - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy - - - - - - - - - - - - - - Example 1: Disable last access time tracking for the Blob service - Disable-AzStorageBlobLastAccessTimeTracking -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - - This command disables last access time tracking for the Blob service. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/disable-azstoragebloblastaccesstimetracking - - - - - - Disable-AzStorageBlobRestorePolicy - Disable - AzStorageBlobRestorePolicy - - Disables Blob Restore Policy on a Storage account. - - - - The Disable-AzStorageBlobRestorePolicy cmdlet disables Blob Restore Policy for the Azure Storage Blob service. - - - - Disable-AzStorageBlobRestorePolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageBlobRestorePolicy - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageBlobRestorePolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy - - - - - - - - - - - - - - Example 1: Disables Blob Restore Policy for the Azure Storage Blob service on a Storage account - Disable-AzStorageBlobRestorePolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" - - This command Disables Blob Restore Policy for the Azure Storage Blob service on a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/disable-azstorageblobrestorepolicy - - - - - - Disable-AzStorageContainerDeleteRetentionPolicy - Disable - AzStorageContainerDeleteRetentionPolicy - - Disable delete retention policy for Azure Storage blob containers. - - - - The Disable-AzStorageContainerDeleteRetentionPolicy cmdlet disables delete retention policy for Azure Storage blob containers. - - - - Disable-AzStorageContainerDeleteRetentionPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageContainerDeleteRetentionPolicy - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Disable-AzStorageContainerDeleteRetentionPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy - - - - - - - - - - - - - - Example 1: Disable delete retention policy for blob containers - Disable-AzStorageContainerDeleteRetentionPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PassThru - -Enabled Days -------- ---- - False - - This command disables delete retention policy for blob containers. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/disable-azstoragecontainerdeleteretentionpolicy - - - - - - Enable-AzStorageBlobDeleteRetentionPolicy - Enable - AzStorageBlobDeleteRetentionPolicy - - Enable delete retention policy for the Azure Storage Blob service. - - - - The Enable-AzStorageBlobDeleteRetentionPolicy cmdlet enables delete retention policy for the Azure Storage Blob service. - - - - Enable-AzStorageBlobDeleteRetentionPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AllowPermanentDelete - - Allow deletion of the soft deleted blob versions and snapshots. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageBlobDeleteRetentionPolicy - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - AllowPermanentDelete - - Allow deletion of the soft deleted blob versions and snapshots. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageBlobDeleteRetentionPolicy - - AllowPermanentDelete - - Allow deletion of the soft deleted blob versions and snapshots. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AllowPermanentDelete - - Allow deletion of the soft deleted blob versions and snapshots. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties - - - - - - - - - - - - - - Example 1: Enable delete retention policy for the Blob service - Enable-AzStorageBlobDeleteRetentionPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -AllowPermanentDelete -PassThru -RetentionDays 4 - -Enabled Days AllowPermanentDelete -------- ---- -------------------- - True 4 True - - This command enables delete retention policy for the Blob service, and set deleted blob retention days to 4. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/enable-azstorageblobdeleteretentionpolicy - - - - - - Enable-AzStorageBlobLastAccessTimeTracking - Enable - AzStorageBlobLastAccessTimeTracking - - Enable last access time tracking for the Azure Storage Blob service. - - - - The Enable-AzStorageBlobLastAccessTimeTracking cmdlet enables last access time tracking for the Azure Storage Blob service. - - - - Enable-AzStorageBlobLastAccessTimeTracking - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageBlobLastAccessTimeTracking - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy - - - - - - - - - - - - - - Example 1: Enable last access time tracking for the Blob service - Enable-AzStorageBlobLastAccessTimeTracking -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PassThru - -Enable Name TrackingGranularityInDays BlobType ------- ---- ------------------------- -------- - True AccessTimeTracking 1 {blockBlob} - - This command enables last access time tracking for the Blob service, and show the last access time tracking policy properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/enable-azstoragebloblastaccesstimetracking - - - - - - Enable-AzStorageBlobRestorePolicy - Enable - AzStorageBlobRestorePolicy - - Enables Blob Restore Policy on a Storage account. - - - - The Enable-AzStorageBlobRestorePolicy cmdlet enables Blob Restore Policy for the Azure Storage Blob service. - - - - Enable-AzStorageBlobRestorePolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RestoreDays - - Sets the number of days for the blob can be restored.. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageBlobRestorePolicy - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RestoreDays - - Sets the number of days for the blob can be restored.. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageBlobRestorePolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RestoreDays - - Sets the number of days for the blob can be restored.. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - RestoreDays - - Sets the number of days for the blob can be restored.. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy - - - - - - - - - - - - - - Example 1: Enables Blob Restore Policy for the Azure Storage Blob service on a Storage account - Enable-AzStorageBlobDeleteRetentionPolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -RetentionDays 5 - -Update-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -EnableChangeFeed $true - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegoup -DefaultServiceVersion : -DeleteRetentionPolicy.Enabled : True -DeleteRetentionPolicy.Days : 5 -RestorePolicy.Enabled : False -RestorePolicy.Days : -RestorePolicy.MinRestoreTime : -ChangeFeed : True -IsVersioningEnabled : True - -Enable-AzStorageBlobRestorePolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -RestoreDays 4 - -Get-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegoup -DefaultServiceVersion : -DeleteRetentionPolicy.Enabled : True -DeleteRetentionPolicy.Days : 5 -RestorePolicy.Enabled : True -RestorePolicy.Days : 4 -RestorePolicy.MinRestoreTime : 8/28/2020 6:00:59 AM -ChangeFeed : True -IsVersioningEnabled : True - - This command first enable Blob softdelete and changefeed, then enables Blob Restore Policy, finally check the setting in Blob service properties. The Blob service RestorePolicy.Days must be smaller than DeleteRetentionPolicy.Days. Blob softdelete and ChangeFeed must be enabled before enable blob Restore Policy. If softdelete and Changefeed are just enabled, might need wait for some time for server to handle the setting, before enable Blob restore policy. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/enable-azstorageblobrestorepolicy - - - - - - Enable-AzStorageContainerDeleteRetentionPolicy - Enable - AzStorageContainerDeleteRetentionPolicy - - Enable delete retention policy for Azure Storage blob containers. - - - - The Enable-AzStorageContainerDeleteRetentionPolicy cmdlet enables delete retention policy for Azure Storage blob containers. - - - - Enable-AzStorageContainerDeleteRetentionPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageContainerDeleteRetentionPolicy - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Enable-AzStorageContainerDeleteRetentionPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties - - - - - - - - - - - - - - Example 1: Enable delete retention policy for Blob containers - Enable-AzStorageContainerDeleteRetentionPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PassThru -RetentionDays 3 - -Enabled Days -------- ---- - True 3 - - This command enables delete retention policy for Blob containers, and set deleted blob retention days to 3. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/enable-azstoragecontainerdeleteretentionpolicy - - - - - - Get-AzRmStorageContainer - Get - AzRmStorageContainer - - Gets or lists Storage blob containers - - - - The Get-AzRmStorageContainer cmdlet gets or lists Storage blob containers - - - - Get-AzRmStorageContainer - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted containers, by default list containers won't include deleted containers - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Container Name - - System.String - - System.String - - - None - - - - Get-AzRmStorageContainer - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted containers, by default list containers won't include deleted containers - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Container Name - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted containers, by default list containers won't include deleted containers - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Container Name - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - - - - - Example 1: Get a Storage blob container with Storage account name and container name - Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" - - This command gets a Storage blob container with Storage account name and container name. - - - - - - Example 2: List all Storage blob containers of a Storage account - Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" - - This command lists all Storage blob containers of a Storage account with Storage account name. - - - - - - Example 3: Get a Storage blob container with Storage account object and container name. - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Get-AzRmStorageContainer -StorageAccount $accountObject -ContainerName "myContainer" - - This command gets a Storage blob container with Storage account object and container name. - - - - - - Example 4: List Storage blob container of a Storage account, include deleted containers. - Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -IncludeDeleted - -ResourceGroupName: myResourceGroup, StorageAccountName: myStorageAccount - -Name PublicAccess LastModified HasLegalHold HasImmutabilityPolicy Deleted VersionId ----- ------------ ------------ ------------ --------------------- ------- --------- -testcon None 2020-08-28 10:18:13Z False False False 01D685BC91A88F22 -testcon2 None 2020-09-04 12:52:37Z False False True 01D67D248986B6DA - - This example lists all containers of a storage account, include deleted containers. Deleted containers will only exist after enabled Container softdelete with Enable-AzStorageBlobDeleteRetentionPolicy. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azrmstoragecontainer - - - - - - Get-AzRmStorageContainerImmutabilityPolicy - Get - AzRmStorageContainerImmutabilityPolicy - - Gets ImmutabilityPolicy of a Storage blob containers - - - - The Get-AzRmStorageContainerImmutabilityPolicy cmdlet gets ImmutabilityPolicy of a Storage blob containers - - - - Get-AzRmStorageContainerImmutabilityPolicy - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - - Get-AzRmStorageContainerImmutabilityPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - - Get-AzRmStorageContainerImmutabilityPolicy - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - - - - - Example 1: Get ImmutabilityPolicy of a Storage blob container with Storage account name and container name - Get-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" - - This command gets ImmutabilityPolicy of a Storage blob container with Storage account name and container name. - - - - - - Example 2: Get ImmutabilityPolicy of a Storage blob container with Storage account object and container name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Get-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" - - This command gets ImmutabilityPolicy of a Storage blob containers with Storage account object and container name. - - - - - - Example 3: Get ImmutabilityPolicy of a Storage blob container with Storage container object - $containerObject = Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Name "myContainer" -Get-AzRmStorageContainerImmutabilityPolicy -Container $containerObject - - This command gets ImmutabilityPolicy of a Storage blob container with Storage container object. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azrmstoragecontainerimmutabilitypolicy - - - - - - Get-AzRmStorageShare - Get - AzRmStorageShare - - Gets or lists Storage file shares. - - - - The Get-AzRmStorageShare cmdlet gets or lists Storage file shares. - - - - Get-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Filter - - The filter of share name. When specified, only share names starting with the filter will be listed. The filter must be in format: startswith(name, `<prefix>`) - - System.String - - System.String - - - None - - - IncludeDeleted - - Include deleted shares, by default list shares won't include deleted shares - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeSnapshot - - Include share snapshots, by default list shares won't include share snapshots. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Filter - - The filter of share name. When specified, only share names starting with the filter will be listed. The filter must be in format: startswith(name, `<prefix>`) - - System.String - - System.String - - - None - - - IncludeDeleted - - Include deleted shares, by default list shares won't include deleted shares - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeSnapshot - - Include share snapshots, by default list shares won't include share snapshots. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - Get-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - GetShareUsage - - Specify this parameter to get the Share Usage in Bytes. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Share Name - - System.String - - System.String - - - None - - - SnapshotTime - - Share SnapshotTime - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - Get-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - GetShareUsage - - Specify this parameter to get the Share Usage in Bytes. - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Share Name - - System.String - - System.String - - - None - - - SnapshotTime - - Share SnapshotTime - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - Get-AzRmStorageShare - - ResourceId - - Input a File Share Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - GetShareUsage - - Specify this parameter to get the Share Usage in Bytes. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Filter - - The filter of share name. When specified, only share names starting with the filter will be listed. The filter must be in format: startswith(name, `<prefix>`) - - System.String - - System.String - - - None - - - GetShareUsage - - Specify this parameter to get the Share Usage in Bytes. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeDeleted - - Include deleted shares, by default list shares won't include deleted shares - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeSnapshot - - Include share snapshots, by default list shares won't include share snapshots. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Share Name - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a File Share Resource Id. - - System.String - - System.String - - - None - - - SnapshotTime - - Share SnapshotTime - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - - - - - Example 1: Get a Storage file share with Storage account name and share name - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare 5120 - - This command gets a Storage file share with Storage account name and share name. - - - - - - - Example 2: List all Storage file shares of a Storage account - - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -share1 5120 TransactionOptimized -share2 5120 TransactionOptimized - - This command lists all Storage file shares of a Storage account with Storage account name. - - - - - - Example 3: Get a Storage blob container with Storage account object and container name. - Get-AzStorageAccount -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" | Get-AzRmStorageShare -Name "myshare" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare 5120 - - This command gets a Storage blob container with Storage account object and container name. - - - - - - Example 4: Get a Storage file share with the share usage in bytes - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -GetShareUsage - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare 5120 2097152 - - This command gets a Storage file share with Storage account name and share name, and include the share usage in bytes. - - - - - - Example 5: List all Storage file shares of a Storage account, include the deleted shares, include the share snapshots - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -IncludeDeleted -IncludeSnapshot - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes snapshotTime ----- -------- ---------------- ---------- ------- ------- --------------- ------------ -testshare1 5120 TransactionOptimized 2021-05-10T08:04:08Z -testshare1 5120 TransactionOptimized -share1 100 TransactionOptimized True 01D61FD1FC5498B6 - - This command lists all Storage file shares include the deleted shares and share snapshots. - - - - - - ------------ Example 6: Get a single share snapshot ------------ - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "testshare1" -SnapshotTime "2021-05-10T08:04:08Z" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes snapshotTime ----- -------- ---------------- ---------- ------- ------- --------------- ------------ -testshare1 5120 TransactionOptimized 2021-05-10T08:04:08Z - - This command gets a single file share snapshot with share name and snapshot time. - - - - - - Example 7: List Storage file shares of a Storage account with a filter - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Filter "startswith(name, test)" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes snapshotTime ----- -------- ---------------- ---------- ------- ------- --------------- ------------ -testshare1 5120 SMB TransactionOptimized -testshare2 5120 SMB TransactionOptimized - - This command lists all Storage file shares with names that begin with "test". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azrmstorageshare - - - - - - Get-AzStorageAccount - Get - AzStorageAccount - - Gets a Storage account. - - - - The Get-AzStorageAccount cmdlet gets a specified Storage account or all of the Storage accounts in a resource group or the subscription. - - - - Get-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account to get. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to get. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeBlobRestoreStatus - - Get the BlobRestoreStatus of the Storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account to get. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to get. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeGeoReplicationStats - - Get the GeoReplicationStats of the Storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account to get. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeBlobRestoreStatus - - Get the BlobRestoreStatus of the Storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeGeoReplicationStats - - Get the GeoReplicationStats of the Storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the Storage account to get. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account to get. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - - - - - ---------- Example 1: Get a specified Storage account ---------- - Get-AzStorageAccount -ResourceGroupName "RG01" -Name "mystorageaccount" - - This command gets the specified Storage account. - - - - - - --- Example 2: Get all Storage accounts in a resource group --- - Get-AzStorageAccount -ResourceGroupName "RG01" - - This command gets all of the Storage accounts in a resource group. - - - - - - --- Example 3: Get all Storage accounts in the subscription --- - Get-AzStorageAccount - - This command gets all of the Storage accounts in the subscription. - - - - - - Example 4: Get a Storage accounts with its blob restore status - $account = Get-AzStorageAccount -ResourceGroupName "myresourcegoup" -Name "mystorageaccount" -IncludeBlobRestoreStatus - -$account.BlobRestoreStatus - -Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------- --------- ------------- ------------------------ --------------------- -InProgress a70cd4a1-f223-4c86-959f-cc13eb4795a8 2020-02-10T13:45:04.7155962Z [container1/blob1 -> container2/blob2] - - This command gets a Storage accounts with its blob restore status, and show the blob restore status. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccount - - - New-AzStorageAccount - - - - Remove-AzStorageAccount - - - - Set-AzStorageAccount - - - - - - - Get-AzStorageAccountKey - Get - AzStorageAccountKey - - Gets the access keys for an Azure Storage account. - - - - The Get-AzStorageAccountKey cmdlet gets the access keys for an Azure Storage account. - - - - Get-AzStorageAccountKey - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account for which this cmdlet gets keys. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ListKerbKey - - Lists the Kerberos keys (if active directory enabled) for the specified storage account. Kerberos key is generated per storage account for Azure Files identity based authentication either with Microsoft Entra Domain Service (Microsoft Entra Domain Services) or Active Directory Domain Service (AD DS). It is used as the password of the identity registered in the domain service that represents the storage account. Kerberos key does not provide access permission to perform any control or data plane read or write operations against the storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ListKerbKey - - Lists the Kerberos keys (if active directory enabled) for the specified storage account. Kerberos key is generated per storage account for Azure Files identity based authentication either with Microsoft Entra Domain Service (Microsoft Entra Domain Services) or Active Directory Domain Service (AD DS). It is used as the password of the identity registered in the domain service that represents the storage account. Kerberos key does not provide access permission to perform any control or data plane read or write operations against the storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the Storage account for which this cmdlet gets keys. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Management.Storage.Models.StorageAccountKey - - - - - - - - - - - - - - ----- Example 1: Get the access keys for a Storage account ----- - Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount" - - This command gets the keys for the specified Azure Storage account. - - - - - - -- Example 2: Get a specific access key for a Storage account -- - This command gets a specific key for a Storage account. -(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")| Where-Object {$_.KeyName -eq "key1"} - -KeyName Value Permissions CreationTime -------- ----- ----------- ------------ -key1 <KeyValue> Full - -This command gets a specific key value for a Storage account. -(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")[0].Value - -<KeyValue> - - - - - - - - Example 3: Lists the access keys for a Storage account, include the Kerberos keys (if active directory enabled) - Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount" -ListKerbKey - - This command gets the keys for the specified Azure Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccountkey - - - New-AzStorageAccountKey - - - - - - - Get-AzStorageAccountManagementPolicy - Get - AzStorageAccountManagementPolicy - - Gets the management policy of an Azure Storage account. - - - - The Get-AzStorageAccountManagementPolicy cmdlet gets the management policy of an Azure Storage account. - - - - Get-AzStorageAccountManagementPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageAccountManagementPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - Get-AzStorageAccountManagementPolicy - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Management.Storage.Models.StorageAccountKey - - - - - - - - - - - - - - -- Example 1: Get the management policy of a Storage account. -- - Get-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - -ResourceGroupName : myresourcegroup -StorageAccountName : mystorageaccount -Id : /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/managementPolicies/default -Type : Microsoft.Storage/storageAccounts/managementPolicies -LastModifiedTime : 3/12/2019 7:04:05 AM -Rules : [ - { - "Enabled": true, - "Name": "Test", - "Definition": { - "Actions": { - "BaseBlob": { - "TierToCool": { - "DaysAfterModificationGreaterThan": 30 - }, - "TierToArchive": { - "DaysAfterModificationGreaterThan": 50 - }, - "Delete": { - "DaysAfterModificationGreaterThan": 100 - } - }, - "Snapshot": { - "Delete": { - "DaysAfterCreationGreaterThan": 100 - } - } - }, - "Filters": { - "PrefixMatch": [ - "prefix1", - "prefix2" - ], - "BlobTypes": [ - "blockBlob" - ] - } - } - }, - { - "Enabled": true, - "Name": "Test2", - "Definition": { - "Actions": { - "BaseBlob": { - "TierToCool": null, - "TierToArchive": null, - "Delete": { - "DaysAfterModificationGreaterThan": 100 - } - }, - "Snapshot": null - }, - "Filters": { - "PrefixMatch": null, - "BlobTypes": [ - "blockBlob" - ] - } - } - } - ] - - This command gets the management policy of a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/get-Azstorageaccountmanagementpolicy - - - - - - Get-AzStorageAccountNameAvailability - Get - AzStorageAccountNameAvailability - - Checks the availability of a Storage account name. - - - - The Get-AzStorageAccountNameAvailability cmdlet checks whether the name of an Azure Storage account is valid and available to use. - - - - Get-AzStorageAccountNameAvailability - - Name - - Specifies the name of the Storage account that this cmdlet checks. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the Storage account that this cmdlet checks. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Management.Storage.Models.CheckNameAvailabilityResult - - - - - - - - - - - - - - --- Example 1: Check availability of a Storage account name --- - Get-AzStorageAccountNameAvailability -Name 'contosostorage03' - - This command checks the availability of the name ContosoStorage03. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccountnameavailability - - - Azure Storage Manager Cmdlets - - - - - - - Get-AzStorageAccountNetworkRuleSet - Get - AzStorageAccountNetworkRuleSet - - Get the NetWorkRule property of a Storage account - - - - The Get-AzStorageAccountNetworkRuleSet cmdlet gets the NetworkRule property of a Storage account - - - - Get-AzStorageAccountNetworkRuleSet - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - - - - - - - - - - - - Example 1: Get NetworkRule property of a specified Storage account - Get-AzStorageAccountNetworkRuleSet -ResourceGroupName "rg1" -Name "mystorageaccount" - - This command gets NetworkRule property of a specified Storage account - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccountnetworkruleset - - - - - - Get-AzStorageBlobInventoryPolicy - Get - AzStorageBlobInventoryPolicy - - Gets blob inventory policy from a Storage account. - - - - The Get-AzStorageBlobInventoryPolicy cmdlet gets blob inventory policy from a Storage account. - - - - Get-AzStorageBlobInventoryPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageBlobInventoryPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - Get-AzStorageBlobInventoryPolicy - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - - - - - - - - - - - - - Example 1: Get blob inventory policy from a Storage account - - $policy = Get-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - -$policy - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -Name : DefaultInventoryPolicy -Id : /subscriptions/{subscription-Id}/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/inventoryPolicies/default -Type : Microsoft.Storage/storageAccounts/inventoryPolicies -LastModifiedTime : 11/4/2020 9:18:30 AM -Enabled : True -Rules : {Test1, Test2} - -$policy.Rules - -Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions BlobTypes PrefixMatch SchemaFields ----- ------- ----------- ---------- ------ -------- ---------------- ------------------- --------- ----------- ------------ -Test1 False containername Container Csv Daily {aaa, bbb} {Name, Metadata, PublicAccess, Last-Modified...} -Test2 True containername Blob Parquet Weekly True True {blockBlob, appendBlob} {ccc, ddd} {Name, Creation-Time, Last-Modified, Content-Length...} - - This command gets blob inventory policy from a Storage account, and show its proeprties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblobinventorypolicy - - - - - - Get-AzStorageBlobServiceProperty - Get - AzStorageBlobServiceProperty - - Gets service properties for Azure Storage Blob services. - - - - The Get-AzStorageBlobServiceProperty cmdlet gets the service properties for Azure Storage Blob services. - - - - Get-AzStorageBlobServiceProperty - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageBlobServiceProperty - - ResourceId - - Blob Service Properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageBlobServiceProperty - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Blob Service Properties Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties - - - - - - - - - - - - - - Example 1: Get Azure Storage Blob services property of a specified Storage Account - Get-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -DefaultServiceVersion : -DeleteRetentionPolicy.Enabled : False -DeleteRetentionPolicy.Days : -RestorePolicy.Enabled : -RestorePolicy.Days : -ChangeFeed : True -IsVersioningEnabled : True - - This command gets the Blob services property of a specified Storage Account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblobserviceproperty - - - - - - Get-AzStorageEncryptionScope - Get - AzStorageEncryptionScope - - Get or list encryption scopes from a Storage account. - - - - The Get-AzStorageEncryptionScope cmdlet gets or lists encryption scopes from a Storage account. - - - - Get-AzStorageEncryptionScope - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - Filter - - The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. - - System.String - - System.String - - - None - - - Include - - The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. - - - All - Enabled - Disabled - - System.String - - System.String - - - None - - - MaxPageSize - - The maximum number of encryption scopes that will be included in the list response - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - Get-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - Filter - - The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. - - System.String - - System.String - - - None - - - Include - - The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. - - - All - Enabled - Disabled - - System.String - - System.String - - - None - - - MaxPageSize - - The maximum number of encryption scopes that will be included in the list response - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - Filter - - The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. - - System.String - - System.String - - - None - - - Include - - The filter of encryption scope name. When specified, only encryption scope names starting with the filter will be listed. - - System.String - - System.String - - - None - - - MaxPageSize - - The maximum number of encryption scopes that will be included in the list response - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - - - - - - - - - - - - ----------- Example 1: Get a single encryption scope ----------- - Get-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EncryptionScopeName $scopename - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri ----- ----- ------ -------------- -testscope Disabled Microsoft.Keyvault https://keyvalutname.vault.azure.net:443/keys/keyname - - This command gets a single encryption scope. - - - - - - -- Example 2: List all encryption scopes of a Storage account -- - Get-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri ----- ----- ------ -------------- -testscope Disabled Microsoft.Keyvault https://keyvalutname.vault.azure.net:443/keys/keyname -scope2 Enabled Microsoft.Storage - - This command lists all encryption scopes of a Storage account. - - - - - - Example 3: List all enabled encryption scopes of a Storage account with a max page size of 10 for each request - Get-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -MaxPageSize 10 -Include Enabled - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri ----- ----- ------ -------------- -scope1 Enabled Microsoft.Keyvault https://keyvalutname.vault.azure.net:443/keys/keyname -scope2 Enabled Microsoft.Storage - - This command lists all enabled encryption scopes of a Storage account, with a max page size of 10 encryption scopes included in each list response. If there are more than 10 encryption scopes to be listed, the command will still list all the encryption scopes, but with multiple requests sent and responses received. - - - - - - Example 4: List all disabled encryption scopes with names starting with "test" of a Storage account - Get-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Include Disabled -Filter "startswith(name, test)" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri ----- ----- ------ -------------- -testscope1 Disabled Microsoft.Keyvault https://keyvalutname.vault.azure.net:443/keys/keyname -testscope2 Disabled Microsoft.Storage - - This command lists all disabled encryption scopes with names starting with "test" of a Storage account. The parameter "Filter" specifies the prefix of the encryption scopes listed, and it should be in format of "startswith(name, {prefixValue})". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageencryptionscope - - - - - - Get-AzStorageFileServiceProperty - Get - AzStorageFileServiceProperty - - Gets service properties for Azure Storage File services. - - - - The Get-AzStorageFileServiceProperty cmdlet gets the service properties for Azure Storage File services. - - - - Get-AzStorageFileServiceProperty - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageFileServiceProperty - - ResourceId - - Input a Storage account Resource Id, or a File service properties Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageFileServiceProperty - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a File service properties Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties - - - - - - - - - - - - - - Example 1: Get Azure Storage File services property of a specified Storage Account - Get-AzStorageFileServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -ShareDeleteRetentionPolicy.Enabled : True -ShareDeleteRetentionPolicy.Days : 3 -ProtocolSettings.Smb.Multichannel.Enabled : False -ProtocolSettings.Smb.Versions : {SMB2.1, SMB3.0, SMB3.1.1} -ProtocolSettings.Smb.AuthenticationMethods : {Kerberos, NTLMv2} -ProtocolSettings.Smb.KerberosTicketEncryption : {RC4-HMAC, AES-256} -ProtocolSettings.Smb.ChannelEncryption : {AES-128-CCM, AES-128-GCM, AES-256-GCM} - - This command gets the File services property of a specified Storage Account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragefileserviceproperty - - - - - - Get-AzStorageLocalUser - Get - AzStorageLocalUser - - Gets a specified local user or lists all local users in a storage account. - - - - The Get-AzStorageLocalUser cmdlet gets a specified local user or lists all local users in a storage account. - - - - Get-AzStorageLocalUser - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - - Get-AzStorageLocalUser - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - - - - - - - - - - - - ------------ Example 1: Get a specified local user ------------ - $localUser = Get-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 - -$localUser - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name Sid HomeDirectory HasSharedKey HasSshKey HasSshPassword PermissionScopes ----- --- ------------- ------------ --------- -------------- ---------------- -testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / True True True [container1,...] - -$localUser.PermissionScopes - -Permissions Service ResourceName ------------ ------- ------------ -rw blob container1 -rw file share2 - - This command gets a specified local user, and show the properties of it. - - - - - - ----- Example 2: List all local users in a storage account ----- - Get-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name Sid HomeDirectory HasSharedKey HasSshKey HasSshPassword PermissionScopes SshAuthorizedKeys ----- --- ------------- ------------ --------- -------------- ---------------- ----------------- -testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / True True True [container1,...] -testuser2 S-1-2-0-0000000000-000000000-0000000000-0002 /dir True True False - - This command lists all local users in a storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragelocaluser - - - - - - Get-AzStorageLocalUserKey - Get - AzStorageLocalUserKey - - Lists SSH authorized keys and shared key of a specified local user. - - - - The Get-AzStorageLocalUserKey cmdlet lists SSH authorized keys and shared key of a specified local user in a storage account. - - - - Get-AzStorageLocalUserKey - - InputObject - - Local User Object to get Keys. - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageLocalUserKey - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageLocalUserKey - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Local User Object to get Keys. - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUserKeys - - - - - - - - - - - - - - Example 1: List SSH authorized keys and shared key of a specified local user. - Get-AzStorageLocalUserKey -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 - -SshAuthorizedKeys SharedKey ------------------ --------- -{ssh-rsa keykeykeykeykew=, ssh-rsa keykeykeykeykew=} <hidden> - - This command lists SSH authorized keys and shared key of a specified local user. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragelocaluserkey - - - - - - Get-AzStorageObjectReplicationPolicy - Get - AzStorageObjectReplicationPolicy - - Gets or lists object replication policy of a Storage account. - - - - The Get-AzStorageObjectReplicationPolicy cmdlet gets or lists object replication policy of a Storage account. - - - - Get-AzStorageObjectReplicationPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PolicyId - - Object Replication Policy Id. - - System.String - - System.String - - - None - - - - Get-AzStorageObjectReplicationPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PolicyId - - Object Replication Policy Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PolicyId - - Object Replication Policy Id. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - - - - - - - - - - - - Example 1: Get an object replication policy with specific policy Id and show its rules. - $policy = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PolicyId 56bfa11c-81ef-4f8d-b307-5e5386e16fba - -$policy - -ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ------------------ ------------------ -------- ----------- ------------- ------------------ ----- -myresourcegroup mydestaccount 56bfa11c-81ef-4f8d-b307-5e5386e16fba mysourceaccount mydestaccount [5fa8b1d6-4985-4abd-a0b3-ec4d07295a43,...] - -$policy.Rules - -RuleId SourceContainer DestinationContainer Filters.PrefixMatch Filters.MinCreationTime ------- --------------- -------------------- ------------------- ----------------------- -d3d39a01-8d92-40e5-849f-e56209ae5cf5 src1 dest1 {} -2407de9a-3301-4656-858f-359d185565e0 src dest {a, abc, dd} 2019-01-01T16:00:00Z - - This command gets an object replication policy with specific policy Id and show its rules. - - - - - - Example 2:List object replication policy from a Storage account - $policies = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" - -$policies - -ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ------------------ ------------------ -------- ----------- ------------- ------------------ ----- -myresourcegroup mydestaccount 56bfa11c-81ef-4f8d-b307-5e5386e16fba mysrcaccount1 mydestaccount [5fa8b1d6-4985-4abd-a0b3-ec4d07295a43,...] -myresourcegroup mydestaccount 68434c7a-20d0-4282-b75c-43b5a243435e mysrcaccount2 mydestaccount [d3d39a01-8d92-40e5-849f-e56209ae5cf5,...] - - This command lists object replication policy from a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageobjectreplicationpolicy - - - - - - Get-AzStorageUsage - Get - AzStorageUsage - - Gets the Storage resource usage of the current subscription. - - - - The Get-AzStorageUsage cmdlet gets the resource usage for Azure Storage for the current subscription. - - - - Get-AzStorageUsage - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Location - - Indicate to get Storage resources usage on the specified location. If not specified, will get Storage resources usage on all locations under the subscription. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Location - - Indicate to get Storage resources usage on the specified location. If not specified, will get Storage resources usage on all locations under the subscription. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSUsage - - - - - - - - - - - - - - Example 1: Get the storage resources usage of specified location - Get-AzStorageUsage -Location 'West US' - -LocalizedName : Storage Accounts -Name : StorageAccounts -Unit : Count -CurrentValue : 18 -Limit : 250 - - This command gets the Storage resources usage of specified location under the current subscription. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageusage - - - Azure Storage Manager Cmdlets - - - - - - - Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration - Invoke - AzRmStorageContainerImmutableStorageWithVersioningMigration - - Migrate an existing Storage blob containers to enable immutable Storage with versioning. - - - - The Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration cmdlet migrates an existing Storage blob containers to enable immutable Storage with versioning. The cmdlet only works when the Storage account has already enabled blob versioning, and the containers already has ImmutabilityPolicy. - - - - Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - - - - - Example 1: Migrates an existing Storage blob containers to enable immutable Storage with versioning. - $t = Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration -ResourceGroupName "myResourceGroup" -AccountName "mystorageaccount" -Name testcontainer -asjob - -$t | Wait-Job - - This command migrates an existing Storage blob containers to enable immutable Storage with versioning. The command only works when the Storage account has already enabled blob versioning, and the containers already has ImmutabilityPolicy. Since the command ussually will run for a long time, you can run it asynchronously with '-Asjob'. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/invoke-azrmstoragecontainerimmutablestoragewithversioningmigration - - - - - - Invoke-AzStorageAccountFailover - Invoke - AzStorageAccountFailover - - Invokes failover of a Storage account. - - - - Invokes failover of a Storage account. Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover. Please understand the following impact to your storage account before you initiate the failover: 1.1. Please check the Last Sync Time using GET Blob Service Stats (https://learn.microsoft.com/rest/api/storageservices/get-blob-service-stats), GET Table Service Stats (https://learn.microsoft.com/rest/api/storageservices/get-table-service-stats) and GET Queue Service Stats (https://learn.microsoft.com/rest/api/storageservices/get-queue-service-stats) for your account. This is the data you may lose if you initiate the failover. 2.After the failover, your storage account type will be converted to locally redundant storage(LRS). You can convert your account to use geo-redundant storage(GRS). 3.Once you re-enable GRS for your storage account, Microsoft will replicate data to your new secondary region. Replication time is dependent on the amount of data to replicate. Please note that there are bandwidth charges for the bootstrap. https://azure.microsoft.com/en-us/pricing/details/bandwidth/ - - - - Invoke-AzStorageAccountFailover - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzStorageAccountFailover - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Name - - Storage Account Name. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Name - - Storage Account Name. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - - - - - ------- Example 1: Invoke failover of a Storage account ------- - $account = Get-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -IncludeGeoReplicationStats -$account.GeoReplicationStats - -Status LastSyncTime ------- ------------ -Live 11/13/2018 2:44:22 AM - -$job = Invoke-AzStorageAccountFailover -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Force -AsJob -$job | Wait-Job - - This command check the last sync time of a Storage account then invokes failover of it, the secondary cluster will become primary after failover. Since failover takes a long time, suggest to run it in the backend with -Asjob parameter, and then wait for the job complete. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/invoke-Azstorageaccountfailover - - - - - - Invoke-AzStorageAccountHierarchicalNamespaceUpgrade - Invoke - AzStorageAccountHierarchicalNamespaceUpgrade - - Validates if a storage account can be upgraded to enable HierarchicalNamespace, or upgrades a Storage account to enabled HierarchicalNamespace. - - - - The Invoke-AzStorageAccountHierarchicalNamespaceUpgrade cmdlet can validate if a storage account can be upgraded to enable HierarchicalNamespace, or upgrades a Storage account to enabled HierarchicalNamespace. - - - - Invoke-AzStorageAccountHierarchicalNamespaceUpgrade - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - RequestType - - The HierarchicalNamespaceUpgrade requestType to run: - Validation: Validate if the account can be upgrade to enable HierarchicalNamespace. - - Upgrade: Upgrade the storage account to enable HierarchicalNamespace. - - - Validation - Upgrade - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Invoke-AzStorageAccountHierarchicalNamespaceUpgrade - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Name - - Storage Account Name. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - - System.Management.Automation.SwitchParameter - - - False - - - RequestType - - The HierarchicalNamespaceUpgrade requestType to run: - Validation: Validate if the account can be upgrade to enable HierarchicalNamespace. - - Upgrade: Upgrade the storage account to enable HierarchicalNamespace. - - - Validation - Upgrade - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Name - - Storage Account Name. - - System.String - - System.String - - - None - - - RequestType - - The HierarchicalNamespaceUpgrade requestType to run: - Validation: Validate if the account can be upgrade to enable HierarchicalNamespace. - - Upgrade: Upgrade the storage account to enable HierarchicalNamespace. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - - - - - Example 1: Validate a stroage account can be upgrade to enable HierarchicalNamespace, then upgrade it to enabled HierarchicalNamespace - Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -RequestType Validation -True - -$task = Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -RequestType Upgrade -Force -AsJob - -$task | Wait-Job - - The first command validates if a stroage account can be upgrade to enable HierarchicalNamespace. The second command upgrade the storage account to enable HierarchicalNamespace. Since the upgrade will take time, use '-Asjob' to run it in backend, and return a task. Then wait for the task finish. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/invoke-azstorageaccounthierarchicalnamespaceupgrade - - - - - - Lock-AzRmStorageContainerImmutabilityPolicy - Lock - AzRmStorageContainerImmutabilityPolicy - - Locks ImmutabilityPolicy of a Storage blob containers - - - - The Lock-AzRmStorageContainerImmutabilityPolicy cmdlet locks ImmutabilityPolicy of a Storage blob containers. - - - - Lock-AzRmStorageContainerImmutabilityPolicy - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - Force - - Force to remove the ImmutabilityPolicy. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Lock-AzRmStorageContainerImmutabilityPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - Force - - Force to remove the ImmutabilityPolicy. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Lock-AzRmStorageContainerImmutabilityPolicy - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - Force - - Force to remove the ImmutabilityPolicy. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Lock-AzRmStorageContainerImmutabilityPolicy - - InputObject - - ImmutabilityPolicy Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the ImmutabilityPolicy. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - Force - - Force to remove the ImmutabilityPolicy. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - ImmutabilityPolicy Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - - - - - Example 1: Lock ImmutabilityPolicy of a Storage blob container with Storage account name and container name - $policy = Get-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Lock-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Etag $policy.Etag - - This command Locks ImmutabilityPolicy of a Storage blob container with Storage account name and container name. - - - - - - Example 2: Lock ImmutabilityPolicy of a Storage blob container, with Storage account object - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -$policy = Get-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" -Lock-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" -Etag $policy.Etag -Force - - This command locks ImmutabilityPolicy of a Storage blob container, with Storage account object. - - - - - - Example 3: Lock ImmutabilityPolicyof a Storage blob container, with container object - $containerObject = Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Name "myContainer" -$policy = Get-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -Lock-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -Etag $policy.Etag -Force - - This command locks ImmutabilityPolicy of a Storage blob container with Storage container object. - - - - - - Example 4: Lock ImmutabilityPolicy of a Storage blob container, with ImmutabilityPolicy object - Get-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" | Lock-AzRmStorageContainerImmutabilityPolicy -Force - - This command locks ImmutabilityPolicy of a Storage blob container, with ImmutabilityPolicy object. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/lock-azrmstoragecontainerimmutabilitypolicy - - - - - - New-AzRmStorageContainer - New - AzRmStorageContainer - - Creates a Storage blob container - - - - The New-AzRmStorageContainer cmdlet creates a Storage blob container - - - - New-AzRmStorageContainer - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultEncryptionScope - - Default the container to use specified encryption scope for all writes. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableImmutableStorageWithVersioning - - Enable immutable Storage with versioning at the container level. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PreventEncryptionScopeOverride - - Block override of encryption scope from the container default. - - System.Boolean - - System.Boolean - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzRmStorageContainer - - DefaultEncryptionScope - - Default the container to use specified encryption scope for all writes. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableImmutableStorageWithVersioning - - Enable immutable Storage with versioning at the container level. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PreventEncryptionScopeOverride - - Block override of encryption scope from the container default. - - System.Boolean - - System.Boolean - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzRmStorageContainer - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableImmutableStorageWithVersioning - - Enable immutable Storage with versioning at the container level. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzRmStorageContainer - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableImmutableStorageWithVersioning - - Enable immutable Storage with versioning at the container level. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultEncryptionScope - - Default the container to use specified encryption scope for all writes. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableImmutableStorageWithVersioning - - Enable immutable Storage with versioning at the container level. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PreventEncryptionScopeOverride - - Block override of encryption scope from the container default. - - System.Boolean - - System.Boolean - - - None - - - PublicAccess - - Container PublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - - - - - Example 1: Create a Storage blob container with Storage account name and container name, with metadata - New-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Metadata @{tag0="value0";tag1="value1";tag2="value2"} - - This command creates a Storage blob container with Storage account name and container name, with metadata. - - - - - - Example 2: Create a Storage blob container with Storage account object and container name, with public access as Blob - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -New-AzRmStorageContainer -StorageAccount $accountObject -ContainerName "myContainer" -PublicAccess Blob - - This command creates a Storage blob container with Storage account object and container name, with public access as Blob. - - - - - - Example 3: Create a storage container with EncryptionScope setting - $c = New-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "mystorageaccount" -Name testcontainer -DefaultEncryptionScope "testscope" -PreventEncryptionScopeOverride $true - -$c - - ResourceGroupName: myResourceGroup, StorageAccountName: mystorageaccount - -Name PublicAccess LastModified HasLegalHold HasImmutabilityPolicy ----- ------------ ------------ ------------ --------------------- -testcontainer False False - -$c.DefaultEncryptionScope -testscope - -$c.DenyEncryptionScopeOverride -True - - This command creates a storage container with a defalt encryptionScope, and blocks override of encryption scope from the container default. Then show the related container properties. - - - - - - - Example 4: Create an Azure storage container with RootSquash - - $container = New-AzRmStorageContainer -ResourceGroupName "myersourcegroup" -AccountName "mystorageaccount" -Name "mycontainer" -RootSquash AllSquash - -$container.EnableNfsV3AllSquash -True - -$container.EnableNfsV3RootSquash -False - - This command creates a storage container, with RootSquash property set as AllSquash. RootSquash only works on a storage account that enabled NfsV3. - - - - - - Example 5: Create a storage container and enable immutable Storage with versioning - $c = New-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "mystorageaccount" -Name testcontainer -EnableImmutableStorageWithVersioning - -$c - -ResourceGroupName: myResourceGroup, StorageAccountName: mystorageaccount - -Name PublicAccess LastModified HasLegalHold HasImmutabilityPolicy Deleted VersionId ImmutableStorageWithVersioning ----- ------------ ------------ ------------ --------------------- ------- --------- ------------------------------ -testcontainer None 2021-07-19 08:26:19Z False False False True - - This command creates a storage container and enable immutable Storage with versioning. The command only works when the Storage account has already enabled blob versioning. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azrmstoragecontainer - - - - - - New-AzRmStorageShare - New - AzRmStorageShare - - Creates a Storage file share. - - - - The New-AzRmStorageShare cmdlet creates a Storage file share. - - - - New-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - - TransactionOptimized - Premium - Hot - Cool - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledProtocol - - Sets protocols for file shares. It cannot be changed after file share creation. Possible values include: 'SMB', 'NFS' - - - NFS - SMB - - System.String - - System.String - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Azure File share name - - System.String - - System.String - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Snapshot - - Create a snapshot of existing share with same name. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzRmStorageShare - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - - TransactionOptimized - Premium - Hot - Cool - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledProtocol - - Sets protocols for file shares. It cannot be changed after file share creation. Possible values include: 'SMB', 'NFS' - - - NFS - SMB - - System.String - - System.String - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Azure File share name - - System.String - - System.String - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Snapshot - - Create a snapshot of existing share with same name. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnabledProtocol - - Sets protocols for file shares. It cannot be changed after file share creation. Possible values include: 'SMB', 'NFS' - - System.String - - System.String - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Azure File share name - - System.String - - System.String - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - System.String - - System.String - - - None - - - Snapshot - - Create a snapshot of existing share with same name. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - - - - - Example 1: Create a Storage file share with Storage account name and share name, with metadata and share quota as 100 GiB. - New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -QuotaGiB 100 -Metadata @{"tag1" = "value1"; "tag2" = "value2" } - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- -myshare - - This command creates a Storage file share with metadata and share quota as 100 GiB. - - - - - - Example 2: Create a Storage file share with Storage account object - Get-AzStorageAccount -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" | New-AzRmStorageShare -Name "myshare" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- -myshare - - This command creates a Storage file share with Storage account object and share name. - - - - - - Example 3: Create a Storage file share with accesstier as Hot - $share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -AccessTier Hot - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare Hot - - This command creates a Storage file share with accesstier as Hot. - - - - - - Example 4: Create a Storage file share snapshot of an existing share - $shareSnapshot = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -Snapshot - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes snapshotTime ----- -------- ---------------- ---------- ------- ------- --------------- ------------ -myshare 2021-05-10T08:04:08 - - This command creates a Storage file share snapshot of an existing base file share. - - - - - - Example 5: Create a Storage file share with EnabledProtocol proeprty as NFS, and RootSquash property as NoRootSquash - $share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -EnabledProtocol NFS -RootSquash NoRootSquash - -$share - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare NFS - -$share.RootSquash -NoRootSquash - - This command creates a Storage file share with EnabledProtocol proeprty as NFS, and RootSquash proeprty as NoRootSquash. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azrmstorageshare - - - - - - New-AzStorageAccount - New - AzStorageAccount - - Creates a Storage account. - - - - The New-AzStorageAccount cmdlet creates an Azure Storage account. - - - - New-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to add the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to create. - - System.String - - System.String - - - None - - - SkuName - - Specifies the SKU name of the Storage account that this cmdlet creates. The acceptable values for this parameter are: - Standard_LRS. Locally-redundant storage. - - Standard_ZRS. Zone-redundant storage. - - Standard_GRS. Geo-redundant storage. - - Standard_RAGRS. Read access geo-redundant storage. - - Premium_LRS. Premium locally-redundant storage. - - Premium_ZRS. Premium zone-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Premium_ZRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - Location - - Specifies the location of the Storage account to create. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet creates. The acceptable values for this parameter are: Hot and Cool. If you specify a value of BlobStorage for the Kind parameter, you must specify a value for the AccessTier parameter. If you specify a value of Storage for this Kind parameter, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - ActiveDirectoryAccountType - - Specifies the Active Directory account type for Azure Storage. Possible values include: 'User', 'Computer'. - - System.String - - System.String - - - None - - - ActiveDirectoryAzureStorageSid - - Specifies the security identifier (SID) for Azure Storage. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainGuid - - Specifies the domain GUID. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainName - - Specifies the primary domain that the AD DNS server is authoritative for. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainSid - - Specifies the security identifier (SID). This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryForestName - - Specifies the Active Directory forest to get. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryNetBiosDomainName - - Specifies the NetBIOS domain name. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectorySamAccountName - - Specifies the Active Directory SAMAccountName for Azure Storage. - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow anonymous access to all blobs or containers in the storage account. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain of the Storage account. The default value is Storage. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - DnsEndpointType - - Specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Possible values include: 'Standard', 'AzureDnsZone'. - - System.String - - System.String - - - None - - - EdgeZone - - Set the extended location name for EdgeZone. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location - - System.String - - System.String - - - None - - - EnableAccountLevelImmutability - - Enables account-level immutability, then all the containers under this account will have object-level immutability enabled by default. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHierarchicalNamespace - - Indicates whether or not the Storage account enables Hierarchical Namespace. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableNfsV3 - - Enable NFS 3.0 protocol support if sets to true - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EncryptionKeyTypeForQueue - - Set the Encryption KeyType for Queue. The default value is Service. -Account: Queue will be encrypted with account-scoped encryption key. -Service: Queue will always be encrypted with Service-Managed keys. - - - Service - Account - - System.String - - System.String - - - None - - - EncryptionKeyTypeForTable - - Set the Encryption KeyType for Table. The default value is Service. - Account: Table will be encrypted with account-scoped encryption key. - - Service: Table will always be encrypted with Service-Managed keys. - - - Service - Account - - System.String - - System.String - - - None - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be only be specified with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. This property can only be specified with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyName - - Storage Account encryption keySource KeyVault KeyName - - System.String - - System.String - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUri - - Storage Account encryption keySource KeyVault KeyVaultUri - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in UserAssignIdentityId. - - System.String - - System.String - - - None - - - KeyVersion - - Storage Account encryption keySource KeyVault KeyVersion - - System.String - - System.String - - - None - - - Kind - - Specifies the kind of Storage account that this cmdlet creates. The acceptable values for this parameter are: - Storage. General purpose Storage account that supports storage of Blobs, Tables, Queues, Files and Disks. - - StorageV2. General Purpose Version 2 (GPv2) Storage account that supports Blobs, Tables, Queues, Files, and Disks, with advanced features like data tiering. - - BlobStorage. Blob Storage account which supports storage of Blobs only. - - BlockBlobStorage. Block Blob Storage account which supports storage of Block Blobs only. - - FileStorage. File Storage account which supports storage of Files only. - The default value is StorageV2. - - - Storage - StorageV2 - BlobStorage - BlockBlobStorage - FileStorage - - System.String - - System.String - - - StorageV2 - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RequireInfrastructureEncryption - - The service will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentityId - - Set resource ids for the new Storage Account user assigned Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - - New-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to add the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to create. - - System.String - - System.String - - - None - - - SkuName - - Specifies the SKU name of the Storage account that this cmdlet creates. The acceptable values for this parameter are: - Standard_LRS. Locally-redundant storage. - - Standard_ZRS. Zone-redundant storage. - - Standard_GRS. Geo-redundant storage. - - Standard_RAGRS. Read access geo-redundant storage. - - Premium_LRS. Premium locally-redundant storage. - - Premium_ZRS. Premium zone-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Premium_ZRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - Location - - Specifies the location of the Storage account to create. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet creates. The acceptable values for this parameter are: Hot and Cool. If you specify a value of BlobStorage for the Kind parameter, you must specify a value for the AccessTier parameter. If you specify a value of Storage for this Kind parameter, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - ActiveDirectoryDomainGuid - - Specifies the domain GUID. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainName - - Specifies the primary domain that the AD DNS server is authoritative for. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow anonymous access to all blobs or containers in the storage account. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain of the Storage account. The default value is Storage. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - DnsEndpointType - - Specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Possible values include: 'Standard', 'AzureDnsZone'. - - System.String - - System.String - - - None - - - EdgeZone - - Set the extended location name for EdgeZone. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location - - System.String - - System.String - - - None - - - EnableAccountLevelImmutability - - Enables account-level immutability, then all the containers under this account will have object-level immutability enabled by default. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableAzureActiveDirectoryKerberosForFile - - Enable Azure Files Active Directory Domain Service Kerberos Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHierarchicalNamespace - - Indicates whether or not the Storage account enables Hierarchical Namespace. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableNfsV3 - - Enable NFS 3.0 protocol support if sets to true - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EncryptionKeyTypeForQueue - - Set the Encryption KeyType for Queue. The default value is Service. -Account: Queue will be encrypted with account-scoped encryption key. -Service: Queue will always be encrypted with Service-Managed keys. - - - Service - Account - - System.String - - System.String - - - None - - - EncryptionKeyTypeForTable - - Set the Encryption KeyType for Table. The default value is Service. - Account: Table will be encrypted with account-scoped encryption key. - - Service: Table will always be encrypted with Service-Managed keys. - - - Service - Account - - System.String - - System.String - - - None - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be only be specified with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. This property can only be specified with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyName - - Storage Account encryption keySource KeyVault KeyName - - System.String - - System.String - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUri - - Storage Account encryption keySource KeyVault KeyVaultUri - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in UserAssignIdentityId. - - System.String - - System.String - - - None - - - KeyVersion - - Storage Account encryption keySource KeyVault KeyVersion - - System.String - - System.String - - - None - - - Kind - - Specifies the kind of Storage account that this cmdlet creates. The acceptable values for this parameter are: - Storage. General purpose Storage account that supports storage of Blobs, Tables, Queues, Files and Disks. - - StorageV2. General Purpose Version 2 (GPv2) Storage account that supports Blobs, Tables, Queues, Files, and Disks, with advanced features like data tiering. - - BlobStorage. Blob Storage account which supports storage of Blobs only. - - BlockBlobStorage. Block Blob Storage account which supports storage of Block Blobs only. - - FileStorage. File Storage account which supports storage of Files only. - The default value is StorageV2. - - - Storage - StorageV2 - BlobStorage - BlockBlobStorage - FileStorage - - System.String - - System.String - - - StorageV2 - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RequireInfrastructureEncryption - - The service will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentityId - - Set resource ids for the new Storage Account user assigned Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - - New-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to add the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to create. - - System.String - - System.String - - - None - - - SkuName - - Specifies the SKU name of the Storage account that this cmdlet creates. The acceptable values for this parameter are: - Standard_LRS. Locally-redundant storage. - - Standard_ZRS. Zone-redundant storage. - - Standard_GRS. Geo-redundant storage. - - Standard_RAGRS. Read access geo-redundant storage. - - Premium_LRS. Premium locally-redundant storage. - - Premium_ZRS. Premium zone-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Premium_ZRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - Location - - Specifies the location of the Storage account to create. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet creates. The acceptable values for this parameter are: Hot and Cool. If you specify a value of BlobStorage for the Kind parameter, you must specify a value for the AccessTier parameter. If you specify a value of Storage for this Kind parameter, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow anonymous access to all blobs or containers in the storage account. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain of the Storage account. The default value is Storage. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - DnsEndpointType - - Specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Possible values include: 'Standard', 'AzureDnsZone'. - - System.String - - System.String - - - None - - - EdgeZone - - Set the extended location name for EdgeZone. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location - - System.String - - System.String - - - None - - - EnableAccountLevelImmutability - - Enables account-level immutability, then all the containers under this account will have object-level immutability enabled by default. - - - System.Management.Automation.SwitchParameter - - - False - - - EnableAzureActiveDirectoryDomainServicesForFile - - Enable Azure Files Microsoft Entra Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHierarchicalNamespace - - Indicates whether or not the Storage account enables Hierarchical Namespace. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableNfsV3 - - Enable NFS 3.0 protocol support if sets to true - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EncryptionKeyTypeForQueue - - Set the Encryption KeyType for Queue. The default value is Service. -Account: Queue will be encrypted with account-scoped encryption key. -Service: Queue will always be encrypted with Service-Managed keys. - - - Service - Account - - System.String - - System.String - - - None - - - EncryptionKeyTypeForTable - - Set the Encryption KeyType for Table. The default value is Service. - Account: Table will be encrypted with account-scoped encryption key. - - Service: Table will always be encrypted with Service-Managed keys. - - - Service - Account - - System.String - - System.String - - - None - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be only be specified with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. This property can only be specified with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyName - - Storage Account encryption keySource KeyVault KeyName - - System.String - - System.String - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUri - - Storage Account encryption keySource KeyVault KeyVaultUri - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in UserAssignIdentityId. - - System.String - - System.String - - - None - - - KeyVersion - - Storage Account encryption keySource KeyVault KeyVersion - - System.String - - System.String - - - None - - - Kind - - Specifies the kind of Storage account that this cmdlet creates. The acceptable values for this parameter are: - Storage. General purpose Storage account that supports storage of Blobs, Tables, Queues, Files and Disks. - - StorageV2. General Purpose Version 2 (GPv2) Storage account that supports Blobs, Tables, Queues, Files, and Disks, with advanced features like data tiering. - - BlobStorage. Blob Storage account which supports storage of Blobs only. - - BlockBlobStorage. Block Blob Storage account which supports storage of Block Blobs only. - - FileStorage. File Storage account which supports storage of Files only. - The default value is StorageV2. - - - Storage - StorageV2 - BlobStorage - BlockBlobStorage - FileStorage - - System.String - - System.String - - - StorageV2 - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RequireInfrastructureEncryption - - The service will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentityId - - Set resource ids for the new Storage Account user assigned Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet creates. The acceptable values for this parameter are: Hot and Cool. If you specify a value of BlobStorage for the Kind parameter, you must specify a value for the AccessTier parameter. If you specify a value of Storage for this Kind parameter, do not specify the AccessTier parameter. - - System.String - - System.String - - - None - - - ActiveDirectoryAccountType - - Specifies the Active Directory account type for Azure Storage. Possible values include: 'User', 'Computer'. - - System.String - - System.String - - - None - - - ActiveDirectoryAzureStorageSid - - Specifies the security identifier (SID) for Azure Storage. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainGuid - - Specifies the domain GUID. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainName - - Specifies the primary domain that the AD DNS server is authoritative for. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainSid - - Specifies the security identifier (SID). This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryForestName - - Specifies the Active Directory forest to get. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryNetBiosDomainName - - Specifies the NetBIOS domain name. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectorySamAccountName - - Specifies the Active Directory SAMAccountName for Azure Storage. - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow anonymous access to all blobs or containers in the storage account. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is false for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain of the Storage account. The default value is Storage. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - System.String - - System.String - - - None - - - DnsEndpointType - - Specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Possible values include: 'Standard', 'AzureDnsZone'. - - System.String - - System.String - - - None - - - EdgeZone - - Set the extended location name for EdgeZone. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location - - System.String - - System.String - - - None - - - EnableAccountLevelImmutability - - Enables account-level immutability, then all the containers under this account will have object-level immutability enabled by default. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableAzureActiveDirectoryDomainServicesForFile - - Enable Azure Files Microsoft Entra Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableAzureActiveDirectoryKerberosForFile - - Enable Azure Files Active Directory Domain Service Kerberos Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHierarchicalNamespace - - Indicates whether or not the Storage account enables Hierarchical Namespace. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableNfsV3 - - Enable NFS 3.0 protocol support if sets to true - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EncryptionKeyTypeForQueue - - Set the Encryption KeyType for Queue. The default value is Service. -Account: Queue will be encrypted with account-scoped encryption key. -Service: Queue will always be encrypted with Service-Managed keys. - - System.String - - System.String - - - None - - - EncryptionKeyTypeForTable - - Set the Encryption KeyType for Table. The default value is Service. - Account: Table will be encrypted with account-scoped encryption key. - - Service: Table will always be encrypted with Service-Managed keys. - - System.String - - System.String - - - None - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be only be specified with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. This property can only be specified with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyName - - Storage Account encryption keySource KeyVault KeyName - - System.String - - System.String - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUri - - Storage Account encryption keySource KeyVault KeyVaultUri - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in UserAssignIdentityId. - - System.String - - System.String - - - None - - - KeyVersion - - Storage Account encryption keySource KeyVault KeyVersion - - System.String - - System.String - - - None - - - Kind - - Specifies the kind of Storage account that this cmdlet creates. The acceptable values for this parameter are: - Storage. General purpose Storage account that supports storage of Blobs, Tables, Queues, Files and Disks. - - StorageV2. General Purpose Version 2 (GPv2) Storage account that supports Blobs, Tables, Queues, Files, and Disks, with advanced features like data tiering. - - BlobStorage. Blob Storage account which supports storage of Blobs only. - - BlockBlobStorage. Block Blob Storage account which supports storage of Block Blobs only. - - FileStorage. File Storage account which supports storage of Files only. - The default value is StorageV2. - - System.String - - System.String - - - StorageV2 - - - Location - - Specifies the location of the Storage account to create. - - System.String - - System.String - - - None - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to create. - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RequireInfrastructureEncryption - - The service will apply a secondary layer of encryption with platform managed keys for data at rest. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Specifies the name of the resource group in which to add the Storage account. - - System.String - - System.String - - - None - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - SkuName - - Specifies the SKU name of the Storage account that this cmdlet creates. The acceptable values for this parameter are: - Standard_LRS. Locally-redundant storage. - - Standard_ZRS. Zone-redundant storage. - - Standard_GRS. Geo-redundant storage. - - Standard_RAGRS. Read access geo-redundant storage. - - Premium_LRS. Premium locally-redundant storage. - - Premium_ZRS. Premium zone-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UserAssignedIdentityId - - Set resource ids for the new Storage Account user assigned Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - - - - - ------------- Example 1: Create a Storage account ------------- - New-AzStorageAccount -ResourceGroupName MyResourceGroup -Name mystorageaccount -Location westus -SkuName Standard_GRS -MinimumTlsVersion TLS1_2 - - This command creates a Storage account for the resource group name MyResourceGroup. - - - - - - Example 2: Create a Blob Storage account with BlobStorage Kind and hot AccessTier - New-AzStorageAccount -ResourceGroupName MyResourceGroup -Name mystorageaccount -Location westus -SkuName Standard_GRS -Kind BlobStorage -AccessTier Hot - - This command creates a Blob Storage account that with BlobStorage Kind and hot AccessTier - - - - - - Example 3: Create a Storage account with Kind StorageV2, and Generate and Assign an Identity for Azure KeyVault. - New-AzStorageAccount -ResourceGroupName MyResourceGroup -Name mystorageaccount -Location westus -SkuName Standard_GRS -Kind StorageV2 -AssignIdentity - - This command creates a Storage account with Kind StorageV2. It also generates and assigns an identity that can be used to manage account keys through Azure KeyVault. - - - - - - Example 4: Create a Storage account with NetworkRuleSet from JSON - New-AzStorageAccount -ResourceGroupName MyResourceGroup -Name mystorageaccount -Location westus -Type Standard_LRS -NetworkRuleSet (@{bypass="Logging,Metrics"; - ipRules=(@{IPAddressOrRange="20.11.0.0/16";Action="allow"}, - @{IPAddressOrRange="10.0.0.0/7";Action="allow"}); - virtualNetworkRules=(@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1";Action="allow"}, - @{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2";Action="allow"}); - defaultAction="Deny"}) - - This command creates a Storage account that has NetworkRuleSet property from JSON - - - - - - Example 5: Create a Storage account with Hierarchical Namespace enabled, Sftp enabled, and localuser enabled. - New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "mystorageaccount" -Location "US West" -SkuName "Standard_GRS" -Kind StorageV2 -EnableHierarchicalNamespace $true -EnableSftp $true -EnableLocalUser $true - - This command creates a Storage account with Hierarchical Namespace enabled, Sftp enabled, and localuser enabled. - - - - - - Example 6: Create a Storage account with Azure Files Microsoft Entra Domain Services Authentication, and enable large file share. - New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -EnableAzureActiveDirectoryDomainServicesForFile $true -EnableLargeFileShare - - This command creates a Storage account with Azure Files Microsoft Entra Domain Services Authentication, and enable large file share. - - - - - - Example 7: Create a Storage account with enable Files Active Directory Domain Service Authentication and DefaultSharePermission. - New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -EnableActiveDirectoryDomainServicesForFile $true ` - -ActiveDirectoryDomainName "mydomain.com" ` - -ActiveDirectoryNetBiosDomainName "mydomain.com" ` - -ActiveDirectoryForestName "mydomain.com" ` - -ActiveDirectoryDomainGuid "12345678-1234-1234-1234-123456789012" ` - -ActiveDirectoryDomainSid "S-1-5-21-1234567890-1234567890-1234567890" ` - -ActiveDirectoryAzureStorageSid "S-1-5-21-1234567890-1234567890-1234567890-1234" ` - -ActiveDirectorySamAccountName "samaccountname" ` - -ActiveDirectoryAccountType User ` - -DefaultSharePermission StorageFileDataSmbShareElevatedContributor - - This command creates a Storage account withenable Files Active Directory Domain Service Authentication and DefaultSharePermission. - - - - - - Example 8: Create a Storage account with Queue and Table Service use account-scoped encryption key, and Require Infrastructure Encryption. - New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -EncryptionKeyTypeForTable Account -EncryptionKeyTypeForQueue Account -RequireInfrastructureEncryption - -$account = Get-AzStorageAccount -ResourceGroupName $rgname -Name $accountName - -$account.Encryption.Services.Queue - -Enabled LastEnabledTime KeyType -------- --------------- ------- - True 1/9/2020 6:09:11 AM Account - -$account.Encryption.Services.Table - -Enabled LastEnabledTime KeyType -------- --------------- ------- - True 1/9/2020 6:09:11 AM Account - -$account.Encryption.RequireInfrastructureEncryption -True - - This command creates a Storage account with Queue and Table Service use account-scoped encryption key and Require Infrastructure Encryption, so Queue and Table will use same encryption key with Blob and File service, and the service will apply a secondary layer of encryption with platform managed keys for data at rest. Then get the Storage account properties, and view the encryption keytype of Queue and Table Service, and RequireInfrastructureEncryption value. - - - - - - Example 9: Create account MinimumTlsVersion and AllowBlobPublicAccess, and disable SharedKey Access - $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -MinimumTlsVersion TLS1_2 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $false - -$account.MinimumTlsVersion -TLS1_2 - -$account.AllowBlobPublicAccess -False - -$a.AllowSharedKeyAccess -False - - The command create account with MinimumTlsVersion, AllowBlobPublicAccess, and disable SharedKey access to the account, and then show the 3 properties of the created account - - - - - - Example 10: Create a Storage account with RoutingPreference setting - $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -PublishMicrosoftEndpoint $true -PublishInternetEndpoint $true -RoutingChoice MicrosoftRouting - -$account.RoutingPreference - -RoutingChoice PublishMicrosoftEndpoints PublishInternetEndpoints -------------- ------------------------- ------------------------ -MicrosoftRouting True True - -$account.PrimaryEndpoints - -Blob : https://mystorageaccount.blob.core.windows.net/ -Queue : https://mystorageaccount.queue.core.windows.net/ -Table : https://mystorageaccount.table.core.windows.net/ -File : https://mystorageaccount.file.core.windows.net/ -Web : https://mystorageaccount.z2.web.core.windows.net/ -Dfs : https://mystorageaccount.dfs.core.windows.net/ -MicrosoftEndpoints : {"Blob":"https://mystorageaccount-microsoftrouting.blob.core.windows.net/","Queue":"https://mystorageaccount-microsoftrouting.queue.core.windows.net/","Table":"https://mystorageaccount-microsoftrouting.table.core.windows.net/","File":"ht - tps://mystorageaccount-microsoftrouting.file.core.windows.net/","Web":"https://mystorageaccount-microsoftrouting.z2.web.core.windows.net/","Dfs":"https://mystorageaccount-microsoftrouting.dfs.core.windows.net/"} -InternetEndpoints : {"Blob":"https://mystorageaccount-internetrouting.blob.core.windows.net/","File":"https://mystorageaccount-internetrouting.file.core.windows.net/","Web":"https://mystorageaccount-internetrouting.z2.web.core.windows.net/","Dfs":"https://w - eirp3-internetrouting.dfs.core.windows.net/"} - - This command creates a Storage account with RoutingPreference setting: PublishMicrosoftEndpoint and PublishInternetEndpoint as true, and RoutingChoice as MicrosoftRouting. - - - - - - Example 11: Create a Storage account with EdgeZone and AllowCrossTenantReplication - $account = New-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -SkuName Premium_LRS -Location westus -EdgeZone "microsoftlosangeles1" -AllowCrossTenantReplication $false - -$account.ExtendedLocation - -Name Type ----- ---- -microsoftlosangeles1 EdgeZone - -$account.AllowCrossTenantReplication -False - - This command creates a Storage account with EdgeZone as "microsoftlosangeles1" and AllowCrossTenantReplication as false, then show the created account related properties. - - - - - - Example 12: Create a Storage account with KeyExpirationPeriod and SasExpirationPeriod - $account = New-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -SkuName Premium_LRS -Location eastus -KeyExpirationPeriodInDay 5 -SasExpirationPeriod "1.12:05:06" - -$account.KeyPolicy.KeyExpirationPeriodInDays -5 - -$account.SasPolicy.SasExpirationPeriod -1.12:05:06 - - This command creates a Storage account with KeyExpirationPeriod and SasExpirationPeriod, then show the created account related properties. - - - - - - Example 12: Create a Storage account with Keyvault encryption (access Keyvault with user assigned identity) - # Create KeyVault (no need if using exist keyvault) -$keyVault = New-AzKeyVault -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -Location eastus2euap -EnablePurgeProtection -$key = Add-AzKeyVaultKey -VaultName $keyvaultName -Name $keyname -Destination 'Software' - -# create user assigned identity and grant access to keyvault (no need if using exist user assigned identity) -$userId = New-AzUserAssignedIdentity -ResourceGroupName $resourceGroupName -Name $userIdName -Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $userId.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation -$useridentityId= $userId.Id - -# create Storage account with Keyvault encryption (access Keyvault with user assigned identity), then show properties -$account = New-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -Kind StorageV2 -SkuName Standard_LRS -Location eastus2euap ` - -IdentityType SystemAssignedUserAssigned -UserAssignedIdentityId $useridentityId ` - -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId - -$account.Encryption.EncryptionIdentity - -EncryptionUserAssignedIdentity ------------------------------- -/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid - -$account.Encryption.KeyVaultProperties - -KeyName : wrappingKey -KeyVersion : -KeyVaultUri : https://mykeyvault.vault.azure.net:443 -CurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/wrappingKey/8e74036e0d534e58b3bd84b319e31d8f -LastKeyRotationTimestamp : 4/12/2021 8:17:57 AM - - This command first create a keyvault and a user assigned identity, then create a storage account with keyvault encryption (the storage access access keyvault with the user assigned identity). - - - - - - --------- Example 13: Create account with EnableNfsV3 --------- - $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -SkuName Standard_LRS -Location centraluseuap -Kind StorageV2 -EnableNfsV3 $true -EnableHierarchicalNamespace $true -EnableHttpsTrafficOnly $false -NetworkRuleSet (@{bypass="Logging,Metrics"; - virtualNetworkRules=(@{VirtualNetworkResourceId="$vnet1";Action="allow"}); - defaultAction="deny"}) -$account.EnableNfsV3 - -True - - The command create account with EnableNfsV3 as true, and then show the EnableNfsV3 property of the created account - - - - - - - Example 14: Create account with disable PublicNetworkAccess - - $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -SkuName Standard_LRS -Location centraluseuap -Kind StorageV2 -PublicNetworkAccess Disabled - -$account.PublicNetworkAccess - -Disabled - - The command creates account with disable PublicNetworkAccess of the account. - - - - - - Example 15: Create account with account level Immutability policy - $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -SkuName Standard_LRS -Location centraluseuap -Kind StorageV2 -EnableAccountLevelImmutability -ImmutabilityPeriod 1 -ImmutabilityPolicyState Unlocked - -$account.ImmutableStorageWithVersioning.Enabled -True - -$account.ImmutableStorageWithVersioning.ImmutabilityPolicy - -ImmutabilityPeriodSinceCreationInDays State -------------------------------------- ----- - 1 Unlocked - - The command creates an account and enable account level immutability with versioning by '-EnableAccountLevelImmutability', then all the containers under this account will have object-level immutability enabled by default. The account is also created with a default account-level immutability policy which is inherited and applied to objects that do not possess an explicit immutability policy at the object level. - - - - - - Example 16: Create a Storage account with enable Azure Files Active Directory Domain Service Kerberos Authentication. - New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -EnableAzureActiveDirectoryKerberosForFile $true ` - -ActiveDirectoryDomainName "mydomain.com" ` - -ActiveDirectoryDomainGuid "12345678-1234-1234-1234-123456789012" - - This command creates a Storage account with enable Azure Files Active Directory Domain Service Kerberos Authentication. - - - - - - Example 17: Create a Storage account with Keyvault from another tenant (access Keyvault with FederatedClientId) - # create Storage account with Keyvault encryption (access Keyvault with FederatedClientId), then show properties -$account = New-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -Kind StorageV2 -SkuName Standard_LRS -Location eastus2euap ` - -IdentityType SystemAssignedUserAssigned -UserAssignedIdentityId $useridentityId ` - -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId -KeyVaultFederatedClientId $federatedClientId - -$account.Encryption.EncryptionIdentity - -EncryptionUserAssignedIdentity EncryptionFederatedIdentityClientId ------------------------------- ----------------------------------- -/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid ********-****-****-****-************ - -$account.Encryption.KeyVaultProperties - -KeyName : wrappingKey -KeyVersion : -KeyVaultUri : https://mykeyvault.vault.azure.net:443 -CurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/wrappingKey/8e74036e0d534e58b3bd84b319e31d8f -LastKeyRotationTimestamp : 3/3/2022 2:07:34 AM - - This command creates a storage account with Keyvault from another tenant (access Keyvault with FederatedClientId). - - - - - - Example 18: Create account with DnsEndpointType as AzureDnsZone - New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "mystorageaccount" -SkuName Standard_LRS -Location centraluseuap -Kind StorageV2 -DnsEndpointType AzureDnsZone - - The command creates a storage account with DnsEndpointType as AzureDnsZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageaccount - - - Get-AzStorageAccount - - - - Remove-AzStorageAccount - - - - Set-AzStorageAccount - - - - - - - New-AzStorageAccountKey - New - AzStorageAccountKey - - Regenerates a storage key for an Azure Storage account. - - - - The New-AzStorageAccountKey cmdlet regenerates a storage key for an Azure Storage account. - - - - New-AzStorageAccountKey - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account for which to regenerate a storage key. - - System.String - - System.String - - - None - - - KeyName - - Specifies which key to regenerate. The acceptable values for this parameter are: - key1 - - key2 - - kerb1 - - kerb2 - - - key1 - key2 - kerb1 - kerb2 - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - KeyName - - Specifies which key to regenerate. The acceptable values for this parameter are: - key1 - - key2 - - kerb1 - - kerb2 - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account for which to regenerate a storage key. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Management.Storage.Models.StorageAccountListKeysResult - - - - - - - - - - - - - - ------------- Example 1: Regenerate a storage key ------------- - New-AzStorageAccountKey -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -KeyName "key1" - - This command regenerates a storage key for the specified Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageaccountkey - - - Get-AzStorageAccountKey - - - - - - - New-AzStorageAccountManagementPolicyBlobIndexMatchObject - New - AzStorageAccountManagementPolicyBlobIndexMatchObject - - Creates a ManagementPolicy BlobIndexMatch object, which can be used in New-AzStorageAccountManagementPolicyFilter. - - - - The New-AzStorageAccountManagementPolicyBlobIndexMatchObject cmdlet creates a ManagementPolicy BlobIndexMatch object, which can be used in New-AzStorageAccountManagementPolicyFilter. - - - - New-AzStorageAccountManagementPolicyBlobIndexMatchObject - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Gets or sets this is the filter tag name, it can have 1 - 128 characters - - System.String - - System.String - - - None - - - Value - - Gets or sets this is the filter tag value field used for tag based filtering, it can have 0 - 256 characters. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Gets or sets this is the filter tag name, it can have 1 - 128 characters - - System.String - - System.String - - - None - - - Value - - Gets or sets this is the filter tag value field used for tag based filtering, it can have 0 - 256 characters. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSTagFilter - - - - - - - - - - - - - - Example 1: Creates 2 ManagementPolicy BlobIndexMatch object3, then add them to a management policy rule filter - $blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" -$blobindexmatch1 - -Name Op Value ----- -- ----- -tag1 == value1 - -$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" - -New-AzStorageAccountManagementPolicyFilter -PrefixMatch prefix1,prefix2 -BlobType blockBlob ` - -BlobIndexMatch $blobindexmatch1,$blobindexmatch2 - -PrefixMatch BlobTypes BlobIndexMatch ------------ --------- -------------- -{prefix1, prefix2} {blockBlob} {tag1, tag2} - - This command creates 2 ManagementPolicy BlobIndexMatch objects, then add themto a management policy rule filter. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/new-Azstorageaccountmanagementpolicyblobindexmatchobject - - - - - - New-AzStorageAccountManagementPolicyFilter - New - AzStorageAccountManagementPolicyFilter - - Creates a ManagementPolicy rule filter object, which can be used in New-AzStorageAccountManagementPolicyRule. - - - - The New-AzStorageAccountManagementPolicyFilter cmdlet creates a ManagementPolicy rule filter object, which can be used in New-AzStorageAccountManagementPolicyRule. - - - - New-AzStorageAccountManagementPolicyFilter - - BlobIndexMatch - - An array of blob index tag based filters, there can be at most 10 tag filters. - - Microsoft.Azure.Commands.Management.Storage.Models.PSTagFilter[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSTagFilter[] - - - None - - - BlobType - - An array of strings for blobtypes to be match. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. - - - blockBlob - appendBlob - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PrefixMatch - - An array of strings for prefixes to be match. A prefix string must start with a container name. - - System.String[] - - System.String[] - - - None - - - - - - BlobIndexMatch - - An array of blob index tag based filters, there can be at most 10 tag filters. - - Microsoft.Azure.Commands.Management.Storage.Models.PSTagFilter[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSTagFilter[] - - - None - - - BlobType - - An array of strings for blobtypes to be match. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PrefixMatch - - An array of strings for prefixes to be match. A prefix string must start with a container name. - - System.String[] - - System.String[] - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter - - - - - - - - - - - - - - Example 1: Creates a ManagementPolicy rule filter object, then add it to a management policy rule and set to a Storage account - $blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" -$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" -$filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch blobprefix1,blobprefix2 -BlobType appendBlob,blockBlob -BlobIndexMatch $blobindexmatch1,$blobindexmatch2 -$filter - -PrefixMatch BlobTypes BlobIndexMatch ------------ --------- -------------- -{blobprefix1, blobprefix2} {appendBlob, blockBlob} {tag1, tag2} - -$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 100 -$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter -$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule - - This command create a ManagementPolicy rule filter object. Then add it to a management policy rule and set to a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/new-Azstorageaccountmanagementpolicyfilter - - - - - - New-AzStorageAccountManagementPolicyRule - New - AzStorageAccountManagementPolicyRule - - Creates a ManagementPolicy rule object, which can be used in Set-AzStorageAccountManagementPolicy. - - - - The New-AzStorageAccountManagementPolicyRule cmdlet creates a ManagementPolicy rule object, which can be used in Set-AzStorageAccountManagementPolicy. - - - - New-AzStorageAccountManagementPolicyRule - - Name - - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. - - System.String - - System.String - - - None - - - Action - - An object that defines the action set. Get the Object with cmdlet Add-AzureStorageAccountManagementPolicyAction - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - The rule is disabled if set it. - - - System.Management.Automation.SwitchParameter - - - False - - - Filter - - An object that defines the filter set. Get the Object with cmdlet New-AzureStorageAccountManagementPolicyFilter - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter - - - None - - - - - - Action - - An object that defines the action set. Get the Object with cmdlet Add-AzureStorageAccountManagementPolicyAction - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - The rule is disabled if set it. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Filter - - An object that defines the filter set. Get the Object with cmdlet New-AzureStorageAccountManagementPolicyFilter - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter - - - None - - - Name - - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule - - - - - - - - - - - - - - Example 1: Creates a ManagementPolicy rule object, then set to a Storage Account - $action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 100 -$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -InputObject $action -$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -daysAfterModificationGreaterThan 30 -InputObject $action -$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -InputObject $action - -$filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch blobprefix1,blobprefix2 - -$rule = New-AzStorageAccountManagementPolicyRule -Name rule1 -Action $action -Filter $filter -$rule - -Enabled : True -Name : rule1 -Definition : { - "Actions": { - "BaseBlob": { - "TierToCool": { - "DaysAfterModificationGreaterThan": 30 - }, - "TierToArchive": { - "DaysAfterModificationGreaterThan": 50 - }, - "Delete": { - "DaysAfterModificationGreaterThan": 100 - } - }, - "Snapshot": { - "Delete": { - "DaysAfterCreationGreaterThan": 100 - } - } - }, - "Filters": { - "PrefixMatch": [ - "blobprefix1", - "blobprefix2" - ], - "BlobTypes": [ - "blockBlob" - ] - } - } - -$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule - - This command create a ManagementPolicy rule object, with a ManagementPolicy action group object contains 4 actions, a ManagementPolicy rule filter object, then set the rule to a Storage Account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/new-Azstorageaccountmanagementpolicyrule - - - - - - New-AzStorageBlobInventoryPolicyRule - New - AzStorageBlobInventoryPolicyRule - - Creates a blob inventory policy rule object, which can be used in Set-AzStorageBlobInventoryPolicy. - - - - The New-AzStorageBlobInventoryPolicyRule cmdlet creates a blob inventory policy rule object, which can be used in Set-AzStorageBlobInventoryPolicy. - - - - New-AzStorageBlobInventoryPolicyRule - - Name - - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. - - System.String - - System.String - - - None - - - BlobSchemaField - - Specifies the fields and properties of the Blob object to be included in the inventory. Valid values include: Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Metadata, LastAccessTime, AccessTierInferred, Tags. 'Name' is a required schemafield. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl' are valid only for HierarchicalNamespace enabled accounts.'Tags' field is only valid for non HierarchicalNamespace accounts. If specify '-IncludeSnapshot', will include 'Snapshot' in the inventory. If specify '-IncludeBlobVersion', will include 'VersionId, 'IsCurrentVersion' in the inventory. - - - Name - Creation-Time - Last-Modified - Content-Length - Content-MD5 - BlobType - AccessTier - AccessTierChangeTime - Expiry-Time - hdi_isfolder - Owner - Group - Permissions - Acl - Metadata - LastAccessTime - AccessTierInferred - Tags - Etag - Content-Type - Content-Encoding - Content-Language - Content-CRC64 - Cache-Control - Content-Disposition - LeaseStatus - LeaseState - LeaseDuration - ServerEncrypted - Deleted - RemainingRetentionDays - ImmutabilityPolicyUntilDate - ImmutabilityPolicyMode - LegalHold - CopyId - CopyStatus - CopySource - CopyProgress - CopyCompletionTime - CopyStatusDescription - CustomerProvidedKeySha256 - RehydratePriority - ArchiveStatus - x-ms-blob-sequence-number - EncryptionScope - IncrementalCopy - DeletionId - DeletedTime - TagCount - - System.String[] - - System.String[] - - - None - - - BlobType - - Sets the blob types for the blob inventory policy rule. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. - - - blockBlob - pageBlob - appendBlob - - System.String[] - - System.String[] - - - None - - - CreationTimeLastNDay - - Filter the objects which has creation time in last N days. The valid value is between 1 to 36500. Inventory schema 'Creation-Time' is mandatory with this filter. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - The container name where blob inventory files are stored. Must be pre-created. - - System.String - - System.String - - - None - - - Disabled - - The rule is disabled if set it. - - - System.Management.Automation.SwitchParameter - - - False - - - ExcludePrefix - - Sets an array of strings with maximum 10 blob prefixes to be excluded from the inventory. - - System.String[] - - System.String[] - - - None - - - Format - - Specifies the format for the inventory files. Possible values include: 'Csv', 'Parquet' - - - Csv - Parquet - - System.String - - System.String - - - None - - - IncludeBlobVersion - - The rule is disabled if set it. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeDeleted - - Includes deleted blob in blob inventory. When include delete blob, for ContainerSchemaFields, must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For BlobSchemaFields, on HNS enabled storage accounts, must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays', and on Hns disabled accounts must include 'Deleted and RemainingRetentionDays', else they must be excluded. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeSnapshot - - The rule is disabled if set it. - - - System.Management.Automation.SwitchParameter - - - False - - - PrefixMatch - - Sets an array of strings for blob prefixes to be matched.. - - System.String[] - - System.String[] - - - None - - - Schedule - - This field is used to schedule an inventory formation. Possible values include: 'Daily', 'Weekly' - - - Daily - Weekly - - System.String - - System.String - - - None - - - - New-AzStorageBlobInventoryPolicyRule - - Name - - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. - - System.String - - System.String - - - None - - - ContainerSchemaField - - Specifies the fields and properties of the container object to be included in the inventory. Valid values include: Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold. 'Name' is a required schemafield. - - - Name - Last-Modified - Metadata - LeaseStatus - LeaseState - LeaseDuration - PublicAccess - HasImmutabilityPolicy - HasLegalHold - Etag - DefaultEncryptionScope - DenyEncryptionScopeOverride - ImmutableStorageWithVersioningEnabled - Deleted - Version - DeletedTime - RemainingRetentionDays - - System.String[] - - System.String[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - The container name where blob inventory files are stored. Must be pre-created. - - System.String - - System.String - - - None - - - Disabled - - The rule is disabled if set it. - - - System.Management.Automation.SwitchParameter - - - False - - - ExcludePrefix - - Sets an array of strings with maximum 10 blob prefixes to be excluded from the inventory. - - System.String[] - - System.String[] - - - None - - - Format - - Specifies the format for the inventory files. Possible values include: 'Csv', 'Parquet' - - - Csv - Parquet - - System.String - - System.String - - - None - - - PrefixMatch - - Sets an array of strings for blob prefixes to be matched.. - - System.String[] - - System.String[] - - - None - - - Schedule - - This field is used to schedule an inventory formation. Possible values include: 'Daily', 'Weekly' - - - Daily - Weekly - - System.String - - System.String - - - None - - - - - - BlobSchemaField - - Specifies the fields and properties of the Blob object to be included in the inventory. Valid values include: Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Metadata, LastAccessTime, AccessTierInferred, Tags. 'Name' is a required schemafield. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl' are valid only for HierarchicalNamespace enabled accounts.'Tags' field is only valid for non HierarchicalNamespace accounts. If specify '-IncludeSnapshot', will include 'Snapshot' in the inventory. If specify '-IncludeBlobVersion', will include 'VersionId, 'IsCurrentVersion' in the inventory. - - System.String[] - - System.String[] - - - None - - - BlobType - - Sets the blob types for the blob inventory policy rule. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. - - System.String[] - - System.String[] - - - None - - - ContainerSchemaField - - Specifies the fields and properties of the container object to be included in the inventory. Valid values include: Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold. 'Name' is a required schemafield. - - System.String[] - - System.String[] - - - None - - - CreationTimeLastNDay - - Filter the objects which has creation time in last N days. The valid value is between 1 to 36500. Inventory schema 'Creation-Time' is mandatory with this filter. - - System.Int32 - - System.Int32 - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - The container name where blob inventory files are stored. Must be pre-created. - - System.String - - System.String - - - None - - - Disabled - - The rule is disabled if set it. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ExcludePrefix - - Sets an array of strings with maximum 10 blob prefixes to be excluded from the inventory. - - System.String[] - - System.String[] - - - None - - - Format - - Specifies the format for the inventory files. Possible values include: 'Csv', 'Parquet' - - System.String - - System.String - - - None - - - IncludeBlobVersion - - The rule is disabled if set it. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeDeleted - - Includes deleted blob in blob inventory. When include delete blob, for ContainerSchemaFields, must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For BlobSchemaFields, on HNS enabled storage accounts, must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays', and on Hns disabled accounts must include 'Deleted and RemainingRetentionDays', else they must be excluded. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeSnapshot - - The rule is disabled if set it. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. - - System.String - - System.String - - - None - - - PrefixMatch - - Sets an array of strings for blob prefixes to be matched.. - - System.String[] - - System.String[] - - - None - - - Schedule - - This field is used to schedule an inventory formation. Possible values include: 'Daily', 'Weekly' - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule - - - - - - - - - - - - - - Example 1: Create blob inventory policy rule objects, then sets blob inventory policy with the rule objects. - $rule1 = New-AzStorageBlobInventoryPolicyRule -Name Test1 -Destination $containerName -Disabled -Format Csv -Schedule Daily -ContainerSchemaField Name,Metadata,PublicAccess,Last-mOdified,LeaseStatus,LeaseState,LeaseDuration,HasImmutabilityPolicy,HasLegalHold -PrefixMatch con1,con2 - -$rule2 = New-AzStorageBlobInventoryPolicyRule -Name Test2 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeSnapshot -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` - -BlobSchemaField name,Creation-Time,Last-Modified,Content-Length,Content-MD5,BlobType,AccessTier,AccessTierChangeTime,Expiry-Time,hdi_isfolder,Owner,Group,Permissions,Acl,Metadata -CreationTimeLastNDay 30 -$rule3 = New-AzStorageBlobInventoryPolicyRule -Name Test3 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeSnapshot -IncludeDeleted -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` - -ExcludePrefix ccc,ddd -BlobSchemaField name,Last-Modified,BlobType,AccessTier,AccessTierChangeTime,Content-Type,Content-CRC64,CopyId,DeletionId,Deleted,DeletedTime,RemainingRetentionDays - -$policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Disabled -Rule $rule1,$rule2 - -$policy - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -Name : DefaultInventoryPolicy -Id : /subscriptions/{subscription-Id}/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/inventoryPolicies/default -Type : Microsoft.Storage/storageAccounts/inventoryPolicies -LastModifiedTime : 5/12/2021 8:53:38 AM -Enabled : False -Rules : {Test1, Test2, Test3} - -$policy.Rules - -Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions IncludeDeleted BlobTypes PrefixMatch ExcludePrefix SchemaFields CreationTime ----- ------- ----------- ---------- ------ -------- ---------------- ------------------- -------------- --------- ----------- ------------- ------------ ------------ -Test1 False containername Container Csv Daily {con1, con2} {Name, Metadata, PublicAccess, Last-Modified...} -Test2 True containername Blob Parquet Weekly True {blockBlob, appendBlob} {aaa, bbb} {Name, Creation-Time, Last-Modified, Content-Length...} LastNDays=30 -Test3 True containername Blob Parquet Weekly True True {blockBlob, appendBlob} {aaa, bbb} {ccc, ddd} {Name, Last-Modified, BlobType, AccessTier...} - - This first 3 commands create 3 BlobInventoryPolicy rule objects: rule "Test1" for contaienr inventory; rule "Test2" for blob inventory; rule "Test3" for blob inventory with more schema fields, excludePrefix specified, and IncludeDeleted enabled. The following command sets blob inventory policy to a Storage account with the 3 rule objects, then show the updated policy and rules properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageblobinventorypolicyrule - - - - - - New-AzStorageBlobRangeToRestore - New - AzStorageBlobRangeToRestore - - Creates a Blob Range object to restores a Storage account. - - - - The New-AzStorageBlobRangeToRestore cmdlet creates a Blob range object, which can be used in Restore-AzStorageBlobRange. - - - - New-AzStorageBlobRangeToRestore - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EndRange - - Specify the blob restore End range. End range will be excluded in restore blobs. Set it as empty strng to restore to the end. - - System.String - - System.String - - - None - - - StartRange - - Specify the blob restore start range. Start range will be included in restore blobs. Set it as empty string to restore from begining. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EndRange - - Specify the blob restore End range. End range will be excluded in restore blobs. Set it as empty strng to restore to the end. - - System.String - - System.String - - - None - - - StartRange - - Specify the blob restore start range. Start range will be included in restore blobs. Set it as empty string to restore from begining. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange - - - - - - - - - - - - - - ---------- Example 1: Creates a blob range to restore ---------- - $range = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange container2/blob2 - - This command creates a blob range to restore, which starts at container1/blob1 (include), and ends at container2/blob2 (exclude). - - - - - - Example 2: Creates a blob range which will restore from first blob in alphabetical order, to a specific blob (exclude) - $range = New-AzStorageBlobRangeToRestore -StartRange "" -EndRange container2/blob2 - - This command creates a blob range which will restore from first blob of alphabetical order, to a specific blob container2/blob2 (exclude) - - - - - - Example 3: Creates a blob range which will restore from a specific blob (include), to the last blob in alphabetical order - $range = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange "" - - This command creates a blob range which will restore from a specific blob container1/blob1 (include), to the last blob in alphabetical order. - - - - - - - Example 4: Creates a blob range which will restore all blobs - - $range = New-AzStorageBlobRangeToRestore -StartRange "" -EndRange "" - - This command creates a blob range which will restore all blobs. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageblobrangetorestore - - - - - - New-AzStorageEncryptionScope - New - AzStorageEncryptionScope - - Creates an encryption scope for a Storage account. - - - - The New-AzStorageEncryptionScope cmdlet creates an encryption scope for a Storage account. - - - - New-AzStorageEncryptionScope - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - - System.Management.Automation.SwitchParameter - - - False - - - RequireInfrastructureEncryption - - The encryption scope will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - - System.Management.Automation.SwitchParameter - - - False - - - RequireInfrastructureEncryption - - The encryption scope will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageEncryptionScope - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - RequireInfrastructureEncryption - - The encryption scope will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - RequireInfrastructureEncryption - - The encryption scope will apply a secondary layer of encryption with platform managed keys for data at rest. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RequireInfrastructureEncryption - - The encryption scope will apply a secondary layer of encryption with platform managed keys for data at rest. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - - - - - - - - - - - - Example 1: Create an encryption scope with Storage Encryption - New-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EncryptionScopeName testscope -StorageEncryption - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri RequireInfrastructureEncryption ----- ----- ------ -------------- ------------------------------- -testscope Enabled Microsoft.Storage - - This command creates an encryption scope with Storage Encryption. - - - - - - Example 2: Create an encryption scope with Keyvault Encryption, and RequireInfrastructureEncryption - New-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" ` - -EncryptionScopeName testscope -KeyvaultEncryption -KeyUri "https://keyvalutname.vault.azure.net:443/keys/keyname/34a0ba563b4243d9a0ef2b1d3c0c7d57" ` - -RequireInfrastructureEncryption - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri RequireInfrastructureEncryption ----- ----- ------ -------------- ------------------------------- -testscope Enabled Microsoft.Keyvault https://keyvalutname.vault.azure.net:443/keys/keyname/34a0ba563b4243d9a0ef2b1d3c0c7d57 True - - This command creates an encryption scope with Keyvault Encryption and RequireInfrastructureEncryption. The Storage account Identity need have get,wrapkey,unwrapkey permissions to the keyvault key. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageencryptionscope - - - - - - New-AzStorageLocalUserPermissionScope - New - AzStorageLocalUserPermissionScope - - Creates a permission scope object, which can be used in Set-AzStorageLocalUser. - - - - The New-AzStorageLocalUserPermissionScope cmdlet creates a permission scope object, which can be used in Set-AzStorageLocalUser. - - - - New-AzStorageLocalUserPermissionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Permission - - Specify the permissions for the local user. Possible values include: Read(r), Write (w), Delete (d), List (l), and Create (c). - - System.String - - System.String - - - None - - - ResourceName - - Specify the name of resource, normally the container name or the file share name, used by the local user. - - System.String - - System.String - - - None - - - Service - - Specify the service used by the local user, e.g. blob, file. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Permission - - Specify the permissions for the local user. Possible values include: Read(r), Write (w), Delete (d), List (l), and Create (c). - - System.String - - System.String - - - None - - - ResourceName - - Specify the name of resource, normally the container name or the file share name, used by the local user. - - System.String - - System.String - - - None - - - Service - - Specify the service used by the local user, e.g. blob, file. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope - - - - - - - - - - - - - - Example 1: Create permission scope objects, then create or update local user with the permission scope objects. - $permissionScope1 = New-AzStorageLocalUserPermissionScope -Permission rw -Service blob -ResourceName container1 - -$permissionScope2 = New-AzStorageLocalUserPermissionScope -Permission rwd -Service file -ResourceName share2 - -$localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -PermissionScope $permissionScope1,$permissionScope2 - -$localuser - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name Sid HomeDirectory HasSharedKey HasSshKey HasSshPassword PermissionScopes SshAuthorizedKeys ----- --- ------------- ------------ --------- -------------- ---------------- ----------------- -testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / [container1,...] - -$localuser.PermissionScopes - -Permissions Service ResourceName ------------ ------- ------------ -rw blob container1 -rwd file share2 - - This first 2 commands create 2 permission scope objects. The following commands create or update a local user with the permission scope objects, then show the updated local user properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragelocaluserpermissionscope - - - - - - New-AzStorageLocalUserSshPassword - New - AzStorageLocalUserSshPassword - - Regenerate SSH password of a specified local user in a storage account. - - - - The New-AzStorageLocalUserSshPassword cmdlet regenerates SSH password of a specified local user in a storage account. - - - - New-AzStorageLocalUserSshPassword - - InputObject - - Local User Object to Regenerate Password Keys. - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageLocalUserSshPassword - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageLocalUserSshPassword - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Local User Object to Regenerate Password Keys. - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUserKeys - - - - - - - - - - - - - - - Example 1: Regenerate SSH password of a specified local user - - New-AzStorageLocalUserSshPassword -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 - -SshPassword ------------ -<hidden> - - This command regenerates SSH password of a specified local user. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragelocalusersshpassword - - - - - - New-AzStorageLocalUserSshPublicKey - New - AzStorageLocalUserSshPublicKey - - Creates a SSH public key object, which can be used in Set-AzStorageLocalUser. - - - - The New-AzStorageLocalUserSshPublicKey cmdlet creates a SSH public key object, which can be used in Set-AzStorageLocalUser. - - - - New-AzStorageLocalUserSshPublicKey - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Description - - The description of the key. It is used to store the function/usage of the key. - - System.String - - System.String - - - None - - - Key - - Specify ssh public key, the key data is base64 encoded. The format should be: '<keyType> <keyData>', e.g. ssh-rsa AAAABBBB - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Description - - The description of the key. It is used to store the function/usage of the key. - - System.String - - System.String - - - None - - - Key - - Specify ssh public key, the key data is base64 encoded. The format should be: '<keyType> <keyData>', e.g. ssh-rsa AAAABBBB - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey - - - - - - - - - - - - - - Example 1: Create SSH public key objects, then create or update local user with the SSH public key objects. - $sshkey1 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa keykeykeykeykey=" -Description "sshpulickey name1" - -$sshkey2 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa keykeykeykeykew=" -Description "sshpulickey name2" - -$localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -SshAuthorizedKey $sshkey1,$sshkey2 - -$localuser - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name Sid HomeDirectory HasSharedKey HasSshKey HasSshPassword PermissionScopes SshAuthorizedKeys ----- --- ------------- ------------ --------- -------------- ---------------- ----------------- -testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / [ssh-rsa keykeykeykeykey=,...] - -$localuser.SshAuthorizedKeys - -Description Key ------------ --- -sshpulickey name1 ssh-rsa keykeykeykeykey= -sshpulickey name2 ssh-rsa keykeykeykeykew= - - This first 2 commands create 2 SSH public key objects. The following commands create or update a local user with the SSH public key objects, then show the updated local user properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragelocalusersshpublickey - - - - - - New-AzStorageObjectReplicationPolicyRule - New - AzStorageObjectReplicationPolicyRule - - Creates an object replication policy rule. - - - - The Get-AzStorageObjectReplicationPolicy cmdlet creates an object replication policy rule, which will be used in Set-AzStorageObjectReplicationPolicy cmdlet. - - - - New-AzStorageObjectReplicationPolicyRule - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationContainer - - The Destination Container name to replicate to. - - System.String - - System.String - - - None - - - MinCreationTime - - Blobs created after the time will be replicated to the destination.. - - System.DateTime - - System.DateTime - - - None - - - PrefixMatch - - Filters the results to replicate only blobs whose names begin with the specified prefix. - - System.String[] - - System.String[] - - - None - - - RuleId - - Object Replication Rule Id. - - System.String - - System.String - - - None - - - SourceContainer - - The Source Container name to replicate from. - - System.String - - System.String - - - None - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationContainer - - The Destination Container name to replicate to. - - System.String - - System.String - - - None - - - MinCreationTime - - Blobs created after the time will be replicated to the destination.. - - System.DateTime - - System.DateTime - - - None - - - PrefixMatch - - Filters the results to replicate only blobs whose names begin with the specified prefix. - - System.String[] - - System.String[] - - - None - - - RuleId - - Object Replication Rule Id. - - System.String - - System.String - - - None - - - SourceContainer - - The Source Container name to replicate from. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule - - - - - - - - - - - - - - Example 1: Create an object replication policy rule with only source and destination account, and show its properties - $rule1 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src1 -DestinationContainer dest1 - -$rule1 - -RuleId SourceContainer DestinationContainer Filters.PrefixMatch Filters.MinCreationTime ------- --------------- -------------------- ------------------- ----------------------- - src1 dest1 {} - - This command creates an object replication policy rule with only source and destination account, and show its properties. - - - - - - Example 2: Create an object replication policy rule with all properties, and show its properties - $rule2 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src -DestinationContainer dest -MinCreationTime 2019-01-01T16:00:00Z -PrefixMatch a,abc,dd - -$rule2 - -RuleId SourceContainer DestinationContainer Filters.PrefixMatch Filters.MinCreationTime ------- --------------- -------------------- ------------------- ----------------------- - src dest {a, abc, dd} 2019-01-01T16:00:00Z - - This command an object replication policy rule with all properties, and show its properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/New-azstorageobjectreplicationpolicyrule - - - - - - Remove-AzRmStorageContainer - Remove - AzRmStorageContainer - - Removes a Storage blob container - - - - The Remove-AzRmStorageContainer cmdlet removes a Storage blob container - - - - Remove-AzRmStorageContainer - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the container and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainer - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the container and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Container Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainer - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the container and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Container Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the container and all content in it - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove a Storage blob container with Storage account name and container name - Remove-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" - - This command removes a Storage blob container with Storage account name and container name. - - - - - - Example 2: Remove a Storage blob container with Storage account object and container name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Remove-AzRmStorageContainer -StorageAccount $accountObject -ContainerName "myContainer" - - This command removes a Storage blob container with Storage account object and container name. - - - - - - Example 3: Remove all Storage blob containers in a Storage account with pipeline - Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" | Remove-AzRmStorageContainer -Force - - This command removes all Storage blob containers in a Storage account with pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azrmstoragecontainer - - - - - - Remove-AzRmStorageContainerImmutabilityPolicy - Remove - AzRmStorageContainerImmutabilityPolicy - - Removes ImmutabilityPolicy of a Storage blob container with an unlocked policy - - - - The Remove-AzRmStorageContainerImmutabilityPolicy cmdlet removes ImmutabilityPolicy of a Storage blob container with an unlocked policy. - - - - Remove-AzRmStorageContainerImmutabilityPolicy - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainerImmutabilityPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainerImmutabilityPolicy - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainerImmutabilityPolicy - - InputObject - - Unlocked ImmutabilityPolicy Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. - - System.String - - System.String - - - None - - - InputObject - - Unlocked ImmutabilityPolicy Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - - - - - Example 1: Remove unlocked ImmutabilityPolicy of a Storage blob container with Storage account name and container name - $policy = Get-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Remove-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Etag $policy.Etag - - This command removes unlocked ImmutabilityPolicy of a Storage blob container with Storage account name and container name. - - - - - - Example 2: Remove unlocked ImmutabilityPolicy of a Storage blob container, with Storage account object - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -$policy = Get-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" -Remove-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" -Etag $policy.Etag - - This command removes unlocked ImmutabilityPolicy of a Storage blob container, with Storage account object. - - - - - - Example 3: Remove unlocked ImmutabilityPolicy of a Storage blob container, with container object - $containerObject = Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Name "myContainer" -$policy = Get-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -Remove-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -Etag $policy.Etag - - This command removes unlocked ImmutabilityPolicy of a Storage blob container with Storage container object. - - - - - - Example 4: Remove unlocked ImmutabilityPolicy of a Storage blob container, with ImmutabilityPolicy object - Get-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" | Remove-AzRmStorageContainerImmutabilityPolicy - - This command removes unlocked ImmutabilityPolicy of a Storage blob container, with ImmutabilityPolicy object. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azrmstoragecontainerimmutabilitypolicy - - - - - - Remove-AzRmStorageContainerLegalHold - Remove - AzRmStorageContainerLegalHold - - Removes legal hold tags from a Storage blob container - - - - The Remove-AzRmStorageContainerLegalHold cmdlet removes legal hold tags from a Storage blob container - - - - Remove-AzRmStorageContainerLegalHold - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainerLegalHold - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageContainerLegalHold - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Tag - - Container LegalHold Tags - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold - - - - - - - - - - - - - - Example 1: Remove legal hold tags from a Storage blob container with Storage account name and container name - Remove-AzRmStorageContainerLegalHold -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Tag tag1 - - This command removes legal hold tags from a Storage blob container with Storage account name and container name. - - - - - - Example 2: Remove legal hold tags from a Storage blob container with Storage account object and container name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Remove-AzRmStorageContainerLegalHold -StorageAccount $accountObject -ContainerName "myContainer" -Tag tag1,tag2 - - This command removes legal hold tags from a Storage blob container with Storage account object and container name. - - - - - - Example 3: Remove legal hold tags from all Storage blob containers in a Storage account with pipeline - Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" | Remove-AzRmStorageContainerLegalHold -Tag tag1 - - This command removes legal hold tags from all Storage blob containers in a Storage account with pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azrmstoragecontainerlegalhold - - - - - - Remove-AzRmStorageShare - Remove - AzRmStorageShare - - Removes a Storage file share. - - - - The New-AzRmStorageShare cmdlet removes a Storage file share. - - - - Remove-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Include - - Valid values are: snapshots, leased-snapshots, none. The default value is none. For 'none', the file share is deleted if it has no share snapshots.If the file share contains any snapshots(leased or unleased), the deletion fails. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased / unleased). - - - None - Snapshots - Leased-Snapshots - - System.String - - System.String - - - None - - - Name - - Share Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Include - - Valid values are: snapshots, leased-snapshots, none. The default value is none. For 'none', the file share is deleted if it has no share snapshots.If the file share contains any snapshots(leased or unleased), the deletion fails. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased / unleased). - - - None - Snapshots - Leased-Snapshots - - System.String - - System.String - - - None - - - Name - - Share Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageShare - - ResourceId - - Input a File Share Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Include - - Valid values are: snapshots, leased-snapshots, none. The default value is none. For 'none', the file share is deleted if it has no share snapshots.If the file share contains any snapshots(leased or unleased), the deletion fails. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased / unleased). - - - None - Snapshots - Leased-Snapshots - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Include - - Valid values are: snapshots, leased-snapshots, none. The default value is none. For 'none', the file share is deleted if it has no share snapshots.If the file share contains any snapshots(leased or unleased), the deletion fails. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased / unleased). - - - None - Snapshots - Leased-Snapshots - - System.String - - System.String - - - None - - - InputObject - - Storage Share object - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Share Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - SnapshotTime - - Share SnapshotTime - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Share Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - SnapshotTime - - Share SnapshotTime - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Share(snapshot) and all content in it - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Include - - Valid values are: snapshots, leased-snapshots, none. The default value is none. For 'none', the file share is deleted if it has no share snapshots.If the file share contains any snapshots(leased or unleased), the deletion fails. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased / unleased). - - System.String - - System.String - - - None - - - InputObject - - Storage Share object - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - None - - - Name - - Share Name - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a File Share Resource Id. - - System.String - - System.String - - - None - - - SnapshotTime - - Share SnapshotTime - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove a Storage file share with Storage account name and share name - Remove-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" -Name "myshare" - - This command removes a Storage file share with Storage account name and share name. - - - - - - Example 2: Remove a Storage file share with Storage account object and share name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" -Remove-AzRmStorageShare -StorageAccount $accountObject -Name "myshare" - - This command removes a Storage file share with Storage account object and share name. - - - - - - Example 3: Remove all Storage file shares in a Storage account with pipeline - Get-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" | Remove-AzRmStorageShare -Force - - This command removes all Storage file shares in a Storage account with pipeline. - - - - - - ---- Example 4: Remove a single Storage file share snapshot ---- - Remove-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" -Name "myshare" -SnapshotTime "2021-05-10T08:04:08Z" - - This command removes a single Storage file share snapshot with the specific share name and snapshot time - - - - - - -- Example 5: Remove a Storage file share and it's snapshots -- - Remove-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" -Name "myshare" -Include Snapshots - - This command removes a Storage file share and it's snapshots By default, the cmdlet will fail if the file share has snapshots without "-include" parameter. - - - - - - Example 6: Remove a Storage file share and all it's snapshots (include leased snapshots) - Remove-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" -Name "myshare" -Include Leased-Snapshots - - This command removes a Storage file share and all it's snapshots, include leased and not leased snapshots. By default, the cmdlet will fail if the file share has snapshots without "-include" parameter. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azrmstorageshare - - - - - - Remove-AzStorageAccount - Remove - AzStorageAccount - - Removes a Storage account from Azure. - - - - The Remove-AzStorageAccount cmdlet removes a Storage account from Azure. - - - - Remove-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account to remove. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to remove. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the Storage account to remove. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the name of the resource group that contains the Storage account to remove. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - System.Void - - - - - - - - - - - - - - ------------- Example 1: Remove a Storage account ------------- - Remove-AzStorageAccount -ResourceGroupName "RG01" -Name "mystorageaccount" - - This command removes the specified Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageaccount - - - Get-AzStorageAccount - - - - New-AzStorageAccount - - - - Set-AzStorageAccount - - - - - - - Remove-AzStorageAccountManagementPolicy - Remove - AzStorageAccountManagementPolicy - - Removes the management policy of an Azure Storage account. - - - - The Remove-AzStorageAccountManagementPolicy cmdlet removes the management policy of an Azure Storage account. - - - - Remove-AzStorageAccountManagementPolicy - - InputObject - - Management Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountManagementPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountManagementPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountManagementPolicy - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Management Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove the management policy of a Storage account. - Remove-AzStorageAccountManagementPolicy -ResourceGroupName "MyResourceGroup" -AccountName "mystorageaccount" - - This command removes the management policy of a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/remove-Azstorageaccountmanagementpolicy - - - - - - Remove-AzStorageAccountNetworkRule - Remove - AzStorageAccountNetworkRule - - Remove IpRules or VirtualNetworkRules from the NetWorkRule property of a Storage account - - - - The Remove-AzStorageAccountNetworkRule cmdlet removes IpRules or VirtualNetworkRules from the NetWorkRule property of a Storage account - - - - Remove-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPAddressOrRange - - The Array of IpAddressOrRange, will remove IpRule with same IpAddressOrRange from the NetWorkRule Property. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPRule - - The Array of IpRule objects to remove from the NetWorkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceAccessRule - - Storage Account NetworkRule ResourceAccessRules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceId - - Storage Account ResourceAccessRule ResourceId in string. - - System.String - - System.String - - - None - - - TenantId - - Storage Account ResourceAccessRule TenantId in string. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - VirtualNetworkResourceId - - The Array of VirtualNetworkResourceId, will remove VirtualNetworkRule with same VirtualNetworkResourceId from the NetWorkRule Property. - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageAccountNetworkRule - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - VirtualNetworkRule - - The Array of VirtualNetworkRule objects to remove from the NetWorkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPAddressOrRange - - The Array of IpAddressOrRange, will remove IpRule with same IpAddressOrRange from the NetWorkRule Property. - - System.String[] - - System.String[] - - - None - - - IPRule - - The Array of IpRule objects to remove from the NetWorkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - ResourceAccessRule - - Storage Account NetworkRule ResourceAccessRules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - - None - - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - ResourceId - - Storage Account ResourceAccessRule ResourceId in string. - - System.String - - System.String - - - None - - - TenantId - - Storage Account ResourceAccessRule TenantId in string. - - System.String - - System.String - - - None - - - VirtualNetworkResourceId - - The Array of VirtualNetworkResourceId, will remove VirtualNetworkRule with same VirtualNetworkResourceId from the NetWorkRule Property. - - System.String[] - - System.String[] - - - None - - - VirtualNetworkRule - - The Array of VirtualNetworkRule objects to remove from the NetWorkRule Property. - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule - - - - - - - - - - - - - - --- Example 1: Remove several IpRules with IPAddressOrRange --- - Remove-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -IPAddressOrRange "10.0.0.0/7,28.1.0.0/16" - - This command remove several IpRules with IPAddressOrRange. - - - - - - Example 2: Remove a VirtualNetworkRule with VirtualNetworkRule Object input with JSON - Remove-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -VirtualNetworkRule (@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1";Action="allow"}) - - This command remove a VirtualNetworkRule with VirtualNetworkRule Object input with JSON. - - - - - - --------- Example 3: Remove first IpRule with pipeline --------- - (Get-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount").IpRules[0] | Remove-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "myStorageAccount" - - This command remove first IpRule with pipeline. - - - - - - Example 4: Remove several VirtualNetworkRules with VirtualNetworkResourceID - Remove-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -VirtualNetworkResourceId "/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1","/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2" - - This command remove several VirtualNetworkRules with VirtualNetworkResourceID. - - - - - - Example 5: Remove a resource access rule with TenantId and ResourceId. - Remove-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -TenantId $tenantId -ResourceId $ResourceId - - This command removes a resource access rule with TenantId and ResourceId. - - - - - - Example 6: Remove the first 3 resource access rules from a storage account - (Get-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount").ResourceAccessRules | Select-Object -First 3 | Remove-AzStorageAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" - - This command removes the first 3 resource access rules from a storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageaccountnetworkrule - - - - - - Remove-AzStorageBlobInventoryPolicy - Remove - AzStorageBlobInventoryPolicy - - Removes blob inventory policy from a Storage account. - - - - The Remove-AzStorageBlobInventoryPolicy cmdlet removes blob inventory policy from a Storage account. - - - - Remove-AzStorageBlobInventoryPolicy - - InputObject - - Management Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageBlobInventoryPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageBlobInventoryPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageBlobInventoryPolicy - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Management Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - None - - - PassThru - - {{Fill PassThru Description}} - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove blob inventory policy from a Storage account - Remove-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - - This command removes blob inventory policy from a Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageblobinventorypolicy - - - - - - Remove-AzStorageLocalUser - Remove - AzStorageLocalUser - - Removes a specified local user in a storage account. - - - - The Remove-AzStorageLocalUser cmdlet removes a specified local user from a storage account. - - - - Remove-AzStorageLocalUser - - InputObject - - Local User Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{ Fill PassThru Description }} - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageLocalUser - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{ Fill PassThru Description }} - - - System.Management.Automation.SwitchParameter - - - False - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageLocalUser - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{ Fill PassThru Description }} - - - System.Management.Automation.SwitchParameter - - - False - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Local User Object to Remove - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - None - - - PassThru - - {{ Fill PassThru Description }} - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ----------- Example 1: Remove a specified local user ----------- - Remove-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 - - This command removes a specified local user. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragelocaluser - - - - - - Remove-AzStorageObjectReplicationPolicy - Remove - AzStorageObjectReplicationPolicy - - Removes the specified object replication policy from a Storage account. - - - - The Remove-AzStorageObjectReplicationPolicy cmdlet removes the specified object replication policy from a Storage account. - - - - Remove-AzStorageObjectReplicationPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Object Replication Policy object to Delete. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageObjectReplicationPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - PolicyId - - Object Replication Policy Id. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageObjectReplicationPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - PolicyId - - Object Replication Policy Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Object Replication Policy object to Delete. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - None - - - PassThru - - {{Fill PassThru Description}} - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PolicyId - - Object Replication Policy Id. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove an object replication policy with specific policyId from a storage account. - Remove-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PolicyId $policyId - - This command removes an object replication policy with specific policyId from a storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageobjectreplicationpolicy - - - - - - Restore-AzRmStorageShare - Restore - AzRmStorageShare - - Restores a deleted file share. - - - - The Restore-AzRmStorageShare cmdlet restores a deleted file share within a valid retention days if share soft delete is enabled. - - - - Restore-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeletedShareVersion - - Deleted Share Version, which will be restored from. - - System.String - - System.String - - - None - - - Name - - Deleted Share Name, which will be restored. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeletedShareVersion - - Deleted Share Version, which will be restored from. - - System.String - - System.String - - - None - - - Name - - Deleted Share Name, which will be restored. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzRmStorageShare - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Deleted Share object - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeletedShareVersion - - Deleted Share Version, which will be restored from. - - System.String - - System.String - - - None - - - InputObject - - Deleted Share object - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - None - - - Name - - Deleted Share Name, which will be restored. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - - - - - ------------ Example 1: Remove and restore a share ------------ - Remove-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Name $shareName -Force - -Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -IncludeDeleted - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- -test 100 TransactionOptimized -share1 100 TransactionOptimized True 01D61FD1FC5498B6 - -Restore-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Name $shareName -DeletedShareVersion 01D61FD1FC5498B6 - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- -share1 100 - - This command first delete a file share, and then list shares and see the deleted share version, finally restore it back to a normal share. Need enabled share soft delete with Update-AzStorageFileServiceProperty, before delete the share. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/restore-azrmstorageshare - - - - - - Restore-AzStorageBlobRange - Restore - AzStorageBlobRange - - Restores a Storage account for specific blob ranges. - - - - The Restore-AzStorageBlobRange cmdlet restores blobs in a Storage account for specific blob ranges. The start range is included, and the end range is excluded in blob restore. - - - - Restore-AzStorageBlobRange - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BlobRestoreRange - - The blob range to Restore. If not specify this parameter, will restore all blobs. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - TimeToRestore - - The Time to Restore Blob. - - System.DateTime - - System.DateTime - - - None - - - WaitForComplete - - Wait for Restore task complete - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzStorageBlobRange - - ResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BlobRestoreRange - - The blob range to Restore. If not specify this parameter, will restore all blobs. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - TimeToRestore - - The Time to Restore Blob. - - System.DateTime - - System.DateTime - - - None - - - WaitForComplete - - Wait for Restore task complete - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzStorageBlobRange - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BlobRestoreRange - - The blob range to Restore. If not specify this parameter, will restore all blobs. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - TimeToRestore - - The Time to Restore Blob. - - System.DateTime - - System.DateTime - - - None - - - WaitForComplete - - Wait for Restore task complete - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - BlobRestoreRange - - The blob range to Restore. If not specify this parameter, will restore all blobs. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - TimeToRestore - - The Time to Restore Blob. - - System.DateTime - - System.DateTime - - - None - - - WaitForComplete - - Wait for Restore task complete - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus - - - - - - - - - - - - - - Example 1: Start restores blobs in a Storage account with specific blob ranges - $range1 = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange container2/blob2 -$range2 = New-AzStorageBlobRangeToRestore -StartRange container3/blob3 -EndRange container4/blob4 -Restore-AzStorageBlobRange -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -TimeToRestore (Get-Date).AddDays(-1) -BlobRestoreRange $range1,$range2 - -Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------- --------- ------------- ------------------------ --------------------- -InProgress 6ca55a8b-fca0-461a-8e4c-13927a9707e6 2020-02-10T13:58:44.6841810Z ["container1/blob1" -> "container2/blob2",...] - -(Get-AzStorageAccount -ResourceGroupName $rgname -StorageAccountName $accountName -IncludeBlobRestoreStatus).BlobRestoreStatus - -Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------- --------- ------------- ------------------------ --------------------- -Complete 6ca55a8b-fca0-461a-8e4c-13927a9707e6 2020-02-10T13:58:44.6841810Z ["container1/blob1" -> "container2/blob2",...] - - This command first creates 2 blob ranges, then start restores blobs in a Storage account with the 2 blob ranges from 1 day ago. User can use Get-AzStorageAccount to trace the restore status later. - - - - - - Example 2: Restores all blobs in a Storage account in the backend - $job = Restore-AzStorageBlobRange -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -TimeToRestore (Get-Date).AddMinutes(-30) -WaitForComplete -asjob - -$job | Wait-Job - -$job.Output - -Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------- --------- ------------- ------------------------ --------------------- -Complete 0387953a-bbe6-4602-818d-e661581ee44b 2020-08-28T07:11:33.9843100Z ["" -> ""] - - This command restores all blobs in a Storage account from 30 minutes ago, and wait for the restore complete. Since restore blobs might take a long time, run it in the backend with -Asjob parameter, and then wait for the job complete and show the result. - - - - - - Example 3: Restores blobs by input blob ranges directly, and wait for complete - Restore-AzStorageBlobRange -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -WaitForComplete ` - -TimeToRestore (Get-Date).AddSeconds(-1) ` - -BlobRestoreRange @{StartRange="aaa/abc";EndRange="bbb/abc"},@{StartRange="bbb/acc";EndRange=""} - -WARNING: Restore blob rang with Id 'd66d1d02-6e48-47ef-b516-0155dd8319c6' started. Restore blob ranges time to complete is dependent on the size of the restore. - -Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------- --------- ------------- ------------------------ --------------------- -Complete d66d1d02-6e48-47ef-b516-0155dd8319c6 2020-02-10T14:17:46.8189116Z ["aaa/abc" -> "bbb/abc",...] - - This command restores blobs in a Storage account from 1 day ago, by input 2 blob ranges directly to the Restore-AzStorageBlobRange cmdlet. This command will wait for the restore complete. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/restore-azstorageblobrange - - - - - - Revoke-AzStorageAccountUserDelegationKeys - Revoke - AzStorageAccountUserDelegationKeys - - Revoke all User Delegation keys of a Storage account. - - - - The Revoke-AzStorageAccountUserDelegationKeys cmdlet revokes all User Delegation keys of a Storage account, so all Identity SAS token of the Storage account will also be revoked. - - - - Revoke-AzStorageAccountUserDelegationKeys - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - A storage account object, returned by Get_AzStorageAccount, New-AzStorageAccount. - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - PassThru - - Normally this cmdlet returns no output on successful completion, this parameter forces the cmdlet to return a value ($true) on successful completion. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Revoke-AzStorageAccountUserDelegationKeys - - ResourceGroupName - - The resource group name containing the storage account resource. - - System.String - - System.String - - - None - - - StorageAccountName - - The name of the storage account resource. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Normally this cmdlet returns no output on successful completion, this parameter forces the cmdlet to return a value ($true) on successful completion. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Revoke-AzStorageAccountUserDelegationKeys - - ResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Normally this cmdlet returns no output on successful completion, this parameter forces the cmdlet to return a value ($true) on successful completion. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - A storage account object, returned by Get_AzStorageAccount, New-AzStorageAccount. - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - PassThru - - Normally this cmdlet returns no output on successful completion, this parameter forces the cmdlet to return a value ($true) on successful completion. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - The resource group name containing the storage account resource. - - System.String - - System.String - - - None - - - ResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - StorageAccountName - - The name of the storage account resource. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Revoke all User Delegation keys of a Storage account - Revoke-AzStorageAccountUserDelegationKeys -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" - - This example revokes all User Delegation keys of a Storage account, so all Identity SAS token generated from the User Delegation keys will also be revoked. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/revoke-azstorageaccountuserdelegationkeys - - - - - - Set-AzCurrentStorageAccount - Set - AzCurrentStorageAccount - - Modifies the current Storage account of the specified subscription. - - - - The Set-AzCurrentStorageAccount cmdlet modifies the current Azure Storage account of the specified Azure subscription in Azure PowerShell. The current Storage account is used as the default when you access Storage without specifying a Storage account name. - - - - Set-AzCurrentStorageAccount - - Context - - Specifies an AzureStorageContext object for the current Storage account. To obtain a storage context object, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Set-AzCurrentStorageAccount - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the Storage account that this cmdlet modifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the resource group that contains the Storage account to modify. - - System.String - - System.String - - - None - - - - - - Context - - Specifies an AzureStorageContext object for the current Storage account. To obtain a storage context object, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of the Storage account that this cmdlet modifies. - - System.String - - System.String - - - None - - - ResourceGroupName - - Specifies the resource group that contains the Storage account to modify. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - System.String - - - - - - - - - - System.String - - - - - - - - - - - - - - ---------- Example 1: Set the current Storage account ---------- - Set-AzCurrentStorageAccount -ResourceGroupName "RG01" -Name "mystorageaccount" - - This command sets the default Storage account for the specified subscription. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azcurrentstorageaccount - - - Set-AzStorageAccount - - - - - - - Set-AzRmStorageContainerImmutabilityPolicy - Set - AzRmStorageContainerImmutabilityPolicy - - Creates or updates ImmutabilityPolicy of a Storage blob containers - - - - The Set-AzRmStorageContainerImmutabilityPolicy cmdlet creates or updates ImmutabilityPolicy of a Storage blob containers - - - - Set-AzRmStorageContainerImmutabilityPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AllowProtectedAppendWrite - - This property can only be changed for unlocked time-based retention policies. With this property enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - AllowProtectedAppendWriteAll - - This property can only be changed for unlocked policies. When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - AllowProtectedAppendWrite - - This property can only be changed for unlocked time-based retention policies. With this property enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - AllowProtectedAppendWriteAll - - This property can only be changed for unlocked policies. When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - AllowProtectedAppendWrite - - This property can only be changed for unlocked time-based retention policies. With this property enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - AllowProtectedAppendWriteAll - - This property can only be changed for unlocked policies. When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - InputObject - - Container Name - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - AllowProtectedAppendWrite - - This property can only be changed for unlocked time-based retention policies. With this property enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - AllowProtectedAppendWriteAll - - This property can only be changed for unlocked policies. When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ExtendPolicy - - Indicate ExtendPolicy to Extend an existing ImmutabilityPolicy. After ImmutabilityPolicy is locked, it can only be extend. - - - System.Management.Automation.SwitchParameter - - - False - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ExtendPolicy - - Indicate ExtendPolicy to Extend an existing ImmutabilityPolicy. After ImmutabilityPolicy is locked, it can only be extend. - - - System.Management.Automation.SwitchParameter - - - False - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ExtendPolicy - - Indicate ExtendPolicy to Extend an existing ImmutabilityPolicy. After ImmutabilityPolicy is locked, it can only be extend. - - - System.Management.Automation.SwitchParameter - - - False - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzRmStorageContainerImmutabilityPolicy - - InputObject - - Container Name - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExtendPolicy - - Indicate ExtendPolicy to Extend an existing ImmutabilityPolicy. After ImmutabilityPolicy is locked, it can only be extend. - - - System.Management.Automation.SwitchParameter - - - False - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AllowProtectedAppendWrite - - This property can only be changed for unlocked time-based retention policies. With this property enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - AllowProtectedAppendWriteAll - - This property can only be changed for unlocked policies. When enabled, new blocks can be written to both 'Appened and Block Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. '-AllowProtectedAppendWrites' and '-AllowProtectedAppendWritesAll' are mutually exclusive. - - System.Boolean - - System.Boolean - - - None - - - Container - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - ContainerName - - Container Name - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Etag - - Immutability policy etag. If -ExtendPolicy is not specified, Etag is optional; else Etag is required. - - System.String - - System.String - - - None - - - ExtendPolicy - - Indicate ExtendPolicy to Extend an existing ImmutabilityPolicy. After ImmutabilityPolicy is locked, it can only be extend. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ImmutabilityPeriod - - Immutability period since creation in days. - - System.Int32 - - System.Int32 - - - None - - - InputObject - - Container Name - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy - - - - - - - - - - - - - - Example 1: Create or update ImmutabilityPolicy of a Storage blob container with Storage account name and container name - Set-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -ImmutabilityPeriod 10 - - This command creates or updates ImmutabilityPolicy of a Storage blob container with Storage account name and container name. - - - - - - Example 2: Extend ImmutabilityPolicy of a Storage blob container, with Storage account object - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -$policy = Get-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" -Set-AzRmStorageContainerImmutabilityPolicy -StorageAccount $accountObject -ContainerName "myContainer" -ImmutabilityPeriod 20 -Etag $policy.Etag -ExtendPolicy - - This command extend ImmutabilityPolicy of a Storage blob container, with Storage account object. Extend ImmutabilityPolicy can only run after ImmutabilityPolicy is locked. - - - - - - Example 3: Update ImmutabilityPolicy of a Storage blob container - $containerObject = Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Name "myContainer" -$policy = Set-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -ImmutabilityPeriod 12 -$policy = Set-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -ImmutabilityPeriod 9 -Etag $policy.Etag -$policy = Set-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -AllowProtectedAppendWrite $true -$policy = Set-AzRmStorageContainerImmutabilityPolicy -Container $containerObject -AllowProtectedAppendWrite $false -AllowProtectedAppendWriteAll $true - - This command updates ImmutabilityPolicy of a Storage blob container with Storage container object 3 times: First to ImmutabilityPeriod 12 days without etag, then to ImmutabilityPeriod 9 days with etag, then enabled AllowProtectedAppendWrite, finally enabled AllowProtectedAppendWriteAll. - - - - - - Example 4: Extend ImmutabilityPolicy of a Storage blob container, with ImmutabilityPolicy object - Get-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" | Set-AzRmStorageContainerImmutabilityPolicy -ImmutabilityPeriod 15 -ExtendPolicy - - This command extend ImmutabilityPolicy of a Storage blob container, with ImmutabilityPolicy object. Extend ImmutabilityPolicy can only run after ImmutabilityPolicy is locked. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azrmstoragecontainerimmutabilitypolicy - - - - - - Set-AzStorageAccount - Set - AzStorageAccount - - Modifies a Storage account. - - - - The Set-AzStorageAccount cmdlet modifies an Azure Storage account. You can use this cmdlet to modify the account type, update a customer domain, or set tags on a Storage account. - - - - Set-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to modify the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to modify. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet modifies. The acceptable values for this parameter are: Hot and Cool. If you change the access tier, it may result in additional charges. For more information, see Azure Blob Storage: Hot and cool storage tiers (http://go.microsoft.com/fwlink/?LinkId=786482). If the Storage account has Kind as StorageV2 or BlobStorage, you can specify the AccessTier parameter. If the Storage account has Kind as Storage, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - ActiveDirectoryAccountType - - Specifies the Active Directory account type for Azure Storage. Possible values include: 'User', 'Computer'. - - System.String - - System.String - - - None - - - ActiveDirectoryAzureStorageSid - - Specifies the security identifier (SID) for Azure Storage. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainGuid - - Specifies the domain GUID. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainName - - Specifies the primary domain that the AD DNS server is authoritative for. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainSid - - Specifies the security identifier (SID). This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryForestName - - Specifies the Active Directory forest to get. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryNetBiosDomainName - - Specifies the NetBIOS domain name. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectorySamAccountName - - Specifies the Active Directory SAMAccountName for Azure Storage. - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow or disallow anonymous access to all blobs or containers in the storage account. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - EnableActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - Force - - Forces the change to be written to the Storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Locked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in the storage account's UserAssignIdentityId. - - System.String - - System.String - - - None - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - SkuName - - Specifies the SKU name of the Storage account. The acceptable values for this parameter are: - Standard_LRS - Locally-redundant storage. - - Standard_ZRS - Zone-redundant storage. - - Standard_GRS - Geo-redundant storage. - - Standard_RAGRS - Read access geo-redundant storage. - - Premium_LRS - Premium locally-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - You cannot change Standard_ZRS and Premium_LRS types to other account types. You cannot change other account types to Standard_ZRS or Premium_LRS. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UpgradeToStorageV2 - - Upgrade Storage account Kind from Storage or BlobStorage to StorageV2. - - - System.Management.Automation.SwitchParameter - - - False - - - UserAssignedIdentityId - - Set resource ids for the the new Storage Account user assignedd Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to modify the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to modify. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet modifies. The acceptable values for this parameter are: Hot and Cool. If you change the access tier, it may result in additional charges. For more information, see Azure Blob Storage: Hot and cool storage tiers (http://go.microsoft.com/fwlink/?LinkId=786482). If the Storage account has Kind as StorageV2 or BlobStorage, you can specify the AccessTier parameter. If the Storage account has Kind as Storage, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - ActiveDirectoryDomainGuid - - Specifies the domain GUID. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainName - - Specifies the primary domain that the AD DNS server is authoritative for. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow or disallow anonymous access to all blobs or containers in the storage account. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - EnableAzureActiveDirectoryKerberosForFile - - Enable Azure Files Active Directory Domain Service Kerberos Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - Force - - Forces the change to be written to the Storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Locked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in the storage account's UserAssignIdentityId. - - System.String - - System.String - - - None - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - SkuName - - Specifies the SKU name of the Storage account. The acceptable values for this parameter are: - Standard_LRS - Locally-redundant storage. - - Standard_ZRS - Zone-redundant storage. - - Standard_GRS - Geo-redundant storage. - - Standard_RAGRS - Read access geo-redundant storage. - - Premium_LRS - Premium locally-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - You cannot change Standard_ZRS and Premium_LRS types to other account types. You cannot change other account types to Standard_ZRS or Premium_LRS. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UpgradeToStorageV2 - - Upgrade Storage account Kind from Storage or BlobStorage to StorageV2. - - - System.Management.Automation.SwitchParameter - - - False - - - UserAssignedIdentityId - - Set resource ids for the the new Storage Account user assignedd Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to modify the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to modify. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet modifies. The acceptable values for this parameter are: Hot and Cool. If you change the access tier, it may result in additional charges. For more information, see Azure Blob Storage: Hot and cool storage tiers (http://go.microsoft.com/fwlink/?LinkId=786482). If the Storage account has Kind as StorageV2 or BlobStorage, you can specify the AccessTier parameter. If the Storage account has Kind as Storage, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow or disallow anonymous access to all blobs or containers in the storage account. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - EnableAzureActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - Force - - Forces the change to be written to the Storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Locked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in the storage account's UserAssignIdentityId. - - System.String - - System.String - - - None - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - SkuName - - Specifies the SKU name of the Storage account. The acceptable values for this parameter are: - Standard_LRS - Locally-redundant storage. - - Standard_ZRS - Zone-redundant storage. - - Standard_GRS - Geo-redundant storage. - - Standard_RAGRS - Read access geo-redundant storage. - - Premium_LRS - Premium locally-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - You cannot change Standard_ZRS and Premium_LRS types to other account types. You cannot change other account types to Standard_ZRS or Premium_LRS. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - StorageEncryption - - Indicates whether or not to set the Storage account encryption to use Microsoft-managed keys. - - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UpgradeToStorageV2 - - Upgrade Storage account Kind from Storage or BlobStorage to StorageV2. - - - System.Management.Automation.SwitchParameter - - - False - - - UserAssignedIdentityId - - Set resource ids for the the new Storage Account user assignedd Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageAccount - - ResourceGroupName - - Specifies the name of the resource group in which to modify the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to modify. - - System.String - - System.String - - - None - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet modifies. The acceptable values for this parameter are: Hot and Cool. If you change the access tier, it may result in additional charges. For more information, see Azure Blob Storage: Hot and cool storage tiers (http://go.microsoft.com/fwlink/?LinkId=786482). If the Storage account has Kind as StorageV2 or BlobStorage, you can specify the AccessTier parameter. If the Storage account has Kind as Storage, do not specify the AccessTier parameter. - - - Hot - Cool - Cold - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow or disallow anonymous access to all blobs or containers in the storage account. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - - None - StorageFileDataSmbShareContributor - StorageFileDataSmbShareReader - StorageFileDataSmbShareElevatedContributor - - System.String - - System.String - - - None - - - EnableAzureActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - Force - - Forces the change to be written to the Storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - - SystemAssigned - UserAssigned - SystemAssignedUserAssigned - None - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Locked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyName - - If using -KeyvaultEncryption to enable encryption with Key Vault, specify the Keyname property with this option. - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Indicates whether or not to use Microsoft KeyVault for the encryption keys when using Storage Service Encryption. If KeyName, KeyVersion, and KeyVaultUri are all set, KeySource will be set to Microsoft.Keyvault whether this parameter is set or not. - - - System.Management.Automation.SwitchParameter - - - False - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUri - - When using Key Vault Encryption by specifying the -KeyvaultEncryption parameter, use this option to specify the URI to the Key Vault. - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in the storage account's UserAssignIdentityId. - - System.String - - System.String - - - None - - - KeyVersion - - When using Key Vault Encryption by specifying the -KeyvaultEncryption parameter, use this option to specify the URI to the Key Version. - - System.String - - System.String - - - None - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. - - - TLS1_0 - TLS1_1 - TLS1_2 - TLS1_3 - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - - MicrosoftRouting - InternetRouting - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - SkuName - - Specifies the SKU name of the Storage account. The acceptable values for this parameter are: - Standard_LRS - Locally-redundant storage. - - Standard_ZRS - Zone-redundant storage. - - Standard_GRS - Geo-redundant storage. - - Standard_RAGRS - Read access geo-redundant storage. - - Premium_LRS - Premium locally-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - You cannot change Standard_ZRS and Premium_LRS types to other account types. You cannot change other account types to Standard_ZRS or Premium_LRS. - - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - Standard_GZRS - Standard_RAGZRS - - System.String - - System.String - - - None - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UpgradeToStorageV2 - - Upgrade Storage account Kind from Storage or BlobStorage to StorageV2. - - - System.Management.Automation.SwitchParameter - - - False - - - UserAssignedIdentityId - - Set resource ids for the the new Storage Account user assignedd Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccessTier - - Specifies the access tier of the Storage account that this cmdlet modifies. The acceptable values for this parameter are: Hot and Cool. If you change the access tier, it may result in additional charges. For more information, see Azure Blob Storage: Hot and cool storage tiers (http://go.microsoft.com/fwlink/?LinkId=786482). If the Storage account has Kind as StorageV2 or BlobStorage, you can specify the AccessTier parameter. If the Storage account has Kind as Storage, do not specify the AccessTier parameter. - - System.String - - System.String - - - None - - - ActiveDirectoryAccountType - - Specifies the Active Directory account type for Azure Storage. Possible values include: 'User', 'Computer'. - - System.String - - System.String - - - None - - - ActiveDirectoryAzureStorageSid - - Specifies the security identifier (SID) for Azure Storage. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainGuid - - Specifies the domain GUID. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainName - - Specifies the primary domain that the AD DNS server is authoritative for. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryDomainSid - - Specifies the security identifier (SID). This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryForestName - - Specifies the Active Directory forest to get. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectoryNetBiosDomainName - - Specifies the NetBIOS domain name. This parameter must be set when -EnableActiveDirectoryDomainServicesForFile is set to true. - - System.String - - System.String - - - None - - - ActiveDirectorySamAccountName - - Specifies the Active Directory SAMAccountName for Azure Storage. - - System.String - - System.String - - - None - - - AllowBlobPublicAccess - - Allow or disallow anonymous access to all blobs or containers in the storage account. - - System.Boolean - - System.Boolean - - - None - - - AllowCrossTenantReplication - - Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property. - - System.Boolean - - System.Boolean - - - None - - - AllowedCopyScope - - Set restrict copy to and from Storage Accounts within a Microsoft Entra tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD' - - System.String - - System.String - - - None - - - AllowSharedKeyAccess - - Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Microsoft Entra ID. The default value is null, which is equivalent to true. - - System.Boolean - - System.Boolean - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - AssignIdentity - - Generate and assign a new Storage account Identity for this Storage account for use with key management services like Azure KeyVault. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - CustomDomainName - - Specifies the name of the custom domain. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultSharePermission - - Default share permission for users using Kerberos authentication if RBAC role is not assigned. - - System.String - - System.String - - - None - - - EnableActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableAzureActiveDirectoryDomainServicesForFile - - Enable Azure Files Active Directory Domain Service Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableAzureActiveDirectoryKerberosForFile - - Enable Azure Files Active Directory Domain Service Kerberos Authentication for the storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableHttpsTrafficOnly - - Indicates whether or not the Storage account only enables HTTPS traffic. - - System.Boolean - - System.Boolean - - - None - - - EnableLargeFileShare - - Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047 - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableLocalUser - - Enable local users feature for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - EnableSftp - - Enable Secure File Transfer Protocol for the Storage account. - - System.Boolean - - System.Boolean - - - None - - - Force - - Forces the change to be written to the Storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IdentityType - - Set the new Storage Account Identity type, the idenetity is for use with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - ImmutabilityPeriod - - The immutability period for the blobs in the container since the policy creation in days. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.Int32 - - System.Int32 - - - None - - - ImmutabilityPolicyState - - The mode of the policy. Possible values include: 'Unlocked', 'Locked', 'Disabled. Disabled state disablesthe policy. Unlocked state allows increase and decrease of immutability retention time and also allows toggling allowProtectedAppendWrites property. Locked state only allows the increase of the immutability retention time. A policy can only be created in a Disabled or Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. This property can only be changed when account is created with '-EnableAccountLevelImmutability'. - - System.String - - System.String - - - None - - - KeyExpirationPeriodInDay - - The Key expiration period of this account, it is accurate to days. - - System.Int32 - - System.Int32 - - - None - - - KeyName - - If using -KeyvaultEncryption to enable encryption with Key Vault, specify the Keyname property with this option. - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Indicates whether or not to use Microsoft KeyVault for the encryption keys when using Storage Service Encryption. If KeyName, KeyVersion, and KeyVaultUri are all set, KeySource will be set to Microsoft.Keyvault whether this parameter is set or not. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - KeyVaultFederatedClientId - - Set ClientId of the multi-tenant application to be used in conjunction with the user-assigned identity for cross-tenant customer-managed-keys server-side encryption on the storage account. - - System.String - - System.String - - - None - - - KeyVaultUri - - When using Key Vault Encryption by specifying the -KeyvaultEncryption parameter, use this option to specify the URI to the Key Vault. - - System.String - - System.String - - - None - - - KeyVaultUserAssignedIdentityId - - Set resource id for user assigned Identity used to access Azure KeyVault of Storage Account Encryption, the id must in the storage account's UserAssignIdentityId. - - System.String - - System.String - - - None - - - KeyVersion - - When using Key Vault Encryption by specifying the -KeyvaultEncryption parameter, use this option to specify the URI to the Key Version. - - System.String - - System.String - - - None - - - MinimumTlsVersion - - The minimum TLS version to be permitted on requests to storage. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account to modify. - - System.String - - System.String - - - None - - - NetworkRuleSet - - NetworkRuleSet is used to define a set of configuration rules for firewalls and virtual networks, as well as to set values for network properties such as services allowed to bypass the rules and how to handle requests that don't match any of the defined rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - None - - - PublicNetworkAccess - - Allow or disallow public network access to Storage Account.Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - PublishInternetEndpoint - - Indicates whether internet routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - PublishMicrosoftEndpoint - - Indicates whether microsoft routing storage endpoints are to be published - - System.Boolean - - System.Boolean - - - None - - - ResourceGroupName - - Specifies the name of the resource group in which to modify the Storage account. - - System.String - - System.String - - - None - - - RoutingChoice - - Routing Choice defines the kind of network routing opted by the user. Possible values include: 'MicrosoftRouting', 'InternetRouting' - - System.String - - System.String - - - None - - - SasExpirationPeriod - - The SAS expiration period of this account, it is a timespan and accurate to seconds. - - System.TimeSpan - - System.TimeSpan - - - None - - - SkuName - - Specifies the SKU name of the Storage account. The acceptable values for this parameter are: - Standard_LRS - Locally-redundant storage. - - Standard_ZRS - Zone-redundant storage. - - Standard_GRS - Geo-redundant storage. - - Standard_RAGRS - Read access geo-redundant storage. - - Premium_LRS - Premium locally-redundant storage. - - Standard_GZRS - Geo-redundant zone-redundant storage. - - Standard_RAGZRS - Read access geo-redundant zone-redundant storage. - You cannot change Standard_ZRS and Premium_LRS types to other account types. You cannot change other account types to Standard_ZRS or Premium_LRS. - - System.String - - System.String - - - None - - - StorageEncryption - - Indicates whether or not to set the Storage account encryption to use Microsoft-managed keys. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Tag - - Key-value pairs in the form of a hash table set as tags on the server. For example: @{key0="value0";key1=$null;key2="value2"} - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - UpgradeToStorageV2 - - Upgrade Storage account Kind from Storage or BlobStorage to StorageV2. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - UserAssignedIdentityId - - Set resource ids for the the new Storage Account user assignedd Identity, the identity will be used with key management services like Azure KeyVault. - - System.String - - System.String - - - None - - - UseSubDomain - - Indicates whether to enable indirect CName validation. - - System.Nullable`1[System.Boolean] - - System.Nullable`1[System.Boolean] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - System.Collections.Hashtable - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - - - - - ----------- Example 1: Set the Storage account type ----------- - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -SkuName "Standard_RAGRS" - - This command sets the Storage account type to Standard_RAGRS. - - - - - - ----- Example 2: Set a custom domain for a Storage account ----- - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -CustomDomainName "www.contoso.com" -UseSubDomain $true - - This command sets a custom domain for a Storage account. - - - - - - ------------- Example 3: Set the access tier value ------------- - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -AccessTier Cool - - The command sets the Access Tier value to be cool. - - - - - - ---------- Example 4: Set the custom domain and tags ---------- - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -CustomDomainName "www.domainname.com" -UseSubDomain $true -Tag @{tag0="value0";tag1="value1";tag2="value2"} - - The command sets the custom domain and tags for a Storage account. - - - - - - ------- Example 5: Set Encryption KeySource to Keyvault ------- - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -AssignIdentity -$account = Get-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" - -$keyVault = New-AzKeyVault -VaultName "MyKeyVault" -ResourceGroupName "MyResourceGroup" -Location "EastUS2" -$key = Add-AzKeyVaultKey -VaultName "MyKeyVault" -Name "MyKey" -Destination 'Software' -Set-AzKeyVaultAccessPolicy -VaultName "MyKeyVault" -ObjectId $account.Identity.PrincipalId -PermissionsToKeys wrapkey,unwrapkey,get - -# In case to enable key auto rotation, don't set KeyVersion -Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -KeyvaultEncryption -KeyName $key.Name -KeyVersion $key.Version -KeyVaultUri $keyVault.VaultUri - -# In case to enable key auto rotation after set keyvault proeprites with KeyVersion, can update account by set KeyVersion to empty -Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -KeyvaultEncryption -KeyName $key.Name -KeyVersion "" -KeyVaultUri $keyVault.VaultUri - - This command set Encryption KeySource with a new created Keyvault. If want to enable key auto rotation, don't set keyversion when set Keyvault properties for the first time, or clean up it by set keyvault properties again with keyversion as empty. - - - - - - -- Example 6: Set Encryption KeySource to "Microsoft.Storage" -- - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -StorageEncryption - - This command set Encryption KeySource to "Microsoft.Storage" - - - - - - Example 7: Set NetworkRuleSet property of a Storage account with JSON - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -NetworkRuleSet (@{bypass="Logging,Metrics"; - ipRules=(@{IPAddressOrRange="20.11.0.0/16";Action="allow"}, - @{IPAddressOrRange="10.0.0.0/7";Action="allow"}); - virtualNetworkRules=(@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1";Action="allow"}, - @{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2";Action="allow"}); - defaultAction="allow"}) - - This command sets NetworkRuleSet property of a Storage account with JSON - - - - - - Example 8: Get NetworkRuleSet property from a Storage account, and set it to another Storage account - $networkRuleSet = (Get-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount").NetworkRuleSet -Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount2" -NetworkRuleSet $networkRuleSet - - This first command gets NetworkRuleSet property from a Storage account, and the second command sets it to another Storage account - - - - - - Example 9: Upgrade a Storage account with Kind "Storage" or "BlobStorage" to "StorageV2" kind Storage account - Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -UpgradeToStorageV2 - - The command upgrade a Storage account with Kind "Storage" or "BlobStorage" to "StorageV2" kind Storage account. - - - - - - Example 10: Update a Storage account by enable Azure Files Microsoft Entra Domain Services Authentication and set DefaultSharePermission. - $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -EnableAzureActiveDirectoryDomainServicesForFile $true -DefaultSharePermission StorageFileDataSmbShareContributor - -$account.AzureFilesIdentityBasedAuth - -DirectoryServiceOptions ActiveDirectoryProperties DefaultSharePermission ------------------------ ------------------------- ---------------------- -AADDS Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties StorageFileDataSmbShareContributor - - The command update a Storage account by enable Azure Files Microsoft Entra Domain Services Authentication. - - - - - - Example 11: Update a Storage account by enable Files Active Directory Domain Service Authentication, and then show the File Identity Based authentication setting - $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -EnableActiveDirectoryDomainServicesForFile $true ` - -ActiveDirectoryDomainName "mydomain.com" ` - -ActiveDirectoryNetBiosDomainName "mydomain.com" ` - -ActiveDirectoryForestName "mydomain.com" ` - -ActiveDirectoryDomainGuid "12345678-1234-1234-1234-123456789012" ` - -ActiveDirectoryDomainSid "S-1-5-21-1234567890-1234567890-1234567890" ` - -ActiveDirectoryAzureStorageSid "S-1-5-21-1234567890-1234567890-1234567890-1234" ` - -ActiveDirectorySamAccountName "samaccountname" ` - -ActiveDirectoryAccountType Computer - -$account.AzureFilesIdentityBasedAuth.DirectoryServiceOptions -AD - -$account.AzureFilesIdentityBasedAuth.ActiveDirectoryProperties - -DomainName : mydomain.com -NetBiosDomainName : mydomain.com -ForestName : mydomain.com -DomainGuid : 12345678-1234-1234-1234-123456789012 -DomainSid : S-1-5-21-1234567890-1234567890-1234567890 -AzureStorageSid : S-1-5-21-1234567890-1234567890-1234567890-1234 -SamAccountName : samaccountname -AccountType : Computer - - The command updates a Storage account by enable Azure Files Active Directory Domain Service Authentication, and then shows the File Identity Based authentication setting - - - - - - Example 12: Set MinimumTlsVersion, AllowBlobPublicAccess and AllowSharedKeyAccess - $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -MinimumTlsVersion TLS1_1 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $true - -$account.MinimumTlsVersion -TLS1_1 - -$account.AllowBlobPublicAccess -False - -$a.AllowSharedKeyAccess -True - - The command sets MinimumTlsVersion, AllowBlobPublicAccess and AllowSharedKeyAccess, and then show the the 3 properties of the account - - - - - - Example 13: Update a Storage account with RoutingPreference setting - $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -PublishMicrosoftEndpoint $false -PublishInternetEndpoint $true -RoutingChoice InternetRouting - -$account.RoutingPreference - -RoutingChoice PublishMicrosoftEndpoints PublishInternetEndpoints -------------- ------------------------- ------------------------ -InternetRouting False True - -$account.PrimaryEndpoints - -Blob : https://mystorageaccount.blob.core.windows.net/ -Queue : https://mystorageaccount.queue.core.windows.net/ -Table : https://mystorageaccount.table.core.windows.net/ -File : https://mystorageaccount.file.core.windows.net/ -Web : https://mystorageaccount.z2.web.core.windows.net/ -Dfs : https://mystorageaccount.dfs.core.windows.net/ -MicrosoftEndpoints : -InternetEndpoints : {"Blob":"https://mystorageaccount-internetrouting.blob.core.windows.net/","File":"https://mystorageaccount-internetrouting.file.core.windows.net/","Web":"https://mystorageaccount-internetrouting.z2.web.core.windows.net/","Dfs":"https://w - eirp3-internetrouting.dfs.core.windows.net/"} - - This command updates a Storage account with RoutingPreference setting: PublishMicrosoftEndpoint as false, PublishInternetEndpoint as true, and RoutingChoice as MicrosoftRouting. - - - - - - Example 14: Update a Storage account with KeyExpirationPeriod and SasExpirationPeriod - $account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -KeyExpirationPeriodInDay 5 -SasExpirationPeriod "1.12:05:06" -EnableHttpsTrafficOnly $true - -$account.KeyPolicy.KeyExpirationPeriodInDays -5 - -$account.SasPolicy.SasExpirationPeriod -1.12:05:06 - - This command updates a Storage account with KeyExpirationPeriod and SasExpirationPeriod, then show the updated account related properties. - - - - - - Example 15: Update a Storage account to Keyvault encryption, and access Keyvault with user assigned identity - # Create KeyVault (no need if using exist keyvault) -$keyVault = New-AzKeyVault -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -Location eastus2euap -EnablePurgeProtection -$key = Add-AzKeyVaultKey -VaultName $keyvaultName -Name $keyname -Destination 'Software' - -# create user assigned identity and grant access to keyvault (no need if using exist user assigned identity) -$userId = New-AzUserAssignedIdentity -ResourceGroupName $resourceGroupName -Name $userIdName -Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $userId.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation -$useridentityId= $userId.Id - -# Update Storage account with Keyvault encryption and access Keyvault with user assigned identity, then show properties -$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName ` - -IdentityType UserAssigned -UserAssignedIdentityId $useridentityId ` - -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId - -$account.Encryption.EncryptionIdentity.EncryptionUserAssignedIdentity -/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid - -$account.Encryption.KeyVaultProperties - -KeyName : wrappingKey -KeyVersion : -KeyVaultUri : https://mykeyvault.vault.azure.net:443 -CurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/wrappingKey/8e74036e0d534e58b3bd84b319e31d8f -LastKeyRotationTimestamp : 4/12/2021 8:17:57 AM - - This command first creates a keyvault and a user assigned identity, then updates a storage account with keyvault encryption, the storage access access keyvault with the user assigned identity. - - - - - - Example 16: Update a Keyvault encrypted Storage account, from access Keyvault with user assigned identity, to access Keyvault with system assigned identity - # Assign System identity to the account, and give the system assigned identity acces to the keyvault -$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -IdentityType SystemAssignedUserAssigned -Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $account.Identity.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation - -# Update account from access Keyvault with user assigned identity to access Keyvault with system assigned identity -$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -IdentityType SystemAssignedUserAssigned -KeyName $keyname -KeyVaultUri $keyvaultUri -KeyVaultUserAssignedIdentityId "" - -# EncryptionUserAssignedIdentity is empty, so the account access keyvault with system assigned identity -$account.Encryption.EncryptionIdentity - -EncryptionUserAssignedIdentity ------------------------------- - -$account.Encryption.KeyVaultProperties - -KeyName : wrappingKey -KeyVersion : -KeyVaultUri : https://mykeyvault.vault.azure.net:443 -CurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/wrappingKey/8e74036e0d534e58b3bd84b319e31d8f -LastKeyRotationTimestamp : 4/12/2021 8:17:57 AM - - This command first assigns System identity to the account, and give the system assigned identity access to the keyvault; then updates the Storage account to access Keyvault with system assigned identity. - - - - - - Example 17: Update both Keyvault and the user assigned identity to access keyvault - # Update to another user assigned identity -$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -IdentityType SystemAssignedUserAssigned -UserAssignedIdentityId $useridentity2 -KeyVaultUserAssignedIdentityId $useridentity2 - -# Update to encrypt with another keyvault -$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -KeyVaultUri $keyvaultUri2 -KeyName $keyname2 -KeyVersion $keyversion2 - - This command first update the user assigned identity to access keyvault, then update the keyvault for encryption. To update both both Keyvault and the user assigned identity, we need update with the above 2 steps. - - - - - - Example 18: Update a Storage account with AllowCrossTenantReplication - $account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -AllowCrossTenantReplication $false -EnableHttpsTrafficOnly $true - -$account.AllowCrossTenantReplication - -False - - This command updates a Storage account by set AllowCrossTenantReplication to false, then show the updated account related properties. - - - - - - Example 18: Update a Storage account by enable PublicNetworkAccess - $account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -PublicNetworkAccess Enabled - -$account.PublicNetworkAccess - -Enabled - - This command updates a Storage account by set PublicNetworkAccess as enabled. - - - - - - ----- Example 19: Update account level immutability policy ----- - $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -ImmutabilityPeriod 2 -ImmutabilityPolicyState Unlocked - -$account.ImmutableStorageWithVersioning.Enabled -True - -$account.ImmutableStorageWithVersioning.ImmutabilityPolicy - -ImmutabilityPeriodSinceCreationInDays State -------------------------------------- ----- - 2 Unlocked - - The command updates account-level immutability policy properties on an existing storage account, and show the result. The storage account must be created with enable account level immutability with versioning. The account-level immutability policy will be inherited and applied to objects that do not possess an explicit immutability policy at the object level. - - - - - - Example 20: Update a Storage account by enable Sftp and localuser - $account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableSftp $true -EnableLocalUser $true - -$account.EnableSftp -True - -$account.EnableLocalUser -True - - This command updates a Storage account by enable Sftp and localuser. To run the command succssfully, the Storage account should already enable Hierarchical Namespace. - - - - - - Example 21: Update a Storage account with Keyvault from another tenant (access Keyvault with FederatedClientId) - # create Storage account with Keyvault encryption (access Keyvault with FederatedClientId), then show properties -$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName ` - -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId -KeyVaultFederatedClientId $federatedClientId - -$account.Encryption.EncryptionIdentity - -EncryptionUserAssignedIdentity EncryptionFederatedIdentityClientId ------------------------------- ----------------------------------- -/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid ********-****-****-****-************ - -$account.Encryption.KeyVaultProperties - -KeyName : wrappingKey -KeyVersion : -KeyVaultUri : https://mykeyvault.vault.azure.net:443 -CurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/wrappingKey/8e74036e0d534e58b3bd84b319e31d8f -LastKeyRotationTimestamp : 3/3/2022 2:07:34 AM - - This command updates a storage account with Keyvault from another tenant (access Keyvault with FederatedClientId). - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageaccount - - - Get-AzStorageAccount - - - - New-AzStorageAccount - - - - Remove-AzStorageAccount - - - - - - - Set-AzStorageAccountManagementPolicy - Set - AzStorageAccountManagementPolicy - - Creates or modifies the management policy of an Azure Storage account. - - - - The Set-AzStorageAccountManagementPolicy cmdlet creates or modifies the management policy of an Azure Storage account. - - - - Set-AzStorageAccountManagementPolicy - - - - - - - - - - - Example 1: Create or update the management policy of a Storage account with ManagementPolicy rule objects. - $action1 = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -DaysAfterCreationGreaterThan 100 -$action1 = Add-AzStorageAccountManagementPolicyAction -InputObject $action1 -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -DaysAfterLastTierChangeGreaterThan 30 -$action1 = Add-AzStorageAccountManagementPolicyAction -InputObject $action1 -BaseBlobAction TierToCool -DaysAfterLastAccessTimeGreaterThan 30 -EnableAutoTierToHotFromCool -$action1 = Add-AzStorageAccountManagementPolicyAction -InputObject $action1 -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -$action1 = Add-AzStorageAccountManagementPolicyAction -InputObject $action1 -BlobVersionAction TierToArchive -daysAfterCreationGreaterThan 100 -DaysAfterLastTierChangeGreaterThan 14 -$filter1 = New-AzStorageAccountManagementPolicyFilter -PrefixMatch ab,cd -$rule1 = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action1 -Filter $filter1 - -$action2 = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterCreationGreaterThan 100 -$blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" -$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" -$filter2 = New-AzStorageAccountManagementPolicyFilter -BlobType appendBlob,blockBlob -BlobIndexMatch $blobindexmatch1,$blobindexmatch2 -$rule2 = New-AzStorageAccountManagementPolicyRule -Name Test2 -Action $action2 -Filter $filter2 - -Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule1,$rule2 - -ResourceGroupName : myresourcegroup -StorageAccountName : mystorageaccount -Id : /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/managementPolicies/default -Type : Microsoft.Storage/storageAccounts/managementPolicies -LastModifiedTime : 7/12/2022 8:32:09 AM -Rules : [ - { - "Enabled": true, - "Name": "Test", - "Definition": { - "Actions": { - "BaseBlob": { - "TierToCool": { - "DaysAfterModificationGreaterThan": null, - "DaysAfterLastAccessTimeGreaterThan": 30, - "DaysAfterCreationGreaterThan": null, - "DaysAfterLastTierChangeGreaterThan": null - }, - "TierToArchive": { - "DaysAfterModificationGreaterThan": 50, - "DaysAfterLastAccessTimeGreaterThan": null, - "DaysAfterCreationGreaterThan": null, - "DaysAfterLastTierChangeGreaterThan": 30 - }, - "Delete": { - "DaysAfterModificationGreaterThan": null, - "DaysAfterLastAccessTimeGreaterThan": null, - "DaysAfterCreationGreaterThan": 100, - "DaysAfterLastTierChangeGreaterThan": null - }, - "EnableAutoTierToHotFromCool": true - }, - "Snapshot": { - "Delete": { - "DaysAfterCreationGreaterThan": 100, - "DaysAfterLastTierChangeGreaterThan": null - }, - "TierToCool": null, - "TierToArchive": null - }, - "Version": { - "Delete": null, - "TierToCool": null, - "TierToArchive": { - "DaysAfterCreationGreaterThan": 100, - "DaysAfterLastTierChangeGreaterThan": 14 - } - } - }, - "Filters": { - "PrefixMatch": [ - "ab", - "cd" - ], - "BlobTypes": [ - "blockBlob" - ], - "BlobIndexMatch": null - } - } - }, - { - "Enabled": true, - "Name": "Test2", - "Definition": { - "Actions": { - "BaseBlob": { - "TierToCool": null, - "TierToArchive": null, - "Delete": { - "DaysAfterModificationGreaterThan": null, - "DaysAfterLastAccessTimeGreaterThan": null, - "DaysAfterCreationGreaterThan": 100, - "DaysAfterLastTierChangeGreaterThan": null - }, - "EnableAutoTierToHotFromCool": null - }, - "Snapshot": null, - "Version": null - }, - "Filters": { - "PrefixMatch": null, - "BlobTypes": [ - "appendBlob", - "blockBlob" - ], - "BlobIndexMatch": [ - { - "Name": "tag1", - "Op": "==", - "Value": "value1" - }, - { - "Name": "tag2", - "Op": "==", - "Value": "value2" - } - ] - } - } - } - ] - - This command first create 2 ManagementPolicy rule objects, then creates or updates the management policy of a Storage account with the 2 ManagementPolicy rule objects. - - - - - - Example 2: Create or update the management policy of a Storage account with a Json format policy. - Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Policy (@{ - Rules=(@{ - Enabled=$true; - Name="Test"; - Definition=(@{ - Actions=(@{ - BaseBlob=(@{ - TierToCool=@{DaysAfterLastAccessTimeGreaterThan=30}; - TierToArchive=@{DaysAfterModificationGreaterThan=50;DaysAfterLastTierChangeGreaterThan=30}; - Delete=@{DaysAfterCreationGreaterThan=100}; - EnableAutoTierToHotFromCool="true"; - }); - Snapshot=(@{ - Delete=@{DaysAfterCreationGreaterThan=100} - TierToArchive=@{DaysAfterCreationGreaterThan=50}; - TierToCool=@{DaysAfterCreationGreaterThan=60}; - }); - Version=(@{ - Delete=@{DaysAfterCreationGreaterThan=100}; - TierToArchive=@{DaysAfterCreationGreaterThan=50;DaysAfterLastTierChangeGreaterThan=20}; - TierToCool=@{DaysAfterCreationGreaterThan=60}; - }); - }); - Filters=(@{ - BlobTypes=@("blockBlob"); - PrefixMatch=@("prefix1","prefix2"); - }) - }) - }, - @{ - Enabled=$false; - Name="Test2"; - Definition=(@{ - Actions=(@{ - BaseBlob=(@{ - Delete=@{DaysAfterCreationGreaterThan=100}; - }); - }); - Filters=(@{ - BlobTypes=@("blockBlob","appendBlob"); - BlobIndexMatch=(@{Name="tag1";Op="==";Value ="value1"},@{Name="tag2";Op="==";Value="value2"}) - }) - }) - }) -}) - - ```output ResourceGroupName : myresourcegroup StorageAccountName : mystorageaccount Id : /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/managementPolicies/default Type : Microsoft.Storage/storageAccounts/managementPolicies LastModifiedTime : 7/12/2022 8:34:05 AM Rules : [ { "Enabled": true, "Name": "Test", "Definition": { "Actions": { "BaseBlob": { "TierToCool": { "DaysAfterModificationGreaterThan": null, "DaysAfterLastAccessTimeGreaterThan": 30, "DaysAfterCreationGreaterThan": null, "DaysAfterLastTierChangeGreaterThan": null }, "TierToArchive": { "DaysAfterModificationGreaterThan": 50, "DaysAfterLastAccessTimeGreaterThan": null, "DaysAfterCreationGreaterThan": null, "DaysAfterLastTierChangeGreaterThan": 30 }, "Delete": { "DaysAfterModificationGreaterThan": null, "DaysAfterLastAccessTimeGreaterThan": null, "DaysAfterCreationGreaterThan": 100, "DaysAfterLastTierChangeGreaterThan": null }, "EnableAutoTierToHotFromCool": true }, "Snapshot": { "Delete": { "DaysAfterCreationGreaterThan": 100, "DaysAfterLastTierChangeGreaterThan": null }, "TierToCool": { "DaysAfterCreationGreaterThan": 60, "DaysAfterLastTierChangeGreaterThan": null }, "TierToArchive": { "DaysAfterCreationGreaterThan": 50, "DaysAfterLastTierChangeGreaterThan": null } }, "Version": { "Delete": { "DaysAfterCreationGreaterThan": 100, "DaysAfterLastTierChangeGreaterThan": null }, "TierToCool": { "DaysAfterCreationGreaterThan": 60, "DaysAfterLastTierChangeGreaterThan": null }, "TierToArchive": { "DaysAfterCreationGreaterThan": 50, "DaysAfterLastTierChangeGreaterThan": 20 } } }, "Filters": { "PrefixMatch": [ "prefix1", "prefix2" ], "BlobTypes": [ "blockBlob" ], "BlobIndexMatch": null } } }, { "Enabled": false, "Name": "Test2", "Definition": { "Actions": { "BaseBlob": { "TierToCool": null, "TierToArchive": null, "Delete": { "DaysAfterModificationGreaterThan": null, "DaysAfterLastAccessTimeGreaterThan": null, "DaysAfterCreationGreaterThan": 100, "DaysAfterLastTierChangeGreaterThan": null }, "EnableAutoTierToHotFromCool": null }, "Snapshot": null, "Version": null }, "Filters": { "PrefixMatch": null, "BlobTypes": [ "blockBlob", "appendBlob" ], "BlobIndexMatch": [ { "Name": "tag1", "Op": "==", "Value": "value1" }, { "Name": "tag2", "Op": "==", "Value": "value2" } ] } } } ] ``` - This command creates or updates the management policy of a Storage account with a json format policy. - ### Example 3: Get the management policy from a Storage account, then set it to another Storage account. ```powershell $outputPolicy = Get-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" | Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup2" -AccountName "mystorageaccount2" ``` - This command first gets the management policy from a Storage account, then set it to another Storage account. - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ### System.String - ## OUTPUTS - ### Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - ## NOTES - ## RELATED LINKS - - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ## OUTPUTS - ## NOTES - ## RELATED LINKS - - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ## OUTPUTS - ## NOTES - ## RELATED LINKS - - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ## OUTPUTS - ## NOTES - ## RELATED LINKS - - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ## OUTPUTS - ## NOTES - ## RELATED LINKS - - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ## OUTPUTS - ## NOTES - ## RELATED LINKS - - ## PARAMETERS - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. - ```yaml Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Policy Management Policy Object to Set - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject Aliases: ManagementPolicy - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -ResourceGroupName Resource Group Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -Rule The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccount Storage account object - ```yaml Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject Aliases: - Required: True Position: Named Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` - ### -StorageAccountName Storage Account Name. - ```yaml Type: System.String Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject Aliases: AccountName - Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -StorageAccountResourceId Storage Account Resource Id. - ```yaml Type: System.String Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject Aliases: - Required: True Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` - ### -Confirm Prompts you for confirmation before running the cmdlet. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: cf - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: wi - Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - ## INPUTS - ## OUTPUTS - ## NOTES - ## RELATED LINKS - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/set-Azstorageaccountmanagementpolicy - - - - - - Set-AzStorageBlobInventoryPolicy - Set - AzStorageBlobInventoryPolicy - - Creates or updates blob inventory policy in a Storage account. - - - - The Set-AzStorageBlobInventoryPolicy cmdlet creates or updates blob inventory policy in a Storage account. - - - - Set-AzStorageBlobInventoryPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - The Blob Inventory Policy is enabled by default, specify this parameter to disable it. - - - System.Management.Automation.SwitchParameter - - - False - - - Rule - - The Blob Inventory Policy rules. Get the object with New-AzStorageBlobInventoryPolicyRule cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobInventoryPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - The Blob Inventory Policy is enabled by default, specify this parameter to disable it. - - - System.Management.Automation.SwitchParameter - - - False - - - Rule - - The Blob Inventory Policy rules. Get the object with New-AzStorageBlobInventoryPolicyRule cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobInventoryPolicy - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - The Blob Inventory Policy is enabled by default, specify this parameter to disable it. - - - System.Management.Automation.SwitchParameter - - - False - - - Rule - - The Blob Inventory Policy rules. Get the object with New-AzStorageBlobInventoryPolicyRule cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobInventoryPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Blob Inventory Policy Object to Set - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobInventoryPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Blob Inventory Policy Object to Set - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobInventoryPolicy - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Blob Inventory Policy Object to Set - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Disabled - - The Blob Inventory Policy is enabled by default, specify this parameter to disable it. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Policy - - Blob Inventory Policy Object to Set - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Rule - - The Blob Inventory Policy rules. Get the object with New-AzStorageBlobInventoryPolicyRule cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageAccountResourceId - - Storage Account Resource Id. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule[] - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicySchema - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - - - - - - - - - - - - - Example 1: Create or update the blob inventory policy with BlobInventoryPolicy rule objects. - $rule1 = New-AzStorageBlobInventoryPolicyRule -Name Test1 -Destination $containerName -Disabled -Format Csv -Schedule Daily -ContainerSchemaField Name,Metadata,PublicAccess,Last-mOdified,LeaseStatus,LeaseState,LeaseDuration,HasImmutabilityPolicy,HasLegalHold -PrefixMatch con1,con2 - -$rule2 = New-AzStorageBlobInventoryPolicyRule -Name Test2 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeBlobVersion -IncludeSnapshot -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` - -BlobSchemaField name,Creation-Time,Last-Modified,Content-Length,Content-MD5,BlobType,AccessTier,AccessTierChangeTime,Expiry-Time,hdi_isfolder,Owner,Group,Permissions,Acl,Metadata - -$rule3 = New-AzStorageBlobInventoryPolicyRule -Name Test3 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeBlobVersion -IncludeSnapshot -IncludeDeleted -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` - -ExcludePrefix ccc,ddd -BlobSchemaField name,Last-Modified,BlobType,AccessTier,AccessTierChangeTime,Content-Type,Content-CRC64,CopyId,x-ms-blob-sequence-number,TagCount - -$policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Disabled -Rule $rule1,$rule2,$rule3 - -$policy - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -Name : DefaultInventoryPolicy -Id : /subscriptions/{subscription-Id}/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount/inventoryPolicies/default -Type : Microsoft.Storage/storageAccounts/inventoryPolicies -LastModifiedTime : 5/12/2021 8:53:38 AM -Enabled : False -Rules : {Test1, Test2, Test3} - -$policy.Rules - -Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions IncludeDeleted BlobTypes PrefixMatch ExcludePrefix SchemaFields ----- ------- ----------- ---------- ------ -------- ---------------- ------------------- -------------- --------- ----------- ------------- ------------ -Test1 False containername Container Csv Daily {con1, con2} {Name, Metadata, PublicAccess, Last-Modified...} -Test2 True containername Blob Parquet Weekly True True {blockBlob, appendBlob} {aaa, bbb} {Name, Creation-Time, Last-Modified, Content-Length...} -Test3 True containername Blob Parquet Weekly True True True {blockBlob, appendBlob} {aaa, bbb} {ccc, ddd} {Name, Content-Type, Content-CRC64, Last-Modified...} - - This first 2 commands create 3 BlobInventoryPolicy rule objects: rule "Test1" for contaienr inventory; rule "Test2" and "Test3" for blob inventory. The following command sets blob inventory policy to a Storage account with the 2 rule objects, then show the updated policy and rules properties. - - - - - - Example 2: Create or update the blob inventory policy of a Storage account with a Json format policy. - $policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName $resourceGroupName -StorageAccountName $accountName -Policy (@{ - Enabled=$true; - Rules=(@{ - Enabled=$true; - Name="Test1"; - Destination=$containerName; - Definition=(@{ - ObjectType="Blob"; - Format="Csv"; - Schedule="Weekly"; - SchemaFields=@("name","Content-Length","BlobType","Snapshot","VersionId","IsCurrentVersion"); - Filters=(@{ - BlobTypes=@("blockBlob","appendBlob"); - PrefixMatch=@("prefix1","prefix2"); - IncludeSnapshots=$true; - IncludeBlobVersions=$true; - }) - }) - }, - @{ - Enabled=$false; - Name="Test2"; - Destination=$containerName; - Definition=(@{ - ObjectType="Container"; - Format="Parquet"; - Schedule="Daily"; - SchemaFields=@("name","Metadata","PublicAccess","DefaultEncryptionScope","DenyEncryptionScopeOverride"); - Filters=(@{ - PrefixMatch=@("conpre1","conpre2"); - }) - }) - }, - @{ - Enabled=$false; - Name="Test3"; - Destination=$containerName; - Definition=(@{ - ObjectType="Blob"; - Format="Csv"; - Schedule="Weekly"; - SchemaFields=@("name","Deleted","RemainingRetentionDays","Content-Type","Content-Language","Cache-Control","Content-Disposition"); - Filters=(@{ - BlobTypes=@("blockBlob","appendBlob"); - PrefixMatch=@("conpre1","conpre2"); - ExcludePrefix=@("expre1","expre2"); - IncludeDeleted=$true - }) - }) - }) - }) - - -$policy - -StorageAccountName : weiadlscanary1 -ResourceGroupName : weitry -Name : DefaultInventoryPolicy -Id : /subscriptions/{subscription-Id}/resourceGroups/weitry/providers/Microsoft.Storage/storageAccounts/weiadlscanary1/inventoryPolicies/default -Type : Microsoft.Storage/storageAccounts/inventoryPolicies -LastModifiedTime : 5/12/2021 9:02:21 AM -Enabled : True -Rules : {Test1, Test2, Test3} - -$policy.Rules - -Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions IncludeDeleted BlobTypes PrefixMatch ExcludePrefix SchemaFields ----- ------- ----------- ---------- ------ -------- ---------------- ------------------- -------------- --------- ----------- ------------- ------------ -Test1 True containername Blob Csv Weekly True True {blockBlob, appendBlob} {prefix1, prefix2} {Name, Content-Length, BlobType, Snapshot...} -Test2 False containername Container Parquet Daily {conpre1, conpre2} {Name, Metadata, PublicAccess} -Test3 False containername Blob Csv Weekly True {blockBlob, appendBlob} {conpre1, conpre2} {expre1, expre2} {Name, Content-Type, Content-Cache, Content-Language...} {name, Metadata, PublicAccess} - - This command creates or updates the blob inventory policy of a Storage account with a json format policy. - - - - - - Example 3: Get the blob inventory policy from a Storage account, then set it to another Storage account. - $policy = Get-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" | Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup2" -AccountName "mystorageaccount2" - - This command first gets the blob inventory policy from a Storage account, then set it to another Storage account. The proeprties: Destination, Enabled, and Rules of the policy will be set to the destination account. - - - - - - Example 4: Get the blob inventory policy rules from a Storage account, then set it to another Storage account. - $policy = ,((Get-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount").Rules) | Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup2" -AccountName "mystorageaccount2" -Disabled - - This command first gets the blob inventory policy from a Storage account, then set it's rules to another Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageblobinventorypolicy - - - - - - Set-AzStorageLocalUser - Set - AzStorageLocalUser - - Creates or updates a specified local user in a storage account. - - - - The Set-AzStorageLocalUser cmdlet creates or updates a specified local user in a storage account. To run this cmdlet, the storage account must has already set EnableLocalUser as true. - - - - Set-AzStorageLocalUser - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HasSharedKey - - Whether shared key exists. Set it to false to remove existing shared key. - - System.Boolean - - System.Boolean - - - None - - - HasSshKey - - Whether SSH key exists. Set it to false to remove existing SSH key. - - System.Boolean - - System.Boolean - - - None - - - HasSshPassword - - Whether SSH password exists. Set it to false to remove existing SSH password. - - System.Boolean - - System.Boolean - - - None - - - HomeDirectory - - Local user home directory - - System.String - - System.String - - - None - - - PermissionScope - - The permission scopes of the local user. Get the object with New-AzStorageLocalUserPermissionScope cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope[] - - - None - - - SshAuthorizedKey - - Local user ssh authorized keys for SFTP. Get the object with New-AzStorageLocalUserSshPublicKey cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey[] - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageLocalUser - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HasSharedKey - - Whether shared key exists. Set it to false to remove existing shared key. - - System.Boolean - - System.Boolean - - - None - - - HasSshKey - - Whether SSH key exists. Set it to false to remove existing SSH key. - - System.Boolean - - System.Boolean - - - None - - - HasSshPassword - - Whether SSH password exists. Set it to false to remove existing SSH password. - - System.Boolean - - System.Boolean - - - None - - - HomeDirectory - - Local user home directory - - System.String - - System.String - - - None - - - PermissionScope - - The permission scopes of the local user. Get the object with New-AzStorageLocalUserPermissionScope cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope[] - - - None - - - SshAuthorizedKey - - Local user ssh authorized keys for SFTP. Get the object with New-AzStorageLocalUserSshPublicKey cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey[] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - HasSharedKey - - Whether shared key exists. Set it to false to remove existing shared key. - - System.Boolean - - System.Boolean - - - None - - - HasSshKey - - Whether SSH key exists. Set it to false to remove existing SSH key. - - System.Boolean - - System.Boolean - - - None - - - HasSshPassword - - Whether SSH password exists. Set it to false to remove existing SSH password. - - System.Boolean - - System.Boolean - - - None - - - HomeDirectory - - Local user home directory - - System.String - - System.String - - - None - - - PermissionScope - - The permission scopes of the local user. Get the object with New-AzStorageLocalUserPermissionScope cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSPermissionScope[] - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - SshAuthorizedKey - - Local user ssh authorized keys for SFTP. Get the object with New-AzStorageLocalUserSshPublicKey cmdlet. - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSSshPublicKey[] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - UserName - - The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - - - - - - - - - - - - ----------- Example 1: Create or update a local user ----------- - $sshkey1 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa base64encodedkey=" -Description "sshpublickey name1" - -$permissionScope1 = New-AzStorageLocalUserPermissionScope -Permission rw -Service blob -ResourceName container1 - -$localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -SshAuthorizedKey $sshkey1 -PermissionScope $permissionScope1 -HasSharedKey $true -HasSshKey $true -HasSshPassword $true - -$localuser - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name Sid HomeDirectory HasSharedKey HasSshKey HasSshPassword PermissionScopes ----- --- ------------- ------------ --------- -------------- ---------------- -testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / True True True [container1] - -$localuser.SshAuthorizedKeys - -Description Key ------------ --- -sshpublickey name1 ssh-rsa base64encodedkey= - -$localuser.PermissionScopes - -Permissions Service ResourceName ------------ ------- ------------ -rw blob container1 - - The first command creates a local SSH public key object. Note that the key follows the format of `<algorithm> <data>` where data is the base64 encoded contents of the public key. The second command creates a local permission scope object that defines the container level access for the local user. The third command creates or updates the local user, using the local objects from the first 2 commands. The final command shows the local user properties. - - - - - - Example 2: Create or update a local user by input permission scope and ssh key with json - Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -HasSharedKey $true -HasSshKey $true -HasSshPassword $true ` - -SshAuthorizedKey (@{ - Description="sshpulickey name1"; - Key="ssh-rsa base64encodedkey="; - }, - @{ - Description="sshpulickey name2"; - Key="ssh-rsa otherbase64encodedkey="; - }) ` - -PermissionScope (@{ - Permissions="rw"; - Service="blob"; - ResourceName="container1"; - }, - @{ - Permissions="rwd"; - Service="share"; - ResourceName="share1"; - }) - -ResourceGroupName: weitry, StorageAccountName: weisftp3 - -Name Sid HomeDirectory HasSharedKey HasSshKey HasSshPassword PermissionScopes ----- --- ------------- ------------ --------- -------------- ---------------- -testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / True True True [container1,...] - - This command creates or updates a local user by input permission scope and ssh key with json. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragelocaluser - - - - - - Set-AzStorageObjectReplicationPolicy - Set - AzStorageObjectReplicationPolicy - - Creates or updates the specified object replication policy in a Storage account. - - - - The Set-AzStorageObjectReplicationPolicy cmdlet creates or updates the specified object replication policy in a Storage account. - - - - Set-AzStorageObjectReplicationPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationAccount - - Object Replication Policy DestinationAccount, if SourceAccount is account name it should be account name, else should be account resource id. Default value will be the input StorageAccountName, or the resouceID of the account. - - System.String - - System.String - - - None - - - PolicyId - - Object Replication Policy Id. It should be a GUID or 'default'. If not input the PolicyId, will use 'default', which means to create a new policy and the Id of the new policy will be returned in the created policy. - - System.String - - System.String - - - None - - - Rule - - Object Replication Policy Rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[] - - - None - - - SourceAccount - - Object Replication Policy SourceAccount. It should be resource id if allowCrossTenantReplication is false.. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageObjectReplicationPolicy - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationAccount - - Object Replication Policy DestinationAccount, if SourceAccount is account name it should be account name, else should be account resource id. Default value will be the input StorageAccountName, or the resouceID of the account. - - System.String - - System.String - - - None - - - PolicyId - - Object Replication Policy Id. It should be a GUID or 'default'. If not input the PolicyId, will use 'default', which means to create a new policy and the Id of the new policy will be returned in the created policy. - - System.String - - System.String - - - None - - - Rule - - Object Replication Policy Rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[] - - - None - - - SourceAccount - - Object Replication Policy SourceAccount. It should be resource id if allowCrossTenantReplication is false.. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageObjectReplicationPolicy - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Object Replication Policy Object to Set to the specified Account. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationAccount - - Object Replication Policy DestinationAccount, if SourceAccount is account name it should be account name, else should be account resource id. Default value will be the input StorageAccountName, or the resouceID of the account. - - System.String - - System.String - - - None - - - InputObject - - Object Replication Policy Object to Set to the specified Account. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - None - - - PolicyId - - Object Replication Policy Id. It should be a GUID or 'default'. If not input the PolicyId, will use 'default', which means to create a new policy and the Id of the new policy will be returned in the created policy. - - System.String - - System.String - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Rule - - Object Replication Policy Rules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[] - - - None - - - SourceAccount - - Object Replication Policy SourceAccount. It should be resource id if allowCrossTenantReplication is false.. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - - - - - - - - - - - - Example 1: Set object replication policy to both destination and source account. - $rule1 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src1 -DestinationContainer dest1 - -$rule2 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src -DestinationContainer dest -MinCreationTime 2019-01-01T16:00:00Z -PrefixMatch a,abc,dd - -$srcAccount = Get-AzStorageAccount -ResourceGroupName "myresourcegroup" -AccountName "mysourceaccount" - -Set-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PolicyId default -SourceAccount $srcAccount.Id -Rule $rule1,$rule2 - -ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ------------------ ------------------ -------- ----------- ------------- ------------------ ----- -myresourcegroup mydestaccount 56bfa11c-81ef-4f8d-b307-5e5386e16fba mysourceaccount mydestaccount [5fa8b1d6-4985-4abd-a0b3-ec4d07295a43,...] - -$destPolicy = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" - -Set-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mysourceaccount" -InputObject $destPolicy - -ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ------------------ ------------------ -------- ----------- ------------- ------------------ ----- -myresourcegroup mysourceaccount 56bfa11c-81ef-4f8d-b307-5e5386e16fba mysourceaccount mydestaccount [5fa8b1d6-4985-4abd-a0b3-ec4d07295a43,...] - - This command sets object replication policy to both destination and source account. First create 2 object replication policy rules, and set policy to destination account with the 2 rules and source account resource Id. Then get the object replication policy from destination account and set to source account. Please note, when storage account has AllowCrossTenantReplication as false, SourceAccount and DestinationAccount should be account resource Id. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageobjectreplicationpolicy - - - - - - Stop-AzStorageAccountHierarchicalNamespaceUpgrade - Stop - AzStorageAccountHierarchicalNamespaceUpgrade - - Aborts an ongoing HierarchicalNamespace upgrade task on a storage account. - - - - The Stop-AzStorageAccountHierarchicalNamespaceUpgrade cmdlet can aborts an ongoing upgrade to enable HierarchicalNamespace task on a storage account. - - - - Stop-AzStorageAccountHierarchicalNamespaceUpgrade - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - PassThru - - Display the storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Stop-AzStorageAccountHierarchicalNamespaceUpgrade - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Name - - Storage Account Name. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Display the storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to Failover the Account - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Name - - Storage Account Name. - - System.String - - System.String - - - None - - - PassThru - - Display the storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Abort HierarchicalNamespace upgrade task on a stroage account - Stop-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -Force -PassThru - -True - - This command aborts an ongoing HierarchicalNamespace upgrade task on a storage account. The task can be invoke with cmdlet 'Invoke-AzStorageAccountHierarchicalNamespaceUpgrade' with '-RequestType Upgrade'. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/stop-azstorageaccounthierarchicalnamespaceupgrade - - - - - - Update-AzRmStorageContainer - Update - AzRmStorageContainer - - Modifies a Storage blob container - - - - The Update-AzRmStorageContainer cmdlet modifies a Storage blob container - - - - Update-AzRmStorageContainer - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzRmStorageContainer - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzRmStorageContainer - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PublicAccess - - Container PublicAccess - - - Container - Blob - None - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Storage container object - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - None - - - Metadata - - Container Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Container Name - - System.String - - System.String - - - None - - - PublicAccess - - Container PublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - - - - - - - - - - - - Example 1: Modifies a Storage blob container's metadata and public access with Storage account name and container name - Update-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -PublicAccess Container -Metadata @{tag0="value0";tag1="value1"} - - This command modifies a Storage blob container's metadata and public access with Storage account name and container name. - - - - - - Example 2: Disable public access on a Storage blob container with Storage account object and container name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Update-AzRmStorageContainer -StorageAccount $accountObject -ContainerName "myContainer" -PublicAccess None - - This command disables public access on a Storage blob container with Storage account object and container name. - - - - - - Example 3: Set public access as Blob for all Storage blob containers in a Storage account with pipeline - Get-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" | Update-AzRmStorageContainer -PublicAccess Blob - - This command set public access as Blob for all Storage blob containers in a Storage account with pipeline. - - - - - - - Example 4: Update an Azure storage container with RootSquash - - $container = Update-AzRmStorageContainer -ResourceGroupName "myersourcegroup" -AccountName "mystorageaccount" -Name "mycontainer" -RootSquash NoRootSquash - -$container.EnableNfsV3AllSquash -False - -$container.EnableNfsV3RootSquash -False - - This command updates a storage container, with RootSquash property set as NoRootSquash. RootSquash only works on a storage account that enabled NfsV3. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azrmstoragecontainer - - - - - - Update-AzRmStorageShare - Update - AzRmStorageShare - - Modifies a Storage file share. - - - - The New-AzRmStorageShare cmdlet modifies a Storage file share. - - - - Update-AzRmStorageShare - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - - TransactionOptimized - Premium - Hot - Cool - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Storage Share object - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzRmStorageShare - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - - TransactionOptimized - Premium - Hot - Cool - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Share Name - - System.String - - System.String - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzRmStorageShare - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - - TransactionOptimized - Premium - Hot - Cool - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Share Name - - System.String - - System.String - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzRmStorageShare - - ResourceId - - Input a File Share Resource Id. - - System.String - - System.String - - - None - - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - - TransactionOptimized - Premium - Hot - Cool - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - - NoRootSquash - RootSquash - AllSquash - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AccessTier - - Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Storage Share object - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - None - - - Metadata - - Share Metadata - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Name - - Share Name - - System.String - - System.String - - - None - - - QuotaGiB - - Share Quota in Gibibyte. - - System.Int32 - - System.Int32 - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a File Share Resource Id. - - System.String - - System.String - - - None - - - RootSquash - - Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - - - - - - - - - - - - Example 1: Modifies a Storage file share's metadata and share quota with Storage account name and share name - $share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -QuotaGiB 200 -Metadata @{tag0="value0";tag1="value1"} - -$share - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare 200 - -$share.Metadata - -Key Value ---- ----- -tag0 value0 -tag1 value1 - - This command modifies a Storage file share's metadata and share quota with Storage account name and share name, and show the modify result with the returned file share object. - - - - - - Example 2: Modifies metadata on a Storage file share with Storage account object and share name - $accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -StorageAccountName "myStorageAccount" -$share = Update-AzRmStorageShare -StorageAccount $accountObject -Name "myshare" -Metadata @{tag0="value0";tag1="value1"} - - This command modifies metadata on a Storage file share with Storage account object and share name. - - - - - - Example 3: Modifies share quota for all Storage file shares in a Storage account with pipeline - Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" | Update-AzRmStorageShare -QuotaGiB 5000 - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -share1 5000 -share2 5000 - - This command modifies share quota as 5000 GiB for all Storage file shares in a Storage account with pipeline. - - - - - - Example 4: Modify a Storage file share with accesstier as Cool - $share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -AccessTier Cool - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare Cool - - This command modifies a Storage file share with accesstier as Cool. - - - - - - Example 5: Modifies rootsquash for a file shares in a Storage account - $share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -RootSquash NoRootSquash - -$share - - ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ----- -------- ---------------- ---------- ------- ------- --------------- -myshare - -$share.RootSquash -NoRootSquash - - This command modifies share RootSquash property to NoRootSquash. RootSquash property is only avaialbe on share with EnabledProtocol as NFS. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azrmstorageshare - - - - - - Update-AzStorageAccountNetworkRuleSet - Update - AzStorageAccountNetworkRuleSet - - Update the NetworkRule property of a Storage account - - - - The Update-AzStorageAccountNetworkRuleSet cmdlet updates the NetworkRule property of a Storage account - - - - Update-AzStorageAccountNetworkRuleSet - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Bypass - - The Bypass value to update to the NetworkRule property of a Storage account. The allowed value are none or any combination of: • Logging • Metrics • Azureservices - - - None - Logging - Metrics - AzureServices - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum - - - None - - - DefaultAction - - The DefaultAction value to update to the NetworkRule property of a Storage account. The allowed Options: • Allow • Deny - - - Allow - Deny - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPRule - - The Array of IpRule objects to update to the NetworkRule Property of a Storage account. - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - None - - - ResourceAccessRule - - Storage Account NetworkRule ResourceAccessRules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - - None - - - VirtualNetworkRule - - The Array of VirtualNetworkRule objects to update to the NetworkRule Property of a Storage account. - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Bypass - - The Bypass value to update to the NetworkRule property of a Storage account. The allowed value are none or any combination of: • Logging • Metrics • Azureservices - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum - - - None - - - DefaultAction - - The DefaultAction value to update to the NetworkRule property of a Storage account. The allowed Options: • Allow • Deny - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IPRule - - The Array of IpRule objects to update to the NetworkRule Property of a Storage account. - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - None - - - Name - - Specifies the name of the Storage account. - - System.String - - System.String - - - None - - - ResourceAccessRule - - Storage Account NetworkRule ResourceAccessRules. - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSResourceAccessRule[] - - - None - - - ResourceGroupName - - Specifies the name of the resource group contains the Storage account. - - System.String - - System.String - - - None - - - VirtualNetworkRule - - The Array of VirtualNetworkRule objects to update to the NetworkRule Property of a Storage account. - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[] - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[] - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - - - - - - - - - - - - Example 1: Update all properties of NetworkRule, input Rules with JSON - Update-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -Bypass Logging,Metrics -DefaultAction Allow -IpRule (@{IPAddressOrRange="10.0.0.0/7";Action="allow"},@{IPAddressOrRange="28.2.0.0/16";Action="allow"}) ` --VirtualNetworkRule (@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1";Action="allow"}, -@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2";Action="allow"}) -ResourceAccessRule (@{ResourceId=$ResourceId1;TenantId=$tenantId1},@{ResourceId=$ResourceId2;TenantId=$tenantId1}) - - This command update all properties of NetworkRule, input Rules with JSON. - - - - - - ------- Example 2: Update Bypass property of NetworkRule ------- - Update-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -Bypass AzureServices,Metrics - - This command update Bypass property of NetworkRule (other properties won't change). - - - - - - Example 3: Clean up rules of NetworkRule of a Storage account - Update-AzStorageAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "mystorageaccount" -IpRule @() -VirtualNetworkRule @() -ResourceAccessRule @() - - This command clean up rules of NetworkRule of a Storage account (other properties not change). - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azstorageaccountnetworkruleset - - - - - - Update-AzStorageBlobServiceProperty - Update - AzStorageBlobServiceProperty - - Modifies the service properties for the Azure Storage Blob service. - - - - The Update-AzStorageBlobServiceProperty cmdlet modifies the service properties for the Azure Storage Blob service. - - - - Update-AzStorageBlobServiceProperty - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - ChangeFeedRetentionInDays - - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). Never specify it when enabled changeFeed will get null value in service properties, indicates an infinite retention of the change feed. - - System.Int32 - - System.Int32 - - - None - - - CorsRule - - Specifies CORS rules for the Blob service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultServiceVersion - - Default Service Version to Set - - System.String - - System.String - - - None - - - EnableChangeFeed - - Enable Change Feed logging for the storage account by set to $true, disable Change Feed logging by set to $false. - - System.Boolean - - System.Boolean - - - None - - - IsVersioningEnabled - - Gets or sets versioning is enabled if set to true. - - System.Boolean - - System.Boolean - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageBlobServiceProperty - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - ChangeFeedRetentionInDays - - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). Never specify it when enabled changeFeed will get null value in service properties, indicates an infinite retention of the change feed. - - System.Int32 - - System.Int32 - - - None - - - CorsRule - - Specifies CORS rules for the Blob service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultServiceVersion - - Default Service Version to Set - - System.String - - System.String - - - None - - - EnableChangeFeed - - Enable Change Feed logging for the storage account by set to $true, disable Change Feed logging by set to $false. - - System.Boolean - - System.Boolean - - - None - - - IsVersioningEnabled - - Gets or sets versioning is enabled if set to true. - - System.Boolean - - System.Boolean - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageBlobServiceProperty - - ChangeFeedRetentionInDays - - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). Never specify it when enabled changeFeed will get null value in service properties, indicates an infinite retention of the change feed. - - System.Int32 - - System.Int32 - - - None - - - CorsRule - - Specifies CORS rules for the Blob service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultServiceVersion - - Default Service Version to Set - - System.String - - System.String - - - None - - - EnableChangeFeed - - Enable Change Feed logging for the storage account by set to $true, disable Change Feed logging by set to $false. - - System.Boolean - - System.Boolean - - - None - - - IsVersioningEnabled - - Gets or sets versioning is enabled if set to true. - - System.Boolean - - System.Boolean - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ChangeFeedRetentionInDays - - Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). Never specify it when enabled changeFeed will get null value in service properties, indicates an infinite retention of the change feed. - - System.Int32 - - System.Int32 - - - None - - - CorsRule - - Specifies CORS rules for the Blob service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultServiceVersion - - Default Service Version to Set - - System.String - - System.String - - - None - - - EnableChangeFeed - - Enable Change Feed logging for the storage account by set to $true, disable Change Feed logging by set to $false. - - System.Boolean - - System.Boolean - - - None - - - IsVersioningEnabled - - Gets or sets versioning is enabled if set to true. - - System.Boolean - - System.Boolean - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a Blob service properties Resource Id. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties - - - - - - - - - - - - - - Example 1: Set Blob service DefaultServiceVersion to 2018-03-28 - Update-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -DefaultServiceVersion 2018-03-28 - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -DefaultServiceVersion : 2018-03-28 -DeleteRetentionPolicy.Enabled : False -DeleteRetentionPolicy.Days : -RestorePolicy.Enabled : -RestorePolicy.Days : -ChangeFeed.Enabled : -ChangeFeed.RetentionInDays : -IsVersioningEnabled : - - This command sets the DefaultServiceVersion of Blob Service to 2018-03-28. - - - - - - Example 2: Enable Changefeed on Blob service of a Storage account with ChangeFeedRetentionInDays as 5 days - Update-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableChangeFeed $true -ChangeFeedRetentionInDays 5 - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -DefaultServiceVersion : -DeleteRetentionPolicy.Enabled : False -DeleteRetentionPolicy.Days : -RestorePolicy.Enabled : -RestorePolicy.Days : -ChangeFeed.Enabled : True -ChangeFeed.RetentionInDays : 5 -IsVersioningEnabled : - - This command enables Changefeed on Blob service of a Storage account with ChangeFeedRetentionInDays as 5 days. Change feed support in Azure Blob Storage works by listening to a GPv2 or Blob storage account for any blob level creation, modification, or deletion events. It then outputs an ordered log of events for the blobs stored in the $blobchangefeed container within the storage account. The serialized changes are persisted as an Apache Avro file and can be processed asynchronously and incrementally. If not specify ChangeFeedRetentionInDays, will get null value in service properties, indicates an infinite retention of the change feed. - - - - - - Example 3: Enable Versioning on Blob service of a Storage account - Update-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -IsVersioningEnabled $true - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -DefaultServiceVersion : -DeleteRetentionPolicy.Enabled : False -DeleteRetentionPolicy.Days : -RestorePolicy.Enabled : -RestorePolicy.Days : -ChangeFeed : -ChangeFeed.RetentionInDays : -IsVersioningEnabled : True - - This command enables Versioning on Blob service of a Storage account - - - - - - ----------------- Example 4: Update CORS rules ----------------- - $CorsRules = (@{ - AllowedHeaders=@("x-ms-blob-content-type","x-ms-blob-content-disposition"); - ExposedHeaders=@(); - AllowedOrigins=@("*"); - AllowedMethods=@("TRACE","CONNECT")}, - @{ - AllowedOrigins=@("http://www.fabrikam.com","http://www.contoso.com"); - ExposedHeaders=@("x-ms-meta-data*","x-ms-meta-customheader"); - AllowedHeaders=@("x-ms-meta-target*","x-ms-meta-customheader"); - MaxAgeInSeconds=30; - AllowedMethods=@("PUT")}) - -$property = Update-AzStorageBlobServiceProperty -ResourceGroupName myresourcegroup -StorageAccountName mystorageaccount -CorsRule $CorsRules -$property.Cors.CorsRulesProperty - -AllowedOrigins : {*} -AllowedMethods : {TRACE, CONNECT} -MaxAgeInSeconds : 0 -ExposedHeaders : {} -AllowedHeaders : {x-ms-blob-content-type, x-ms-blob-content-disposition} - -AllowedOrigins : {http://www.fabrikam.com, http://www.contoso.com} -AllowedMethods : {PUT} -MaxAgeInSeconds : 30 -ExposedHeaders : {x-ms-meta-customheader, x-ms-meta-data*} -AllowedHeaders : {x-ms-meta-customheader, x-ms-meta-target*} - - The first command assigns an array of rules to the $CorsRules variable. This command uses standard extends over several lines in this code block. The second command sets the rules in $CorsRules to the Blob service of a Storage account. - - - - - - ---------------- Example 5: Clean up CORS rules ---------------- - Update-AzStorageBlobServiceProperty -ResourceGroupName myresourcegroup -StorageAccountName mystorageaccount -CorsRule @() - - This command cleans up the CORS rules of a Storage account by inputting @() to parameter CorsRule - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azstorageblobserviceproperty - - - - - - Update-AzStorageEncryptionScope - Update - AzStorageEncryptionScope - - Modify an encryption scope for a Storage account. - - - - The Update-AzStorageEncryptionScope cmdlet modifies an encryption scope for a Storage account. - - - - Update-AzStorageEncryptionScope - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - - Enabled - Disabled - - System.String - - System.String - - - None - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageEncryptionScope - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - - System.Management.Automation.SwitchParameter - - - False - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - - Enabled - Disabled - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - - Enabled - Disabled - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - - System.Management.Automation.SwitchParameter - - - False - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - - Enabled - Disabled - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - EncryptionScope object - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - None - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - - Enabled - Disabled - - System.String - - System.String - - - None - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageEncryptionScope - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - EncryptionScope object - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - - System.Management.Automation.SwitchParameter - - - False - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - - Enabled - Disabled - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScopeName - - Azure Storage EncryptionScope name - - System.String - - System.String - - - None - - - InputObject - - EncryptionScope object - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - None - - - KeyUri - - The key Uri - - System.String - - System.String - - - None - - - KeyvaultEncryption - - Create encryption scope with keySource as Microsoft.Keyvault - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - State - - Update encryption scope State, Possible values include: 'Enabled', 'Disabled'. - - System.String - - System.String - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - StorageEncryption - - Create encryption scope with keySource as Microsoft.Storage. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - - - - - - - - - - - - ------------ Example 1: Disable an encryption scope ------------ - Update-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EncryptionScopeName testscope -State Disabled - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri RequireInfrastructureEncryption ----- ----- ------ -------------- ------------------------------- -testscope Disabled Microsoft.Storage - - This command disables an encryption scope. - - - - - - ------------ Example 2: Enable an encryption scope ------------ - Update-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EncryptionScopeName testscope -State Enabled - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri RequireInfrastructureEncryption ----- ----- ------ -------------- ------------------------------- -testscope Enabled Microsoft.Storage - - This command enables an encryption scope. - - - - - - Example 3: Update an encryption scope to use Storage Encryption - Update-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EncryptionScopeName testscope -StorageEncryption - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri RequireInfrastructureEncryption ----- ----- ------ -------------- ------------------------------- -testscope Enabled Microsoft.Storage - - This command updates an encryption scope to use Storage Encryption. - - - - - - Example 4: Update an encryption scope to use Keyvault Encryption - Update-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EncryptionScopeName testscope -KeyvaultEncryption -KeyUri "https://keyvalutname.vault.azure.net:443/keys/keyname/34a0ba563b4243d9a0ef2b1d3c0c7d57" - -ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount - -Name State Source KeyVaultKeyUri RequireInfrastructureEncryption ----- ----- ------ -------------- ------------------------------- -testscope Enabled Microsoft.Keyvault https://keyvalutname.vault.azure.net:443/keys/keyname/34a0ba563b4243d9a0ef2b1d3c0c7d57 - - This command updtaes an encryption scope to use Keyvault Encryption. The Storage account Identity need have get,wrapkey,unwrapkey permissions to the keyvault key. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azstorageencryptionscope - - - - - - Update-AzStorageFileServiceProperty - Update - AzStorageFileServiceProperty - - Modifies the service properties for the Azure Storage File service. - - - - The Update-AzStorageFileServiceProperty cmdlet modifies the service properties for the Azure Storage File service. - - - - Update-AzStorageFileServiceProperty - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - CorsRule - - Specifies CORS rules for the File service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableShareDeleteRetentionPolicy - - Enable share Delete Retention Policy for the storage account by set to $true, disable share Delete Retention Policy by set to $false. - - System.Boolean - - System.Boolean - - - None - - - EnableSmbMultichannel - - Enable Multichannel by set to $true, disable Multichannel by set to $false. Applies to Premium FileStorage only. - - System.Boolean - - System.Boolean - - - None - - - ShareRetentionDays - - Sets the number of retention days for the share DeleteRetentionPolicy. The value should only be set when enable share Delete Retention Policy. - - System.Int32 - - System.Int32 - - - None - - - SmbAuthenticationMethod - - Gets or sets SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. - - - Kerberos - NTLMv2 - - System.String[] - - System.String[] - - - None - - - SmbChannelEncryption - - Gets or sets SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. - - - AES-128-CCM - AES-128-GCM - AES-256-GCM - - System.String[] - - System.String[] - - - None - - - SmbKerberosTicketEncryption - - Gets or sets kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. - - - AES-256 - RC4-HMAC - - System.String[] - - System.String[] - - - None - - - SmbProtocolVersion - - Gets or sets SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. - - - SMB2.1 - SMB3.0 - SMB3.1.1 - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageFileServiceProperty - - ResourceId - - Input a Storage account Resource Id, or a File service properties Resource Id. - - System.String - - System.String - - - None - - - CorsRule - - Specifies CORS rules for the File service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableShareDeleteRetentionPolicy - - Enable share Delete Retention Policy for the storage account by set to $true, disable share Delete Retention Policy by set to $false. - - System.Boolean - - System.Boolean - - - None - - - EnableSmbMultichannel - - Enable Multichannel by set to $true, disable Multichannel by set to $false. Applies to Premium FileStorage only. - - System.Boolean - - System.Boolean - - - None - - - ShareRetentionDays - - Sets the number of retention days for the share DeleteRetentionPolicy. The value should only be set when enable share Delete Retention Policy. - - System.Int32 - - System.Int32 - - - None - - - SmbAuthenticationMethod - - Gets or sets SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. - - - Kerberos - NTLMv2 - - System.String[] - - System.String[] - - - None - - - SmbChannelEncryption - - Gets or sets SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. - - - AES-128-CCM - AES-128-GCM - AES-256-GCM - - System.String[] - - System.String[] - - - None - - - SmbKerberosTicketEncryption - - Gets or sets kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. - - - AES-256 - RC4-HMAC - - System.String[] - - System.String[] - - - None - - - SmbProtocolVersion - - Gets or sets SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. - - - SMB2.1 - SMB3.0 - SMB3.1.1 - - System.String[] - - System.String[] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzStorageFileServiceProperty - - CorsRule - - Specifies CORS rules for the File service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableShareDeleteRetentionPolicy - - Enable share Delete Retention Policy for the storage account by set to $true, disable share Delete Retention Policy by set to $false. - - System.Boolean - - System.Boolean - - - None - - - EnableSmbMultichannel - - Enable Multichannel by set to $true, disable Multichannel by set to $false. Applies to Premium FileStorage only. - - System.Boolean - - System.Boolean - - - None - - - ShareRetentionDays - - Sets the number of retention days for the share DeleteRetentionPolicy. The value should only be set when enable share Delete Retention Policy. - - System.Int32 - - System.Int32 - - - None - - - SmbAuthenticationMethod - - Gets or sets SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. - - - Kerberos - NTLMv2 - - System.String[] - - System.String[] - - - None - - - SmbChannelEncryption - - Gets or sets SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. - - - AES-128-CCM - AES-128-GCM - AES-256-GCM - - System.String[] - - System.String[] - - - None - - - SmbKerberosTicketEncryption - - Gets or sets kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. - - - AES-256 - RC4-HMAC - - System.String[] - - System.String[] - - - None - - - SmbProtocolVersion - - Gets or sets SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. - - - SMB2.1 - SMB3.0 - SMB3.1.1 - - System.String[] - - System.String[] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - CorsRule - - Specifies CORS rules for the File service. - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableShareDeleteRetentionPolicy - - Enable share Delete Retention Policy for the storage account by set to $true, disable share Delete Retention Policy by set to $false. - - System.Boolean - - System.Boolean - - - None - - - EnableSmbMultichannel - - Enable Multichannel by set to $true, disable Multichannel by set to $false. Applies to Premium FileStorage only. - - System.Boolean - - System.Boolean - - - None - - - ResourceGroupName - - Resource Group Name. - - System.String - - System.String - - - None - - - ResourceId - - Input a Storage account Resource Id, or a File service properties Resource Id. - - System.String - - System.String - - - None - - - ShareRetentionDays - - Sets the number of retention days for the share DeleteRetentionPolicy. The value should only be set when enable share Delete Retention Policy. - - System.Int32 - - System.Int32 - - - None - - - SmbAuthenticationMethod - - Gets or sets SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. - - System.String[] - - System.String[] - - - None - - - SmbChannelEncryption - - Gets or sets SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. - - System.String[] - - System.String[] - - - None - - - SmbKerberosTicketEncryption - - Gets or sets kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. - - System.String[] - - System.String[] - - - None - - - SmbProtocolVersion - - Gets or sets SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. - - System.String[] - - System.String[] - - - None - - - StorageAccount - - Storage account object - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - None - - - StorageAccountName - - Storage Account Name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - - - - System.String - - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties - - - - - - - - - - - - - - ----------- Example 1: Enable File share softdelete ----------- - Update-AzStorageFileServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableShareDeleteRetentionPolicy $true -ShareRetentionDays 5 - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -ShareDeleteRetentionPolicy.Enabled : True -ShareDeleteRetentionPolicy.Days : 5 -ProtocolSettings.Smb.Multichannel.Enabled : False -ProtocolSettings.Smb.Versions : -ProtocolSettings.Smb.AuthenticationMethods : -ProtocolSettings.Smb.KerberosTicketEncryption : -ProtocolSettings.Smb.ChannelEncryption : - - This command enables File share softdelete delete with retention days as 5 - - - - - - -------------- Example 2: Enable Smb Multichannel -------------- - Update-AzStorageFileServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableSmbMultichannel $true - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -ShareDeleteRetentionPolicy.Enabled : True -ShareDeleteRetentionPolicy.Days : 5 -ProtocolSettings.Smb.Multichannel.Enabled : True -ProtocolSettings.Smb.Versions : -ProtocolSettings.Smb.AuthenticationMethods : -ProtocolSettings.Smb.KerberosTicketEncryption : -ProtocolSettings.Smb.ChannelEncryption : - - This command enables Smb Multichannel, only supported on Premium FileStorage account. - - - - - - ------------ Example 3: Updates secure smb settings ------------ - Update-AzStorageFileServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" ` - -SMBProtocolVersion SMB2.1,SMB3.0,SMB3.1.1 ` - -SMBAuthenticationMethod Kerberos,NTLMv2 ` - -SMBKerberosTicketEncryption RC4-HMAC,AES-256 ` - -SMBChannelEncryption AES-128-CCM,AES-128-GCM,AES-256-GCM - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -ShareDeleteRetentionPolicy.Enabled : True -ShareDeleteRetentionPolicy.Days : 5 -ProtocolSettings.Smb.Multichannel.Enabled : True -ProtocolSettings.Smb.Versions : {SMB2.1, SMB3.0, SMB3.1.1} -ProtocolSettings.Smb.AuthenticationMethods : {Kerberos, NTLMv2} -ProtocolSettings.Smb.KerberosTicketEncryption : {RC4-HMAC, AES-256} -ProtocolSettings.Smb.ChannelEncryption : {AES-128-CCM, AES-128-GCM, AES-256-GCM} - - This command updates secure smb settings. - - - - - - ------------- Example 4: Clear secure smb settings ------------- - Update-AzStorageFileServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" ` - -SMBProtocolVersion @() ` - -SMBAuthenticationMethod @() ` - -SMBKerberosTicketEncryption @() ` - -SMBChannelEncryption @() - -StorageAccountName : mystorageaccount -ResourceGroupName : myresourcegroup -ShareDeleteRetentionPolicy.Enabled : True -ShareDeleteRetentionPolicy.Days : 5 -ProtocolSettings.Smb.Multichannel.Enabled : True -ProtocolSettings.Smb.Versions : -ProtocolSettings.Smb.AuthenticationMethods : -ProtocolSettings.Smb.KerberosTicketEncryption : -ProtocolSettings.Smb.ChannelEncryption : - - This command clears secure smb settings. - - - - - - ----------------- Example 5: Update CORS rules ----------------- - $CorsRules = (@{ - AllowedHeaders=@("x-ms-blob-content-type","x-ms-blob-content-disposition"); - ExposedHeaders=@(); - AllowedOrigins=@("*"); - AllowedMethods=@("TRACE","CONNECT")}, - @{ - AllowedOrigins=@("http://www.fabrikam.com","http://www.contoso.com"); - ExposedHeaders=@("x-ms-meta-data*","x-ms-meta-customheader"); - AllowedHeaders=@("x-ms-meta-target*","x-ms-meta-customheader"); - MaxAgeInSeconds=30; - AllowedMethods=@("PUT")}) - -$property = Update-AzStorageFileServiceProperty -ResourceGroupName myresourcegroup -StorageAccountName mystorageaccount -CorsRule $CorsRules -$property.Cors.CorsRulesProperty - -AllowedOrigins : {*} -AllowedMethods : {TRACE, CONNECT} -MaxAgeInSeconds : 0 -ExposedHeaders : {} -AllowedHeaders : {x-ms-blob-content-type, x-ms-blob-content-disposition} - -AllowedOrigins : {http://www.fabrikam.com, http://www.contoso.com} -AllowedMethods : {PUT} -MaxAgeInSeconds : 30 -ExposedHeaders : {x-ms-meta-customheader, x-ms-meta-data*} -AllowedHeaders : {x-ms-meta-customheader, x-ms-meta-target*} - - The first command assigns an array of rules to the $CorsRules variable. This command uses standard extends over several lines in this code block. The second command sets the rules in $CorsRules to the File service of a Storage account. - - - - - - ---------------- Example 6: Clean up CORS rules ---------------- - Update-AzStorageFileServiceProperty -ResourceGroupName myresourcegroup -StorageAccountName mystorageaccount -CorsRule @() - - This command cleans up the CORS rules of a Storage account by inputting @() to parameter CorsRule. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azstoragefileserviceproperty - - - - \ No newline at end of file diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll deleted file mode 100644 index c3cfb0a3510e..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll-Help.xml b/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll-Help.xml deleted file mode 100644 index 60fa91553e53..000000000000 --- a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll-Help.xml +++ /dev/null @@ -1,48111 +0,0 @@ - - - - - Close-AzStorageFileHandle - Close - AzStorageFileHandle - - Closes file handles of a file share, a file directory or a file. - - - - The Close-AzStorageFileHandle cmdlet closes file handles of a file share, or file directory or a file. - - - - Close-AzStorageFileHandle - - ShareName - - Name of the file share where the files/directories would be listed. - - System.String - - System.String - - - None - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloseAll - - Force close all File handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Return the count of closed file handles. - - - System.Management.Automation.SwitchParameter - - - False - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Close-AzStorageFileHandle - - ShareClient - - ShareClient object indicated the share which contains the files/directories to closed handle. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloseAll - - Force close all File handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return the count of closed file handles. - - - System.Management.Automation.SwitchParameter - - - False - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Close-AzStorageFileHandle - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder which contains the files/directories to closed handle. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloseAll - - Force close all File handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return the count of closed file handles. - - - System.Management.Automation.SwitchParameter - - - False - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Close-AzStorageFileHandle - - ShareFileClient - - ShareFileClient object indicated the file to close handle. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloseAll - - Force close all File handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Return the count of closed file handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Close-AzStorageFileHandle - - ShareName - - Name of the file share where the files/directories would be listed. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - FileHandle - - The File Handle to close. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - - None - - - PassThru - - Return the count of closed file handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Close-AzStorageFileHandle - - ShareClient - - ShareClient object indicated the share which contains the files/directories to closed handle. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileHandle - - The File Handle to close. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - - None - - - PassThru - - Return the count of closed file handles. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloseAll - - Force close all File handles. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - FileHandle - - The File Handle to close. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - - None - - - PassThru - - Return the count of closed file handles. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - Recursive - - List handles Recursively. Only works on File Directory. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share which contains the files/directories to closed handle. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder which contains the files/directories to closed handle. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareFileClient - - ShareFileClient object indicated the file to close handle. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Name of the file share where the files/directories would be listed. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Int32 - - - - - - - - - - - - - - --------- Example 1: Close all file handles on a file --------- - Close-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2/test.txt' -CloseAll - - This command closes all file handles on a file. - - - - - - Example 2: Close all file handles which is opened 1 day ago on a file directory - Get-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2' -Recursive | Where-Object {$_.OpenTime.DateTime.AddDays(1) -lt (Get-Date)} | Close-AzStorageFileHandle -ShareName "mysharename" - - This command lists all file handles on a file directory recursively, filters out the handles which are opened 1 day ago, and then closes them. - - - - - - Example 3: Close all file handles on a file directory recursively and show the closed file handle count - Close-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2' -Recursive -CloseAll -PassThru - -10 - - This command closes all file handles on a file directory and shows the closed file handle count. - - - - - - ------ Example 4: Close all file handles on a file share ------ - Close-AzStorageFileHandle -ShareName "mysharename" -CloseAll -Recursive - - This command closes all file handles on a specific file share recursively. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/close-azstoragefilehandle - - - - - - Copy-AzStorageBlob - Copy - AzStorageBlob - - Copy a blob synchronously. - - - - The Copy-AzStorageBlob cmdlet copies a blob synchronously, currently only support block blob. - - - - Copy-AzStorageBlob - - AbsoluteUri - - Source blob uri - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Source Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestBlobType - - Destination blob type - - - Block - Page - Append - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Storage context object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the dest blob. - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Copy-AzStorageBlob - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - Context - - Source Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestBlobType - - Destination blob type - - - Block - Page - Append - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Storage context object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the dest blob. - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Copy-AzStorageBlob - - SrcBlob - - Blob name - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Source Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestBlobType - - Destination blob type - - - Block - Page - Append - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Storage context object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the dest blob. - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - SrcContainer - - Source Container name - - System.String - - System.String - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AbsoluteUri - - Source blob uri - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - Context - - Source Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestBlobType - - Destination blob type - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Storage context object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the dest blob. - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - SrcBlob - - Blob name - - System.String - - System.String - - - None - - - SrcContainer - - Source Container name - - System.String - - System.String - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - ----------- Example 1: Copy a named blob to another ----------- - $destBlob = Copy-AzStorageBlob -SrcContainer "sourcecontainername" -SrcBlob "srcblobname" -DestContainer "destcontainername" -DestBlob "destblobname" - - This command copies a blob from source container to the destination container with a new blob name. - - - - - - ----------- Example 2: Copy blob from a blob object ----------- - $srcBlob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $ctx -$destBlob = $srcBlob | Copy-AzStorageBlob -DestContainer "destcontainername" -DestBlob "destblobname" - - This command copies a blob from source blob object to the destination container with a new blob name. - - - - - - ------------- Example 3: Copy blob from a blob Uri ------------- - $srcBlobUri = New-AzStorageBlobSASToken -Container $srcContainerName -Blob $srcBlobName -Permission rt -ExpiryTime (Get-Date).AddDays(7) -FullUri -$destBlob = Copy-AzStorageBlob -AbsoluteUri $srcBlobUri -DestContainer "destcontainername" -DestBlob "destblobname" - - The first command creates a blob Uri of the source blob, with sas token of permission "rt". The second command copies from source blob Uri to the destination blob. - - - - - - ------- Example 4: Update a block blob encryption scope ------- - $blob = Copy-AzStorageBlob -SrcContainer $containerName -SrcBlob $blobname -DestContainer $containername -EncryptionScope $newScopeName -Force - - This command update a block blob encryption scope by copy it to itself with a new encryption scope. - - - - - - --------- Example 5: Copy a blob to a new append blob --------- - $srcBlob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $ctx -$destBlob = Copy-AzStorageBlob -SrcContainer "sourcecontainername" -SrcBlob "srcblobname" -DestContainer "destcontainername" -DestBlob "destblobname" -DestBlobType "Append" -DestContext $destCtx - - - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/copy-azstorageblob - - - - - - Disable-AzStorageDeleteRetentionPolicy - Disable - AzStorageDeleteRetentionPolicy - - Disable delete retention policy for the Azure Storage Blob service. - - - - The Disable-AzStorageDeleteRetentionPolicy cmdlet disables delete retention policy for the Azure Storage Blob service. - - - - Disable-AzStorageDeleteRetentionPolicy - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display DeleteRetentionPolicyProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display DeleteRetentionPolicyProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy - - - - - - - - - - - - - - Example 1: Disable delete retention policy for the Blob service - Disable-AzStorageDeleteRetentionPolicy - - This command disables delete retention policy for the Blob service. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/disable-azstoragedeleteretentionpolicy - - - - - - Disable-AzStorageStaticWebsite - Disable - AzStorageStaticWebsite - - Disable static website for the Azure Storage account. - - - - The Disable-AzStorageStaticWebsite cmdlet disables static website for the Azure Storage account. - - - - Disable-AzStorageStaticWebsite - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - {{Fill PassThru Description}} - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties - - - - - - - - - - - - - - Example 1: Disable static website for a Azure Storage account - Disable-AzStorageStaticWebsite - - This command disables static website for a Azure Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/disable-azstoragestaticwebsite - - - - - - Enable-AzStorageDeleteRetentionPolicy - Enable - AzStorageDeleteRetentionPolicy - - Enable delete retention policy for the Azure Storage Blob service. - - - - The Enable-AzStorageDeleteRetentionPolicy cmdlet enables delete retention policy for the Azure Storage Blob service. - - - - Enable-AzStorageDeleteRetentionPolicy - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display DeleteRetentionPolicyProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display DeleteRetentionPolicyProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Sets the number of retention days for the DeleteRetentionPolicy. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy - - - - - - - - - - - - - - Example 1: Enable delete retention policy for the Blob service - Enable-AzStorageDeleteRetentionPolicy -RetentionDays 3 - - This command enables delete retention policy for the Blob service, and set deleted blob retention days to 3. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/enable-azstoragedeleteretentionpolicy - - - - - - Enable-AzStorageStaticWebsite - Enable - AzStorageStaticWebsite - - Enable static website for the Azure Storage account. - - - - The Enable-AzStorageStaticWebsite cmdlet enables static website for the Azure Storage account. - - - - Enable-AzStorageStaticWebsite - - IndexDocument - - The name of the index document in each directory. - - System.String - - System.String - - - None - - - ErrorDocument404Path - - The path to the error document that should be shown when a 404 is issued (meaning, when a browser requests a page that does not exist.) - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Display Static Website setting in ServiceProperties. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ErrorDocument404Path - - The path to the error document that should be shown when a 404 is issued (meaning, when a browser requests a page that does not exist.) - - System.String - - System.String - - - None - - - IndexDocument - - The name of the index document in each directory. - - System.String - - System.String - - - None - - - PassThru - - Display Static Website setting in ServiceProperties. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties - - - - - - - - - - - - - - Example 1: Enable static website for the Azure Storage account - Enable-AzStorageStaticWebsite -IndexDocument $indexdoc -ErrorDocument404Path $errordoc - - This command enables static website for the Azure Storage account. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/enable-azstoragestaticwebsite - - - - - - Get-AzDataLakeGen2ChildItem - Get - AzDataLakeGen2ChildItem - - Lists sub directories and files from a directory or filesystem root. - - - - The Get-AzDataLakeGen2ChildItem cmdlet lists sub directorys and files in a directory or Filesystem in an Azure storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Get-AzDataLakeGen2ChildItem - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be retrieved. Should be a directory, in the format 'directory1/directory2/'. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FetchProperty - - Fetch the datalake item properties and ACL. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - The max count of the blobs that can return. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - OutputUserPrincipalName - - If speicify this parameter, the user identity values returned in the owner and group fields of each list entry will be transformed from Microsoft Entra Object IDs to User Principal Names. If not speicify this parameter, the values will be returned as Microsoft Entra Object IDs. Note that group and application Object IDs are not translated because they do not have unique friendly names. - - - System.Management.Automation.SwitchParameter - - - False - - - Recurse - - Indicates if will recursively get the Child Item. The default is false. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FetchProperty - - Fetch the datalake item properties and ACL. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - MaxCount - - The max count of the blobs that can return. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - OutputUserPrincipalName - - If speicify this parameter, the user identity values returned in the owner and group fields of each list entry will be transformed from Microsoft Entra Object IDs to User Principal Names. If not speicify this parameter, the values will be returned as Microsoft Entra Object IDs. Note that group and application Object IDs are not translated because they do not have unique friendly names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - The path in the specified Filesystem that should be retrieved. Should be a directory, in the format 'directory1/directory2/'. - - System.String - - System.String - - - None - - - Recurse - - Indicates if will recursively get the Child Item. The default is false. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - ---- Example 1: List the direct sub items from a Filesystem ---- - Get-AzDataLakeGen2ChildItem -FileSystem "filesystem1" - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1 True 2020-03-13 13:07:34Z rwxr-x--- $superuser $superuser -dir2 True 2020-03-23 09:28:36Z rwxr-x--- $superuser $superuser - - This command lists the direct sub items from a Filesystem - - - - - - Example 2: List recursively from a directory, and fetch Properties/ACL - Get-AzDataLakeGen2ChildItem -FileSystem "filesystem1" -Path "dir1/" -Recurse -FetchProperty - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/dir3 True 2020-03-23 09:34:31Z rwx---rwx $superuser $superuser -dir1/file1 False 1024 2020-03-23 09:29:18Z rwx---rwx $superuser $superuser -dir1/testfile_1K_0 False 1024 2020-03-23 09:29:21Z rw-r----- $superuser $superuser - - This command lists the direct sub items from a Filesystem - - - - - - Example 3: List items recursively from a Filesystem in multiple batches - $MaxReturn = 1000 -$FileSystemName = "filesystem1" -$Total = 0 -$Token = $Null -do - { - $items = Get-AzDataLakeGen2ChildItem -FileSystem $FileSystemName -Recurse -MaxCount $MaxReturn -ContinuationToken $Token - $Total += $items.Count - if($items.Length -le 0) { Break;} - $Token = $items[$items.Count -1].ContinuationToken; - } - While ($null -ne $Token) -Echo "Total $Total items in Filesystem $FileSystemName" - - This example uses the MaxCount and ContinuationToken parameters to list items recursively from a Filesystem in multiple batches. A small MaxCount can limit the items acount returned from single requst, may help on operation times out error, and limit the memory usage of Powershell. The first four commands assign values to variables to use in the example. The fifth command specifies a Do-While statement that uses the Get-AzDataLakeGen2ChildItem cmdlet to list items. The statement includes the continuation token stored in the $Token variable. $Token changes value as the loop runs. The final command uses the Echo command to display the total. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azdatalakegen2childitem - - - - - - Get-AzDataLakeGen2DeletedItem - Get - AzDataLakeGen2DeletedItem - - List all deleted files or directories from a directory or filesystem root. - - - - The Get-AzDataLakeGen2DeletedItem cmdlet lists all deleted files or directories from a directory or filesystem in an Azure storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Get-AzDataLakeGen2DeletedItem - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified FileSystem that should be retrieved. Can be a directory In the format 'directory1/directory2/', Skip set this parameter to list items from root directory of the Filesystem. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MaxCount - - The max count of the blobs that can return. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - MaxCount - - The max count of the blobs that can return. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Path - - The path in the specified FileSystem that should be retrieved. Can be a directory In the format 'directory1/directory2/', Skip set this parameter to list items from root directory of the Filesystem. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - - - - - - - - - - - - - Example 1: List all deleted files or directories from a Filesystem - Get-AzDataLakeGen2DeletedItem -FileSystem "filesystem1" - -FileSystem Name: filesystem1 - -Path DeletionId DeletedOn RemainingRetentionDays ----- ---------- --------- ---------------------- -dir0/dir1/file1 132658816156507617 2021-05-19 07:06:55Z 3 -dir0/dir2 132658834541610122 2021-05-19 07:37:34Z 3 -dir0/dir2/file3 132658834534174806 2021-05-19 07:37:33Z 3 - - This command lists all deleted files or directories from a Filesystem. - - - - - - Example 2: List all deleted files or directories from a directory - Get-AzDataLakeGen2DeletedItem -FileSystem "filesystem1" -Path dir0/dir2 - -FileSystem Name: filesystem1 - -Path DeletionId DeletedOn RemainingRetentionDays ----- ---------- --------- ---------------------- -dir0/dir2 132658834541610122 2021-05-19 07:37:34Z 3 -dir0/dir2/file3 132658834534174806 2021-05-19 07:37:33Z 3 - - This command lists all deleted files or directories from a directory. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azdatalakegen2deleteditem - - - - - - Get-AzDataLakeGen2Item - Get - AzDataLakeGen2Item - - Gets the details of a file or directory in a filesystem. - - - - The Get-AzDataLakeGen2Item cmdlet gets the details of a file or directory in a Filesystem in an Azure storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Get-AzDataLakeGen2Item - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Path - - The path in the specified Filesystem that should be retrieved. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/'. Not specify this parameter to get the root directory of the Filesystem. - - System.String - - System.String - - - None - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be retrieved. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/'. Not specify this parameter to get the root directory of the Filesystem. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - Example 1: Get a directory from a Filesystem, and show the details - $dir1 = Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/" -$dir1 - - FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1 True 2020-03-23 09:15:56Z rwx---rwx $superuser $superuser - -PS C:\WINDOWS\system32> $dir1.ACL - -DefaultScope AccessControlType EntityId Permissions ------------- ----------------- -------- ----------- -False User rwx -False Group --- -False Other rwx - -PS C:\WINDOWS\system32> $dir1.Permissions - -Owner : Execute, Write, Read -Group : None -Other : Execute, Write, Read -StickyBit : False -ExtendedAcls : False - -PS C:\WINDOWS\system32> $dir1.Properties.Metadata - -Key Value ---- ----- -hdi_isfolder true -tag1 value1 -tag2 value2 - -PS C:\WINDOWS\system32> $dir1.Properties - -LastModified : 3/23/2020 9:15:56 AM +00:00 -CreatedOn : 3/23/2020 9:15:56 AM +00:00 -Metadata : {[hdi_isfolder, true], [tag1, value1], [tag2, value2]} -CopyCompletedOn : 1/1/0001 12:00:00 AM +00:00 -CopyStatusDescription : -CopyId : -CopyProgress : -CopySource : -CopyStatus : Pending -IsIncrementalCopy : False -LeaseDuration : Infinite -LeaseState : Available -LeaseStatus : Unlocked -ContentLength : 0 -ContentType : application/octet-stream -ETag : "0x8D7CF0ACBA35FA8" -ContentHash : -ContentEncoding : UDF12 -ContentDisposition : -ContentLanguage : -CacheControl : READ -AcceptRanges : bytes -IsServerEncrypted : True -EncryptionKeySha256 : -AccessTier : Cool -ArchiveStatus : -AccessTierChangedOn : 1/1/0001 12:00:00 AM +00:00 - - This command gets a directory from a Filesystem, and show the details. - - - - - - ----------- Example 2: Get a file from a Filesystem ----------- - Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/file1 False 1024 2020-03-23 09:20:37Z rwx---rwx $superuser $superuser - - This command gets the details of a file from a Filesystem. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azdatalakegen2item - - - - - - Get-AzDataLakeGen2ItemContent - Get - AzDataLakeGen2ItemContent - - Download a file. - - - - The Get-AzDataLakeGen2ItemContent cmdlet download a file in a Filesystem in an Azure storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Get-AzDataLakeGen2ItemContent - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be removed. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - check the md5sum - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Destination local file path. - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzDataLakeGen2ItemContent - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - check the md5sum - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Destination local file path. - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to download. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - check the md5sum - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Destination local file path. - - System.String - - System.String - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Force - - Force to overwrite the existing blob or file - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to download. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - Path - - The path in the specified Filesystem that should be removed. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - ---------- Example 1: Download a file without prompt ---------- - Get-AzDataLakeGen2ItemContent -FileSystem "filesystem1" -Path "dir1/file1" -Destination $localDestFile -Force - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/file1 False 1024 2020-03-23 09:29:18Z rwx---rwx $superuser $superuser - - This command downloads a file to a local file without prompt. - - - - - - Example 2: Get a file, then pipeline to download the file to a local file - Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" | Get-AzDataLakeGen2ItemContent -Destination $localDestFile - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/file1 False 1024 2020-03-23 09:29:18Z rwx---rwx $superuser $superuser - - This command first gets a file, then pipeline to download the file to a local file. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azdatalakegen2itemcontent - - - - - - Get-AzStorageBlob - Get - AzStorageBlob - - Lists blobs in a container. - - - - The Get-AzStorageBlob cmdlet lists blobs in the specified container in an Azure storage account. - - - - Get-AzStorageBlob - - Blob - - Specifies a name or name pattern, which can be used for a wildcard search. If no blob name is specified, the cmdlet lists all the blobs in the specified container. If a value is specified for this parameter, the cmdlet lists all blobs with names that match this parameter. This parameter supports wildcards anywhere in the string. - - System.String - - System.String - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to get a list of blobs. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. Use this parameter and the MaxCount parameter to list blobs in multiple batches. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include Deleted Blob, by default get blob won't include deleted blob. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeTag - - Include blob tags, by default get blob won't include blob tags. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - - Get-AzStorageBlob - - Blob - - Specifies a name or name pattern, which can be used for a wildcard search. If no blob name is specified, the cmdlet lists all the blobs in the specified container. If a value is specified for this parameter, the cmdlet lists all blobs with names that match this parameter. This parameter supports wildcards anywhere in the string. - - System.String - - System.String - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to get a list of blobs. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. Use this parameter and the MaxCount parameter to list blobs in multiple batches. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include Deleted Blob, by default get blob won't include deleted blob. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeTag - - Include blob tags, by default get blob won't include blob tags. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - - Get-AzStorageBlob - - Blob - - Specifies a name or name pattern, which can be used for a wildcard search. If no blob name is specified, the cmdlet lists all the blobs in the specified container. If a value is specified for this parameter, the cmdlet lists all blobs with names that match this parameter. This parameter supports wildcards anywhere in the string. - - System.String - - System.String - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to get a list of blobs. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. Use this parameter and the MaxCount parameter to list blobs in multiple batches. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include Deleted Blob, by default get blob won't include deleted blob. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeTag - - Include blob tags, by default get blob won't include blob tags. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - - Get-AzStorageBlob - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to get a list of blobs. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. Use this parameter and the MaxCount parameter to list blobs in multiple batches. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include Deleted Blob, by default get blob won't include deleted blob. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeTag - - Include blob tags, by default get blob won't include blob tags. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeVersion - - Blob versions will be listed only if this parameter is present, by default get blob won't include blob versions. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Prefix - - Specifies a prefix for the blob names that you want to get. This parameter does not support using regular expressions or wildcard characters to search. This means that if the container has only blobs named "My", "MyBlob1", and "MyBlob2" and you specify "-Prefix My*", the cmdlet returns no blobs. However, if you specify "-Prefix My", the cmdlet returns "My", "MyBlob1", and "MyBlob2". - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - Blob - - Specifies a name or name pattern, which can be used for a wildcard search. If no blob name is specified, the cmdlet lists all the blobs in the specified container. If a value is specified for this parameter, the cmdlet lists all blobs with names that match this parameter. This parameter supports wildcards anywhere in the string. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage account from which you want to get a list of blobs. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. Use this parameter and the MaxCount parameter to list blobs in multiple batches. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include Deleted Blob, by default get blob won't include deleted blob. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeTag - - Include blob tags, by default get blob won't include blob tags. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeVersion - - Blob versions will be listed only if this parameter is present, by default get blob won't include blob versions. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Prefix - - Specifies a prefix for the blob names that you want to get. This parameter does not support using regular expressions or wildcard characters to search. This means that if the container has only blobs named "My", "MyBlob1", and "MyBlob2" and you specify "-Prefix My*", the cmdlet returns no blobs. However, if you specify "-Prefix My", the cmdlet returns "My", "MyBlob1", and "MyBlob2". - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - -------------- Example 1: Get a blob by blob name -------------- - Get-AzStorageBlob -Container "ContainerName" -Blob blob* - - This command uses a blob name and wildcard to get a blob. - - - - - - -- Example 2: Get blobs in a container by using the pipeline -- - Get-AzStorageContainer -Name container* | Get-AzStorageBlob -IncludeDeleted - -Container Uri: https://storageaccountname.blob.core.windows.net/container1 - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted ----- -------- ------ ----------- ------------ ---------- ------------ --------- -test1 BlockBlob 403116 application/octet-stream 2017-11-08 07:53:19Z 2017-11-08 08:19:32Z True -test1 BlockBlob 403116 application/octet-stream 2017-11-08 09:00:29Z True -test2 BlockBlob 403116 application/octet-stream 2017-11-08 07:53:00Z False - - This command uses the pipeline to get all blobs (include blobs in Deleted status) in a container. - - - - - - ------------- Example 3: Get blobs by name prefix ------------- - Get-AzStorageBlob -Container "ContainerName" -Prefix "blob" - - This command uses a name prefix to get blobs. - - - - - - ---------- Example 4: List blobs in multiple batches ---------- - $MaxReturn = 10000 -$ContainerName = "abc" -$Total = 0 -$Token = $Null -do - { - $Blobs = Get-AzStorageBlob -Container $ContainerName -MaxCount $MaxReturn -ContinuationToken $Token - $Total += $Blobs.Count - if($Blobs.Length -le 0) { Break;} - $Token = $Blobs[$blobs.Count -1].ContinuationToken; - } - While ($null -ne $Token) -Echo "Total $Total blobs in container $ContainerName" - - This example uses the MaxCount and ContinuationToken parameters to list Azure Storage blobs in multiple batches. The first four commands assign values to variables to use in the example. The fifth command specifies a Do-While statement that uses the Get-AzStorageBlob cmdlet to get blobs. The statement includes the continuation token stored in the $Token variable. $Token changes value as the loop runs. For more information, type `Get-Help About_Do`. The final command uses the Echo command to display the total. - - - - - - - Example 5: Get all blobs in a container include blob version - - Get-AzStorageBlob -Container "containername" -IncludeVersion - -AccountName: storageaccountname, ContainerName: containername - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -blob1 BlockBlob 2097152 application/octet-stream 2020-07-06 06:56:06Z Hot False 2020-07-06T06:56:06.2432658Z -blob1 BlockBlob 2097152 application/octet-stream 2020-07-06 06:56:06Z Hot 2020-07-06T06:56:06.8588431Z False -blob1 BlockBlob 2097152 application/octet-stream 2020-07-06 06:56:06Z Hot False 2020-07-06T06:56:06.8598431Z * -blob2 BlockBlob 2097152 application/octet-stream 2020-07-03 16:19:16Z Hot False 2020-07-03T16:19:16.2883167Z -blob2 BlockBlob 2097152 application/octet-stream 2020-07-03 16:19:35Z Hot False 2020-07-03T16:19:35.2381110Z * - - This command gets all blobs in a container include blob version. - - - - - - ------------- Example 6: Get a single blob version ------------- - Get-AzStorageBlob -Container "containername" -Blob blob2 -VersionId "2020-07-03T16:19:16.2883167Z" - -AccountName: storageaccountname, ContainerName: containername - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -blob2 BlockBlob 2097152 application/octet-stream 2020-07-03 16:19:16Z Hot False 2020-07-03T16:19:16.2883167Z - - This command gets a single blobs verion with VersionId. - - - - - - ------------ Example 7: Get a single blob snapshot ------------ - Get-AzStorageBlob -Container "containername" -Blob blob1 -SnapshotTime "2020-07-06T06:56:06.8588431Z" - -AccountName: storageaccountname, ContainerName: containername - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -blob1 BlockBlob 2097152 application/octet-stream 2020-07-06 06:56:06Z Hot 2020-07-06T06:56:06.8588431Z False - - This command gets a single blobs snapshot with SnapshotTime. - - - - - - ------------ Example 8: Get blob include blob tags ------------ - $blobs = Get-AzStorageBlob -Container "containername" -IncludeTag - -$blobs - - AccountName: storageaccountname, ContainerName: containername - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 2097152 application/octet-stream 2020-07-23 09:35:02Z Hot False 2020-07-23T09:35:02.8527357Z * -testblob2 BlockBlob 2097152 application/octet-stream 2020-07-23 09:35:04Z Hot False 2020-07-23T09:35:04.0856187Z * - - -$blobs[0].Tags -Name Value ----- ----- -tag1 value1 -tag2 value2 - - This command lists blobs from a container with blob tags, and show the tags of the first blob. - - - - - - ----- Example 9: Get a single blob with blob tag condition ----- - Get-AzStorageBlob -Container "containername" -Blob testblob -TagCondition """tag1""='value1'" - -AccountName: storageaccountname, ContainerName: containername - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 2097152 application/octet-stream 2020-07-23 09:35:02Z Hot False 2020-07-23T09:35:02.8527357Z * - - This command gets a single blob with blob tag condition. The cmdlet will only success when the blob contains a tag with name "tag1" and value "value1", else the cmdlet will fail with error code 412. - - - - - - Example 10: Get blob properties (example: ImmutabilityPolicy) of a single blob - $blobProperties = (Get-AzStorageBlob -Container "ContainerName" -Blob "blob" -Context $ctx).BlobProperties -$blobProperties.ImmutabilityPolicy - -ExpiresOn PolicyMode ---------- ---------- -9/17/2024 2:49:32 AM +00:00 Unlocked - - This example command gets the immutability property of a single blob. You can get a detailed list of blob prTooperties from the BlobProperties property, including but not limited to: LastModified, ContentLength, ContentHash, BlobType, LeaseState, AccessTier, ETag, ImmutabilityPolicy, etc... To list multiple blobs (execute the cmdlet without blob name), use ListBlobProperties.Properties instead of BlobProperties for better performance. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblob - - - Get-AzStorageBlobContent - - - - Remove-AzStorageBlob - - - - Set-AzStorageBlobContent - - - - - - - Get-AzStorageBlobByTag - Get - AzStorageBlobByTag - - Lists blobs in a storage account across containers, with a blob tag filter sql expression. - - - - The Get-AzStorageBlobByTag cmdlet lists blobs in a storage account across containers, with a blob tag filter sql expression. - - - - Get-AzStorageBlobByTag - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name, specify this parameter to only return all blobs whose tags match a search expression in the container. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - GetBlobProperty - - As the blobs get by tag don't contain blob proeprties, specify tis parameter to get blob properties with an additional request on each blob. - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - The max count of the blobs that can return. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagFilterSqlExpression - - Filters the result set to only include blobs whose tags match the specified expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/find-blobs-by-tags#remarks. - - System.String - - System.String - - - None - - - - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name, specify this parameter to only return all blobs whose tags match a search expression in the container. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - GetBlobProperty - - As the blobs get by tag don't contain blob proeprties, specify tis parameter to get blob properties with an additional request on each blob. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - The max count of the blobs that can return. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagFilterSqlExpression - - Filters the result set to only include blobs whose tags match the specified expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/find-blobs-by-tags#remarks. - - System.String - - System.String - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - Example 1: List all blobs match a specific blob tag, across containers. - Get-AzStorageBlobByTag -TagFilterSqlExpression """tag1""='value1'" -Context $ctx - -AccountName: storageaccountname, ContainerName: containername1 - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob False -testblob2 False - - AccountName: storageaccountname, ContainerName: containername2 - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob3 False -testblob4 False - - This command lists all blobs in a storage account, which contains a tag with name "tag1" and value "value1". - - - - - - Example 2: List blobs in a specific container and match a specific blob tag - Get-AzStorageBlobByTag -Container 'containername' -TagFilterSqlExpression """tag1""='value1'" -Context $ctx - -AccountName: storageaccountname, ContainerName: containername - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -test1 False -test2 False - - This command lists blobs in a container and match a specific blob tag. - - - - - - Example 3: List all blobs match a specific blob tag, across containers, and get the blob properties. - Get-AzStorageBlobByTag -TagFilterSqlExpression """tag1""='value1'" -GetBlobProperty - -AccountName: storageaccountname, ContainerName: containername1 - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 2097152 application/octet-stream 2020-07-23 09:35:02Z Hot False 2020-07-23T09:35:02.8527357Z * -testblob2 BlockBlob 1048012 application/octet-stream 2020-07-23 09:35:05Z Hot False 2020-07-23T09:35:05.2504530Z * - - AccountName: storageaccountname, ContainerName: containername2 - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob3 BlockBlob 100 application/octet-stream 2020-07-01 09:55:14Z Hot False 2020-07-01T09:55:14.6507341Z * -testblob4 BlockBlob 2024 application/octet-stream 2020-07-01 09:42:11Z Hot False 2020-07-01T09:42:11.4283807Z * - - This command lists all blobs in a storage account, which contains a tag with name "tag1" and value "value1", and get the blob properties. Please note, to get blob properties with parameter -GetBlobProperty, each blob will need an addtional request, so the cmdlet runs show when there are many blobs. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblobbytag - - - - - - Get-AzStorageBlobContent - Get - AzStorageBlobContent - - Downloads a storage blob. - - - - The Get-AzStorageBlobContent cmdlet downloads the specified storage blob. If the blob name is not valid for the local computer, this cmdlet automatically resolves it if it is possible. - - - - Get-AzStorageBlobContent - - AbsoluteUri - - Blob uri to download from. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies the location to store the downloaded file. - - System.String - - System.String - - - None - - - Force - - Overwrites an existing file without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobContent - - Blob - - Specifies the name of the blob to be downloaded. - - System.String - - System.String - - - None - - - Container - - Specifies the name of container that has the blob you want to download. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to download blob content. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies the location to store the downloaded file. - - System.String - - System.String - - - None - - - Force - - Overwrites an existing file without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobContent - - Blob - - Specifies the name of the blob to be downloaded. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure storage client library. You can create it or use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to download blob content. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies the location to store the downloaded file. - - System.String - - System.String - - - None - - - Force - - Overwrites an existing file without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobContent - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a cloud blob. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage account from which you want to download blob content. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies the location to store the downloaded file. - - System.String - - System.String - - - None - - - Force - - Overwrites an existing file without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AbsoluteUri - - Blob uri to download from. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Blob - - Specifies the name of the blob to be downloaded. - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a cloud blob. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure storage client library. You can create it or use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of container that has the blob you want to download. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage account from which you want to download blob content. You can use the New-AzStorageContext cmdlet to create a storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies the location to store the downloaded file. - - System.String - - System.String - - - None - - - Force - - Overwrites an existing file without confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - * If the blob name is invalid for local computer, this cmdlet autoresolves it, if it is possible. - - - - - ----------- Example 1: Download blob content by name ----------- - Get-AzStorageBlobContent -Container "ContainerName" -Blob "Blob" -Destination "C:\test\" - - This command downloads a blob by name. - - - - - - ----- Example 2: Download blob content using the pipeline ----- - Get-AzStorageBlob -Container containername -Blob blobname | Get-AzStorageBlobContent - - This command uses the pipeline to find and download blob content. - - - - - - Example 3: Download blob content using the pipeline and a wildcard character - Get-AzStorageContainer container* | Get-AzStorageBlobContent -Blob "cbox.exe" -Destination "C:\test" - - This example uses the asterisk wildcard character and the pipeline to find and download blob content. - - - - - - Example 4: Get a blob object and save it in a variable, then download blob content with the blob object - $blob = Get-AzStorageBlob -Container containername -Blob blobname -Get-AzStorageBlobContent -CloudBlob $blob.ICloudBlob -Destination "C:\test" - - This example first get a blob object and save it in a variable, then download blob content with the blob object. - - - - - - ------- Example 5: Download a blob content with blob Uri ------- - Get-AzStorageBlobContent -Uri $blobUri -Destination "C:\test" -Force - - This example will download a blob content with Uri, the Uri can be a Uri with Sas token. If the blob is on a managed disk account, and server requires a bearer token besides Sas Uri to download, the cmdlet will try to generate a bearer token with server returned audience and the login AAD user credentail, then download blob with both Sas Uri and bearer token. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblobcontent - - - Set-AzStorageBlobContent - - - - Get-AzStorageBlob - - - - Remove-AzStorageBlob - - - - - - - Get-AzStorageBlobCopyState - Get - AzStorageBlobCopyState - - Gets the copy status of an Azure Storage blob. - - - - The Get-AzStorageBlobCopyState cmdlet gets the copy status of an Azure Storage blob. It should run on the copy destination blob. - - - - Get-AzStorageBlobCopyState - - Blob - - Specifies the name of a blob. This cmdlet gets the state of the blob copy operation for the Azure Storage blob that this parameter specifies. - - System.String - - System.String - - - None - - - Container - - Specifies the name of a container. This cmdlet gets the copy status for a blob in the container that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobCopyState - - Blob - - Specifies the name of a blob. This cmdlet gets the state of the blob copy operation for the Azure Storage blob that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. This cmdlet gets the copy status of a blob in the container that this parameter specifies. To obtain a CloudBlobContainer object, use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobCopyState - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Specifies the name of a blob. This cmdlet gets the state of the blob copy operation for the Azure Storage blob that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. This cmdlet gets the copy status of a blob in the container that this parameter specifies. To obtain a CloudBlobContainer object, use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of a container. This cmdlet gets the copy status for a blob in the container that this parameter specifies. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.Blob.CopyState - - - - - - - - - - - - - - ----------- Example 1: Get the copy status of a blob ----------- - Get-AzStorageBlobCopyState -Blob "ContosoPlanning2015" -Container "ContosoUploads" - - This command gets the copy status of the blob named ContosoPlanning2015 in the container ContosoUploads. - - - - - - Example 2: Get the copy status for of a blob by using the pipeline - Get-AzStorageBlob -Blob "ContosoPlanning2015" -Container "ContosoUploads" | Get-AzStorageBlobCopyState - - This command gets the blob named ContosoPlanning2015 in the container named ContosoUploads by using the Get-AzStorageBlob cmdlet, and then passes the result to the current cmdlet by using the pipeline operator. The Get-AzStorageBlobCopyState cmdlet gets the copy status for that blob. - - - - - - Example 3: Get the copy status for a blob in a container by using the pipeline - Get-AzStorageContainer -Name "ContosoUploads" | Get-AzStorageBlobCopyState -Blob "ContosoPlanning2015" - - This command gets the container named by using the Get-AzStorageBlob cmdlet, and then passes the result to the current cmdlet. The Get-AzStorageContainer cmdlet gets the copy status for the blob named ContosoPlanning2015 in that container. - - - - - - -- Example 4: Start Copy and pipeline to get the copy status -- - $destBlob = Start-AzStorageBlobCopy -SrcContainer "contosouploads" -SrcBlob "ContosoPlanning2015" -DestContainer "contosouploads2" -DestBlob "ContosoPlanning2015_copy" - -$destBlob | Get-AzStorageBlobCopyState - - The first command starts copy blob "ContosoPlanning2015" to "ContosoPlanning2015_copy", and output the destiantion blob object. The second command pipeline the destiantion blob object to Get-AzStorageBlobCopyState, to get blob copy state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblobcopystate - - - Start-AzStorageBlobCopy - - - - Stop-AzStorageBlobCopy - - - - - - - Get-AzStorageBlobQueryResult - Get - AzStorageBlobQueryResult - - Applies a simple Structured Query Language (SQL) statement on a blob's contents and save only the queried subset of the data to a local file. - - - - The Get-AzStorageBlobQueryResult cmdlet applies a simple Structured Query Language (SQL) statement on a blob's contents and save the queried subset of the data to a local file. - - - - Get-AzStorageBlobQueryResult - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - InputTextConfiguration - - The configuration used to handled the query input text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - OutputTextConfiguration - - The configuration used to handled the query output text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - PassThru - - Return whether the specified blob is successfully queried. - - - System.Management.Automation.SwitchParameter - - - False - - - QueryString - - Query string, see more details in: https://learn.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference - - System.String - - System.String - - - None - - - ResultFile - - Local file path to save the query result. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobQueryResult - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobContainerClient - - BlobContainerClient Object - - Azure.Storage.Blobs.BlobContainerClient - - Azure.Storage.Blobs.BlobContainerClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - InputTextConfiguration - - The configuration used to handled the query input text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - OutputTextConfiguration - - The configuration used to handled the query output text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - PassThru - - Return whether the specified blob is successfully queried. - - - System.Management.Automation.SwitchParameter - - - False - - - QueryString - - Query string, see more details in: https://learn.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference - - System.String - - System.String - - - None - - - ResultFile - - Local file path to save the query result. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobQueryResult - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - InputTextConfiguration - - The configuration used to handled the query input text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - OutputTextConfiguration - - The configuration used to handled the query output text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - PassThru - - Return whether the specified blob is successfully queried. - - - System.Management.Automation.SwitchParameter - - - False - - - QueryString - - Query string, see more details in: https://learn.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference - - System.String - - System.String - - - None - - - ResultFile - - Local file path to save the query result. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - BlobContainerClient - - BlobContainerClient Object - - Azure.Storage.Blobs.BlobContainerClient - - Azure.Storage.Blobs.BlobContainerClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputTextConfiguration - - The configuration used to handled the query input text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - OutputTextConfiguration - - The configuration used to handled the query output text. Create configuration object the with New-AzStorageBlobQueryConfig. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - None - - - PassThru - - Return whether the specified blob is successfully queried. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - QueryString - - Query string, see more details in: https://learn.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference - - System.String - - System.String - - - None - - - ResultFile - - Local file path to save the query result. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - Azure.Storage.Blobs.BlobContainerClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ------------------- Example 1: Query a blob ------------------- - $inputconfig = New-AzStorageBlobQueryConfig -AsCsv -HasHeader - -$outputconfig = New-AzStorageBlobQueryConfig -AsJson - -$queryString = "SELECT * FROM BlobStorage WHERE Name = 'a'" - -$result = Get-AzStorageBlobQueryResult -Container $containerName -Blob $blobName -QueryString $queryString -ResultFile "c:\resultfile.json" -InputTextConfiguration $inputconfig -OutputTextConfiguration $outputconfig -Context $ctx - -$result - -BytesScanned FailureCount BlobQueryError ------------- ------------ -------------- - 449 0 - - This command querys a blob succsssfully with input config as csv, and output config as json, and save the output to local file "c:\resultfile.json". - - - - - - --------------- Example 2: Query a blob snapshot --------------- - $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -SnapshotTime "2020-07-29T11:08:21.1097874Z" -Context $ctx - -$inputconfig = New-AzStorageBlobQueryConfig -AsCsv -ColumnSeparator "," -QuotationCharacter """" -EscapeCharacter "\" -RecordSeparator "`n" -HasHeader - -$outputconfig = New-AzStorageBlobQueryConfig -AsJson -RecordSeparator "`n" - -$queryString = "SELECT * FROM BlobStorage WHERE _1 LIKE '1%%'" - -$result = $blob | Get-AzStorageBlobQueryResult -QueryString $queryString -ResultFile $localFilePath -InputTextConfiguration $inputconfig -OutputTextConfiguration $outputconfig - -$result - -BytesScanned FailureCount BlobQueryError ------------- ------------ -------------- - 187064971 1 {ParseError} - - - -$result.BlobQueryError - -Name Description IsFatal Position ----- ----------- ------- -------- -ParseError Unexpected token '1' at [byte: 3077737]. Expecting token ','. True 7270632 - - This command first gets a blob object for blob snapshot, then queries the blob snapshot and show the result include query error. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/get-azstorageblobqueryresult - - - - - - Get-AzStorageBlobTag - Get - AzStorageBlobTag - - Get blob tags of a specific blob. - - - - The Get-AzStorageBlobTag gets blob tags of a specific blob. - - - - Get-AzStorageBlobTag - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobTag - - Blob - - Blob name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - CloudBlobContainer Object - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageBlobTag - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - CloudBlobContainer Object - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Collections.Hashtable - - - - - - - - - - - - - - --------- Example 1: Get blob tags on a specific blob --------- - Get-AzStorageBlobTag -Container "containername" -Blob testblob - -Name Value ----- ----- -tag1 value1 -tag2 value2 - - This command gets blob tags on a specific blob. - - - - - - Example 2: Get blob tags on a specific blob with tag condition - Get-AzStorageBlobTag -Container "containername" -Blob testblob -TagCondition """tag1""='value1'" - -Name Value ----- ----- -tag1 value1 -tag2 value2 - - This command gets blob tags on a specific blob with tag condition. The cmdlet will only success when the blob contains a tag with name "tag1" and value "value1", else the cmdlet will fail with error code 412. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageblobtag - - - - - - Get-AzStorageContainer - Get - AzStorageContainer - - Lists the storage containers. - - - - The Get-AzStorageContainer cmdlet lists the storage containers associated with the storage account in Azure. - - - - Get-AzStorageContainer - - Name - - Specifies the container name. If container name is empty, the cmdlet lists all the containers. Otherwise, it lists all containers that match the specified name or the regular name pattern. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. The container permissions won't be retrieved when you use a storage context created from SAS Token, because query container permissions requires Storage account key permission. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted containers, by default list containers won't include deleted containers - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - Get-AzStorageContainer - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. The container permissions won't be retrieved when you use a storage context created from SAS Token, because query container permissions requires Storage account key permission. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted containers, by default list containers won't include deleted containers - - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Prefix - - Specifies a prefix used in the name of the container or containers you want to get. You can use this to find all containers that start with the same string, such as "my" or "test". - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. The container permissions won't be retrieved when you use a storage context created from SAS Token, because query container permissions requires Storage account key permission. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Specifies a continuation token for the blob list. - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - Microsoft.Azure.Storage.Blob.BlobContinuationToken - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted containers, by default list containers won't include deleted containers - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - MaxCount - - Specifies the maximum number of objects that this cmdlet returns. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Name - - Specifies the container name. If container name is empty, the cmdlet lists all the containers. Otherwise, it lists all containers that match the specified name or the regular name pattern. - - System.String - - System.String - - - None - - - Prefix - - Specifies a prefix used in the name of the container or containers you want to get. You can use this to find all containers that start with the same string, such as "my" or "test". - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer - - - - - - - - - - - - - - -------- Example 1: Get Azure Storage container by name -------- - Get-AzStorageContainer -Name container* - - This example uses a wildcard character to return a list of all containers with a name that starts with container. - - - - - - Example 2: Get Azure Storage container by container name prefix - Get-AzStorageContainer -Prefix "container" - - This example uses the Prefix parameter to return a list of all containers with a name that starts with container. - - - - - - Example 3: List Azure Storage container, include deleted containers - $containers = Get-AzStorageContainer -IncludeDeleted -Context $ctx - -$containers - - Storage Account Name: storageaccountname - -Name PublicAccess LastModified IsDeleted VersionId ----- ------------ ------------ --------- --------- -testcon Off 8/28/2020 10:18:13 AM +00:00 -testcon2 9/4/2020 12:52:37 PM +00:00 True 01D67D248986B6DA - -$c[1].BlobContainerProperties - -LastModified : 9/4/2020 12:52:37 PM +00:00 -LeaseStatus : Unlocked -LeaseState : Expired -LeaseDuration : -PublicAccess : -HasImmutabilityPolicy : False -HasLegalHold : False -DefaultEncryptionScope : $account-encryption-key -PreventEncryptionScopeOverride : False -DeletedOn : 9/8/2020 4:29:59 AM +00:00 -RemainingRetentionDays : 299 -ETag : "0x8D850D167059285" -Metadata : {} - - This example lists all containers of a storage account, include deleted containers. Then show the deleted container properties, include : DeletedOn, RemainingRetentionDays. Deleted containers will only exist after enabled Container softdelete with Enable-AzStorageBlobDeleteRetentionPolicy. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragecontainer - - - New-AzStorageContainer - - - - Remove-AzStorageContainer - - - - Set-AzStorageContainerAcl - - - - - - - Get-AzStorageContainerStoredAccessPolicy - Get - AzStorageContainerStoredAccessPolicy - - Gets the stored access policy or policies for an Azure storage container. - - - - The Get-AzStorageContainerStoredAccessPolicy cmdlet lists the stored access policy or policies for an Azure storage container. - - - - Get-AzStorageContainerStoredAccessPolicy - - Container - - Specifies the name of your Azure storage container. - - System.String - - System.String - - - None - - - Policy - - Specifies the Azure stored access policy. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of your Azure storage container. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Specifies the Azure stored access policy. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.Blob.SharedAccessBlobPolicy - - - - - - - - - - - - - - - Example 1: Get a stored access policy in a storage container - - Get-AzStorageContainerStoredAccessPolicy -Container "Container07" -Policy "Policy22" - - This command gets the access policy named Policy22 in the storage container named Container07. - - - - - - Example 2: Get all the stored access policies in a storage container - Get-AzStorageContainerStoredAccessPolicy -Container "Container07" - - This command gets all access policies in the storage container named Container07. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragecontainerstoredaccesspolicy - - - New-AzStorageContainerStoredAccessPolicy - - - - Remove-AzStorageContainerStoredAccessPolicy - - - - Set-AzStorageContainerStoredAccessPolicy - - - - - - - Get-AzStorageCORSRule - Get - AzStorageCORSRule - - Gets CORS rules for a Storage service type. - - - - The Get-AzStorageCORSRule cmdlet gets Cross-Origin Resource Sharing (CORS) rules for an Azure Storage service type. - - - - Get-AzStorageCORSRule - - ServiceType - - Specifies the Azure Storage service type for which this cmdlet gets CORS rules. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServiceType - - Specifies the Azure Storage service type for which this cmdlet gets CORS rules. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule - - - - - - - - - - - - - - ---------- Example 1: Get CORS rules of blob service ---------- - Get-AzStorageCORSRule -ServiceType Blob - - This command gets the CORS rules for the Blob service type. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragecorsrule - - - Remove-AzStorageCORSRule - - - - Set-AzStorageCORSRule - - - - - - - Get-AzStorageFile - Get - AzStorageFile - - Lists directories and files for a path. - - - - The Get-AzStorageFile cmdlet lists directories and files for the share or directory that you specify. Specify the Path parameter to get an instance of a directory or file in the specified path. This cmdlet returns AzureStorageFile and AzureStorageDirectory objects. You can use the IsDirectory property to distinguish between folders and files. - - - - Get-AzStorageFile - - ShareName - - Specifies the name of the file share. This cmdlet gets a file or directory from the file share that this parameter specifies. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a folder. If you omit the Path parameter, Get-AzStorageFile lists the directories and files in the specified file share or directory. If you include the Path parameter, Get-AzStorageFile returns an instance of a directory or file in the specified path. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client side time-out interval, in seconds, for one service request. If the previous call fails within the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help mitigate network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a Storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - ExcludeExtendedInfo - - Not include extended file info like timestamps, ETag, attributes, permissionKey in list file and Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service-side timeout interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the Storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - Get-AzStorageFile - - ShareClient - - ShareClient object indicated the share where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Specifies the path of a folder. If you omit the Path parameter, Get-AzStorageFile lists the directories and files in the specified file share or directory. If you include the Path parameter, Get-AzStorageFile returns an instance of a directory or file in the specified path. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client side time-out interval, in seconds, for one service request. If the previous call fails within the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help mitigate network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a Storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExcludeExtendedInfo - - Not include extended file info like timestamps, ETag, attributes, permissionKey in list file and Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service-side timeout interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the Storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - Get-AzStorageFile - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Specifies the path of a folder. If you omit the Path parameter, Get-AzStorageFile lists the directories and files in the specified file share or directory. If you include the Path parameter, Get-AzStorageFile returns an instance of a directory or file in the specified path. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client side time-out interval, in seconds, for one service request. If the previous call fails within the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help mitigate network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a Storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExcludeExtendedInfo - - Not include extended file info like timestamps, ETag, attributes, permissionKey in list file and Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service-side timeout interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the Storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client side time-out interval, in seconds, for one service request. If the previous call fails within the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help mitigate network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a Storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ExcludeExtendedInfo - - Not include extended file info like timestamps, ETag, attributes, permissionKey in list file and Directory. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of a folder. If you omit the Path parameter, Get-AzStorageFile lists the directories and files in the specified file share or directory. If you include the Path parameter, Get-AzStorageFile returns an instance of a directory or file in the specified path. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the service-side timeout interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the Storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareName - - Specifies the name of the file share. This cmdlet gets a file or directory from the file share that this parameter specifies. - - System.String - - System.String - - - None - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - - - - - - - - - - - - - ------------ Example 1: List directories in a share ------------ - Get-AzStorageFile -ShareName "ContosoShare06" | Where-Object {$_.GetType().Name -eq "AzureStorageFileDirectory"} - - This command lists only the directories in the share ContosoShare06. It first retrieves both files and directories, passes them to the where operator by using the pipeline operator, then discards any objects whose type is not "AzureStorageFileDirectory". - - - - - - --------------- Example 2: List a File Directory --------------- - Get-AzStorageFile -ShareName "ContosoShare06" -Path "ContosoWorkingFolder" | Get-AzStorageFile - - This command lists the files and folders in the directory ContosoWorkingFolder under the share ContosoShare06. It first gets the directory instance, and then pipelines it to the Get-AzStorageFile cmdlet to list the directory. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragefile - - - Get-AzStorageFileContent - - - - New-AzStorageDirectory - - - - Remove-AzStorageDirectory - - - - Remove-AzStorageFile - - - - Set-AzStorageFileContent - - - - - - - Get-AzStorageFileContent - Get - AzStorageFileContent - - Downloads the contents of a file. - - - - The Get-AzStorageFileContent cmdlet downloads the contents of a file, and then saves it to a destination that you specify. This cmdlet does not return the contents of the file. - - - - Get-AzStorageFileContent - - ShareName - - Specifies the name of the file share. This cmdlet downloads the contents of the file in the share this parameter specifies. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a file. This cmdlet gets the contents the file that this parameter specifies. If the file does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Destination - - Specifies the destination path. This cmdlet downloads the file contents to the location that this parameter specifies. If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it downloads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageFileContent - - ShareClient - - ShareClient object indicated the share where the file would be downloaded. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Specifies the path of a file. This cmdlet gets the contents the file that this parameter specifies. If the file does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Destination - - Specifies the destination path. This cmdlet downloads the file contents to the location that this parameter specifies. If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it downloads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageFileContent - - ShareDirectoryClient - - ShareDirectoryClient object indicated the cloud directory where the file would be downloaded. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Specifies the path of a file. This cmdlet gets the contents the file that this parameter specifies. If the file does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Destination - - Specifies the destination path. This cmdlet downloads the file contents to the location that this parameter specifies. If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it downloads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageFileContent - - ShareFileClient - - ShareFileClient object indicated the cloud file to be downloaded. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - Destination - - Specifies the destination path. This cmdlet downloads the file contents to the location that this parameter specifies. If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it downloads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - CheckMd5 - - Specifies whether to check the Md5 sum for the downloaded file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Destination - - Specifies the destination path. This cmdlet downloads the file contents to the location that this parameter specifies. If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - System.String - - System.String - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - If you specify the path of a file that does not exist, this cmdlet creates that file, and saves the contents in the new file. If you specify a path of a file that already exists and you specify the Force parameter, the cmdlet overwrites the file. If you specify a path of an existing file and you do not specify Force , the cmdlet prompts you before it continues. If you specify the path of a folder, this cmdlet attempts to create a file that has the name of the Azure storage file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it downloads. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of a file. This cmdlet gets the contents the file that this parameter specifies. If the file does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the file would be downloaded. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the cloud directory where the file would be downloaded. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareFileClient - - ShareFileClient object indicated the cloud file to be downloaded. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Specifies the name of the file share. This cmdlet downloads the contents of the file in the share this parameter specifies. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - - - - - - - - - - - - - ----------- Example 1: Download a file from a folder ----------- - Get-AzStorageFileContent -ShareName "ContosoShare06" -Path "ContosoWorkingFolder/CurrentDataFile" - - This command downloads a file that is named CurrentDataFile in the folder ContosoWorkingFolder from the file share ContosoShare06 to current folder. - - - - - - ---- Example 2: Downloads the files under sample file share ---- - Get-AzStorageFile -ShareName sample | Where-Object {$_.GetType().Name -eq "AzureStorageFile"} | Get-AzStorageFileContent - - This example downloads the files under sample file share - - - - - - Example 3: Download an Azure file to a local file, and perserve the Azure File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in the local file. - Get-AzStorageFileContent -ShareName sample -Path "dir1/file1" -Destination $localFilePath -PreserveSMBAttribute - - This example downloads an Azure file to a local file, and perserves the Azure File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in the local file. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragefilecontent - - - Get-AzStorageFile - - - - Set-AzStorageFileContent - - - - - - - Get-AzStorageFileCopyState - Get - AzStorageFileCopyState - - Gets the state of a copy operation. - - - - The Get-AzStorageFileCopyState cmdlet gets the state of an Azure Storage file copy operation. It should run on the copy destination file. - - - - Get-AzStorageFileCopyState - - ShareName - - Specifies the name of a share. - - System.String - - System.String - - - None - - - FilePath - - Specifies the path of the file relative to an Azure Storage share. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - - System.Management.Automation.SwitchParameter - - - False - - - - Get-AzStorageFileCopyState - - ShareFileClient - - ShareFileClient object indicated the file to get copy status. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - FilePath - - Specifies the path of the file relative to an Azure Storage share. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareFileClient - - ShareFileClient object indicated the file to get copy status. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Specifies the name of a share. - - System.String - - System.String - - - None - - - WaitForComplete - - Indicates that this cmdlet waits for the copy to finish. If you do not specify this parameter, this cmdlet returns a result immediately. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Common.PSCopyState - - - - - - - - - - - - - - ---------- Example 1: Get the copy state by file name ---------- - Get-AzStorageFileCopyState -ShareName "ContosoShare" -FilePath "ContosoFile" - - This command gets the state of the copy operation for a file that has the specified name. - - - - - - -- Example 2: Start Copy and pipeline to get the copy status -- - $destfile = Start-AzStorageFileCopy -SrcShareName "contososhare" -SrcFilePath "contosofile" -DestShareName "contososhare2" -destfilepath "contosofile_copy" - -$destfile | Get-AzStorageFileCopyState - - The first command starts copy file "contosofile" to "contosofile_copy", and output the destiantion file object. The second command pipeline the destiantion file object to Get-AzStorageFileCopyState, to get file copy state. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragefilecopystate - - - Get-AzStorageFile - - - - New-AzStorageContext - - - - Start-AzStorageFileCopy - - - - Stop-AzStorageFileCopy - - - - - - - Get-AzStorageFileHandle - Get - AzStorageFileHandle - - Lists file handles of a file share, a file directory or a file. - - - - The Get-AzStorageFileHandle cmdlet lists file handles of a file share, or file directory or a file. - - - - Get-AzStorageFileHandle - - ShareName - - Name of the file share where the files/directories would be listed. - - System.String - - System.String - - - None - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - IncludeTotalCount - - Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns 'Unknown total count'. Currently, this parameter does nothing. - - - System.Management.Automation.SwitchParameter - - - False - - - Skip - - Ignores the first 'n' objects and then gets the remaining objects. - - System.UInt64 - - System.UInt64 - - - None - - - First - - Gets only the first 'n' objects. - - System.UInt64 - - System.UInt64 - - - None - - - - Get-AzStorageFileHandle - - ShareClient - - ShareClient object indicated the share where the files/directories would list File Handles - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - IncludeTotalCount - - Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns 'Unknown total count'. Currently, this parameter does nothing. - - - System.Management.Automation.SwitchParameter - - - False - - - Skip - - Ignores the first 'n' objects and then gets the remaining objects. - - System.UInt64 - - System.UInt64 - - - None - - - First - - Gets only the first 'n' objects. - - System.UInt64 - - System.UInt64 - - - None - - - - Get-AzStorageFileHandle - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the files/directories would list File Handles - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - IncludeTotalCount - - Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns 'Unknown total count'. Currently, this parameter does nothing. - - - System.Management.Automation.SwitchParameter - - - False - - - Skip - - Ignores the first 'n' objects and then gets the remaining objects. - - System.UInt64 - - System.UInt64 - - - None - - - First - - Gets only the first 'n' objects. - - System.UInt64 - - System.UInt64 - - - None - - - - Get-AzStorageFileHandle - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Recursive - - List handles Recursively. Only works on File Directory. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareFileClient - - ShareFileClient object indicated the file to list File Handles. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - IncludeTotalCount - - Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns 'Unknown total count'. Currently, this parameter does nothing. - - - System.Management.Automation.SwitchParameter - - - False - - - Skip - - Ignores the first 'n' objects and then gets the remaining objects. - - System.UInt64 - - System.UInt64 - - - None - - - First - - Gets only the first 'n' objects. - - System.UInt64 - - System.UInt64 - - - None - - - - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Path to an existing file/directory. - - System.String - - System.String - - - None - - - Recursive - - List handles Recursively. Only works on File Directory. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the files/directories would list File Handles - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the files/directories would list File Handles - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareFileClient - - ShareFileClient object indicated the file to list File Handles. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Name of the file share where the files/directories would be listed. - - System.String - - System.String - - - None - - - IncludeTotalCount - - Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns 'Unknown total count'. Currently, this parameter does nothing. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Skip - - Ignores the first 'n' objects and then gets the remaining objects. - - System.UInt64 - - System.UInt64 - - - None - - - First - - Gets only the first 'n' objects. - - System.UInt64 - - System.UInt64 - - - None - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - - - - - - - - - - - - - Example 1: List all file handles on a file share recursively, and sort by ClientIp and OpenTime - Get-AzStorageFileHandle -ShareName "mysharename" -Recursive | Sort-Object ClientIP,OpenTime - -HandleId Path ClientIp ClientPort OpenTime LastReconnectTime FileId ParentId SessionId ClientName --------- ---- -------- ---------- -------- ----------------- ------ -------- --------- ---------- -28506980357 104.46.105.229 49805 2019-07-29 08:37:36Z 0 0 9297571480349046273 myclientvm -28506980537 dir1 104.46.105.229 49805 2019-07-30 09:28:48Z 10376363910205800448 0 9297571480349046273 myclientvm -28506980538 dir1 104.46.105.229 49805 2019-07-30 09:28:48Z 10376363910205800448 0 9297571480349046273 myclientvm -28582543365 104.46.119.170 51675 2019-07-30 09:29:32Z 0 0 9477733061320772929 myclientvm -28582543375 dir1 104.46.119.170 51675 2019-07-30 09:29:38Z 10376363910205800448 0 9477733061320772929 myclientvm -28582543376 dir1 104.46.119.170 51675 2019-07-30 09:29:38Z 10376363910205800448 0 9477733061320772929 myclientvm - - This command lists file handles on a file share, and sort the output by ClientIp, then by OpenTime. - - - - - - Example 2: List first 2 file handles on a file directory recursively - Get-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2' -Recursive -First 2 - -HandleId Path ClientIp ClientPort OpenTime LastReconnectTime FileId ParentId SessionId ClientName --------- ---- -------- ---------- -------- ----------------- ------ -------- --------- ---------- -24057151779 dir1/dir2 104.46.105.229 50861 2019-06-18 07:39:23Z 16140971433240035328 11529285414812647424 9549812641162070049 myclientvm -24057151780 dir1/dir2 104.46.105.229 50861 2019-06-18 07:39:23Z 16140971433240035328 11529285414812647424 9549812641162070049 myclientvm - - This command lists first 2 file handles on a file directory recursively . - - - - - - -- Example 3: List the 3rd to the 6th file handles on a file -- - Get-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2/test.txt' -skip 2 -First 4 - -HandleId Path ClientIp ClientPort OpenTime LastReconnectTime FileId ParentId SessionId ClientName --------- ---- -------- ---------- -------- ----------------- ------ -------- --------- ---------- -24055513248 dir1/dir2/test.txt 104.46.105.229 49817 2019-06-18 08:21:59Z 9223407221226864640 16140971433240035328 9338416139169958321 myclientvm -24055513249 dir1/dir2/test.txt 104.46.105.229 49817 2019-06-18 08:21:59Z 9223407221226864640 16140971433240035328 9338416139169958321 myclientvm -24055513252 dir1/dir2/test.txt 104.46.105.229 49964 2019-06-18 08:22:54Z 9223407221226864640 16140971433240035328 9338416138431762125 myclientvm -24055513253 dir1/dir2/test.txt 104.46.105.229 49964 2019-06-18 08:22:54Z 9223407221226864640 16140971433240035328 9338416138431762125 myclientvm - - This command lists the 3rd to the 6th file handles on a file. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragefilehandle - - - - - - Get-AzStorageQueue - Get - AzStorageQueue - - Lists storage queues. - - - - The Get-AzStorageQueue cmdlet lists storage queues associated with an Azure Storage account. - - - - Get-AzStorageQueue - - Name - - Specifies a name. If no name is specified, the cmdlet gets a list of all the queues. If a full or partial name is specified, the cmdlet gets all queues that match the name pattern. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageQueue - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Prefix - - Specifies a prefix used in the name of the queues you want to get. - - System.String - - System.String - - - None - - - - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies a name. If no name is specified, the cmdlet gets a list of all the queues. If a full or partial name is specified, the cmdlet gets all queues that match the name pattern. - - System.String - - System.String - - - None - - - Prefix - - Specifies a prefix used in the name of the queues you want to get. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue - - - - - - - - - - - - - - ----------- Example 1: List all Azure Storage queues ----------- - Get-AzStorageQueue - - This command gets a list of all storage queues for the current Storage account. - - - - - - Example 2: List Azure Storage queues using a wildcard character - Get-AzStorageQueue -Name queue* - - This command uses a wildcard character to get a list of storage queues whose name starts with queue. - - - - - - - Example 3: List Azure Storage queues using queue name prefix - - Get-AzStorageQueue -Prefix "queue" - - This example uses the Prefix parameter to get a list of storage queues whose name starts with queue. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragequeue - - - New-AzStorageQueue - - - - Remove-AzStorageQueue - - - - - - - Get-AzStorageQueueStoredAccessPolicy - Get - AzStorageQueueStoredAccessPolicy - - Gets the stored access policy or policies for an Azure storage queue. - - - - The Get-AzStorageQueueStoredAccessPolicy cmdlet lists the stored access policy or policies for an Azure storage queue. - - - - Get-AzStorageQueueStoredAccessPolicy - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies the Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token. - - System.String - - System.String - - - None - - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Management.Automation.PSObject - - - - - - - - - - - - - - ------ Example 1: Get a stored access policy in the queue ------ - Get-AzStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy12" - - This command gets the access policy named Policy12 in the storage queue named MyQueue. - - - - - - ---- Example 2: Get all stored access policies in the queue ---- - Get-AzStorageQueueStoredAccessPolicy -Queue "MyQueue" - - This command gets all stored access policies in the queue named MyQueue. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragequeuestoredaccesspolicy - - - New-AzStorageQueueStoredAccessPolicy - - - - Remove-AzStorageQueueStoredAccessPolicy - - - - Set-AzStorageQueueStoredAccessPolicy - - - - New-AzStorageContext - - - - - - - Get-AzStorageServiceLoggingProperty - Get - AzStorageServiceLoggingProperty - - Gets logging properties for Azure Storage services. - - - - The Get-AzStorageServiceLoggingProperty cmdlet gets logging properties for Azure Storage services. - - - - Get-AzStorageServiceLoggingProperty - - ServiceType - - Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServiceType - - Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.LoggingProperties - - - - - - - - - - - - - - ---- Example 1: Get logging properties for the Blob service ---- - Get-AzStorageServiceLoggingProperty -ServiceType Blob - - This command gets logging properties for blob storage. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageserviceloggingproperty - - - New-AzStorageContext - - - - Set-AzStorageServiceLoggingProperty - - - - - - - Get-AzStorageServiceMetricsProperty - Get - AzStorageServiceMetricsProperty - - Gets metrics properties for the Azure Storage service. - - - - The Get-AzStorageServiceMetricsProperty cmdlet gets metrics properties for the Azure Storage service. - - - - Get-AzStorageServiceMetricsProperty - - ServiceType - - Specifies the storage service type. This cmdlet gets the metrics properties for the type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - MetricsType - - Specifies a metrics type. This cmdlet gets the Azure Storage service metrics properties for the metrics type that this parameter specifies. The acceptable values for this parameter are: Hour and Minute. - - - Hour - Minute - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MetricsType - - Specifies a metrics type. This cmdlet gets the Azure Storage service metrics properties for the metrics type that this parameter specifies. The acceptable values for this parameter are: Hour and Minute. - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - - None - - - ServiceType - - Specifies the storage service type. This cmdlet gets the metrics properties for the type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.MetricsProperties - - - - - - - - - - - - - - ---- Example 1: Get metrics properties for the Blob service ---- - Get-AzStorageServiceMetricsProperty -ServiceType Blob -MetricsType Hour - - This command gets metrics properties for blob storage for the Hour metrics type. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageservicemetricsproperty - - - New-AzStorageContext - - - - Set-AzStorageServiceMetricsProperty - - - - - - - Get-AzStorageServiceProperty - Get - AzStorageServiceProperty - - Gets properties for Azure Storage services. - - - - The Get-AzStorageServiceProperty cmdlet gets the properties for Azure Storage services. - - - - Get-AzStorageServiceProperty - - ServiceType - - Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServiceType - - Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties - - - - - - - - - - - - - - Example 1: Get Azure Storage services property of the Blob service - Get-AzStorageServiceProperty -ServiceType Blob - -Logging.Version : 1.0 -Logging.LoggingOperations : None -Logging.RetentionDays : -HourMetrics.Version : 1.0 -HourMetrics.MetricsLevel : ServiceAndApi -HourMetrics.RetentionDays : 7 -MinuteMetrics.Version : 1.0 -MinuteMetrics.MetricsLevel : None -MinuteMetrics.RetentionDays : -DeleteRetentionPolicy.Enabled : True -DeleteRetentionPolicy.RetentionDays : 70 -Cors : -DefaultServiceVersion : 2017-07-29 - - This command gets DefaultServiceVersion property of the Blob service. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageserviceproperty - - - - - - Get-AzStorageShare - Get - AzStorageShare - - Gets a list of file shares. - - - - The Get-AzStorageShare cmdlet gets a list of file shares for a storage account. - - - - Get-AzStorageShare - - Prefix - - Specifies the prefix for file shares. This cmdlet gets file shares that match the prefix that this parameter specifies, or no file shares if no file shares match the specified prefix. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted shares, by default get share won't include deleted shares - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - Get-AzStorageShare - - Name - - Specifies the name of the file share. This cmdlet gets the file share that this parameter specifies, or nothing if you specify the name of a file share that does not exist. - - System.String - - System.String - - - None - - - SnapshotTime - - SnapshotTime of the file share snapshot to be received. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SkipGetProperty - - Specify this parameter to only generate a local share object, without get share properties from server. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - IncludeDeleted - - Include deleted shares, by default get share won't include deleted shares - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the file share. This cmdlet gets the file share that this parameter specifies, or nothing if you specify the name of a file share that does not exist. - - System.String - - System.String - - - None - - - Prefix - - Specifies the prefix for file shares. This cmdlet gets file shares that match the prefix that this parameter specifies, or no file shares if no file shares match the specified prefix. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SkipGetProperty - - Specify this parameter to only generate a local share object, without get share properties from server. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - SnapshotTime - - SnapshotTime of the file share snapshot to be received. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare - - - - - - - - - - - - - - ----------------- Example 1: Get a file share ----------------- - Get-AzStorageShare -Name "ContosoShare06" - - This command gets the file share named ContosoShare06. - - - - - - --- Example 2: Get all file shares that begin with a string --- - Get-AzStorageShare -Prefix "Contoso" - - This command gets all file shares that have names that begin with Contoso. - - - - - - ---- Example 3: Get all file shares in a specified context ---- - $Context = New-AzStorageContext -Local -Get-AzStorageShare -Context $Context - - The first command uses the New-AzStorageContext cmdlet to create a context by using the Local parameter, and then stores that context object in the $Context variable. The second command gets the file shares for the context object stored in $Context. - - - - - - Example 4: Get a file share snapshot with specific share name and SnapshotTime - Get-AzStorageShare -Name "ContosoShare06" -SnapshotTime "6/16/2017 9:48:41 AM +00:00" - - This command gets a file share snapshot with specific share name and SnapshotTime. - - - - - - Example 5: Get a file share object without fetch share properties with OAuth authentication. - New-AzStorageContext -StorageAccountName "myaccountname" -UseConnectedAccount -EnableFileBackupRequestIntent -$share = Get-AzStorageShare -Name "ContosoShare06" -SkipGetProperty -Context $ctx - - This command gets a file share snapshot without get share properties with OAuth authentication. Get share properties with OAuth authentication will fail since the API not support OAuth. So to get share object with OAuth authentication must skip fetch share properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstorageshare - - - New-AzStorageShare - - - - Remove-AzStorageShare - - - - - - - Get-AzStorageShareStoredAccessPolicy - Get - AzStorageShareStoredAccessPolicy - - Gets stored access policies for a Storage share. - - - - The Get-AzStorageShareStoredAccessPolicy cmdlet gets stored access policies for an Azure Storage share. To get a particular policy, specify it by name. - - - - Get-AzStorageShareStoredAccessPolicy - - ShareName - - Specifies the Storage share name for which this cmdlet gets policies. - - System.String - - System.String - - - None - - - Policy - - Specifies the name of the stored access policy that this cmdlet gets. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Specifies the name of the stored access policy that this cmdlet gets. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareName - - Specifies the Storage share name for which this cmdlet gets policies. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.File.SharedAccessFilePolicy - - - - - - - - - - - - - - ------- Example 1: Get a stored access policy in a share ------- - Get-AzStorageShareStoredAccessPolicy -ShareName "ContosoShare" -Policy "GeneralPolicy" - - This command gets a stored access policy named GeneralPolicy in ContosoShare. - - - - - - ---- Example 2: Get all the stored access policies in share ---- - Get-AzStorageShareStoredAccessPolicy -ShareName "ContosoShare" - - This command gets all stored access policies in ContosoShare. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragesharestoredaccesspolicy - - - New-AzStorageContext - - - - New-AzStorageShareStoredAccessPolicy - - - - Remove-AzStorageShareStoredAccessPolicy - - - - Set-AzStorageShareStoredAccessPolicy - - - - - - - Get-AzStorageTable - Get - AzStorageTable - - Lists the storage tables. - - - - The Get-AzStorageTable cmdlet lists the storage tables associated with the storage account in Azure. - - - - Get-AzStorageTable - - Name - - Specifies the table name. If the table name is empty, the cmdlet lists all the tables. Otherwise, it lists all tables that match the specified name or the regular name pattern. - - System.String - - System.String - - - None - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - Get-AzStorageTable - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Prefix - - Specifies a prefix used in the name of the table or tables you want to get. You can use this to find all tables that start with the same string, such as table. - - System.String - - System.String - - - None - - - - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the table name. If the table name is empty, the cmdlet lists all the tables. Otherwise, it lists all tables that match the specified name or the regular name pattern. - - System.String - - System.String - - - None - - - Prefix - - Specifies a prefix used in the name of the table or tables you want to get. You can use this to find all tables that start with the same string, such as table. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable - - - - - - - - - - - - - - ----------- Example 1: List all Azure Storage tables ----------- - Get-AzStorageTable - - This command gets all storage tables for a Storage account. - - - - - - Example 2: List Azure Storage tables using a wildcard character - Get-AzStorageTable -Name table* - - This command uses a wildcard character to get storage tables whose name starts with table. - - - - - - - Example 3: List Azure Storage tables using table name prefix - - Get-AzStorageTable -Prefix "table" - - This command uses the Prefix parameter to get storage tables whose name starts with table. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragetable - - - New-AzStorageTable - - - - Remove-AzStorageTable - - - - - - - Get-AzStorageTableStoredAccessPolicy - Get - AzStorageTableStoredAccessPolicy - - Gets the stored access policy or policies for an Azure storage table. - - - - The Get-AzStorageTableStoredAccessPolicy cmdlet lists the stored access policy or policies for an Azure storage table. - - - - Get-AzStorageTableStoredAccessPolicy - - Table - - Specifies the Azure storage table name. - - System.String - - System.String - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies the Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token. - - System.String - - System.String - - - None - - - Table - - Specifies the Azure storage table name. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Storage.Table.SharedAccessTablePolicy - - - - - - - - - - - - - - --- Example 1: Get a stored access policy in a storage table --- - Get-AzStorageTableStoredAccessPolicy -Table "Table02" -Policy "Policy50" - - This command gets the access policy named Policy50 in the storage table named Table02. - - - - - - - Example 2: Get all stored access policies in a storage table - - Get-AzStorageTableStoredAccessPolicy -Table "Table02" - - This command gets all access policies in the table named Table02. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/get-azstoragetablestoredaccesspolicy - - - New-AzStorageTableStoredAccessPolicy - - - - Remove-AzStorageTableStoredAccessPolicy - - - - Set-AzStorageTableStoredAccessPolicy - - - - New-AzStorageContext - - - - - - - Move-AzDataLakeGen2Item - Move - AzDataLakeGen2Item - - Move a file or directory to another a file or directory in same Storage account. - - - - The Move-AzDataLakeGen2Item cmdlet moves a a file or directory to another a file or directory in same Storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Move-AzDataLakeGen2Item - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be move from. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestFileSystem - - Dest FileSystem name - - System.String - - System.String - - - None - - - DestPath - - Dest Blob path - - System.String - - System.String - - - None - - - Force - - Force to over write the destination. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Move-AzDataLakeGen2Item - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestFileSystem - - Dest FileSystem name - - System.String - - System.String - - - None - - - DestPath - - Dest Blob path - - System.String - - System.String - - - None - - - Force - - Force to over write the destination. - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to move from. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestFileSystem - - Dest FileSystem name - - System.String - - System.String - - - None - - - DestPath - - Dest Blob path - - System.String - - System.String - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Force - - Force to over write the destination. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to move from. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - Path - - The path in the specified Filesystem that should be move from. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - ---------- Example 1: Move a fold in same Filesystem ---------- - Move-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/" -DestFileSystem "filesystem1" -DestPath "dir3/" - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir3 True 2020-03-13 13:07:34Z rwxrw-rw- $superuser $superuser - - This command move directory 'dir1' to directory 'dir3' in the same Filesystem. - - - - - - Example 2: Move a file by pipeline, to another Filesystem in the same Storage account without prompt - Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" | Move-AzDataLakeGen2Item -DestFileSystem "filesystem2" -DestPath "dir2/file2" -Force - -FileSystem Name: filesystem2 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir2/file2 False 1024 2020-03-23 09:57:33Z rwxrw-rw- $superuser $superuser - - This command move file 'dir1/file1' in 'filesystem1' to file 'dir2/file2' in 'filesystem2' in the same Storage account without prompt. - - - - - - ------------ Example 3: Move an item with Sas token ------------ - $sas = New-AzStorageContainerSASToken -Name $filesystemName -Permission rdw -Context $ctx - -$sasctx = New-AzStorageContext -StorageAccountName $ctx.StorageAccountName -SasToken $sas - -Move-AzDataLakeGen2Item -FileSystem $filesystemName -Path $itempath1 -DestFileSystem $filesystemName -DestPath "$($itempath2)$($sas)" -Context $sasctx - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir2/file1 False 1024 2021-03-23 09:57:33Z rwxrw-rw- $superuser $superuser - - This first command creates a Sas token with rdw permission, the second command creates a Storage context from the Sas token, the 3rd command moves an item with the Sas token. This example use same Sastoken with rdw permission on both source and destication, if use 2 SAS token for source and destication, source need permission rd, destication need permission w. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/move-azdatalakegen2item - - - - - - New-AzDataLakeGen2Item - New - AzDataLakeGen2Item - - Create a file or directory in a filesystem. - - - - The New-AzDataLakeGen2Item cmdlet creates a file or directory in a Filesystem in an Azure storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - New-AzDataLakeGen2Item - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be create. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Directory - - Indicates that this new item is a directory and not a file. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - If passed then new item is created without any prompt - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the created directory or file. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Permission - - Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. Symbolic (rwxrw-rw-) is supported. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set. - - System.String - - System.String - - - None - - - Property - - Specifies properties for the created directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. The supported properties for directory are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Umask - - When creating New Item and the parent directory does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p & ^u, where p is the permission and u is the umask. Symbolic (rwxrw-rw-) is supported. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzDataLakeGen2Item - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be create. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionContext - - Encryption context of the file. Encryption context is metadata that is not encrypted when stored on the file. The primary application of this field is to store non-encrypted data that can be used to derive the customer-provided key for a file. Not applicable for directories. - - System.String - - System.String - - - None - - - Force - - If passed then new item is created without any prompt - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the created directory or file. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Permission - - Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. Symbolic (rwxrw-rw-) is supported. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set. - - System.String - - System.String - - - None - - - Property - - Specifies properties for the created directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. The supported properties for directory are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Source - - Specify the local source file path which will be upload to a Datalake Gen2 file. - - System.String - - System.String - - - None - - - Umask - - When creating New Item and the parent directory does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p & ^u, where p is the permission and u is the umask. Symbolic (rwxrw-rw-) is supported. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Directory - - Indicates that this new item is a directory and not a file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EncryptionContext - - Encryption context of the file. Encryption context is metadata that is not encrypted when stored on the file. The primary application of this field is to store non-encrypted data that can be used to derive the customer-provided key for a file. Not applicable for directories. - - System.String - - System.String - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Force - - If passed then new item is created without any prompt - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the created directory or file. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Path - - The path in the specified Filesystem that should be create. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - Permission - - Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. Symbolic (rwxrw-rw-) is supported. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set. - - System.String - - System.String - - - None - - - Property - - Specifies properties for the created directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. The supported properties for directory are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Source - - Specify the local source file path which will be upload to a Datalake Gen2 file. - - System.String - - System.String - - - None - - - Umask - - When creating New Item and the parent directory does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p & ^u, where p is the permission and u is the umask. Symbolic (rwxrw-rw-) is supported. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - Example 1: Create a directory with specified permission, Umask, properties, and metadata - New-AzDataLakeGen2Item -FileSystem "testfilesystem" -Path "dir1/dir2/" -Directory -Permission rwxrwxrwT -Umask ---rw---- -Property @{"CacheControl" = "READ"; "ContentDisposition" = "True"} -Metadata @{"tag1" = "value1"; "tag2" = "value2" } - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/dir2 True 2020-03-23 09:15:56Z rwx---rwT $superuser $superuser - - This command creates a directory with specified Permission, Umask, properties, and metadata - - - - - - Example 2: Create(upload) a data lake file from a local source file, and the cmdlet runs in background - $task = New-AzDataLakeGen2Item -FileSystem "testfilesystem" -Path "dir1/dir2/file1" -Source "c:\sourcefile.txt" -Force -asjob -$task | Wait-Job -$task.Output - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/dir2/file1 False 14400000 2020-03-23 09:19:13Z rw-r----- $superuser $superuser - - This command creates(upload) a data lake file from a local source file, and the cmdlet runs in background. - - - - - - Example 3: Create(upload) a data lake file from a local source file and set its encryption context - $file = New-AzDataLakeGen2Item -FileSystem "testfilesystem" -Path "dir1/dir2/file1" -Source "c:\sourcefile.txt" -EncryptionContext "encryptioncontext" -$file.Properties.EncryptionContext - -encryptioncontext - - This command creates(upload) a data lake file from a local source file and sets its encryption context value to "encryptioncontext". - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azdatalakegen2item - - - - - - New-AzDataLakeGen2SasToken - New - AzDataLakeGen2SasToken - - Generates a SAS token for Azure DatalakeGen2 item. - - - - The New-AzDataLakeGen2SasToken cmdlet generates a Shared Access Signature (SAS) token for an Azure DatalakeGen2 item. - - - - New-AzDataLakeGen2SasToken - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Expiry Time - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - FullUri - - Display full uri with sas token - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - IP, or IP range ACL (access control list) that the request would be accepted by Azure Storage. - - System.String - - System.String - - - None - - - Path - - The path in the specified FileSystem that should be retrieved. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to get the root directory of the Filesystem. - - System.String - - System.String - - - None - - - Permission - - Permissions for a blob. Permissions can be any not-empty subset of "racwdlmeop". - - System.String - - System.String - - - None - - - Protocol - - Protocol can be used in the request with this SAS token. - - - None - HttpsAndHttp - Https - - System.Nullable`1[Azure.Storage.Sas.SasProtocol] - - System.Nullable`1[Azure.Storage.Sas.SasProtocol] - - - None - - - StartTime - - Start Time - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - - New-AzDataLakeGen2SasToken - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Expiry Time - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - FullUri - - Display full uri with sas token - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to remove. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - IPAddressOrRange - - IP, or IP range ACL (access control list) that the request would be accepted by Azure Storage. - - System.String - - System.String - - - None - - - Permission - - Permissions for a blob. Permissions can be any not-empty subset of "racwdlmeop". - - System.String - - System.String - - - None - - - Protocol - - Protocol can be used in the request with this SAS token. - - - None - HttpsAndHttp - Https - - System.Nullable`1[Azure.Storage.Sas.SasProtocol] - - System.Nullable`1[Azure.Storage.Sas.SasProtocol] - - - None - - - StartTime - - Start Time - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Expiry Time - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - FullUri - - Display full uri with sas token - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to remove. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - IPAddressOrRange - - IP, or IP range ACL (access control list) that the request would be accepted by Azure Storage. - - System.String - - System.String - - - None - - - Path - - The path in the specified FileSystem that should be retrieved. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to get the root directory of the Filesystem. - - System.String - - System.String - - - None - - - Permission - - Permissions for a blob. Permissions can be any not-empty subset of "racwdlmeop". - - System.String - - System.String - - - None - - - Protocol - - Protocol can be used in the request with this SAS token. - - System.Nullable`1[Azure.Storage.Sas.SasProtocol] - - System.Nullable`1[Azure.Storage.Sas.SasProtocol] - - - None - - - StartTime - - Start Time - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - - - - System.String - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - ----- Example 1: Generate a SAS token with full permission ----- - New-AzDataLakeGen2SasToken -FileSystem "filesystem1" -Path "dir1/dir2" -Permission racwdlmeop - - This example generates a DatalakeGen2 SAS token with full permission. - - - - - - Example 2: Generate a SAS token with specific StartTime, ExpireTime, Protocal, IPAddressOrRange, Encryption Scope, by pipeline a datalakegen2 item - Get-AzDataLakeGen2Item -FileSystem test -Path "testdir/dir2" | New-AzDataLakeGen2SasToken -Permission rw -Protocol Https -IPAddressOrRange 10.0.0.0-12.10.0.0 -StartTime (Get-Date) -ExpiryTime (Get-Date).AddDays(6) -EncryptionScope scopename - - This example generates a DatalakeGen2 SAS token by pipeline a datalake gen2 item, and with specific StartTime, ExpireTime, Protocal, IPAddressOrRange, Encryption Scope. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azdatalakegen2sastoken - - - - - - New-AzStorageAccountSASToken - New - AzStorageAccountSASToken - - Creates an account-level SAS token. - - - - The New-AzStorageAccountSASToken cmdlet creates an account-level shared access signature (SAS) token for an Azure Storage account. You can use the SAS token to delegate permissions for multiple services, or to delegate permissions for services not available with an object-level SAS token. An account SAS is secured using the storage account key. To create an account SAS, a client application must possess the account key. - - - - New-AzStorageAccountSASToken - - Context - - Specifies the Azure storage context. You can use the New-AzStorageContext cmdlet to get an AzureStorageContext object. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for Storage account. Permissions are valid only if they match the specified resource type. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). For more information about acceptable permission values, see Constructing an Account SAS http://go.microsoft.com/fwlink/?LinkId=799514 - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request made with the account SAS. The acceptable values for this parameter are: - HttpsOnly - - HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - ResourceType - - Specifies the resource types that are available with the SAS token. The acceptable values for this parameter are: - None - - Service - - Container - - Object - - - None - Service - Container - Object - - Microsoft.Azure.Storage.SharedAccessAccountResourceTypes - - Microsoft.Azure.Storage.SharedAccessAccountResourceTypes - - - None - - - Service - - Specifies the service. The acceptable values for this parameter are: - None - - Blob - - File - - Queue - - Table - - - None - Blob - File - Queue - Table - - Microsoft.Azure.Storage.SharedAccessAccountServices - - Microsoft.Azure.Storage.SharedAccessAccountServices - - - None - - - StartTime - - Specifies the time, as a DateTime object, at which the SAS becomes valid. To get a DateTime object, use the Get-Date cmdlet. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies the Azure storage context. You can use the New-AzStorageContext cmdlet to get an AzureStorageContext object. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for Storage account. Permissions are valid only if they match the specified resource type. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). For more information about acceptable permission values, see Constructing an Account SAS http://go.microsoft.com/fwlink/?LinkId=799514 - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request made with the account SAS. The acceptable values for this parameter are: - HttpsOnly - - HttpsOrHttp - The default value is HttpsOrHttp. - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - ResourceType - - Specifies the resource types that are available with the SAS token. The acceptable values for this parameter are: - None - - Service - - Container - - Object - - Microsoft.Azure.Storage.SharedAccessAccountResourceTypes - - Microsoft.Azure.Storage.SharedAccessAccountResourceTypes - - - None - - - Service - - Specifies the service. The acceptable values for this parameter are: - None - - Blob - - File - - Queue - - Table - - Microsoft.Azure.Storage.SharedAccessAccountServices - - Microsoft.Azure.Storage.SharedAccessAccountServices - - - None - - - StartTime - - Specifies the time, as a DateTime object, at which the SAS becomes valid. To get a DateTime object, use the Get-Date cmdlet. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Create an account-level SAS token with full permission - New-AzStorageAccountSASToken -Service Blob,File,Table,Queue -ResourceType Service,Container,Object -Permission "racwdlup" - - This command creates an account-level SAS token with full permission. - - - - - - Example 2: Create an account-level SAS token for a range of IP addresses and EncryptionScope - New-AzStorageAccountSASToken -Service Blob,File,Table,Queue -ResourceType Service,Container,Object -Permission "racwdlup" -Protocol HttpsOnly -IPAddressOrRange 168.1.5.60-168.1.5.70 -EncryptionScope scopename - - This command creates an account-level SAS token for HTTPS-only requests from the specified range of IP addresses, with a specific EncryptionScope. - - - - - - Example 3: Create an account-level SAS token valid for 24 hours - New-AzStorageAccountSASToken -Service Blob -ResourceType Service,Container,Object -Permission "rl" -ExpiryTime (Get-Date).AddDays(1) - - This command creates an read-only account-level SAS token that is valid for 24 hours. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageaccountsastoken - - - New-AzStorageBlobSASToken - - - - New-AzStorageContainerSASToken - - - - New-AzStorageFileSASToken - - - - New-AzStorageQueueSASToken - - - - New-AzStorageShareSASToken - - - - New-AzStorageTableSASToken - - - - - - - New-AzStorageBlobQueryConfig - New - AzStorageBlobQueryConfig - - Creates a blob query configuration object, which can be used in Get-AzStorageBlobQueryResult. - - - - The New-AzStorageBlobQueryConfig cmdlet creates a blob query configuration object, which can be used in Get-AzStorageBlobQueryResult. - - - - New-AzStorageBlobQueryConfig - - AsCsv - - Indicate to create a Blob Query Configuration for CSV. - - - System.Management.Automation.SwitchParameter - - - False - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ColumnSeparator - - Optional. The string used to separate columns. - - System.String - - System.String - - - None - - - EscapeCharacter - - Optional. The char used as an escape character. - - System.Nullable`1[System.Char] - - System.Nullable`1[System.Char] - - - None - - - HasHeader - - Optional. Indicate it represent the data has headers. - - - System.Management.Automation.SwitchParameter - - - False - - - QuotationCharacter - - Optional. The char used to quote a specific field. - - System.Char - - System.Char - - - None - - - RecordSeparator - - Optional. The string used to separate records. - - System.String - - System.String - - - None - - - - New-AzStorageBlobQueryConfig - - AsJson - - Indicate to create a Blob Query Configuration for Json. - - - System.Management.Automation.SwitchParameter - - - False - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - RecordSeparator - - Optional. The string used to separate records. - - System.String - - System.String - - - None - - - - - - AsCsv - - Indicate to create a Blob Query Configuration for CSV. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - AsJson - - Indicate to create a Blob Query Configuration for Json. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ColumnSeparator - - Optional. The string used to separate columns. - - System.String - - System.String - - - None - - - EscapeCharacter - - Optional. The char used as an escape character. - - System.Nullable`1[System.Char] - - System.Nullable`1[System.Char] - - - None - - - HasHeader - - Optional. Indicate it represent the data has headers. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - QuotationCharacter - - Optional. The char used to quote a specific field. - - System.Char - - System.Char - - - None - - - RecordSeparator - - Optional. The string used to separate records. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration - - - - - - - - - - - - - - -- Example 1: Create blob query configures , and query a blob -- - $inputconfig = New-AzStorageBlobQueryConfig -AsCsv -ColumnSeparator "," -QuotationCharacter """" -EscapeCharacter "\" -RecordSeparator "`n" -HasHeader - -$outputconfig = New-AzStorageBlobQueryConfig -AsJson -RecordSeparator "`n" - -$queryString = "SELECT * FROM BlobStorage WHERE Name = 'a'" - -$result = Get-AzStorageBlobQueryResult -Container $containerName -Blob $blobName -QueryString $queryString -ResultFile "c:\resultfile.json" -InputTextConfiguration $inputconfig -OutputTextConfiguration $outputconfig -Context $ctx - -$result - -BytesScanned FailureCount BlobQueryError ------------- ------------ -------------- - 449 0 - - This command first create input configuration object as csv, and output configuration object as json, then use the 2 configurations to query blob. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/Az.storage/new-azstorageblobqueryconfig - - - - - - New-AzStorageBlobSASToken - New - AzStorageBlobSASToken - - Generates a SAS token for an Azure storage blob. - - - - The New-AzStorageBlobSASToken cmdlet generates a Shared Access Signature (SAS) token for an Azure storage blob. - - - - New-AzStorageBlobSASToken - - Container - - Specifies the storage container name. - - System.String - - System.String - - - None - - - Blob - - Specifies the storage blob name. - - System.String - - System.String - - - None - - - Context - - Specifies the storage context. When the storage context is based on OAuth authentication, will generates a User Identity blob SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the shared access signature expires. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for a storage blob. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageBlobSASToken - - Container - - Specifies the storage container name. - - System.String - - System.String - - - None - - - Blob - - Specifies the storage blob name. - - System.String - - System.String - - - None - - - Context - - Specifies the storage context. When the storage context is based on OAuth authentication, will generates a User Identity blob SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the shared access signature expires. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure Stored Access Policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageBlobSASToken - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - CloudBlob - - Specifies the CloudBlob object. To obtain a CloudBlob object, use the Get-AzStorageBlob (./Get-AzStorageBlob.md)cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - Context - - Specifies the storage context. When the storage context is based on OAuth authentication, will generates a User Identity blob SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the shared access signature expires. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure Stored Access Policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageBlobSASToken - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - CloudBlob - - Specifies the CloudBlob object. To obtain a CloudBlob object, use the Get-AzStorageBlob (./Get-AzStorageBlob.md)cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - Context - - Specifies the storage context. When the storage context is based on OAuth authentication, will generates a User Identity blob SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the shared access signature expires. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for a storage blob. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Specifies the storage blob name. - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - CloudBlob - - Specifies the CloudBlob object. To obtain a CloudBlob object, use the Get-AzStorageBlob (./Get-AzStorageBlob.md)cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - Container - - Specifies the storage container name. - - System.String - - System.String - - - None - - - Context - - Specifies the storage context. When the storage context is based on OAuth authentication, will generates a User Identity blob SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the shared access signature expires. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for a storage blob. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure Stored Access Policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Generate a blob SAS token with full blob permission - New-AzStorageBlobSASToken -Container "ContainerName" -Blob "BlobName" -Permission rwd - - This example generates a blob SAS token with full blob permission. - - - - - - ----- Example 2: Generate a blob SAS token with life time ----- - $StartTime = Get-Date -$EndTime = $startTime.AddHours(2.0) -New-AzStorageBlobSASToken -Container "ContainerName" -Blob "BlobName" -Permission rwd -StartTime $StartTime -ExpiryTime $EndTime - - This example generates a blob SAS token with life time. - - - - - - Example 3: Generate a User Identity SAS token with storage context based on OAuth authentication - $ctx = New-AzStorageContext -StorageAccountName $accountName -UseConnectedAccount -$StartTime = Get-Date -$EndTime = $startTime.AddDays(6) -New-AzStorageBlobSASToken -Container "ContainerName" -Blob "BlobName" -Permission rwd -StartTime $StartTime -ExpiryTime $EndTime -Context $ctx - - This example generates a User Identity blob SAS token with storage context based on OAuth authentication - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageblobsastoken - - - Get-AzStorageBlob - - - - New-AzStorageContainerSASToken - - - - - - - New-AzStorageContainer - New - AzStorageContainer - - Creates an Azure storage container. - - - - The New-AzStorageContainer cmdlet creates an Azure storage container. - - - - New-AzStorageContainer - - Name - - Specifies a name for the new container. - - System.String - - System.String - - - None - - - Permission - - Specifies the level of public access to this container. By default, the container and any blobs in it can be accessed only by the owner of the storage account. To grant anonymous users read permissions to a container and its blobs, you can set the container permissions to enable public access. Anonymous users can read blobs in a publicly available container without authenticating the request. The acceptable values for this parameter are: - Container. Provides full read access to a container and its blobs. Clients can enumerate blobs in the container through anonymous request, but cannot enumerate containers in the storage account. - Blob. Provides read access to blob data throughout a container through anonymous request, but does not provide access to container data. Clients cannot enumerate blobs in the container by using anonymous request. - Off. Which restricts access to only the storage account owner. - - - Off - Container - Blob - Unknown - - System.Nullable`1[Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType] - - System.Nullable`1[Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType] - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies a context for the new container. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultEncryptionScope - - Default the container to use specified encryption scope for all writes. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PreventEncryptionScopeOverride - - Block override of encryption scope from the container default. - - System.Boolean - - System.Boolean - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies a context for the new container. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultEncryptionScope - - Default the container to use specified encryption scope for all writes. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies a name for the new container. - - System.String - - System.String - - - None - - - Permission - - Specifies the level of public access to this container. By default, the container and any blobs in it can be accessed only by the owner of the storage account. To grant anonymous users read permissions to a container and its blobs, you can set the container permissions to enable public access. Anonymous users can read blobs in a publicly available container without authenticating the request. The acceptable values for this parameter are: - Container. Provides full read access to a container and its blobs. Clients can enumerate blobs in the container through anonymous request, but cannot enumerate containers in the storage account. - Blob. Provides read access to blob data throughout a container through anonymous request, but does not provide access to container data. Clients cannot enumerate blobs in the container by using anonymous request. - Off. Which restricts access to only the storage account owner. - - System.Nullable`1[Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType] - - System.Nullable`1[Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType] - - - None - - - PreventEncryptionScopeOverride - - Block override of encryption scope from the container default. - - System.Boolean - - System.Boolean - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer - - - - - - - - - - - - - - --------- Example 1: Create an Azure storage container --------- - New-AzStorageContainer -Name "ContainerName" -Permission Off - - This command creates a storage container. - - - - - - ----- Example 2: Create multiple Azure storage containers ----- - "container1 container2 container3".split() | New-AzStorageContainer -Permission Container - - This example creates multiple storage containers. It uses the Split method of the .NET String class and then passes the names on the pipeline. - - - - - - Example 3: Create an Azure storage container with Encryption Scope - $container = New-AzStorageContainer -Name "mycontainer" -DefaultEncryptionScope "myencryptscope" -PreventEncryptionScopeOverride $true - -$container.BlobContainerProperties.DefaultEncryptionScope -myencryptscope - -$container.BlobContainerProperties.PreventEncryptionScopeOverride -True - - This command creates a storage container, with default Encryption Scope as myencryptscope, and prevert blob upload with different Encryption Scope to this container. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragecontainer - - - Get-AzStorageContainer - - - - Remove-AzStorageContainer - - - - Set-AzStorageContainerAcl - - - - - - - New-AzStorageContainerSASToken - New - AzStorageContainerSASToken - - Generates an SAS token for an Azure storage container. - - - - The New-AzStorageContainerSASToken cmdlet generates a Shared Access Signature (SAS) token for an Azure storage container. - - - - New-AzStorageContainerSASToken - - Name - - Specifies an Azure storage container name. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. You can create it by using the New-AzStorageContext cmdlet. When the storage context is based on OAuth authentication, will generates a User Identity container SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. If the user sets the start time but not the expiry time, the expiry time is set to the start time plus one hour. If neither the start time nor the expiry time is specified, the expiry time is set to the current time plus one hour. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies permissions for a storage container. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). The permissions that are supported for container resource type are described here (https://learn.microsoft.com/rest/api/storageservices/create-service-sas#permissions-for-a-directory-container-or-blob). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageContainerSASToken - - Name - - Specifies an Azure storage container name. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. You can create it by using the New-AzStorageContext cmdlet. When the storage context is based on OAuth authentication, will generates a User Identity container SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. If the user sets the start time but not the expiry time, the expiry time is set to the start time plus one hour. If neither the start time nor the expiry time is specified, the expiry time is set to the current time plus one hour. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure Stored Access Policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies an Azure storage context. You can create it by using the New-AzStorageContext cmdlet. When the storage context is based on OAuth authentication, will generates a User Identity container SAS token. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to use when sending requests authorized with this SAS URI. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. If the user sets the start time but not the expiry time, the expiry time is set to the start time plus one hour. If neither the start time nor the expiry time is specified, the expiry time is set to the current time plus one hour. When the storage context is based on OAuth authentication, the expire time must be in 7 days from current time, and must not be earlier than current time. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Name - - Specifies an Azure storage container name. - - System.String - - System.String - - - None - - - Permission - - Specifies permissions for a storage container. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). The permissions that are supported for container resource type are described here (https://learn.microsoft.com/rest/api/storageservices/create-service-sas#permissions-for-a-directory-container-or-blob). - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure Stored Access Policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Storage.SharedAccessProtocol] - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Generate a container SAS token with full container permission - New-AzStorageContainerSASToken -Name "Test" -Permission rwdl - - This example generates a container SAS token with full container permission. - - - - - - - Example 2: Generate multiple container SAS token by pipeline - - Get-AzStorageContainer -Container test* | New-AzStorageContainerSASToken -Permission rwdl - - This example generates multiple container SAS tokens by using the pipeline. - - - - - - Example 3: Generate container SAS token with shared access policy - New-AzStorageContainerSASToken -Name "Test" -Policy "PolicyName" - - This example generates a container SAS token with shared access policy. - - - - - - Example 3: Generate a User Identity container SAS token with storage context based on OAuth authentication - $ctx = New-AzStorageContext -StorageAccountName $accountName -UseConnectedAccount -$StartTime = Get-Date -$EndTime = $startTime.AddDays(6) -New-AzStorageContainerSASToken -Name "ContainerName" -Permission rwd -StartTime $StartTime -ExpiryTime $EndTime -context $ctx - - This example generates a User Identity container SAS token with storage context based on OAuth authentication - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragecontainersastoken - - - New-AzStorageBlobSASToken - - - - - - - New-AzStorageContainerStoredAccessPolicy - New - AzStorageContainerStoredAccessPolicy - - Creates a stored access policy for an Azure storage container. - - - - The New-AzStorageContainerStoredAccessPolicy cmdlet creates a stored access policy for an Azure storage container. - - - - New-AzStorageContainerStoredAccessPolicy - - Container - - Specifies the Azure storage container name. - - System.String - - System.String - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this SAS token. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the container. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the Azure storage container name. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the container. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this SAS token. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Create a stored access policy in a storage container - New-AzStorageContainerStoredAccessPolicy -Container "MyContainer" -Policy "Policy01" - - This command creates an access policy named Policy01 in the storage container named MyContainer. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragecontainerstoredaccesspolicy - - - Get-AzStorageContainerStoredAccessPolicy - - - - New-AzStorageContext - - - - Remove-AzStorageContainerStoredAccessPolicy - - - - Set-AzStorageContainerStoredAccessPolicy - - - - - - - New-AzStorageContext - New - AzStorageContext - - Creates an Azure Storage context. - - - - The New-AzStorageContext cmdlet creates an Azure Storage context. The default Authentication of a Storage Context is OAuth (Microsoft Entra ID), if only input Storage account name. See details of authentication of the Storage Service in https://learn.microsoft.com/rest/api/storageservices/authorization-for-the-azure-storage-services. - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - Anonymous - - Indicates that this cmdlet creates an Azure Storage context for anonymous logon. - - - System.Management.Automation.SwitchParameter - - - False - - - Endpoint - - Specifies the endpoint for the Azure Storage context. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - Anonymous - - Indicates that this cmdlet creates an Azure Storage context for anonymous logon. - - - System.Management.Automation.SwitchParameter - - - False - - - Environment - - Specifies the Azure environment. The acceptable values for this parameter are: AzureCloud and AzureChinaCloud. For more information, type `Get-Help Get-AzEnvironment`. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - - New-AzStorageContext - - Anonymous - - Indicates that this cmdlet creates an Azure Storage context for anonymous logon. - - - System.Management.Automation.SwitchParameter - - - False - - - BlobEndpoint - - Azure storage blob service endpoint - - System.String - - System.String - - - None - - - FileEndpoint - - Azure storage file service endpoint - - System.String - - System.String - - - None - - - QueueEndpoint - - Azure storage queue service endpoint - - System.String - - System.String - - - None - - - TableEndpoint - - Azure storage table service endpoint - - System.String - - System.String - - - None - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - StorageAccountKey - - Specifies an Azure Storage account key. This cmdlet creates a context for the key that this parameter specifies. - - System.String - - System.String - - - None - - - BlobEndpoint - - Azure storage blob service endpoint - - System.String - - System.String - - - None - - - FileEndpoint - - Azure storage file service endpoint - - System.String - - System.String - - - None - - - QueueEndpoint - - Azure storage queue service endpoint - - System.String - - System.String - - - None - - - TableEndpoint - - Azure storage table service endpoint - - System.String - - System.String - - - None - - - - New-AzStorageContext - - BlobEndpoint - - Azure storage blob service endpoint - - System.String - - System.String - - - None - - - FileEndpoint - - Azure storage file service endpoint - - System.String - - System.String - - - None - - - QueueEndpoint - - Azure storage queue service endpoint - - System.String - - System.String - - - None - - - SasToken - - Specifies a Shared Access Signature (SAS) token for the context. - - System.String - - System.String - - - None - - - TableEndpoint - - Azure storage table service endpoint - - System.String - - System.String - - - None - - - - New-AzStorageContext - - BlobEndpoint - - Azure storage blob service endpoint - - System.String - - System.String - - - None - - - EnableFileBackupRequestIntent - - Required parameter to use with OAuth (Microsoft Entra ID) Authentication for Files. This will bypass any file/directory level permission checks and allow access, based on the allowed data actions, even if there are ACLs in place for those files/directories. - - - System.Management.Automation.SwitchParameter - - - False - - - FileEndpoint - - Azure storage file service endpoint - - System.String - - System.String - - - None - - - QueueEndpoint - - Azure storage queue service endpoint - - System.String - - System.String - - - None - - - TableEndpoint - - Azure storage table service endpoint - - System.String - - System.String - - - None - - - UseConnectedAccount - - Indicates that this cmdlet creates an Azure Storage context with OAuth (Microsoft Entra ID) Authentication. The cmdlet will use OAuth Authentication by default, when other authentication not specified. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageContext - - ConnectionString - - Specifies a connection string for the Azure Storage context. - - System.String - - System.String - - - None - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - EnableFileBackupRequestIntent - - Required parameter to use with OAuth (Microsoft Entra ID) Authentication for Files. This will bypass any file/directory level permission checks and allow access, based on the allowed data actions, even if there are ACLs in place for those files/directories. - - - System.Management.Automation.SwitchParameter - - - False - - - Endpoint - - Specifies the endpoint for the Azure Storage context. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - UseConnectedAccount - - Indicates that this cmdlet creates an Azure Storage context with OAuth (Microsoft Entra ID) Authentication. The cmdlet will use OAuth Authentication by default, when other authentication not specified. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - EnableFileBackupRequestIntent - - Required parameter to use with OAuth (Microsoft Entra ID) Authentication for Files. This will bypass any file/directory level permission checks and allow access, based on the allowed data actions, even if there are ACLs in place for those files/directories. - - - System.Management.Automation.SwitchParameter - - - False - - - Environment - - Specifies the Azure environment. The acceptable values for this parameter are: AzureCloud and AzureChinaCloud. For more information, type `Get-Help Get-AzEnvironment`. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - UseConnectedAccount - - Indicates that this cmdlet creates an Azure Storage context with OAuth (Microsoft Entra ID) Authentication. The cmdlet will use OAuth Authentication by default, when other authentication not specified. - - - System.Management.Automation.SwitchParameter - - - False - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - StorageAccountKey - - Specifies an Azure Storage account key. This cmdlet creates a context for the key that this parameter specifies. - - System.String - - System.String - - - None - - - Endpoint - - Specifies the endpoint for the Azure Storage context. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - Endpoint - - Specifies the endpoint for the Azure Storage context. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - SasToken - - Specifies a Shared Access Signature (SAS) token for the context. - - System.String - - System.String - - - None - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - StorageAccountKey - - Specifies an Azure Storage account key. This cmdlet creates a context for the key that this parameter specifies. - - System.String - - System.String - - - None - - - Environment - - Specifies the Azure environment. The acceptable values for this parameter are: AzureCloud and AzureChinaCloud. For more information, type `Get-Help Get-AzEnvironment`. - - System.String - - System.String - - - None - - - Protocol - - Transfer Protocol (https/http). - - - Http - Https - - System.String - - System.String - - - None - - - - New-AzStorageContext - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - Environment - - Specifies the Azure environment. The acceptable values for this parameter are: AzureCloud and AzureChinaCloud. For more information, type `Get-Help Get-AzEnvironment`. - - System.String - - System.String - - - None - - - SasToken - - Specifies a Shared Access Signature (SAS) token for the context. - - System.String - - System.String - - - None - - - - New-AzStorageContext - - Local - - Indicates that this cmdlet creates a context by using the local development storage account. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Anonymous - - Indicates that this cmdlet creates an Azure Storage context for anonymous logon. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - BlobEndpoint - - Azure storage blob service endpoint - - System.String - - System.String - - - None - - - ConnectionString - - Specifies a connection string for the Azure Storage context. - - System.String - - System.String - - - None - - - EnableFileBackupRequestIntent - - Required parameter to use with OAuth (Microsoft Entra ID) Authentication for Files. This will bypass any file/directory level permission checks and allow access, based on the allowed data actions, even if there are ACLs in place for those files/directories. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Endpoint - - Specifies the endpoint for the Azure Storage context. - - System.String - - System.String - - - None - - - Environment - - Specifies the Azure environment. The acceptable values for this parameter are: AzureCloud and AzureChinaCloud. For more information, type `Get-Help Get-AzEnvironment`. - - System.String - - System.String - - - None - - - FileEndpoint - - Azure storage file service endpoint - - System.String - - System.String - - - None - - - Local - - Indicates that this cmdlet creates a context by using the local development storage account. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Protocol - - Transfer Protocol (https/http). - - System.String - - System.String - - - None - - - QueueEndpoint - - Azure storage queue service endpoint - - System.String - - System.String - - - None - - - SasToken - - Specifies a Shared Access Signature (SAS) token for the context. - - System.String - - System.String - - - None - - - StorageAccountKey - - Specifies an Azure Storage account key. This cmdlet creates a context for the key that this parameter specifies. - - System.String - - System.String - - - None - - - StorageAccountName - - Specifies an Azure Storage account name. This cmdlet creates a context for the account that this parameter specifies. - - System.String - - System.String - - - None - - - TableEndpoint - - Azure storage table service endpoint - - System.String - - System.String - - - None - - - UseConnectedAccount - - Indicates that this cmdlet creates an Azure Storage context with OAuth (Microsoft Entra ID) Authentication. The cmdlet will use OAuth Authentication by default, when other authentication not specified. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext - - - - - - - - - - - - - - Example 1: Create a context by specifying a storage account name and key - New-AzStorageContext -StorageAccountName "ContosoGeneral" -StorageAccountKey "< Storage Key for ContosoGeneral ends with == >" - - This command creates a context for the account named ContosoGeneral that uses the specified key. - - - - - - Example 2: Create a context by specifying a connection string - New-AzStorageContext -ConnectionString "DefaultEndpointsProtocol=https;AccountName=ContosoGeneral;AccountKey=< Storage Key for ContosoGeneral ends with == >;" - - This command creates a context based on the specified connection string for the account ContosoGeneral. - - - - - - - Example 3: Create a context for an anonymous storage account - - New-AzStorageContext -StorageAccountName "ContosoGeneral" -Anonymous -Protocol "http" - - This command creates a context for anonymous use for the account named ContosoGeneral. The command specifies HTTP as a connection protocol. - - - - - - Example 4: Create a context by using the local development storage account - New-AzStorageContext -Local - - This command creates a context by using the local development storage account. The command specifies the Local parameter. - - - - - - Example 5: Get the container for the local developer storage account - New-AzStorageContext -Local | Get-AzStorageContainer - - This command creates a context by using the local development storage account, and then passes the new context to the Get-AzStorageContainer cmdlet by using the pipeline operator. The command gets the Azure Storage container for the local developer storage account. - - - - - - -------------- Example 6: Get multiple containers -------------- - $Context01 = New-AzStorageContext -Local -$Context02 = New-AzStorageContext -StorageAccountName "ContosoGeneral" -StorageAccountKey "< Storage Key for ContosoGeneral ends with == >" -($Context01, $Context02) | Get-AzStorageContainer - - The first command creates a context by using the local development storage account, and then stores that context in the $Context01 variable. The second command creates a context for the account named ContosoGeneral that uses the specified key, and then stores that context in the $Context02 variable. The final command gets the containers for the contexts stored in $Context01 and $Context02 by using Get-AzStorageContainer . - - - - - - --------- Example 7: Create a context with an endpoint --------- - New-AzStorageContext -StorageAccountName "ContosoGeneral" -StorageAccountKey "< Storage Key for ContosoGeneral ends with == >" -Endpoint "contosoaccount.core.windows.net" - - This command creates an Azure Storage context that has the specified storage endpoint. The command creates the context for the account named ContosoGeneral that uses the specified key. - - - - - - --- Example 8: Create a context with a specified environment --- - New-AzStorageContext -StorageAccountName "ContosoGeneral" -StorageAccountKey "< Storage Key for ContosoGeneral ends with == >" -Environment "AzureChinaCloud" - - This command creates an Azure storage context that has the specified Azure environment. The command creates the context for the account named ContosoGeneral that uses the specified key. - - - - - - ------ Example 9: Create a context by using an SAS token ------ - $SasToken = New-AzStorageContainerSASToken -Name "ContosoMain" -Permission "rad" -$Context = New-AzStorageContext -StorageAccountName "ContosoGeneral" -SasToken $SasToken -$Context | Get-AzStorageBlob -Container "ContosoMain" - - The first command generates an SAS token by using the New-AzStorageContainerSASToken cmdlet for the container named ContosoMain, and then stores that token in the $SasToken variable. That token is for read, add, update, and delete permissions. The second command creates a context for the account named ContosoGeneral that uses the SAS token stored in $SasToken, and then stores that context in the $Context variable. The final command lists all the blobs associated with the container named ContosoMain by using the context stored in $Context. - - - - - - Example 10: Create a context by using the OAuth Authentication - Connect-AzAccount -$Context = New-AzStorageContext -StorageAccountName "myaccountname" -UseConnectedAccount - - This command creates a context by using the OAuth (Microsoft Entra ID) Authentication. - - - - - - Example 11: Create a context by specifying a storage account name, storage account key and custom blob endpoint - New-AzStorageContext -StorageAccountName "myaccountname" -StorageAccountKey "< Storage Key for myaccountname ends with == >" -BlobEndpoint "https://myaccountname.blob.core.windows.net/" - - This command creates a context for the account named myaccountname with a key for the account, and specified blob endpoint. - - - - - - Example 12: Create a context for an anonymous storage account with specified blob endpoint - New-AzStorageContext -Anonymous -BlobEndpoint "https://myaccountname.blob.core.windows.net/" - - This command creates a context for anonymous use for the account named myaccountname, with specified blob enpoint. - - - - - - Example 13: Create a context by using an SAS token with specified endpoints - $SasToken = New-AzStorageContainerSASToken -Name "MyContainer" -Permission "rad" -New-AzStorageContext -SasToken $SasToken -BlobEndpoint "https://myaccountname.blob.core.windows.net/" -TableEndpoint "https://myaccountname.table.core.windows.net/" -FileEndpoint "https://myaccountname.file.core.windows.net/" -QueueEndpoint "https://myaccountname.queue.core.windows.net/" - - The first command generates an SAS token by using the New-AzStorageContainerSASToken cmdlet for the container named MyContainer, and then stores that token in the $SasToken variable. The second command creates a context that uses the SAS token and a specified blob endpoint, table endpoint, file endpoint, and queue endpoint. - - - - - - Example 14: Create a context by using the OAuth Authentication with a specified blob endpoint - New-AzStorageContext -UseConnectedAccount -BlobEndpoint "https://myaccountname.blob.core.windows.net/" - - This command creates a context by using the OAuth authentication with a specified blob endpoint. - - - - - - Example 15: Create a context by using the OAuth Authentication on File service - New-AzStorageContext -StorageAccountName "myaccountname" -UseConnectedAccount -EnableFileBackupRequestIntent - - This command creates a context to use the OAuth (Microsoft Entra ID) authentication on File service. Parameter '-EnableFileBackupRequestIntent' is required to use OAuth (Microsoft Entra ID) Authentication for File service. This will bypass any file/directory level permission checks and allow access, based on the allowed data actions, even if there are ACLs in place for those files/directories. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragecontext - - - Get-AzStorageBlob - - - - New-AzStorageContainerSASToken - - - - - - - New-AzStorageDirectory - New - AzStorageDirectory - - Creates a directory. - - - - The New-AzStorageDirectory cmdlet creates a directory. This cmdlet returns a AzureStorageFileDirectory object. - - - - New-AzStorageDirectory - - ShareName - - Specifies the name of the file share. This cmdlet creates a folder in the file share that this parameter specifies. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a folder. This cmdlet creates a folder for the path that this cmdlet specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - New-AzStorageDirectory - - ShareClient - - ShareClient object indicated the share where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Specifies the path of a folder. This cmdlet creates a folder for the path that this cmdlet specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - New-AzStorageDirectory - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Specifies the path of a folder. This cmdlet creates a folder for the path that this cmdlet specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of a folder. This cmdlet creates a folder for the path that this cmdlet specifies. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the files/directories would be listed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareName - - Specifies the name of the file share. This cmdlet creates a folder in the file share that this parameter specifies. - - System.String - - System.String - - - None - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory - - - - - - - - - - - - - - ---------- Example 1: Create a folder in a file share ---------- - New-AzStorageDirectory -ShareName "ContosoShare06" -Path "ContosoWorkingFolder" - - This command creates a folder named ContosoWorkingFolder in the file share named ContosoShare06. - - - - - - Example 2: Create a folder in a file share specified in a file share object - Get-AzStorageShare -Name "ContosoShare06" | New-AzStorageDirectory -Path "ContosoWorkingFolder" - - This command uses the Get-AzStorageShare cmdlet to get the file share named ContosoShare06, and then passes it to the current cmdlet by using the pipeline operator. The current cmdlet creates the folder named ContosoWorkingFolder in ContosoShare06. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragedirectory - - - Get-AzStorageFile - - - - Get-AzStorageShare - - - - New-AzStorageContext - - - - New-AzStorageDirectory - - - - Remove-AzStorageDirectory - - - - - - - New-AzStorageFileSASToken - New - AzStorageFileSASToken - - Generates a shared access signature token for a Storage file. - - - - The New-AzStorageFileSASToken cmdlet generates a shared access signature token for an Azure Storage file. - - - - New-AzStorageFileSASToken - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - Path - - Specifies the path of the file relative to a Storage share. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for a Storage file. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - New-AzStorageFileSASToken - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - Path - - Specifies the path of the file relative to a Storage share. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies the stored access policy for a file. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - New-AzStorageFileSASToken - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for a Storage file. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - ShareFileClient - - ShareFileClient instance to represent the file to get SAS token against. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - New-AzStorageFileSASToken - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies the stored access policy for a file. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - ShareFileClient - - ShareFileClient instance to represent the file to get SAS token against. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Path - - Specifies the path of the file relative to a Storage share. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions for a Storage file. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies the stored access policy for a file. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - System.String - - System.String - - - None - - - ShareFileClient - - ShareFileClient instance to represent the file to get SAS token against. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Generate a shared access signature token that has full file permissions - New-AzStorageFileSASToken -ShareName "ContosoShare" -Path "FilePath" -Permission "rwd" - - This command generates a shared access signature token that has full permissions for the file that is named FilePath. - - - - - - Example 2: Generate a shared access signature token that has a time limit - $StartTime = Get-Date -$EndTime = $StartTime.AddHours(2.0) -New-AzStorageFileSASToken -ShareName "ContosoShare" -Path "FilePath" -Permission "rwd" -StartTime $StartTime -ExpiryTime $EndTime - - The first command creates a DateTime object by using the Get-Date cmdlet. The command stores the current time in the $StartTime variable. The second command adds two hours to the object in $StartTime, and then stores the result in the $EndTime variable. This object is a time two hours in the future. The third command generates a shared access signature token that has the specified permissions. This token becomes valid at the current time. The token remains valid until time stored in $EndTime. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragefilesastoken - - - New-AzStorageContext - - - - New-AzStorageShareSASToken - - - - - - - New-AzStorageQueue - New - AzStorageQueue - - Creates a storage queue. - - - - The New-AzStorageQueue cmdlet creates a storage queue in Azure. - - - - New-AzStorageQueue - - Name - - Specifies a name for the queue. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies a name for the queue. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue - - - - - - - - - - - - - - ----------- Example 1: Create an Azure storage queue ----------- - New-AzStorageQueue -Name "queueabc" - - This example creates a storage queue named queueabc. - - - - - - ------- Example 2: Create multiple azure storage queues ------- - "queue1 queue2 queue3".split() | New-AzStorageQueue - - This example creates multiple storage queues. It uses the Split method of the .NET String class and then passes the names on the pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragequeue - - - Get-AzStorageQueue - - - - Remove-AzStorageQueue - - - - - - - New-AzStorageQueueSASToken - New - AzStorageQueueSASToken - - Generates a shared access signature token for an Azure storage queue. - - - - The New-AzStorageQueueSASToken cmdlet generates shared access signature token for an Azure storage queue. - - - - New-AzStorageQueueSASToken - - Name - - Specifies an Azure storage queue name. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies when the shared access signature is no longer valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies permissions for a storage queue. It is important to note that this is a string, like `raup` (for Read, Add, Update and ProcessMessages). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - StartTime - - Specifies when the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - New-AzStorageQueueSASToken - - Name - - Specifies an Azure storage queue name. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies when the shared access signature is no longer valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure stored access policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - StartTime - - Specifies when the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies the Azure storage context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies when the shared access signature is no longer valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Name - - Specifies an Azure storage queue name. - - System.String - - System.String - - - None - - - Permission - - Specifies permissions for a storage queue. It is important to note that this is a string, like `raup` (for Read, Add, Update and ProcessMessages). - - System.String - - System.String - - - None - - - Policy - - Specifies an Azure stored access policy. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - System.String - - System.String - - - None - - - StartTime - - Specifies when the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - -- Example 1: Generate a queue SAS token with full permission -- - New-AzStorageQueueSASToken -Name "Test" -Permission raup - - This example generates a queue SAS token with full permission. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragequeuesastoken - - - - - - New-AzStorageQueueStoredAccessPolicy - New - AzStorageQueueStoredAccessPolicy - - Creates a stored access policy for an Azure storage queue. - - - - The New-AzStorageQueueStoredAccessPolicy cmdlet creates a stored access policy for an Azure storage queue. - - - - New-AzStorageQueueStoredAccessPolicy - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the storage queue. It is important to note that this is a string, like `raup` (for Read, Add, Update, and ProcessMessages). - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the storage queue. It is important to note that this is a string, like `raup` (for Read, Add, Update, and ProcessMessages). - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - - Example 1: Create a stored access policy in a storage queue - - New-AzStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy01" - - This command creates an access policy named Policy01 in the storage queue named MyQueue. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragequeuestoredaccesspolicy - - - Get-AzStorageQueueStoredAccessPolicy - - - - New-AzStorageContext - - - - Remove-AzStorageQueueStoredAccessPolicy - - - - Set-AzStorageQueueStoredAccessPolicy - - - - - - - New-AzStorageShare - New - AzStorageShare - - Creates a file share. - - - - The New-AzStorageShare cmdlet creates a file share. - - - - New-AzStorageShare - - Name - - Specifies the name of a file share. This cmdlet creates a file share that has the name that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies the name of a file share. This cmdlet creates a file share that has the name that this parameter specifies. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare - - - - - - - - - - - - - - ---------------- Example 1: Create a file share ---------------- - New-AzStorageShare -Name "ContosoShare06" - - This command creates a file share named ContosoShare06. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstorageshare - - - Get-AzStorageShare - - - - New-AzStorageContext - - - - Remove-AzStorageShare - - - - - - - New-AzStorageShareSASToken - New - AzStorageShareSASToken - - Generate Shared Access Signature token for Azure Storage share. - - - - The New-AzStorageShareSASToken cmdlet generates a shared access signature token for an Azure Storage share. - - - - New-AzStorageShareSASToken - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions in the token to access the share and files under the share. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - New-AzStorageShareSASToken - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies the stored access policy for a share. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the shared access signature becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet return the full blob URI and the shared access signature token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies the permissions in the token to access the share and files under the share. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies the stored access policy for a share. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - System.String - - System.String - - - None - - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the shared access signature becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - * Keywords: common, azure, services, data, storage, blob, queue, table - - - - - Example 1: Generate a shared access signature token for a share - New-AzStorageShareSASToken -ShareName "ContosoShare" -Permission "rwdl" - - This command creates a shared access signature token for the share named ContosoShare. - - - - - - Example 2: Generate multiple shared access signature token by using the pipeline - Get-AzStorageShare -Prefix "test" | New-AzStorageShareSASToken -Permission "rwdl" - - This command gets all the Storage shares that match the prefix test. The command passes them to the current cmdlet by using the pipeline operator. The current cmdlet creates a shared access token for each Storage share that has the specified permissions. - - - - - - Example 3: Generate a shared access signature token that uses a shared access policy - New-AzStorageShareSASToken -ShareName "ContosoShare" -Policy "ContosoPolicy03" - - This command creates a shared access signature token for the Storage share named ContosoShare that has the policy named ContosoPolicy03. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragesharesastoken - - - Get-AzStorageShare - - - - New-AzStorageFileSASToken - - - - - - - New-AzStorageShareStoredAccessPolicy - New - AzStorageShareStoredAccessPolicy - - Creates a stored access policy on a Storage share. - - - - The New-AzStorageShareStoredAccessPolicy cmdlet creates a stored access policy on an Azure Storage share. - - - - New-AzStorageShareStoredAccessPolicy - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the Storage share or files under it. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the Storage share or files under it. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - ----- Example 1: Create a stored access policy in a share ----- - New-AzStorageShareStoredAccessPolicy -ShareName "ContosoShare" -Policy "GeneralPolicy" -Permission "rwdl" - - This command creates a stored access policy that has full permission in a share. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragesharestoredaccesspolicy - - - Get-AzStorageShareStoredAccessPolicy - - - - New-AzStorageContext - - - - Remove-AzStorageShareStoredAccessPolicy - - - - Set-AzStorageShareStoredAccessPolicy - - - - - - - New-AzStorageTable - New - AzStorageTable - - Creates a storage table. - - - - The New-AzStorageTable cmdlet creates a storage table associated with the storage account in Azure. - - - - New-AzStorageTable - - Name - - Specifies a name for the new table. - - System.String - - System.String - - - None - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - - - - Context - - Specifies the storage context. To create it, you can use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies a name for the new table. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable - - - - - - - - - - - - - - ----------- Example 1: Create an azure storage table ----------- - New-AzStorageTable -Name "tableabc" - - This command creates a storage table with a name of tableabc. - - - - - - ------- Example 2: Create multiple azure storage tables ------- - "table1 table2 table3".split() | New-AzStorageTable - - This command creates multiple tables. It uses the Split method of the .NET String class and then passes the names on the pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragetable - - - Get-AzStorageTable - - - - Remove-AzStorageTable - - - - - - - New-AzStorageTableSASToken - New - AzStorageTableSASToken - - Generates an SAS token for an Azure Storage table. - - - - The New-AzStorageTableSASToken cmdlet generates a Shared Access Signature (SAS) token for an Azure Storage table. - - - - New-AzStorageTableSASToken - - Name - - Specifies the name of an Azure Storage table. This cmdlet creates an SAS token for the table that this parameter specifies. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EndPartitionKey - - Specifies the partition key of the end of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - EndRowKey - - Specifies the row key for the end of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the SAS token expires. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet returns the full queue URI with the SAS token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Permission - - Specifies permissions for an Azure Storage table. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Cosmos.Table.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Cosmos.Table.SharedAccessProtocol] - - - None - - - StartPartitionKey - - Specifies the partition key of the start of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - StartRowKey - - Specifies the row key for the start of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - StartTime - - Specifies when the SAS token becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - New-AzStorageTableSASToken - - Name - - Specifies the name of an Azure Storage table. This cmdlet creates an SAS token for the table that this parameter specifies. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EndPartitionKey - - Specifies the partition key of the end of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - EndRowKey - - Specifies the row key for the end of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the SAS token expires. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet returns the full queue URI with the SAS token. - - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this SAS token. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - - HttpsOnly - HttpsOrHttp - - System.Nullable`1[Microsoft.Azure.Cosmos.Table.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Cosmos.Table.SharedAccessProtocol] - - - None - - - StartPartitionKey - - Specifies the partition key of the start of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - StartRowKey - - Specifies the row key for the start of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - StartTime - - Specifies when the SAS token becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EndPartitionKey - - Specifies the partition key of the end of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - EndRowKey - - Specifies the row key for the end of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - ExpiryTime - - Specifies when the SAS token expires. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - FullUri - - Indicates that this cmdlet returns the full queue URI with the SAS token. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IPAddressOrRange - - Specifies the IP address or range of IP addresses from which to accept requests, such as 168.1.5.65 or 168.1.5.60-168.1.5.70. The range is inclusive. - - System.String - - System.String - - - None - - - Name - - Specifies the name of an Azure Storage table. This cmdlet creates an SAS token for the table that this parameter specifies. - - System.String - - System.String - - - None - - - Permission - - Specifies permissions for an Azure Storage table. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies a stored access policy, which includes the permissions for this SAS token. - - System.String - - System.String - - - None - - - Protocol - - Specifies the protocol permitted for a request. The acceptable values for this parameter are: * HttpsOnly - * HttpsOrHttp - The default value is HttpsOrHttp. - - System.Nullable`1[Microsoft.Azure.Cosmos.Table.SharedAccessProtocol] - - System.Nullable`1[Microsoft.Azure.Cosmos.Table.SharedAccessProtocol] - - - None - - - StartPartitionKey - - Specifies the partition key of the start of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - StartRowKey - - Specifies the row key for the start of the range for the token that this cmdlet creates. - - System.String - - System.String - - - None - - - StartTime - - Specifies when the SAS token becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Generate an SAS token that has full permissions for a table - New-AzStorageTableSASToken -Name "ContosoResources" -Permission "raud" - - This command generates an SAS token with full permissions for the table named ContosoResources. That token is for read, add, update, and delete permissions. - - - - - - -- Example 2: Generate an SAS token for a range of partitions -- - New-AzStorageTableSASToken -Name "ContosoResources" -Permission "raud" -StartPartitionKey "a" -EndPartitionKey "b" - - This command generates and SAS token with full permissions for the table named ContosoResources. The command limits the token to the range that the StartPartitionKey and EndPartitionKey parameters specify. - - - - - - Example 3: Generate an SAS token that has a stored access policy for a table - New-AzStorageTableSASToken -Name "ContosoResources" -Policy "ClientPolicy01" - - This command generates an SAS token for the table named ContosoResources. The command specifies the stored access policy named ClientPolicy01. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragetablesastoken - - - New-AzStorageContext - - - - - - - New-AzStorageTableStoredAccessPolicy - New - AzStorageTableStoredAccessPolicy - - Creates a stored access policy for an Azure storage table. - - - - The New-AzStorageTableStoredAccessPolicy cmdlet creates a stored access policy for an Azure storage table. - - - - New-AzStorageTableStoredAccessPolicy - - Table - - Specifies the Azure storage table name. - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the storage table. It is important to note that this is a string, like `raud` (for Read, Add, Update and Delete). - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Permission - - Specifies permissions in the stored access policy to access the storage table. It is important to note that this is a string, like `raud` (for Read, Add, Update and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Table - - Specifies the Azure storage table name. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - ----- Example 1: Create a stored access policy in a table ----- - New-AzStorageTableStoredAccessPolicy -Table "MyTable" -Policy "Policy02" - - This command creates an access policy named Policy02 in the storage table named MyTable. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/new-azstoragetablestoredaccesspolicy - - - Get-AzStorageTableStoredAccessPolicy - - - - New-AzStorageContext - - - - Remove-AzStorageTableStoredAccessPolicy - - - - Set-AzStorageTableStoredAccessPolicy - - - - - - - Remove-AzDataLakeGen2AclRecursive - Remove - AzDataLakeGen2AclRecursive - - Remove ACL recursively on the specified path. - - - - The Remove-AzDataLakeGen2AclRecursive cmdlet removes ACL recursively on the specified path. The ACL entries in original ACL, which has same AccessControlType, DefaultScope and EntityId with input ACL entries (even with different permission) wil lbe removed. - - - - Remove-AzDataLakeGen2AclRecursive - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified FileSystem that to change Acl recursively. Can be a file or directory. In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to change Acl recursively from root directory of the Filesystem. - - System.String - - System.String - - - None - - - Acl - - The POSIX access control list to set recursively for the file or directory. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BatchSize - - If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. Default is 2000. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - ContinueOnFailure - - Set this parameter to ignore failures and continue proceeing with the operation on other sub-entities of the directory. Default the operation will terminate quickly on encountering failures. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MaxBatchCount - - Maximum number of batches that single change Access Control operation can execute. If data set size exceeds MaxBatchCount multiply BatchSize, continuation token will be return. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Acl - - The POSIX access control list to set recursively for the file or directory. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - BatchSize - - If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. Default is 2000. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - ContinueOnFailure - - Set this parameter to ignore failures and continue proceeing with the operation on other sub-entities of the directory. Default the operation will terminate quickly on encountering failures. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - MaxBatchCount - - Maximum number of batches that single change Access Control operation can execute. If data set size exceeds MaxBatchCount multiply BatchSize, continuation token will be return. - - System.Int32 - - System.Int32 - - - None - - - Path - - The path in the specified FileSystem that to change Acl recursively. Can be a file or directory. In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to change Acl recursively from root directory of the Filesystem. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Remove ACL recursively on a root directiry of filesystem - $acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -DefaultScope -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -InputObject $acl -Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx -WARNING: To find the ACL Entry to remove, will only compare AccessControlType, DefaultScope and EntityId, will omit Permission. - -FailedEntries : -TotalDirectoriesSuccessfulCount : 7 -TotalFilesSuccessfulCount : 5 -TotalFailureCount : 0 -ContinuationToken : - - This command first creates an ACL object with 2 acl entries, then removes ACL recursively on a root directory of a file system. - - - - - - ------- Example 2: Remove ACL recursively on a directory ------- - $result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx -WARNING: To find the ACL Entry to remove, will only compare AccessControlType, DefaultScope and EntityId, will omit Permission. - -$result - -FailedEntries : {dir1/dir2/file4} -TotalDirectoriesSuccessfulCount : 500 -TotalFilesSuccessfulCount : 2500 -TotalFailureCount : 1 -ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== - -$result.FailedEntries - -Name IsDirectory ErrorMessage ----- ----------- ------------ -dir0/dir2/file4 False This request is not authorized to perform this operation using this permission. - -# user need fix the failed item , then can resume with ContinuationToken - -$result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx -WARNING: To find the ACL Entry to remove, will only compare AccessControlType, DefaultScope and EntityId, will omit Permission. - -$result - -FailedEntries : -TotalDirectoriesSuccessfulCount : 100 -TotalFilesSuccessfulCount : 1000 -TotalFailureCount : 0 -ContinuationToken : - - This command first removes ACL recursively on a directory and failed, then resume with ContinuationToken after user fix the failed file. - - - - - - ------- Example 3: Remove ACL recursively chunk by chunk ------- - $token = $null -$TotalDirectoriesSuccess = 0 -$TotalFilesSuccess = 0 -$totalFailure = 0 -$FailedEntries = New-Object System.Collections.Generic.List[System.Object] -do -{ - $result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -BatchSize 1000 -MaxBatchCount 50 -ContinuationToken $token -Context $ctx - - # echo $result - $TotalFilesSuccess += $result.TotalFilesSuccessfulCount - $TotalDirectoriesSuccess += $result.TotalDirectoriesSuccessfulCount - $totalFailure += $result.TotalFailureCount - $FailedEntries += $result.FailedEntries - $token = $result.ContinuationToken -}while (($token -ne $null) -and ($result.TotalFailureCount -eq 0)) -echo "" -echo "[Result Summary]" -echo "TotalDirectoriesSuccessfulCount: `t$($TotalDirectoriesSuccess)" -echo "TotalFilesSuccessfulCount: `t`t`t$($TotalFilesSuccess)" -echo "TotalFailureCount: `t`t`t`t`t$($totalFailure)" -echo "ContinuationToken: `t`t`t`t`t$($token)" -echo "FailedEntries:"$($FailedEntries | ft) - - This script will remove ACL rescursively on directory chunk by chunk, with chunk size as BatchSize * MaxBatchCount. Chunk size is 50000 in this script. - - - - - - Example 4: Remove ACL recursively on a directory and ContinueOnFailure, then resume from failures one by one - $result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx - -$result - -FailedEntries : {dir0/dir1/file1, dir0/dir2/file4} -TotalDirectoriesSuccessfulCount : 100 -TotalFilesSuccessfulCount : 500 -TotalFailureCount : 2 -ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== - -$result.FailedEntries - -Name IsDirectory ErrorMessage ----- ----------- ------------ -dir0/dir1/file1 False This request is not authorized to perform this operation using this permission. -dir0/dir2/file4 False This request is not authorized to perform this operation using this permission. - -# user need fix the failed item , then can resume with ContinuationToken - -foreach ($path in $result.FailedEntries.Name) - { - # user code to fix failed entry in $path - - #set ACL again - Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path $path -Acl $acl -Context $ctx - } - - This command first removes ACL recursively to a directory with ContinueOnFailure, and some items failed, then resume the failed items one by one. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azdatalakegen2aclrecursive - - - - - - Remove-AzDataLakeGen2Item - Remove - AzDataLakeGen2Item - - Remove a file or directory. - - - - The Remove-AzDataLakeGen2Item cmdlet removes a file or directory from a Storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Remove-AzDataLakeGen2Item - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be removed. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Filesystem and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Return whether the specified Filesystem is successfully removed - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzDataLakeGen2Item - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the Filesystem and all content in it - - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to remove. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - PassThru - - Return whether the specified Filesystem is successfully removed - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Force - - Force to remove the Filesystem and all content in it - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - InputObject - - Azure Datalake Gen2 Item Object to remove. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - PassThru - - Return whether the specified Filesystem is successfully removed - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - The path in the specified Filesystem that should be removed. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ---------------- Example 1: Removes a directory ---------------- - Remove-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/" - - This command removes a directory from a Filesystem. - - - - - - ----------- Example 2: Removes a file without prompt ----------- - Remove-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" -Force - - This command removes a directory from a Filesystem, without prompt. - - - - - - -- Example 3: Remove all items in a Filesystem with pipeline -- - Get-AzDataLakeGen2ChildItem -FileSystem "filesystem1" | Remove-AzDataLakeGen2Item -Force - - This command removes all items in a Filesystem with pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azdatalakegen2item - - - - - - Remove-AzStorageBlob - Remove - AzStorageBlob - - Removes the specified storage blob. - - - - The Remove-AzStorageBlob cmdlet removes the specified blob from a storage account in Azure. - - - - Remove-AzStorageBlob - - Blob - - Specifies the name of the blob you want to remove. - - System.String - - System.String - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can use the New-AzStorageContext cmdlet to create it. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeleteSnapshot - - Specifies that all snapshots be deleted, but not the base blob. If this parameter is not specified, the base blob and its snapshots are deleted together. The user is prompted to confirm the delete operation. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Indicates that this cmdlet removes the blob and its snapshot without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the Azure profile for the cmdlet to read. If not specified, the cmdlet reads from the default profile. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageBlob - - Blob - - Specifies the name of the blob you want to remove. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. You can use the Get-AzStorageContainer cmdlet to get it. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can use the New-AzStorageContext cmdlet to create it. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeleteSnapshot - - Specifies that all snapshots be deleted, but not the base blob. If this parameter is not specified, the base blob and its snapshots are deleted together. The user is prompted to confirm the delete operation. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Indicates that this cmdlet removes the blob and its snapshot without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the Azure profile for the cmdlet to read. If not specified, the cmdlet reads from the default profile. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageBlob - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a cloud blob. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can use the New-AzStorageContext cmdlet to create it. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeleteSnapshot - - Specifies that all snapshots be deleted, but not the base blob. If this parameter is not specified, the base blob and its snapshots are deleted together. The user is prompted to confirm the delete operation. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Indicates that this cmdlet removes the blob and its snapshot without confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the Azure profile for the cmdlet to read. If not specified, the cmdlet reads from the default profile. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Specifies the name of the blob you want to remove. - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a cloud blob. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. You can use the Get-AzStorageContainer cmdlet to get it. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can use the New-AzStorageContext cmdlet to create it. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeleteSnapshot - - Specifies that all snapshots be deleted, but not the base blob. If this parameter is not specified, the base blob and its snapshots are deleted together. The user is prompted to confirm the delete operation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Indicates that this cmdlet removes the blob and its snapshot without confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the Azure profile for the cmdlet to read. If not specified, the cmdlet reads from the default profile. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - Blob SnapshotTime - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - VersionId - - Blob VersionId - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ----------- Example 1: Remove a storage blob by name ----------- - Remove-AzStorageBlob -Container "ContainerName" -Blob "BlobName" - - This command removes a blob identified by its name. - - - - - - ----- Example 2: Remove a storage blob using the pipeline ----- - Get-AzStorageBlob -Container "ContainerName" -Blob "BlobName" | Remove-AzStorageBlob - - This command uses the pipeline. - - - - - - ------ Example 3: Remove storage blobs using the pipeline ------ - Get-AzStorageContainer -Container container* | Remove-AzStorageBlob -Blob "BlobName" - - This command uses the asterisk (*) wildcard character and the pipeline to retrieve the blob or blobs and then removes them. - - - - - - ----------- Example 4: Remove a single blob version ----------- - Remove-AzStorageBlob -Container "containername" -Blob blob2 -VersionId "2020-07-03T16:19:16.2883167Z" - - This command removes a single blobs verion with VersionId. - - - - - - ----------- Example 5: Remove a single blob snapshot ----------- - Remove-AzStorageBlob -Container "containername" -Blob blob1 -SnapshotTime "2020-07-06T06:56:06.8588431Z" - - This command removes a single blobs snapshot with SnapshotTime. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageblob - - - Get-AzStorageBlob - - - - Get-AzStorageBlobContent - - - - Set-AzStorageBlobContent - - - - - - - Remove-AzStorageBlobImmutabilityPolicy - Remove - AzStorageBlobImmutabilityPolicy - - Removes ImmutabilityPolicy of a Storage blob. - - - - The Remove-AzStorageBlobImmutabilityPolicy cmdlet removes immutability policy of a Storage blob. - - - - Remove-AzStorageBlobImmutabilityPolicy - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageBlobImmutabilityPolicy - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - -- Example 1: Removes immutability policy of a Storage blob. -- - $blob = Remove-AzStorageBlobImmutabilityPolicy -Container $containerName -Blob $blobname - -$blob - - AccountName: mystorageaccount, ContainerName: mycontainer - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * - -$blob.BlobProperties.ImmutabilityPolicy - -ExpiresOn PolicyMode ---------- ---------- - - This command removes ImmutabilityPolicy of a Storage blob, then show the result. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageblobimmutabilitypolicy - - - - - - Remove-AzStorageContainer - Remove - AzStorageContainer - - Removes the specified storage container. - - - - The Remove-AzStorageContainer cmdlet removes the specified storage container in Azure. - - - - Remove-AzStorageContainer - - Name - - Specifies the name of the container to remove. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies a context for the container you want to remove. You can use the New-AzStorageContext cmdlet to create it. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies a context for the container you want to remove. You can use the New-AzStorageContext cmdlet to create it. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the container to remove. - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ---------------- Example 1: Remove a container ---------------- - Remove-AzStorageContainer -Name "MyTestContainer" - - This example removes a container named MyTestContainer. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragecontainer - - - Get-AzStorageContainer - - - - New-AzStorageContainer - - - - - - - Remove-AzStorageContainerStoredAccessPolicy - Remove - AzStorageContainerStoredAccessPolicy - - Removes a stored access policy from an Azure storage container. - - - - The Remove-AzStorageContainerStoredAccessPolicy cmdlet removes a stored access policy from an Azure storage container. - - - - Remove-AzStorageContainerStoredAccessPolicy - - Container - - Specifies the Azure storage container name. - - System.String - - System.String - - - None - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the Azure storage container name. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove a stored access policy from a storage container - Remove-AzStorageContainerStoredAccessPolicy -Container "MyContainer" -Policy "Policy03" - - This command removes an access policy named Policy03 from the stored container named MyContainer. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragecontainerstoredaccesspolicy - - - Get-AzStorageContainerStoredAccessPolicy - - - - New-AzStorageContainerStoredAccessPolicy - - - - New-AzStorageContext - - - - Set-AzStorageContainerStoredAccessPolicy - - - - - - - Remove-AzStorageCORSRule - Remove - AzStorageCORSRule - - Removes CORS for a Storage service. - - - - The Remove-AzStorageCORSRule cmdlet removes Cross-Origin Resource Sharing (CORS) for an Azure Storage service. This cmdlet deletes all CORS rules in a Storage service type. The types of storage services for this cmdlet are Blob, Table, Queue, and File. - - - - Remove-AzStorageCORSRule - - ServiceType - - Specifies the Azure Storage service type for which this cmdlet removes rules. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. To obtain the storage context, the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. To obtain the storage context, the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServiceType - - Specifies the Azure Storage service type for which this cmdlet removes rules. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Void - - - - - - - - - - - - - - ------ Example 1: Remove CORS rules for the blob service ------ - Remove-AzStorageCORSRule -ServiceType Blob - - This command removes CORS rules for the Blob service type. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragecorsrule - - - Get-AzStorageCORSRule - - - - Set-AzStorageCORSRule - - - - - - - Remove-AzStorageDirectory - Remove - AzStorageDirectory - - Deletes a directory. - - - - The Remove-AzStorageDirectory cmdlet deletes a directory. - - - - Remove-AzStorageDirectory - - ShareName - - Specifies the name of the file share. This cmdlet removes a folder under the file share that this parameter specifies. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a folder. If the folder that this parameter specifies is empty, this cmdlet deletes that folder. If the folder is not empty, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that, if this cmdlet succeeds, it returns a value of $True. If you specify this parameter, and if the cmdlet is unsuccessful because of an inappropriate value for the Path parameter, the cmdlet returns an error. If you do not specify this parameter, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageDirectory - - ShareClient - - ShareClient object indicated the share where the directory would be removed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Specifies the path of a folder. If the folder that this parameter specifies is empty, this cmdlet deletes that folder. If the folder is not empty, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that, if this cmdlet succeeds, it returns a value of $True. If you specify this parameter, and if the cmdlet is unsuccessful because of an inappropriate value for the Path parameter, the cmdlet returns an error. If you do not specify this parameter, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageDirectory - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the directory would be removed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Specifies the path of a folder. If the folder that this parameter specifies is empty, this cmdlet deletes that folder. If the folder is not empty, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that, if this cmdlet succeeds, it returns a value of $True. If you specify this parameter, and if the cmdlet is unsuccessful because of an inappropriate value for the Path parameter, the cmdlet returns an error. If you do not specify this parameter, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that, if this cmdlet succeeds, it returns a value of $True. If you specify this parameter, and if the cmdlet is unsuccessful because of an inappropriate value for the Path parameter, the cmdlet returns an error. If you do not specify this parameter, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of a folder. If the folder that this parameter specifies is empty, this cmdlet deletes that folder. If the folder is not empty, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the directory would be removed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the directory would be removed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareName - - Specifies the name of the file share. This cmdlet removes a folder under the file share that this parameter specifies. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory - - - - - - - - - - - - - - ------------------ Example 1: Delete a folder ------------------ - Remove-AzStorageDirectory -ShareName "ContosoShare06" -Path "ContosoWorkingFolder" - - This command deletes the folder named ContosoWorkingFolder from the file share named ContosoShare06. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragedirectory - - - Get-AzStorageShare - - - - New-AzStorageContext - - - - New-AzStorageDirectory - - - - - - - Remove-AzStorageFile - Remove - AzStorageFile - - Deletes a file. - - - - The Remove-AzStorageFile cmdlet deletes a file. - - - - Remove-AzStorageFile - - ShareName - - Specifies the name of the file share. This cmdlet removes the file in the share this parameter specifies. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a file. This cmdlet deletes the file that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageFile - - ShareClient - - ShareClient object indicated the share where the file would be removed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Path - - Specifies the path of a file. This cmdlet deletes the file that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageFile - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the file would be removed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Path - - Specifies the path of a file. This cmdlet deletes the file that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageFile - - ShareFileClient - - ShareFileClient object indicated the file would be removed. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of a file. This cmdlet deletes the file that this parameter specifies. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the file would be removed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the base folder where the file would be removed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareFileClient - - ShareFileClient object indicated the file would be removed. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Specifies the name of the file share. This cmdlet removes the file in the share this parameter specifies. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - - - - - - - - - - - - - ---------- Example 1: Delete a file from a file share ---------- - Remove-AzStorageFile -ShareName "ContosoShare06" -Path "ContosoFile22" - - This command deletes the file that is named ContosoFile22 from the file share named ContosoShare06. - - - - - - Example 2: Get a file from a file share by using a file share object - Get-AzStorageShare -Name "ContosoShare06" | Remove-AzStorageFile -Path "ContosoFile22" - - This command uses the Get-AzStorageShare cmdlet to get the file share named ContosoShare06, and then passes that object to the current cmdlet by using the pipeline operator. The current command deletes the file that is named ContosoFile22 from ContosoShare06. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragefile - - - Get-AzStorageFile - - - - Get-AzStorageShare - - - - New-AzStorageContext - - - - - - - Remove-AzStorageQueue - Remove - AzStorageQueue - - Removes a storage queue. - - - - The Remove-AzStorageQueue cmdlet removes a storage queue. - - - - Remove-AzStorageQueue - - Name - - Specifies the name of the queue to remove. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. To obtain the storage context, the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies the Azure storage context. To obtain the storage context, the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the queue to remove. - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ---------- Example 1: Remove a storage queue by name ---------- - Remove-AzStorageQueue "ContosoQueue01" - - This command removes a queue named ContosoQueue01. - - - - - - ---------- Example 2: Remove multiple storage queues ---------- - Get-AzStorageQueue "Contoso*" | Remove-AzStorageQueue - - This command removes all queues with names that start with Contoso. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragequeue - - - Get-AzStorageQueue - - - - New-AzStorageQueue - - - - - - - Remove-AzStorageQueueStoredAccessPolicy - Remove - AzStorageQueueStoredAccessPolicy - - Removes a stored access policy from an Azure storage queue. - - - - The Remove-AzStorageQueueStoredAccessPolicy cmdlet removes a stored access policy from an Azure storage queue. - - - - Remove-AzStorageQueueStoredAccessPolicy - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove a stored access policy from a storage queue - Remove-AzStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy04" - - This command removes an access policy named Policy04 from the storage queue named MyQueue. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragequeuestoredaccesspolicy - - - Get-AzStorageQueueStoredAccessPolicy - - - - New-AzStorageContext - - - - New-AzStorageQueueStoredAccessPolicy - - - - Set-AzStorageQueueStoredAccessPolicy - - - - - - - Remove-AzStorageShare - Remove - AzStorageShare - - Deletes a file share. - - - - The Remove-AzStorageShare cmdlet deletes a file share. - - - - Remove-AzStorageShare - - Name - - Specifies the name of the file share. This cmdlet deletes the file share that this parameter specifies. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the share with all of its snapshots, and all content. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeAllSnapshot - - Remove File Share with all of its snapshots - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SnapshotTime - - SnapshotTime of the file share snapshot to be removed. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Remove-AzStorageShare - - ShareClient - - File share Client to be removed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the share with all of its snapshots, and all content. - - - System.Management.Automation.SwitchParameter - - - False - - - IncludeAllSnapshot - - Remove File Share with all of its snapshots - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to remove the share with all of its snapshots, and all content. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IncludeAllSnapshot - - Remove File Share with all of its snapshots - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the file share. This cmdlet deletes the file share that this parameter specifies. - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - File share Client to be removed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - SnapshotTime - - SnapshotTime of the file share snapshot to be removed. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - System.Nullable`1[[System.DateTimeOffset, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare - - - - - - - - - - - - - - ---------------- Example 1: Remove a file share ---------------- - Remove-AzStorageShare -Name "ContosoShare06" - - This command removes the file share named ContosoShare06. - - - - - - ----- Example 2: Remove a file share and all its snapshots ----- - Remove-AzStorageShare -Name "ContosoShare06" -IncludeAllSnapshot - - This command removes the file share named ContosoShare06 and all its snapshots. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstorageshare - - - Get-AzStorageShare - - - - New-AzStorageContext - - - - New-AzStorageShare - - - - - - - Remove-AzStorageShareStoredAccessPolicy - Remove - AzStorageShareStoredAccessPolicy - - Removes a stored access policy from a Storage share. - - - - The Remove-AzStorageShareStoredAccessPolicy cmdlet removes a stored access policy from an Azure Storage share. - - - - Remove-AzStorageShareStoredAccessPolicy - - ShareName - - Specifies the Storage share name for which this cmdlet removes a policy. - - System.String - - System.String - - - None - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareName - - Specifies the Storage share name for which this cmdlet removes a policy. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove a stored access policy from an Azure Storage share - Remove-AzStorageShareStoredAccessPolicy -ShareName "ContosoShare" -Policy "GeneralPolicy" - - This command removes a stored access policy named GeneralPolicy from ContosoShare. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragesharestoredaccesspolicy - - - Get-AzStorageShareStoredAccessPolicy - - - - New-AzStorageShareStoredAccessPolicy - - - - New-AzStorageContext - - - - Set-AzStorageShareStoredAccessPolicy - - - - - - - Remove-AzStorageTable - Remove - AzStorageTable - - Removes a storage table. - - - - The Remove-AzStorageTable cmdlet removes one or more storage tables from a storage account in Azure. - - - - Remove-AzStorageTable - - Name - - Specifies the name of the table to remove. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Name - - Specifies the name of the table to remove. - - System.String - - System.String - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - ------------------ Example 1: Remove a table ------------------ - Remove-AzStorageTable -Name "TableABC" - - This command removes a table. - - - - - - --------------- Example 2: Remove several tables --------------- - Get-AzStorageTable table* | Remove-AzStorageTable - - This example uses a wildcard character with the Name parameter to get all tables that match the pattern table and then passes the result on the pipeline to remove the tables. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragetable - - - Get-AzStorageTable - - - - - - - Remove-AzStorageTableStoredAccessPolicy - Remove - AzStorageTableStoredAccessPolicy - - Removes a stored access policy from an Azure storage table. - - - - The Remove-AzStorageTableStoredAccessPolicy cmdlet removes a stored access policy from an Azure storage table. - - - - Remove-AzStorageTableStoredAccessPolicy - - Table - - Specifies the Azure table name. - - System.String - - System.String - - - None - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Policy - - Specifies the name of the stored access policy that this cmdlet removes. - - System.String - - System.String - - - None - - - Table - - Specifies the Azure table name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: Remove a stored access policy from a storage table - Remove-AzStorageTableStoredAccessPolicy -Table "MyTable" -Policy "Policy05" - - This command removes policy named Policy05 from storage table named MyTable. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/remove-azstoragetablestoredaccesspolicy - - - Get-AzStorageTableStoredAccessPolicy - - - - New-AzStorageContext - - - - New-AzStorageTableStoredAccessPolicy - - - - Set-AzStorageTableStoredAccessPolicy - - - - - - - Rename-AzStorageDirectory - Rename - AzStorageDirectory - - Renames a directory. - - - - The Rename-AzStorageDirectory cmdlet renames a directory from a file share. - - - - Rename-AzStorageDirectory - - ShareName - - Name of the file share where the directory would be listed. - - System.String - - System.String - - - None - - - SourcePath - - Path to an existing directory. - - System.String - - System.String - - - None - - - DestinationPath - - The destination path to rename the directory to. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - - System.Management.Automation.SwitchParameter - - - False - - - DisAllowSourceTrailingDot - - Disallow trailing dot (.) to suffix source directory and source file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Rename-AzStorageDirectory - - ShareClient - - ShareClienr indicated the share where the directory would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - SourcePath - - Path to an existing directory. - - System.String - - System.String - - - None - - - DestinationPath - - The destination path to rename the directory to. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Rename-AzStorageDirectory - - ShareDirectoryClient - - Source directory instance - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - DestinationPath - - The destination path to rename the directory to. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationPath - - The destination path to rename the directory to. - - System.String - - System.String - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisAllowSourceTrailingDot - - Disallow trailing dot (.) to suffix source directory and source file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Force to overwrite the existing file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - ShareClient - - ShareClienr indicated the share where the directory would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - Source directory instance - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareName - - Name of the file share where the directory would be listed. - - System.String - - System.String - - - None - - - SourcePath - - Path to an existing directory. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory - - - - - - - - - - - - - - ---------------- Example 1 : Rename a directory ---------------- - Rename-AzStorageDirectory -ShareName myshare -SourcePath testdir1 -DestinationPath testdir2 - -AccountName: myaccount, ShareName: myshare - -Type Length Name ----- ------ ---- -Directory 1 testdir2 - - This command renames a directory from testdir1 to testdir2. - - - - - - -------- Example 2 : Rename a directory using pipeline -------- - Get-AzStorageFile -ShareName myshare -Path testdir1 | Rename-AzStorageDirectory -DestinationPath testdir2 - -AccountName: myaccount, ShareName: myshare - -Type Length Name ----- ------ ---- -Directory 1 testdir2 - - This command gets a directory from a file share first, and then rename the directory from testdir1 to testdir2 using pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/rename-azstoragedirectory - - - - - - Rename-AzStorageFile - Rename - AzStorageFile - - Renames a file. - - - - The Rename-AzStorageFile cmdlet renames a directory from a file share. - - - - Rename-AzStorageFile - - ShareName - - Name of the file share where the file would be listed. - - System.String - - System.String - - - None - - - DestinationPath - - The destination path to rename the file to. - - System.String - - System.String - - - None - - - SourcePath - - Path to an existing file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ContentType - - Sets the MIME content type of the file. The default type is 'application/octet-stream'. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - - System.Management.Automation.SwitchParameter - - - False - - - DisAllowSourceTrailingDot - - Disallow trailing dot (.) to suffix source directory and source file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Rename-AzStorageFile - - ShareClient - - ShareClient indicated the share where the file would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - DestinationPath - - The destination path to rename the file to. - - System.String - - System.String - - - None - - - SourcePath - - Path to an existing file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ContentType - - Sets the MIME content type of the file. The default type is 'application/octet-stream'. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Rename-AzStorageFile - - ShareDirectoryClient - - ShareDirectoryClient indicated the share where the file would be listed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - DestinationPath - - The destination path to rename the file to. - - System.String - - System.String - - - None - - - SourcePath - - Path to an existing file. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ContentType - - Sets the MIME content type of the file. The default type is 'application/octet-stream'. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Rename-AzStorageFile - - ShareFileClient - - Source file instance - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - DestinationPath - - The destination path to rename the file to. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - ContentType - - Sets the MIME content type of the file. The default type is 'application/octet-stream'. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Force to overwrite the existing file. - - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ContentType - - Sets the MIME content type of the file. The default type is 'application/octet-stream'. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestinationPath - - The destination path to rename the file to. - - System.String - - System.String - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisAllowSourceTrailingDot - - Disallow trailing dot (.) to suffix source directory and source file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Force to overwrite the existing file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - IgnoreReadonly - - Optional. Specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - If specified the permission (security descriptor) shall be set for the directory/file. Default value: Inherit. If SDDL is specified as input, it must have owner, group and dacl. - - System.String - - System.String - - - None - - - ShareClient - - ShareClient indicated the share where the file would be listed. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient indicated the share where the file would be listed. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareFileClient - - Source file instance - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Name of the file share where the file would be listed. - - System.String - - System.String - - - None - - - SourcePath - - Path to an existing file. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - - - - - - - - - - - - - --------- Example 1 : Rename a file from a file share --------- - Rename-AzStorageFile -SourcePath testfile1 -DestinationPath testfile2 -ShareName myshare - -AccountName: myaccount, ShareName: myshare - -Type Length Name ----- ------ ---- -File 512 testfile2 - - This command renames a file from testfile1 to testfile2 under file share myshare. - - - - - - -- Example 2 : Rename a file from a file share using pipeline -- - Get-AzStorageFile -ShareName myshare -Path testfile1 | Rename-AzStorageFile -DestinationPath testfile2 - -AccountName: myaccount, ShareName: myshare - -Type Length Name ----- ------ ---- -File 512 testfile2 - - This command gets a file client object first, and the rename the file from testfile1 to testfile2 using pipeline. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/rename-azstoragefile - - - - - - Restore-AzDataLakeGen2DeletedItem - Restore - AzDataLakeGen2DeletedItem - - Restores a deleted file or directory in a filesystem. - - - - The Restore-AzDataLakeGen2DeletedItem cmdlet restores a deleted file or directory in a filesystem in an Azure storage account. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Restore-AzDataLakeGen2DeletedItem - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The deleted item path in the specified FileSystem that should be restore. In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - DeletionId - - The deletion ID associated with the soft deleted path. You can get soft deleted paths and their assocaited deletion IDs with cmdlet 'Get-AzDataLakeGen2DeletedItem'. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Restore-AzDataLakeGen2DeletedItem - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - InputObject - - Azure Datalake Gen2 Deleted Item Object to restore. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DeletionId - - The deletion ID associated with the soft deleted path. You can get soft deleted paths and their assocaited deletion IDs with cmdlet 'Get-AzDataLakeGen2DeletedItem'. - - System.String - - System.String - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - InputObject - - Azure Datalake Gen2 Deleted Item Object to restore. - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - - None - - - Path - - The deleted item path in the specified FileSystem that should be restore. In the format 'directory/file.txt' or 'directory1/directory2/' - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - Example 1: List all deleted files or directories from a Filesystem, and restore them by pipeline - $items = Get-AzDataLakeGen2DeletedItem -FileSystem "filesystem1" -$items - - FileSystem Name: filesystem1 - -Path DeletionId DeletedOn RemainingRetentionDays ----- ---------- --------- ---------------------- -dir0/dir1/file1 132658816156507617 2021-05-19 07:06:55Z 3 -dir0/dir2 132658834541610122 2021-05-19 07:37:34Z 3 -dir0/dir2/file3 132658834534174806 2021-05-19 07:37:33Z 3 - -$items | Restore-AzDataLakeGen2DeletedItem - - FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir0/dir1/file1 False 1024 2021-05-19 07:06:39Z rw-r----- $superuser $superuser -dir0/dir2 True 2021-05-19 07:06:37Z rwxr-x--- $superuser $superuser -dir0/dir2/file3 False 1024 2021-05-19 07:06:42Z rw-r----- $superuser $superuser - - This command lists all deleted files or directories from a Filesystem, the restore all of them by pipeline. - - - - - - -- Example 2: Restore an single file with path and DeletionId -- - Restore-AzDataLakeGen2DeletedItem -FileSystem "filesystem1" -Path dir0/dir1/file1 -DeletionId 132658838415219780 - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir0/dir1/file1 False 1024 2021-05-19 07:06:39Z rw-r----- $superuser $superuser - - This command restores an single file with path and DeletionId. The DeletionId can be get with 'Get-AzDataLakeGen2DeletedItem' cmdlet. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/restore-azdatalakegen2deleteditem - - - - - - Restore-AzStorageContainer - Restore - AzStorageContainer - - Restores a previously deleted Azure storage blob container. - - - - The Restore-AzStorageContainer cmdlet restores a previously deleted Azure storage blob container. This cmdlet only works after enabled Container softdelete with Enable-AzStorageBlobDeleteRetentionPolicy. - - - - Restore-AzStorageContainer - - Name - - The name of the previously deleted container. - - System.String - - System.String - - - None - - - VersionId - - The version of the previously deleted container. - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - The name of the previously deleted container. - - System.String - - System.String - - - None - - - VersionId - - The version of the previously deleted container. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - Example 1: List containers include deleted containers, and restore all deleted containers with pipeline - Get-AzStorageContainer -IncludeDeleted -Context $ctx | Where-Object { $_.IsDeleted } | Restore-AzStorageContainer - -Storage Account Name: storageaccountname - -Name PublicAccess LastModified IsDeleted VersionId ----- ------------ ------------ --------- --------- -container1 Off -container2 Off - - This command lists all containers include deleted containers, filter out all the deleted containers, then restore all deleted container to the same container name with pipeline. - - - - - - -------- Example 2: Restore a single deleted container -------- - Get-AzStorageContainer -IncludeDeleted -Context $ctx | Where-Object { $_.IsDeleted } - - Storage Account Name: storageaccountname - -Name PublicAccess LastModified IsDeleted VersionId ----- ------------ ------------ --------- --------- -container1 8/28/2020 10:18:13 AM +00:00 True 01D685BC91A88F22 -container2 9/4/2020 12:52:37 PM +00:00 True 01D67D248986B6DA - -Restore-AzStorageContainer -Name container1 -VersionId 01D685BC91A88F22 -Context $ctx - - Storage Account Name: storageaccountname - -Name PublicAccess LastModified IsDeleted VersionId ----- ------------ ------------ --------- --------- -container1 Off - - This first command lists all containers and filter out deleted containers. The secondary command restores a deleted container by manually input the parameters. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/restore-azstoragecontainer - - - - - - Set-AzDataLakeGen2AclRecursive - Set - AzDataLakeGen2AclRecursive - - Set ACL recursively on the specified path. - - - - The Set-AzDataLakeGen2AclRecursive cmdlet sets ACL recursively on the specified path. The input ACL will replace original ACL completely. - - - - Set-AzDataLakeGen2AclRecursive - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified FileSystem that to change Acl recursively. Can be a file or directory. In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to change Acl recursively from root directory of the Filesystem. - - System.String - - System.String - - - None - - - Acl - - The POSIX access control list to set recursively for the file or directory. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BatchSize - - If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. Default is 2000. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - ContinueOnFailure - - Set this parameter to ignore failures and continue proceeing with the operation on other sub-entities of the directory. Default the operation will terminate quickly on encountering failures. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MaxBatchCount - - Maximum number of batches that single change Access Control operation can execute. If data set size exceeds MaxBatchCount multiply BatchSize, continuation token will be return. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Acl - - The POSIX access control list to set recursively for the file or directory. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - BatchSize - - If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. Default is 2000. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - ContinueOnFailure - - Set this parameter to ignore failures and continue proceeing with the operation on other sub-entities of the directory. Default the operation will terminate quickly on encountering failures. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - MaxBatchCount - - Maximum number of batches that single change Access Control operation can execute. If data set size exceeds MaxBatchCount multiply BatchSize, continuation token will be return. - - System.Int32 - - System.Int32 - - - None - - - Path - - The path in the specified FileSystem that to change Acl recursively. Can be a file or directory. In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to change Acl recursively from root directory of the Filesystem. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - -------- Example 1: Set ACL recursively on a directory -------- - $acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rw-" -InputObject $acl -Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx - -FailedEntries : -TotalDirectoriesSuccessfulCount : 7 -TotalFilesSuccessfulCount : 5 -TotalFailureCount : 0 -ContinuationToken : - - This command first creates an ACL object with 3 acl entries, then sets ACL recursively on a directory. - - - - - - Example 2: Set ACL recursively on a root directory of filesystem - $result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx - -$result - -FailedEntries : {dir1/dir2/file4} -TotalDirectoriesSuccessfulCount : 500 -TotalFilesSuccessfulCount : 2500 -TotalFailureCount : 1 -ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== - -$result.FailedEntries - -Name IsDirectory ErrorMessage ----- ----------- ------------ -dir0/dir2/file4 False This request is not authorized to perform this operation using this permission. - -# user need fix the failed item , then can resume with ContinuationToken - -$result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx - -$result - -FailedEntries : -TotalDirectoriesSuccessfulCount : 100 -TotalFilesSuccessfulCount : 1000 -TotalFailureCount : 0 -ContinuationToken : - - This command first sets ACL recursively to a root directory and failed, then resume with ContinuationToken after user fix the failed file. - - - - - - -------- Example 3: Set ACL recursively chunk by chunk -------- - $token = $null -$TotalDirectoriesSuccess = 0 -$TotalFilesSuccess = 0 -$totalFailure = 0 -$FailedEntries = New-Object System.Collections.Generic.List[System.Object] -do -{ - $result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -BatchSize 100 -MaxBatchCount 2 -ContinuationToken $token -Context $ctx - - # echo $result - $TotalFilesSuccess += $result.TotalFilesSuccessfulCount - $TotalDirectoriesSuccess += $result.TotalDirectoriesSuccessfulCount - $totalFailure += $result.TotalFailureCount - $FailedEntries += $result.FailedEntries - $token = $result.ContinuationToken -}while (($token -ne $null) -and ($result.TotalFailureCount -eq 0)) -echo "" -echo "[Result Summary]" -echo "TotalDirectoriesSuccessfulCount: `t$($TotalDirectoriesSuccess)" -echo "TotalFilesSuccessfulCount: `t`t`t$($TotalFilesSuccess)" -echo "TotalFailureCount: `t`t`t`t`t$($totalFailure)" -echo "ContinuationToken: `t`t`t`t`t$($token)" -echo "FailedEntries:"$($FailedEntries | ft) - - This script sets ACL rescursively on directory chunk by chunk, with chunk size as BatchSize * MaxBatchCount. Chunk size is 200 in this script. - - - - - - Example 4: Set ACL recursively on a directory and ContinueOnFailure, then resume from failures one by one - $result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx - -$result - -FailedEntries : {dir0/dir1/file1, dir0/dir2/file4} -TotalDirectoriesSuccessfulCount : 100 -TotalFilesSuccessfulCount : 500 -TotalFailureCount : 2 -ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== - -$result.FailedEntries - -Name IsDirectory ErrorMessage ----- ----------- ------------ -dir0/dir1/file1 False This request is not authorized to perform this operation using this permission. -dir0/dir2/file4 False This request is not authorized to perform this operation using this permission. - -# user need fix the failed item , then can resume with ContinuationToken - -foreach ($path in $result.FailedEntries.Name) - { - # user code to fix failed entry in $path - - #set ACL again - Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path $path -Acl $acl -Context $ctx - } - - This command first sets ACL recursively to a directory with ContinueOnFailure, and some items failed, then resume the failed items one by one. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azdatalakegen2aclrecursive - - - - - - Set-AzDataLakeGen2ItemAclObject - Set - AzDataLakeGen2ItemAclObject - - Creates/Updates a DataLake gen2 item ACL object, which can be used in Update-AzDataLakeGen2Item cmdlet. - - - - The Set-AzDataLakeGen2ItemAclObject cmdlet creates/updates a DataLake gen2 item ACL object, which can be used in Update-AzDataLakeGen2Item cmdlet. If the new ACL entry with same AccessControlType/EntityId/DefaultScope not exist in the input ACL, will create a new ACL entry, else update permission of existing ACL entry. - - - - Set-AzDataLakeGen2ItemAclObject - - AccessControlType - - There are four types: "user" grants rights to the owner or a named user, "group" grants rights to the owning group or a named group, "mask" restricts rights granted to named users and the members of groups, and "other" grants rights to all users not found in any of the other entries. - - - User - Group - Mask - Other - - Azure.Storage.Files.DataLake.Models.AccessControlType - - Azure.Storage.Files.DataLake.Models.AccessControlType - - - None - - - DefaultScope - - Set this parameter to indicate the ACE belongs to the default ACL for a directory; otherwise scope is implicit and the ACE belongs to the access ACL. - - - System.Management.Automation.SwitchParameter - - - False - - - EntityId - - The user or group identifier. It is omitted for entries of AccessControlType "mask" and "other". The user or group identifier is also omitted for the owner and owning group. - - System.String - - System.String - - - None - - - InputObject - - If input the PSPathAccessControlEntry[] object, will add the new ACL as a new element of the input PSPathAccessControlEntry[] object. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - Permission - - The permission field is a 3-character sequence where the first character is 'r' to grant read access, the second character is 'w' to grant write access, and the third character is 'x' to grant execute permission. If access is not granted, the '-' character is used to denote that the permission is denied. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set. - - System.String - - System.String - - - None - - - - - - AccessControlType - - There are four types: "user" grants rights to the owner or a named user, "group" grants rights to the owning group or a named group, "mask" restricts rights granted to named users and the members of groups, and "other" grants rights to all users not found in any of the other entries. - - Azure.Storage.Files.DataLake.Models.AccessControlType - - Azure.Storage.Files.DataLake.Models.AccessControlType - - - None - - - DefaultScope - - Set this parameter to indicate the ACE belongs to the default ACL for a directory; otherwise scope is implicit and the ACE belongs to the access ACL. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EntityId - - The user or group identifier. It is omitted for entries of AccessControlType "mask" and "other". The user or group identifier is also omitted for the owner and owning group. - - System.String - - System.String - - - None - - - InputObject - - If input the PSPathAccessControlEntry[] object, will add the new ACL as a new element of the input PSPathAccessControlEntry[] object. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - Permission - - The permission field is a 3-character sequence where the first character is 'r' to grant read access, the second character is 'w' to grant write access, and the third character is 'x' to grant execute permission. If access is not granted, the '-' character is used to denote that the permission is denied. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set. - - System.String - - System.String - - - None - - - - - - None - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry - - - - - - - - - - - - - - Example 1: Create an ACL object with 3 ACL entry, and update ACL on a directory - $acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -DefaultScope -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rw-" -InputObject $acl -Update-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/dir3" -ACL $acl - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/dir3 True 2020-03-23 09:34:31Z rwxrw-rw-+ $superuser $superuser - - This command creates an ACL object with 3 ACL entries (use -InputObject parameter to add acl entry to existing acl object), and updates ACL on a directory. - - - - - - Example 2: Create an ACL object with 4 ACL entries, and update permission of an existing ACL entry - $acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -DefaultScope -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rwt" -InputObject $acl -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission rwx -InputObject $acl -$acl - -DefaultScope AccessControlType EntityId Permissions ------------- ----------------- -------- ----------- -True User rwx -False Group rw- -False Other rwt -False User ********-****-****-****-************ rwx - -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -InputObject $acl -$acl - -DefaultScope AccessControlType EntityId Permissions ------------- ----------------- -------- ----------- -True User rwx -False Group rw- -False Other rw- -False User ********-****-****-****-************ r-x - - This command first creates an ACL object with 4 ACL entries, then run the cmdlet again with different permission but same AccessControlType/EntityId/DefaultScope of an existing ACL entry. Then the permission of the ACL entry is updated, but no new ACL entry is added. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azdatalakegen2itemaclobject - - - - - - Set-AzStorageBlobContent - Set - AzStorageBlobContent - - Uploads a local file to an Azure Storage blob. - - - - The Set-AzStorageBlobContent cmdlet uploads a local file to an Azure Storage blob. - - - - Set-AzStorageBlobContent - - File - - Specifies a local file path for a file to upload as blob content. - - System.String - - System.String - - - None - - - Container - - Specifies the name of a container. This cmdlet uploads a file to a blob in the container that this parameter specifies. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - Blob - - Specifies the name of a blob. This cmdlet uploads a file to the Azure Storage blob that this parameter specifies. - - System.String - - System.String - - - None - - - BlobType - - Specifies the type for the blob that this cmdlet uploads. The acceptable values for this parameter are: - Block - - Page - - Append - - The default value is Block. - - - Block - Page - Append - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. To use a storage context created from a SAS Token without read permission, need add -Force parameter to skip check blob existence. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the blob. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites an existing blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the uploaded blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - PremiumPageBlobTier - - Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - Properties - - Specifies properties for the uploaded blob. The supported properties are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobContent - - File - - Specifies a local file path for a file to upload as blob content. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - Blob - - Specifies the name of a blob. This cmdlet uploads a file to the Azure Storage blob that this parameter specifies. - - System.String - - System.String - - - None - - - BlobType - - Specifies the type for the blob that this cmdlet uploads. The acceptable values for this parameter are: - Block - - Page - - Append - - The default value is Block. - - - Block - Page - Append - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. This cmdlet uploads content to a blob in the container that this parameter specifies. To obtain a CloudBlobContainer object, use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. To use a storage context created from a SAS Token without read permission, need add -Force parameter to skip check blob existence. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the blob. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites an existing blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the uploaded blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - PremiumPageBlobTier - - Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - Properties - - Specifies properties for the uploaded blob. The supported properties are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobContent - - File - - Specifies a local file path for a file to upload as blob content. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - BlobType - - Specifies the type for the blob that this cmdlet uploads. The acceptable values for this parameter are: - Block - - Page - - Append - - The default value is Block. - - - Block - Page - Append - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. To use a storage context created from a SAS Token without read permission, need add -Force parameter to skip check blob existence. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the blob. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites an existing blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the uploaded blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - PremiumPageBlobTier - - Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - Properties - - Specifies properties for the uploaded blob. The supported properties are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Blob - - Specifies the name of a blob. This cmdlet uploads a file to the Azure Storage blob that this parameter specifies. - - System.String - - System.String - - - None - - - BlobType - - Specifies the type for the blob that this cmdlet uploads. The acceptable values for this parameter are: - Block - - Page - - Append - - The default value is Block. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. This cmdlet uploads content to a blob in the container that this parameter specifies. To obtain a CloudBlobContainer object, use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of a container. This cmdlet uploads a file to a blob in the container that this parameter specifies. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. To use a storage context created from a SAS Token without read permission, need add -Force parameter to skip check blob existence. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EncryptionScope - - Encryption scope to be used when making requests to the blob. - - System.String - - System.String - - - None - - - File - - Specifies a local file path for a file to upload as blob content. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites an existing blob without prompting you for confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Metadata - - Specifies metadata for the uploaded blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - PremiumPageBlobTier - - Page Blob Tier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - Properties - - Specifies properties for the uploaded blob. The supported properties are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - ---------------- Example 1: Upload a named file ---------------- - Set-AzStorageBlobContent -Container "ContosoUpload" -File ".\PlanningData" -Blob "Planning2015" - - This command uploads the file that is named PlanningData to a blob named Planning2015. - - - - - - ----- Example 2: Upload all files under the current folder ----- - Get-ChildItem -File -Recurse | Set-AzStorageBlobContent -Container "ContosoUploads" - - This command uses the core Windows PowerShell cmdlet Get-ChildItem to get all the files in the current folder and in subfolders, and then passes them to the current cmdlet by using the pipeline operator. The Set-AzStorageBlobContent cmdlet uploads the files to the container named ContosoUploads. - - - - - - ------------ Example 3: Overwrite an existing blob ------------ - Get-AzStorageBlob -Container "ContosoUploads" -Blob "Planning2015" | Set-AzStorageBlobContent -File "ContosoPlanning" - - This command gets the blob named Planning2015 in the ContosoUploads container by using the Get-AzStorageBlob cmdlet, and then passes that blob to the current cmdlet. The command uploads the file that is named ContosoPlanning as Planning2015. This command does not specify the Force parameter. The command prompts you for confirmation. If you confirm the command, the cmdlet overwrites the existing blob. - - - - - - Example 4: Upload a file to a container by using the pipeline - Get-AzStorageContainer -Container "ContosoUpload*" | Set-AzStorageBlobContent -File "ContosoPlanning" -Blob "Planning2015" - - This command gets the container that starts with the string ContosoUpload by using the Get-AzStorageContainer cmdlet, and then passes that blob to the current cmdlet. The command uploads the file that is named ContosoPlanning as Planning2015. - - - - - - Example 5: Upload a file to page blob with metadata and PremiumPageBlobTier as P10 - $Metadata = @{"key" = "value"; "name" = "test"} -Set-AzStorageBlobContent -File "ContosoPlanning" -Container "ContosoUploads" -Metadata $Metadata -BlobType Page -PremiumPageBlobTier P10 - - The first command creates a hash table that contains metadata for a blob, and stores that hash table in the $Metadata variable. The second command uploads the file that is named ContosoPlanning to the container named ContosoUploads. The blob includes the metadata stored in $Metadata, and has PremiumPageBlobTier as P10. - - - - - - Example 6: Upload a file to blob with specified blob properties, and set StandardBlobTier as Cool - $filepath = "c:\temp\index.html" -Set-AzStorageBlobContent -File $filepath -Container "contosouploads" -Properties @{"ContentType" = [System.Web.MimeMapping]::GetMimeMapping($filepath); "ContentMD5" = "i727sP7HigloQDsqadNLHw=="} -StandardBlobTier Cool - -AccountName: storageaccountname, ContainerName: contosouploads - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -index.html BlockBlob 403116 text/html 2020-09-22 08:06:53Z Cool False - - This command uploads the file c:\temp\index.html to the container named contosouploads with specified blob properties, and set StandardBlobTier as Cool. This command gets ContentType value set to blob properties by [System.Web.MimeMapping]::GetMimeMapping() API. - - - - - - --- Example 7: Upload a file to a blob with Encryption Scope --- - $blob = Set-AzStorageBlobContent -File "mylocalfile" -Container "mycontainer" -Blob "myblob" -EncryptionScope "myencryptscope" - -$blob.BlobProperties.EncryptionScope - -myencryptscope - - This command uploads a file to a blob with Encryption Scope. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageblobcontent - - - Get-AzStorageBlobContent - - - - Get-AzStorageBlob - - - - Remove-AzStorageBlob - - - - - - - Set-AzStorageBlobImmutabilityPolicy - Set - AzStorageBlobImmutabilityPolicy - - Creates or updates ImmutabilityPolicy of a Storage blob. - - - - The Set-AzStorageBlobImmutabilityPolicy cmdlet creates or updates ImmutabilityPolicy of a Storage blob. The cmdlet only works when the blob container has already enabled immutable Storage with versioning. - - - - Set-AzStorageBlobImmutabilityPolicy - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiresOn - - Blob ImmutabilityPolicy ExpiresOn - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - PolicyMode - - Blob ImmutabilityPolicy PolicyMode - - - Unlocked - Locked - Mutable - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobImmutabilityPolicy - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiresOn - - Blob ImmutabilityPolicy ExpiresOn - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - PolicyMode - - Blob ImmutabilityPolicy PolicyMode - - - Unlocked - Locked - Mutable - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiresOn - - Blob ImmutabilityPolicy ExpiresOn - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - PolicyMode - - Blob ImmutabilityPolicy PolicyMode - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - Example 1: Create or update immutability policy of a Storage blob. - $blob = Set-AzStorageBlobImmutabilityPolicy -Container $containerName -Blob $blobname -ExpiresOn (Get-Date).AddDays(100) -PolicyMode Unlocked - -$blob - - AccountName: mystorageaccount, ContainerName: mycontainer - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * - -$blob.BlobProperties.ImmutabilityPolicy - -ExpiresOn PolicyMode ---------- ---------- -10/27/2021 8:56:32 AM +00:00 Unlocked - - This command creates or updates ImmutabilityPolicy of a Storage blob, then show the blob and its ImmutabilityPolicy. The command only works when the blob container has already enabled immutable Storage with versioning. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageblobimmutabilitypolicy - - - - - - Set-AzStorageBlobLegalHold - Set - AzStorageBlobLegalHold - - Enables or disables legal hold on a Storage blob. - - - - The Set-AzStorageBlobLegalHold cmdlet enables or disables legal hold on a Storage blob. The cmdlet only works when the blob container has already enabled immutable Storage with versioning. - - - - Set-AzStorageBlobLegalHold - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableLegalHold - - Enable LegalHold on the Blob. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobLegalHold - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableLegalHold - - Disable LegalHold on the Blob. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobLegalHold - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - EnableLegalHold - - Enable LegalHold on the Blob. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobLegalHold - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableLegalHold - - Disable LegalHold on the Blob. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisableLegalHold - - Disable LegalHold on the Blob. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - EnableLegalHold - - Enable LegalHold on the Blob. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression.See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - ------- Example 1: Enable legal hold on a Storage blob. ------- - $blob = Set-AzStorageBlobLegalHold -Container $containerName -Blob $blobname -EnableLegalHold - -$blob - - AccountName: mystorageaccount, ContainerName: mycontainer - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * - -$blob.BlobProperties.HasLegalHold -True - - This command enables legal hold on a Storage blob, then show the result. The command only works when the blob container has already enabled immutable Storage with versioning. - - - - - - Example 2: Disable legal hold on a Storage blob with pipeline. - $blob = Get-AzStorageBlob -Container $containerName -Blob $blobname | Set-AzStorageBlobLegalHold -DisableLegalHold - -$blob - - AccountName: mystorageaccount, ContainerName: mycontainer - -Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted VersionId ----- -------- ------ ----------- ------------ ---------- ------------ --------- --------- -testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * - -$blob.BlobProperties.HasLegalHold -False - - This command disables legal hold on a Storage blob with pipeline, then show the result. The command only works when the blob container has already enabled immutable Storage with versioning. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragebloblegalhold - - - - - - Set-AzStorageBlobTag - Set - AzStorageBlobTag - - Set blob tags of a specific blob. - - - - The Set-AzStorageBlobTag sets blob tags of a specific blob. - - - - Set-AzStorageBlobTag - - Blob - - Blob name - - System.String - - System.String - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Blob tags which will set to the blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobTag - - Blob - - Blob name - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - CloudBlobContainer Object - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Blob tags which will set to the blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageBlobTag - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Blob tags which will set to the blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Blob name - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - CloudBlobContainer Object - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Container name - - System.String - - System.String - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Tag - - Blob tags which will set to the blob. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - --------- Example 1: Set blob tags on a specific blob --------- - Set-AzStorageBlobTag -Container "containername" -Blob testblob -Tag @{"tag1" = "value1"; "tag2" = "value2" } - -Name Value ----- ----- -tag2 value2 -tag1 value1 - - This command sets blob tags on a specific blob. - - - - - - Example 2: Set blob tags on a specific blob with tag condition - Set-AzStorageBlobTag -Container "containername" -Blob testblob -Tag @{"tag1" = "value1"; "tag2" = "value2" } -TagCondition """tag1""='value1'" - -Name Value ----- ----- -tag2 value2 -tag1 value1 - - This command sets blob tags on a specific blob with tag condition. The cmdlet will only success when the blob contains a tag with name "tag1" and value "value1", else the cmdlet will fail with error code 412. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageblobtag - - - - - - Set-AzStorageContainerAcl - Set - AzStorageContainerAcl - - Sets the public access permission to a storage container. - - - - The Set-AzStorageContainerAcl cmdlet sets the public access permission to the specified storage container in Azure. - - - - Set-AzStorageContainerAcl - - Name - - Specifies a container name. - - System.String - - System.String - - - None - - - Permission - - Specifies the level of public access to this container. By default, the container and any blobs in it can be accessed only by the owner of the storage account. To grant anonymous users read permissions to a container and its blobs, you can set the container permissions to enable public access. Anonymous users can read blobs in a publicly available container without authenticating the request. The acceptable values for this parameter are: --Container. Provides full read access to a container and its blobs. Clients can enumerate blobs in the container through anonymous request, but cannot enumerate containers in the storage account. --Blob. Provides read access to blob data in a container through anonymous request, but does not provide access to container data. Clients cannot enumerate blobs in the container by using anonymous request. --Off. Restricts access to only the storage account owner. - - - Off - Container - Blob - Unknown - - Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType - - Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. Server side time out for each request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can create it by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Name - - Specifies a container name. - - System.String - - System.String - - - None - - - PassThru - - Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies the level of public access to this container. By default, the container and any blobs in it can be accessed only by the owner of the storage account. To grant anonymous users read permissions to a container and its blobs, you can set the container permissions to enable public access. Anonymous users can read blobs in a publicly available container without authenticating the request. The acceptable values for this parameter are: --Container. Provides full read access to a container and its blobs. Clients can enumerate blobs in the container through anonymous request, but cannot enumerate containers in the storage account. --Blob. Provides read access to blob data in a container through anonymous request, but does not provide access to container data. Clients cannot enumerate blobs in the container by using anonymous request. --Off. Restricts access to only the storage account owner. - - Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType - - Microsoft.Azure.Storage.Blob.BlobContainerPublicAccessType - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. Server side time out for each request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer - - - - - - - - - - - - - - ------ Example 1: Set azure storage container ACL by name ------ - Set-AzStorageContainerAcl -Container "Container01" -Permission Off -PassThru - - This command creates a container that has no public access. - - - - - - Example 2: Set azure storage container ACL by using the pipeline - Get-AzStorageContainer container* | Set-AzStorageContainerAcl -Permission Blob -PassThru - - This command gets all storage containers whose name starts with container and then passes the result on the pipeline to set the permission for them all to Blob access. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragecontaineracl - - - Get-AzStorageContainer - - - - New-AzStorageContainer - - - - Remove-AzStorageContainer - - - - - - - Set-AzStorageContainerStoredAccessPolicy - Set - AzStorageContainerStoredAccessPolicy - - Sets a stored access policy for an Azure storage container. - - - - The Set-AzStorageContainerStoredAccessPolicy cmdlet sets a stored access policy for an Azure storage container. - - - - Set-AzStorageContainerStoredAccessPolicy - - Container - - Specifies the Azure storage container name. - - System.String - - System.String - - - None - - - Policy - - Specifies the name for the stored access policy. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that the access policy has no expiration date. - - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Sets the start time to be $Null. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the storage container. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the Azure storage container name. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that the access policy has no expiration date. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Sets the start time to be $Null. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the storage container. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies the name for the stored access policy. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Set a stored access policy in a storage container with full permission - Set-AzStorageContainerStoredAccessPolicy -Container "MyContainer" -Policy "Policy06" -Permission rwdl - - This command sets an access policy named Policy06 for storage container named MyContainer. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragecontainerstoredaccesspolicy - - - Get-AzStorageContainerStoredAccessPolicy - - - - New-AzStorageContext - - - - New-AzStorageContainerStoredAccessPolicy - - - - Remove-AzStorageContainerStoredAccessPolicy - - - - - - - Set-AzStorageCORSRule - Set - AzStorageCORSRule - - Sets the CORS rules for a type of Storage service. - - - - The Set-AzStorageCORSRule cmdlet sets the Cross-Origin Resource Sharing (CORS) rules for a type of Azure Storage service. The types of storage services for this cmdlet are Blob, Table, Queue, and File. This cmdlet overwrites the existing rules. To see the current rules, use the Get-AzStorageCORSRule cmdlet. - - - - Set-AzStorageCORSRule - - ServiceType - - Specifies the Azure Storage service type for which this cmdlet assigns rules. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CorsRules - - Specifies an array of CORS rules. You can retrieve the existing rules using the Get-AzStorageCORSRule cmdlet. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CorsRules - - Specifies an array of CORS rules. You can retrieve the existing rules using the Get-AzStorageCORSRule cmdlet. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - PassThru - - Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServiceType - - Specifies the Azure Storage service type for which this cmdlet assigns rules. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule - - - - - - - - - - - - - - ------- Example 1: Assign CORS rules to the blob service ------- - $CorsRules = (@{ - AllowedHeaders=@("x-ms-blob-content-type","x-ms-blob-content-disposition"); - AllowedOrigins=@("*"); - MaxAgeInSeconds=30; - AllowedMethods=@("Get","Connect")}, - @{ - AllowedOrigins=@("http://www.fabrikam.com","http://www.contoso.com"); - ExposedHeaders=@("x-ms-meta-data*","x-ms-meta-customheader"); - AllowedHeaders=@("x-ms-meta-target*","x-ms-meta-customheader"); - MaxAgeInSeconds=30; - AllowedMethods=@("Put")}) - -Set-AzStorageCORSRule -ServiceType Blob -CorsRules $CorsRules - - The first command assigns an array of rules to the $CorsRules variable. This command uses standard extends over several lines in this code block. The second command assigns the rules in $CorsRules to the Blob service type. - - - - - - - Example 2: Change properties of a CORS rule for blob service - - $CorsRules = Get-AzStorageCORSRule -ServiceType Blob -$CorsRules[0].AllowedHeaders = @("x-ms-blob-content-type", "x-ms-blob-content-disposition") -$CorsRules[0].AllowedMethods = @("Get", "Connect", "Merge") -Set-AzStorageCORSRule -ServiceType Blob -CorsRules $CorsRules - - The first command gets the current CORS rules for the Blob type by using the Get-AzStorageCORSRule cmdlet. The command stores the rules in the $CorsRules array variable. The second and third commands modify the first rule in $CorsRules. The final command assigns the rules in $CorsRules to the Blob service type. The revised rules overwrite the current CORS rules. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragecorsrule - - - Get-AzStorageCORSRule - - - - New-AzStorageContext - - - - Remove-AzStorageCORSRule - - - - - - - Set-AzStorageFileContent - Set - AzStorageFileContent - - Uploads the contents of a file. - - - - The Set-AzStorageFileContent cmdlet uploads the contents of a file to a file on a specified share. - - - - Set-AzStorageFileContent - - ShareName - - Specifies the name of the file share. This cmdlet uploads to a file in the file share this parameter specifies. - - System.String - - System.String - - - None - - - Source - - Specifies the source file that this cmdlet uploads. If you specify a file that does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a file or folder. This cmdlet uploads contents to the file that this parameter specifies, or to a file in the folder that this parameter specifies. If you specify a folder, this cmdlet creates a file that has the same name as the source file. If you specify a path of a file that does not exist, this cmdlet creates that file and saves the contents to that file. If you specify a file that already exists, and you specify the Force parameter, this cmdlet overwrites the contents of the file. If you specify a file that already exists and you do not specify Force , this cmdlet makes no change, and returns an error. If you specify a path of a folder that does not exist, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Indicates that this cmdlet overwrites an existing Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it creates or uploads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageFileContent - - ShareClient - - ShareClient object indicated the share where the file would be uploaded to. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Source - - Specifies the source file that this cmdlet uploads. If you specify a file that does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a file or folder. This cmdlet uploads contents to the file that this parameter specifies, or to a file in the folder that this parameter specifies. If you specify a folder, this cmdlet creates a file that has the same name as the source file. If you specify a path of a file that does not exist, this cmdlet creates that file and saves the contents to that file. If you specify a file that already exists, and you specify the Force parameter, this cmdlet overwrites the contents of the file. If you specify a file that already exists and you do not specify Force , this cmdlet makes no change, and returns an error. If you specify a path of a folder that does not exist, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that this cmdlet overwrites an existing Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it creates or uploads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Set-AzStorageFileContent - - ShareDirectoryClient - - ShareDirectoryClient object indicated the directory where the file would be uploaded. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - Source - - Specifies the source file that this cmdlet uploads. If you specify a file that does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Path - - Specifies the path of a file or folder. This cmdlet uploads contents to the file that this parameter specifies, or to a file in the folder that this parameter specifies. If you specify a folder, this cmdlet creates a file that has the same name as the source file. If you specify a path of a file that does not exist, this cmdlet creates that file and saves the contents to that file. If you specify a file that already exists, and you specify the Force parameter, this cmdlet overwrites the contents of the file. If you specify a file that already exists and you do not specify Force , this cmdlet makes no change, and returns an error. If you specify a path of a folder that does not exist, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - AsJob - - Run cmdlet in the background. - - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Indicates that this cmdlet overwrites an existing Azure storage file. - - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it creates or uploads. - - - System.Management.Automation.SwitchParameter - - - False - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AsJob - - Run cmdlet in the background. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Indicates that this cmdlet overwrites an existing Azure storage file. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PassThru - - Indicates that this cmdlet returns the AzureStorageFile object that it creates or uploads. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Path - - Specifies the path of a file or folder. This cmdlet uploads contents to the file that this parameter specifies, or to a file in the folder that this parameter specifies. If you specify a folder, this cmdlet creates a file that has the same name as the source file. If you specify a path of a file that does not exist, this cmdlet creates that file and saves the contents to that file. If you specify a file that already exists, and you specify the Force parameter, this cmdlet overwrites the contents of the file. If you specify a file that already exists and you do not specify Force , this cmdlet makes no change, and returns an error. If you specify a path of a folder that does not exist, this cmdlet makes no change, and returns an error. - - System.String - - System.String - - - None - - - PreserveSMBAttribute - - Keep the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in destination File. This parameter is only available on Windows. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share where the file would be uploaded to. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareDirectoryClient - - ShareDirectoryClient object indicated the directory where the file would be uploaded. - - Azure.Storage.Files.Shares.ShareDirectoryClient - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - None - - - ShareName - - Specifies the name of the file share. This cmdlet uploads to a file in the file share this parameter specifies. - - System.String - - System.String - - - None - - - Source - - Specifies the source file that this cmdlet uploads. If you specify a file that does not exist, this cmdlet returns an error. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Azure.Storage.Files.Shares.ShareDirectoryClient - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - - - - - - - - - - - - - -------- Example 1: Upload a file in the current folder -------- - Set-AzStorageFileContent -ShareName "ContosoShare06" -Source "DataFile37" -Path "ContosoWorkingFolder/CurrentDataFile" - - This command uploads a file that is named DataFile37 in the current folder as a file that is named CurrentDataFile in the folder named ContosoWorkingFolder. - - - - - - ---- Example 2: Upload all the files in the current folder ---- - $CurrentFolder = (Get-Item .).FullName -$Container = Get-AzStorageShare -Name "ContosoShare06" -Get-ChildItem -Recurse | Where-Object { $_.GetType().Name -eq "FileInfo"} | ForEach-Object { - $path=$_.FullName.Substring($Currentfolder.Length+1).Replace("\","/") - Set-AzStorageFileContent -ShareClient $Container -Source $_.FullName -Path $path -Force -} - - This example uses several common Windows PowerShell cmdlets and the current cmdlet to upload all files from the current folder to the root folder of container ContosoShare06. The first command gets the name of the current folder and stores it in the $CurrentFolder variable. The second command uses the Get-AzStorageShare cmdlet to get the file share named ContosoShare06, and then stores it in the $Container variable. The final command gets the contents of the current folder and passes each one to the Where-Object cmdlet by using the pipeline operator. That cmdlet filters out objects that are not files, and then passes the files to the ForEach-Object cmdlet. That cmdlet runs a script block for each file that creates the appropriate path for it and then uses the current cmdlet to upload the file. The result has the same name and same relative position with regard to the other files that this example uploads. For more information about script blocks, type `Get-Help about_Script_Blocks`. - - - - - - Example 3: Upload a local file to an Azure file, and perserve the local File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in the Azure file. - Set-AzStorageFileContent -Source $localFilePath -ShareName sample -Path "dir1/file1" -PreserveSMBAttribute - - This example uploads a local file to an Azure file, and perserves the local File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in the Azure file. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragefilecontent - - - Remove-AzStorageDirectory - - - - New-AzStorageDirectory - - - - Get-AzStorageFileContent - - - - - - - Set-AzStorageQueueStoredAccessPolicy - Set - AzStorageQueueStoredAccessPolicy - - Sets a stored access policy for an Azure storage queue. - - - - The Set-AzStorageQueueStoredAccessPolicy cmdlet sets a stored access policy for an Azure storage queue. - - - - Set-AzStorageQueueStoredAccessPolicy - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - Policy - - Specifies the name for the stored access policy. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that the access policy has no expiration date. - - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Indicates that this cmdlet sets the start time to be $Null. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the storage queue. It is important to note that this is a string, like `raup` (for Read, Add, Update, and ProcessMessages). - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that the access policy has no expiration date. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Indicates that this cmdlet sets the start time to be $Null. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the storage queue. It is important to note that this is a string, like `raup` (for Read, Add, Update, and ProcessMessages). - - System.String - - System.String - - - None - - - Policy - - Specifies the name for the stored access policy. - - System.String - - System.String - - - None - - - Queue - - Specifies the Azure storage queue name. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Set a stored access policy in the queue with full permission - Set-AzStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy07" -Permission arup - - This command sets an access policy named Policy07 for storage queue named MyQueue. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragequeuestoredaccesspolicy - - - Get-AzStorageQueueStoredAccessPolicy - - - - New-AzStorageQueueStoredAccessPolicy - - - - Remove-AzStorageQueueStoredAccessPolicy - - - - - - - Set-AzStorageServiceLoggingProperty - Set - AzStorageServiceLoggingProperty - - Modifies logging for Azure Storage services. - - - - The Set-AzStorageServiceLoggingProperty cmdlet modifies logging for Azure Storage services. - - - - Set-AzStorageServiceLoggingProperty - - ServiceType - - Specifies the storage service type. This cmdlet modifies the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - LoggingOperations - - Specifies an array of Azure Storage service operations. Azure Storage services logs the operations that this parameter specifies. The acceptable values for this parameter are: - None - - Read - - Write - - Delete - - All - - - None - Read - Write - Delete - All - - Microsoft.Azure.Storage.Shared.Protocol.LoggingOperations[] - - Microsoft.Azure.Storage.Shared.Protocol.LoggingOperations[] - - - None - - - PassThru - - Indicates that this cmdlet returns the updated logging properties. If you do not specify this parameter, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Specifies the number of days that the Azure Storage service retains logged information. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Version - - Specifies the version of the Azure Storage service logging. The default value is 1.0. - - System.Nullable`1[System.Double] - - System.Nullable`1[System.Double] - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - LoggingOperations - - Specifies an array of Azure Storage service operations. Azure Storage services logs the operations that this parameter specifies. The acceptable values for this parameter are: - None - - Read - - Write - - Delete - - All - - Microsoft.Azure.Storage.Shared.Protocol.LoggingOperations[] - - Microsoft.Azure.Storage.Shared.Protocol.LoggingOperations[] - - - None - - - PassThru - - Indicates that this cmdlet returns the updated logging properties. If you do not specify this parameter, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Specifies the number of days that the Azure Storage service retains logged information. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServiceType - - Specifies the storage service type. This cmdlet modifies the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Version - - Specifies the version of the Azure Storage service logging. The default value is 1.0. - - System.Nullable`1[System.Double] - - System.Nullable`1[System.Double] - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.LoggingProperties - - - - - - - - - - - - - - -- Example 1: Modify logging properties for the Blob service -- - Set-AzStorageServiceLoggingProperty -ServiceType Blob -LoggingOperations Read,Write -PassThru -RetentionDays 10 -Version 1.0 - - This command modifies version 1.0 logging for blob storage to include read and write operations. Azure Storage service logging retains entries for 10 days. Because this command specifies the PassThru parameter, the command displays the modified logging properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageserviceloggingproperty - - - Get-AzStorageServiceLoggingProperty - - - - New-AzStorageContext - - - - - - - Set-AzStorageServiceMetricsProperty - Set - AzStorageServiceMetricsProperty - - Modifies metrics properties for the Azure Storage service. - - - - The Set-AzStorageServiceMetricsProperty cmdlet modifies metrics properties for the Azure Storage service. - - - - Set-AzStorageServiceMetricsProperty - - ServiceType - - Specifies the storage service type. This cmdlet modifies the metrics properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - MetricsType - - Specifies a metrics type. This cmdlet sets the Azure Storage service metrics type to the value that this parameter specifies. The acceptable values for this parameter are: Hour and Minute. - - - Hour - Minute - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MetricsLevel - - Specifies the metrics level that Azure Storage uses for the service. The acceptable values for this parameter are: - None - - Service - - ServiceAndApi - - - None - Service - ServiceAndApi - - System.Nullable`1[Microsoft.Azure.Storage.Shared.Protocol.MetricsLevel] - - System.Nullable`1[Microsoft.Azure.Storage.Shared.Protocol.MetricsLevel] - - - None - - - PassThru - - Indicates that this cmdlets returns the updated metrics properties. If you do not specify this parameter, this cmdlet does not return a value. - - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Specifies the number of days that the Azure Storage service retains metrics information. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Version - - Specifies the version of the Azure Storage metrics. The default value is 1.0. - - System.Nullable`1[System.Double] - - System.Nullable`1[System.Double] - - - None - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MetricsLevel - - Specifies the metrics level that Azure Storage uses for the service. The acceptable values for this parameter are: - None - - Service - - ServiceAndApi - - System.Nullable`1[Microsoft.Azure.Storage.Shared.Protocol.MetricsLevel] - - System.Nullable`1[Microsoft.Azure.Storage.Shared.Protocol.MetricsLevel] - - - None - - - MetricsType - - Specifies a metrics type. This cmdlet sets the Azure Storage service metrics type to the value that this parameter specifies. The acceptable values for this parameter are: Hour and Minute. - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType - - - None - - - PassThru - - Indicates that this cmdlets returns the updated metrics properties. If you do not specify this parameter, this cmdlet does not return a value. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - RetentionDays - - Specifies the number of days that the Azure Storage service retains metrics information. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ServiceType - - Specifies the storage service type. This cmdlet modifies the metrics properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - The value of File is not currently supported. - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Version - - Specifies the version of the Azure Storage metrics. The default value is 1.0. - - System.Nullable`1[System.Double] - - System.Nullable`1[System.Double] - - - None - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.MetricsProperties - - - - - - - - - - - - - - -- Example 1: Modify metrics properties for the Blob service -- - Set-AzStorageServiceMetricsProperty -ServiceType Blob -MetricsType Hour -MetricsLevel Service -PassThru -RetentionDays 10 -Version 1.0 - - This command modifies version 1.0 metrics for blob storage to a level of Service. Azure Storage service metrics retains entries for 10 days. Because this command specifies the PassThru parameter, the command displays the modified metrics properties. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstorageservicemetricsproperty - - - Get-AzStorageServiceMetricsProperty - - - - New-AzStorageContext - - - - - - - Set-AzStorageShareQuota - Set - AzStorageShareQuota - - Sets the storage capacity for a share. - - - - The Set-AzStorageShareQuota cmdlet sets the storage capacity for a specified share. - - - - Set-AzStorageShareQuota - - ShareClient - - ShareClient object indicated the share whose quota to set. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Quota - - Specifies the quota value in gigabytes (GB). See the quota limitation in https://learn.microsoft.com/azure/azure-subscription-service-limits#azure-files-limits. - - System.Int32 - - System.Int32 - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - Set-AzStorageShareQuota - - ShareName - - Specifies the name of the file share for which to set a quota. - - System.String - - System.String - - - None - - - Quota - - Specifies the quota value in gigabytes (GB). See the quota limitation in https://learn.microsoft.com/azure/azure-subscription-service-limits#azure-files-limits. - - System.Int32 - - System.Int32 - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Quota - - Specifies the quota value in gigabytes (GB). See the quota limitation in https://learn.microsoft.com/azure/azure-subscription-service-limits#azure-files-limits. - - System.Int32 - - System.Int32 - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareClient - - ShareClient object indicated the share whose quota to set. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - ShareName - - Specifies the name of the file share for which to set a quota. - - System.String - - System.String - - - None - - - - - - System.String - - - - - - - - Azure.Storage.Files.Shares.ShareClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare - - - - - - - - - - - - - - -------- Example 1: Set the storage capacity of a share -------- - Set-AzStorageShareQuota -ShareName "ContosoShare01" -Quota 1024 - - This command sets the storage capacity for a share named ContosoShare01 to 1024 GB. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragesharequota - - - Get-AzStorageFileContent - - - - Get-AzStorageShare - - - - New-AzStorageContext - - - - - - - Set-AzStorageShareStoredAccessPolicy - Set - AzStorageShareStoredAccessPolicy - - Updates a stored access policy on a Storage share. - - - - The Set-AzStorageShareStoredAccessPolicy cmdlet updates stored access policy on an Azure Storage share. - - - - Set-AzStorageShareStoredAccessPolicy - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that this cmdlet clears the ExpiryTime property in the stored access policy. - - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Indicates that this cmdlet clears the StartTime property in the stored access policy. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the share or files under it. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy becomes invalid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that this cmdlet clears the ExpiryTime property in the stored access policy. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Indicates that this cmdlet clears the StartTime property in the stored access policy. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the share or files under it. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies a name for the stored access policy. - - System.String - - System.String - - - None - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareName - - Specifies the name of the Storage share. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Management.Automation.PSObject - - - - - - - - - - - - - - -- Example 1: Update a stored access policy in Storage share -- - Set-AzStorageShareStoredAccessPolicy -ShareName "ContosoShare" -Policy "GeneralPolicy" -Permission "rwdl" - - This command updates a stored access policy that has full permission in a share. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragesharestoredaccesspolicy - - - Get-AzStorageShareStoredAccessPolicy - - - - New-AzStorageContext - - - - New-AzStorageShareStoredAccessPolicy - - - - Remove-AzStorageShareStoredAccessPolicy - - - - - - - Set-AzStorageTableStoredAccessPolicy - Set - AzStorageTableStoredAccessPolicy - - Sets the stored access policy for an Azure storage table. - - - - The Set-AzStorageTableStoredAccessPolicy cmdlet set the stored access policy for an Azure storage table. - - - - Set-AzStorageTableStoredAccessPolicy - - Table - - Specifies the Azure storage table name. - - System.String - - System.String - - - None - - - Policy - - Specifies the name for the stored access policy. - - System.String - - System.String - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy expires. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that the access policy has no expiration date. - - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Indicates that the start time is set to $Null. - - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the storage table. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - ExpiryTime - - Specifies the time at which the stored access policy expires. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - NoExpiryTime - - Indicates that the access policy has no expiration date. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - NoStartTime - - Indicates that the start time is set to $Null. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Permission - - Specifies permissions in the stored access policy to access the storage table. It is important to note that this is a string, like `rwd` (for Read, Write and Delete). - - System.String - - System.String - - - None - - - Policy - - Specifies the name for the stored access policy. - - System.String - - System.String - - - None - - - StartTime - - Specifies the time at which the stored access policy becomes valid. - - System.Nullable`1[System.DateTime] - - System.Nullable`1[System.DateTime] - - - None - - - Table - - Specifies the Azure storage table name. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Set a stored access policy in table with full permission - Set-AzStorageTableStoredAccessPolicy -Table "MyTable" -Policy "Policy08" -Permission raud - - This command sets an access policy named Policy08 for storage table named MyTable. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/set-azstoragetablestoredaccesspolicy - - - Get-AzStorageTableStoredAccessPolicy - - - - New-AzStorageContext - - - - New-AzStorageTableStoredAccessPolicy - - - - Remove-AzStorageTableStoredAccessPolicy - - - - - - - Start-AzStorageBlobCopy - Start - AzStorageBlobCopy - - Starts to copy a blob. - - - - The Start-AzStorageBlobCopy cmdlet starts to copy a blob. - - - - Start-AzStorageBlobCopy - - AbsoluteUri - - Specifies the absolute URI of a file to copy to an Azure Storage blob. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition on the source blob. The blob request will fail when the source blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PremiumPageBlobTier - - Premium Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition on the source blob. The blob request will fail when the source blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestCloudBlob - - Specifies a destination CloudBlob object - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PremiumPageBlobTier - - Premium Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition on the source blob. The blob request will fail when the source blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - SrcBlob - - Specifies the name of the source blob. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. This cmdlet copies a blob from the container that this parameter specifies. To obtain a CloudBlobContainer object, use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PremiumPageBlobTier - - Premium Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition on the source blob. The blob request will fail when the source blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - SrcBlob - - Specifies the name of the source blob. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - PremiumPageBlobTier - - Premium Page Blob Tier - - - Unknown - P4 - P6 - P10 - P20 - P30 - P40 - P50 - P60 - P70 - P80 - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcContainer - - Specifies the name of the source container. - - System.String - - System.String - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition on the source blob. The blob request will fail when the source blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFilePath - - Specifies the source file relative path of source directory or source share. - - System.String - - System.String - - - None - - - SrcShareName - - Specifies the source share name. - - System.String - - System.String - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFilePath - - Specifies the source file relative path of source directory or source share. - - System.String - - System.String - - - None - - - SrcShare - - Specifies a CloudFileShare object from Azure Storage Client library. You can create it or use Get-AzStorageShare cmdlet. - - Microsoft.Azure.Storage.File.CloudFileShare - - Microsoft.Azure.Storage.File.CloudFileShare - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcDir - - Specifies a CloudFileDirectory object from Azure Storage Client library. - - Microsoft.Azure.Storage.File.CloudFileDirectory - - Microsoft.Azure.Storage.File.CloudFileDirectory - - - None - - - SrcFilePath - - Specifies the source file relative path of source directory or source share. - - System.String - - System.String - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFile - - Specifies a CloudFile object from Azure Storage Client library. You can create it or use Get-AzStorageFile cmdlet. - - Microsoft.Azure.Storage.File.CloudFile - - Microsoft.Azure.Storage.File.CloudFile - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestCloudBlob - - Specifies a destination CloudBlob object - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - - Standard - High - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFile - - Specifies a CloudFile object from Azure Storage Client library. You can create it or use Get-AzStorageFile cmdlet. - - Microsoft.Azure.Storage.File.CloudFile - - Microsoft.Azure.Storage.File.CloudFile - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AbsoluteUri - - Specifies the absolute URI of a file to copy to an Azure Storage blob. - - System.String - - System.String - - - None - - - BlobBaseClient - - BlobBaseClient Object - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - Azure.Storage.Blobs.Specialized.BlobBaseClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. This cmdlet copies a blob from the container that this parameter specifies. To obtain a CloudBlobContainer object, use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Specifies the name of the destination blob. - - System.String - - System.String - - - None - - - DestCloudBlob - - Specifies a destination CloudBlob object - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - DestContainer - - Specifies the name of the destination container. - - System.String - - System.String - - - None - - - DestContext - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestTagCondition - - Optional Tag expression statement to check match condition on the destination Blob. The blob request will fail when the destination blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Force - - Indicates that this cmdlet overwrites the destination blob without prompting you for confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - PremiumPageBlobTier - - Premium Page Blob Tier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - Microsoft.Azure.Storage.Blob.PremiumPageBlobTier - - - None - - - RehydratePriority - - Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. - - Microsoft.Azure.Storage.Blob.RehydratePriority - - Microsoft.Azure.Storage.Blob.RehydratePriority - - - None - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Specifies the name of the source blob. - - System.String - - System.String - - - None - - - SrcContainer - - Specifies the name of the source container. - - System.String - - System.String - - - None - - - SrcDir - - Specifies a CloudFileDirectory object from Azure Storage Client library. - - Microsoft.Azure.Storage.File.CloudFileDirectory - - Microsoft.Azure.Storage.File.CloudFileDirectory - - - None - - - SrcFile - - Specifies a CloudFile object from Azure Storage Client library. You can create it or use Get-AzStorageFile cmdlet. - - Microsoft.Azure.Storage.File.CloudFile - - Microsoft.Azure.Storage.File.CloudFile - - - None - - - SrcFilePath - - Specifies the source file relative path of source directory or source share. - - System.String - - System.String - - - None - - - SrcShare - - Specifies a CloudFileShare object from Azure Storage Client library. You can create it or use Get-AzStorageShare cmdlet. - - Microsoft.Azure.Storage.File.CloudFileShare - - Microsoft.Azure.Storage.File.CloudFileShare - - - None - - - SrcShareName - - Specifies the source share name. - - System.String - - System.String - - - None - - - StandardBlobTier - - Block Blob Tier, valid values are Hot/Cool/Archive/Cold. See detail in https://learn.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers - - System.String - - System.String - - - None - - - Tag - - Blob Tags - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - TagCondition - - Optional Tag expression statement to check match condition on the source blob. The blob request will fail when the source blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Storage.File.CloudFile - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - ----------------- Example 1: Copy a named blob ----------------- - Start-AzStorageBlobCopy -SrcBlob "ContosoPlanning2015" -DestContainer "ContosoArchives" -SrcContainer "ContosoUploads" - - This command starts the copy operation of the blob named ContosoPlanning2015 from the container named ContosoUploads to the container named ContosoArchives. - - - - - - ----- Example 2: Get a container to specify blobs to copy ----- - Get-AzStorageContainer -Name "ContosoUploads" | Start-AzStorageBlobCopy -SrcBlob "ContosoPlanning2015" -DestContainer "ContosoArchives" - - This command gets the container named ContosoUploads, by using the Get-AzStorageContainer cmdlet, and then passes the container to the current cmdlet by using the pipeline operator. That cmdlet starts the copy operation of the blob named ContosoPlanning2015. The previous cmdlet provides the source container. The DestContainer parameter specifies ContosoArchives as the destination container. - - - - - - ---- Example 3: Get all blobs in a container and copy them ---- - Get-AzStorageBlob -Container "ContosoUploads" | Start-AzStorageBlobCopy -DestContainer "ContosoArchives" - - This command gets the blobs in the container named ContosoUploads, by using the Get-AzStorageBlob cmdlet, and then passes the results to the current cmdlet by using the pipeline operator. That cmdlet starts the copy operation of the blobs to the container named ContosoArchives. - - - - - - -------- Example 4: Copy a blob specified as an object -------- - $SrcBlob = Get-AzStorageBlob -Container "ContosoUploads" -Blob "ContosoPlanning2015" -$DestBlob = Get-AzStorageBlob -Container "ContosoArchives" -Blob "ContosoPlanning2015Archived" -Start-AzStorageBlobCopy -ICloudBlob $SrcBlob.ICloudBlob -DestICloudBlob $DestBlob.ICloudBlob - - The first command gets the blob named ContosoPlanning2015 in the container named ContosoUploads. The command stores that object in the $SrcBlob variable. The second command gets the blob named ContosoPlanning2015Archived in the container named ContosoArchives. The command stores that object in the $DestBlob variable. The last command starts the copy operation from the source container to the destination container. The command uses standard dot notation to specify the ICloudBlob objects for the $SrcBlob and $DestBlob blobs. - - - - - - -------------- Example 5: Copy a blob from a URI -------------- - $Context = New-AzStorageContext -StorageAccountName "ContosoGeneral" -StorageAccountKey "< Storage Key for ContosoGeneral ends with == >" -Start-AzStorageBlobCopy -AbsoluteUri "http://www.contosointernal.com/planning" -DestContainer "ContosoArchive" -DestBlob "ContosoPlanning2015" -DestContext $Context - - This command creates a context for the account named ContosoGeneral that uses the specified key, and then stores that key in the $Context variable. The second command copies the file from the specified URI to the blob named ContosoPlanning in the container named ContosoArchive. The command starts the copy operation to the destination context stored in $Context. There are no source storage context, so the source Uri must have access to the source object. E.g: if the source is a none public Azure blob, the Uri should contain SAS token which has read access to the blob. - - - - - - Example 6: Copy a block blob to destination container with a new blob name, and set destination blob StandardBlobTier as Hot, RehydratePriority as High - Start-AzStorageBlobCopy -SrcContainer "ContosoUploads" -SrcBlob "BlockBlobName" -DestContainer "ContosoArchives" -DestBlob "NewBlockBlobName" -StandardBlobTier Hot -RehydratePriority High - - This command starts the copy operation of a block blob to destination container with a new blob name, and set destination blob StandardBlobTier as Hot, RehydratePriority as High - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/start-azstorageblobcopy - - - Get-AzStorageBlobCopyState - - - - Stop-AzStorageBlobCopy - - - - - - - Start-AzStorageBlobIncrementalCopy - Start - AzStorageBlobIncrementalCopy - - Start an Incremental copy operation from a Page blob snapshot to the specified destination Page blob. - - - - Start an Incremental copy operation from a Page blob snapshot to the specified destination Page blob. See more details of the feature in https://learn.microsoft.com/rest/api/storageservices/fileservices/incremental-copy-blob. - - - - Start-AzStorageBlobIncrementalCopy - - AbsoluteUri - - Absolute Uri to the source. Be noted that the credential should be provided in the Uri, if the source requires any. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Source Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobIncrementalCopy - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - CloudBlob object from Azure Storage Client library. You can create it or use Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Source Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobIncrementalCopy - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - CloudBlob object from Azure Storage Client library. You can create it or use Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Source Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestCloudBlob - - Destination CloudBlob object - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - - None - - - DestContext - - Destination Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobIncrementalCopy - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - CloudBlobContainer object from Azure Storage Client library. You can create it or use Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Source Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Source page blob name. - - System.String - - System.String - - - None - - - SrcBlobSnapshotTime - - Source page blob snapshot time. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageBlobIncrementalCopy - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Source Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Source page blob name. - - System.String - - System.String - - - None - - - SrcBlobSnapshotTime - - Source page blob snapshot time. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - SrcContainer - - Source Container name - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AbsoluteUri - - Absolute Uri to the source. Be noted that the credential should be provided in the Uri, if the source requires any. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - The client side maximum execution time for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - CloudBlob object from Azure Storage Client library. You can create it or use Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - - None - - - CloudBlobContainer - - CloudBlobContainer object from Azure Storage Client library. You can create it or use Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - The total amount of concurrent async tasks. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Source Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestBlob - - Destination blob name - - System.String - - System.String - - - None - - - DestCloudBlob - - Destination CloudBlob object - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - - None - - - DestContainer - - Destination container name - - System.String - - System.String - - - None - - - DestContext - - Destination Azure Storage Context. You can create it by New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ServerTimeoutPerRequest - - The server time out for each request in seconds. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Source page blob name. - - System.String - - System.String - - - None - - - SrcBlobSnapshotTime - - Source page blob snapshot time. - - System.Nullable`1[System.DateTimeOffset] - - System.Nullable`1[System.DateTimeOffset] - - - None - - - SrcContainer - - Source Container name - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudPageBlob - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - Example 1: Start Incremental Copy Operation by blob name and snapshot time - Start-AzStorageBlobIncrementalCopy -SrcContainer container1 -SrcBlob blob1 -SrcBlobSnapshotTime "04/07/2017 09:55:36.1190229 AM +00:00" -DestContainer container2 -DestBlob blob2 - - This command start Incremental Copy Operation by blob name and snapshot time - - - - - - - Example 2: Start Incremental copy operation using source uri - - Start-AzStorageBlobIncrementalCopy -AbsoluteUri "http://www.somesite.com/somefile?snapshot=2017-04-07T10:05:40.2126635Z" -DestContainer container -DestBlob blob -DestContext $context - - This command start Incremental Copy Operation using source uri - - - - - - Example 3: Start Incremental copy operation using container pipeline from GetAzureStorageContainer - Get-AzStorageContainer -Container container1 | Start-AzStorageBlobIncrementalCopy -SrcBlob blob -SrcBlobSnapshotTime "04/07/2017 09:55:36.1190229 AM +00:00" -DestContainer container2 - - This command start Incremental Copy Operation using container pipeline from GetAzureStorageContainer - - - - - - Example 4: start Incremental copy operation from CloudPageBlob object to destination blob with blob name - $srcBlobSnapshot = Get-AzStorageBlob -Container container1 -prefix blob1| Where-Object ({$_.ICloudBlob.IsSnapshot})[0] -Start-AzStorageBlobIncrementalCopy -CloudBlob $srcBlobSnapshot.ICloudBlob -DestContainer container2 -DestBlob blob2 - - This command start Incremental Copy Operation from CloudPageBlob object to destination blob with blob name - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/start-azstorageblobincrementalcopy - - - - - - Start-AzStorageFileCopy - Start - AzStorageFileCopy - - Starts to copy a source file. - - - - The Start-AzStorageFileCopy cmdlet starts to copy a source file to a destination file. This cmdlet will trigger asynchronous blob copy, the copy process is handled by server. If this is a cross account blob copy, there is no SLA for the blob copy. - - - - Start-AzStorageFileCopy - - AbsoluteUri - - Specifies the URI of the source file. If the source location requires a credential, you must provide one. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - AbsoluteUri - - Specifies the URI of the source file. If the source location requires a credential, you must provide one. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestShareFileClient - - ShareFileClient object indicated the Dest file. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlobName - - Specifies the name of the source blob. - - System.String - - System.String - - - None - - - SrcContainerName - - Specifies the name of the source container. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - - System.Management.Automation.SwitchParameter - - - False - - - DisAllowSourceTrailingDot - - Disallow trailing dot (.) to suffix source directory and source file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFilePath - - Specifies the path of the source file relative to the source directory or source share. - - System.String - - System.String - - - None - - - SrcShareName - - Specifies the name of the source share. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlobName - - Specifies the name of the source blob. - - System.String - - System.String - - - None - - - SrcContainer - - Specifies a cloud blob container object. You can create cloud blob container object or use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Specifies a CloudBlob object. You can create a cloud blob or obtain one by using the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFilePath - - Specifies the path of the source file relative to the source directory or source share. - - System.String - - System.String - - - None - - - SrcShare - - Specifies a cloud file share object. You can create a cloud file share or obtain one by using the Get-AzStorageShare cmdlet. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFile - - Specifies a ShareFileClient object. You can create a ShareFileClient or obtain one by using Get-AzStorageFile . - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestShareFileClient - - ShareFileClient object indicated the Dest file. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Specifies a CloudBlob object. You can create a cloud blob or obtain one by using the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Start-AzStorageFileCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestShareFileClient - - ShareFileClient object indicated the Dest file. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcFile - - Specifies a ShareFileClient object. You can create a ShareFileClient or obtain one by using Get-AzStorageFile . - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - AbsoluteUri - - Specifies the URI of the source file. If the source location requires a credential, you must provide one. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure Storage context. To obtain a context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DestContext - - Specifies the Azure Storage context of the destination. To obtain a context, use New-AzStorageContext . - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DestFilePath - - Specifies the path of the destination file relative to the destination share. - - System.String - - System.String - - - None - - - DestShareFileClient - - ShareFileClient object indicated the Dest file. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - DestShareName - - Specifies the name of the destination share. - - System.String - - System.String - - - None - - - DisAllowDestTrailingDot - - Disallow trailing dot (.) to suffix destination directory and destination file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DisAllowSourceTrailingDot - - Disallow trailing dot (.) to suffix source directory and source file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - SrcBlob - - Specifies a CloudBlob object. You can create a cloud blob or obtain one by using the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - SrcBlobName - - Specifies the name of the source blob. - - System.String - - System.String - - - None - - - SrcContainer - - Specifies a cloud blob container object. You can create cloud blob container object or use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - SrcContainerName - - Specifies the name of the source container. - - System.String - - System.String - - - None - - - SrcFile - - Specifies a ShareFileClient object. You can create a ShareFileClient or obtain one by using Get-AzStorageFile . - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - SrcFilePath - - Specifies the path of the source file relative to the source directory or source share. - - System.String - - System.String - - - None - - - SrcShare - - Specifies a cloud file share object. You can create a cloud file share or obtain one by using the Get-AzStorageShare cmdlet. - - Azure.Storage.Files.Shares.ShareClient - - Azure.Storage.Files.Shares.ShareClient - - - None - - - SrcShareName - - Specifies the name of the source share. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - - - - - - - - - - - - - Example 1: Start copy operation from file to file by using share name and file name - Start-AzStorageFileCopy -SrcShareName "ContosoShare01" -SrcFilePath "FilePath01" -DestShareName "ContosoShare02" -DestFilePath "FilePath02" - - This command starts a copy operation from file to file. The command specifies share name and file name - - - - - - Example 2: Start copy operation from blob to file by using container name and blob name - Start-AzStorageFileCopy -SrcContainerName "ContosoContainer01" -SrcBlobName "ContosoBlob01" -DestShareName "ContosoShare" -DestFilePath "FilePath02" - - This command starts a copy operation from blob to file. The command specifies container name and blob name - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/start-azstoragefilecopy - - - Get-AzStorageBlob - - - - Get-AzStorageContainer - - - - Get-AzStorageFile - - - - Get-AzStorageShare - - - - Get-AzStorageFileCopyState - - - - Stop-AzStorageFileCopy - - - - - - - Stop-AzStorageBlobCopy - Stop - AzStorageBlobCopy - - Stops a copy operation. - - - - The Stop-AzStorageBlobCopy cmdlet stops a copy operation to the specified destination blob. - - - - Stop-AzStorageBlobCopy - - Blob - - Specifies the name of the blob. - - System.String - - System.String - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can create the context by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the copy ID. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Stops the current copy task on the specified blob without prompting for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Stop-AzStorageBlobCopy - - Blob - - Specifies the name of the blob. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. You can create the object or use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can create the context by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the copy ID. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Stops the current copy task on the specified blob without prompting for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Stop-AzStorageBlobCopy - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies the Azure storage context. You can create the context by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the copy ID. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Stops the current copy task on the specified blob without prompting for confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Blob - - Specifies the name of the blob. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - CloudBlob - - Specifies a CloudBlob object from Azure Storage Client library. To obtain a CloudBlob object, use the Get-AzStorageBlob cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlob - - Microsoft.Azure.Storage.Blob.CloudBlob - - - None - - - CloudBlobContainer - - Specifies a CloudBlobContainer object from the Azure Storage Client library. You can create the object or use the Get-AzStorageContainer cmdlet. - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Container - - Specifies the name of the container. - - System.String - - System.String - - - None - - - Context - - Specifies the Azure storage context. You can create the context by using the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the copy ID. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Stops the current copy task on the specified blob without prompting for confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - TagCondition - - Optional Tag expression statement to check match condition. The blob request will fail when the blob tags does not match the given expression. See details in https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-conditional-operations. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Storage.Blob.CloudBlob - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - - - - - - - - - - ------------ Example 1: Stop copy operation by name ------------ - Stop-AzStorageBlobCopy -Container "ContainerName" -Blob "BlobName" -CopyId "CopyID" - - This command stops the copy operation by name. - - - - - - ----- Example 2: Stop copy operation by using the pipeline ----- - Get-AzStorageContainer container* | Stop-AzStorageBlobCopy -Blob "BlobName" - - This command stops the copy operation by passing the container on the pipeline from Get-AzStorageContainer . - - - - - - Example 3: Stop copy operation by using the pipeline and Get-AzStorageBlob - Get-AzStorageBlob -Container "ContainerName" | Stop-AzStorageBlobCopy -Force - - This example stops the copy operation by passing the container on the pipeline from the Get-AzStorageBlob cmdlet. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/stop-azstorageblobcopy - - - Get-AzStorageBlob - - - - Get-AzStorageContainer - - - - Start-AzStorageBlobCopy - - - - Get-AzStorageBlobCopyState - - - - - - - Stop-AzStorageFileCopy - Stop - AzStorageFileCopy - - Stops a copy operation to the specified destination file. - - - - The Stop-AzStorageFileCopy cmdlet stops copying a file to a destination file. - - - - Stop-AzStorageFileCopy - - ShareName - - Specifies the name of a share. - - System.String - - System.String - - - None - - - FilePath - - Specifies the path of a file. - - System.String - - System.String - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the ID of the copy operation. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - - System.Management.Automation.SwitchParameter - - - False - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Stop-AzStorageFileCopy - - ShareFileClient - - ShareFileClient object indicated the file to Stop Copy. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the ID of the copy operation. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - ClientTimeoutPerRequest - - Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ConcurrentTaskCount - - Specifies the maximum concurrent network calls. You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls. The specified value is an absolute count and is not multiplied by the core count. This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second. The default value is 10. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext (./New-AzStorageContext.md)cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - CopyId - - Specifies the ID of the copy operation. - - System.String - - System.String - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DisAllowTrailingDot - - Disallow trailing dot (.) to suffix directory and file names. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - FilePath - - Specifies the path of a file. - - System.String - - System.String - - - None - - - Force - - Forces the command to run without asking for user confirmation. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServerTimeoutPerRequest - - Specifies the length of the time-out period for the server part of a request. - - System.Nullable`1[System.Int32] - - System.Nullable`1[System.Int32] - - - None - - - ShareFileClient - - ShareFileClient object indicated the file to Stop Copy. - - Azure.Storage.Files.Shares.ShareFileClient - - Azure.Storage.Files.Shares.ShareFileClient - - - None - - - ShareName - - Specifies the name of a share. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Azure.Storage.Files.Shares.ShareFileClient - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.Void - - - - - - - - - - - - - - --------------- Example 1: Stop a copy operation --------------- - Stop-AzStorageFileCopy -ShareName "ContosoShare" -FilePath "FilePath" -CopyId "CopyId" - - This command stops copying a file that has the specified name. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/stop-azstoragefilecopy - - - Get-AzStorageFile - - - - Get-AzStorageFileCopyState - - - - New-AzStorageContext - - - - Start-AzStorageFileCopy - - - - - - - Update-AzDataLakeGen2AclRecursive - Update - AzDataLakeGen2AclRecursive - - Update ACL recursively on the specified path. - - - - The Update-AzDataLakeGen2AclRecursive cmdlet updates ACL recursively on the specified path. The input ACL will merge the the original ACL: If ACL entry with same AccessControlType/EntityId/DefaultScope exist, update permission; else add a new ACL entry. - - - - Update-AzDataLakeGen2AclRecursive - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Path - - The path in the specified FileSystem that to change Acl recursively. Can be a file or directory. In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to change Acl recursively from root directory of the Filesystem. - - System.String - - System.String - - - None - - - Acl - - The POSIX access control list to set recursively for the file or directory. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - AsJob - - Run cmdlet in the background - - - System.Management.Automation.SwitchParameter - - - False - - - BatchSize - - If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. Default is 2000. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - ContinueOnFailure - - Set this parameter to ignore failures and continue proceeing with the operation on other sub-entities of the directory. Default the operation will terminate quickly on encountering failures. - - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - MaxBatchCount - - Maximum number of batches that single change Access Control operation can execute. If data set size exceeds MaxBatchCount multiply BatchSize, continuation token will be return. - - System.Int32 - - System.Int32 - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Acl - - The POSIX access control list to set recursively for the file or directory. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - AsJob - - Run cmdlet in the background - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - BatchSize - - If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. Default is 2000. - - System.Int32 - - System.Int32 - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - ContinuationToken - - Continuation Token. - - System.String - - System.String - - - None - - - ContinueOnFailure - - Set this parameter to ignore failures and continue proceeing with the operation on other sub-entities of the directory. Default the operation will terminate quickly on encountering failures. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - MaxBatchCount - - Maximum number of batches that single change Access Control operation can execute. If data set size exceeds MaxBatchCount multiply BatchSize, continuation token will be return. - - System.Int32 - - System.Int32 - - - None - - - Path - - The path in the specified FileSystem that to change Acl recursively. Can be a file or directory. In the format 'directory/file.txt' or 'directory1/directory2/'. Skip set this parameter to change Acl recursively from root directory of the Filesystem. - - System.String - - System.String - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - System.String - - - - - - - - - - - - - - Example 1: Update ACL recursively on a root directiry of filesystem - $acl = New-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -$acl = New-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl -$acl = New-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rw-" -InputObject $acl -Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx - -FailedEntries : -TotalDirectoriesSuccessfulCount : 7 -TotalFilesSuccessfulCount : 5 -TotalFailureCount : 0 -ContinuationToken : - - This command first creates an ACL object with 3 acl entries, then updates ACL recursively on a root directory of a file system. - - - - - - Example 2: Update ACL recursively on a directory, and resume from failure with ContinuationToken - $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx - -$result - -FailedEntries : {dir1/dir2/file4} -TotalDirectoriesSuccessfulCount : 500 -TotalFilesSuccessfulCount : 2500 -TotalFailureCount : 1 -ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== - -$result.FailedEntries - -Name IsDirectory ErrorMessage ----- ----------- ------------ -dir0/dir2/file4 False This request is not authorized to perform this operation using this permission. - -# user need fix the failed item , then can resume with ContinuationToken - -$result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx - -$result - -FailedEntries : -TotalDirectoriesSuccessfulCount : 100 -TotalFilesSuccessfulCount : 1000 -TotalFailureCount : 0 -ContinuationToken : - - This command first updateds ACL recursively to a directory and failed, then resume with ContinuationToken after user fix the failed file. - - - - - - ------- Example 3: Update ACL recursively chunk by chunk ------- - $ContinueOnFailure = $true # Set it to $false if want to terminate the operation quickly on encountering failures -$token = $null -$TotalDirectoriesSuccess = 0 -$TotalFilesSuccess = 0 -$totalFailure = 0 -$FailedEntries = New-Object System.Collections.Generic.List[System.Object] -do -{ - - if ($ContinueOnFailure) - { - $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -BatchSize 100 -MaxBatchCount 50 -ContinuationToken $token -Context $ctx -ContinueOnFailure - } - else - { - $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -BatchSize 100 -MaxBatchCount 50 -ContinuationToken $token -Context $ctx - } - - # echo $result - $TotalFilesSuccess += $result.TotalFilesSuccessfulCount - $TotalDirectoriesSuccess += $result.TotalDirectoriesSuccessfulCount - $totalFailure += $result.TotalFailureCount - $FailedEntries += $result.FailedEntries - $token = $result.ContinuationToken -}while (($null -ne $token) -and (($ContinueOnFailure) -or ($result.TotalFailureCount -eq 0))) -echo "" -echo "[Result Summary]" -echo "TotalDirectoriesSuccessfulCount: `t$($TotalDirectoriesSuccess)" -echo "TotalFilesSuccessfulCount: `t`t`t$($TotalFilesSuccess)" -echo "TotalFailureCount: `t`t`t`t`t$($totalFailure)" -echo "ContinuationToken: `t`t`t`t`t$($token)" -echo "FailedEntries:"$($FailedEntries | ft) - - This script will update ACL rescursively on directory chunk by chunk, with chunk size as BatchSize * MaxBatchCount. Chunk size is 5000 in this script. - - - - - - Example 4: Update ACL recursively on a directory and ContinueOnFailure, then resume from failures one by one - $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx - -$result - -FailedEntries : {dir0/dir1/file1, dir0/dir2/file4} -TotalDirectoriesSuccessfulCount : 100 -TotalFilesSuccessfulCount : 500 -TotalFailureCount : 2 -ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== - -$result.FailedEntries - -Name IsDirectory ErrorMessage ----- ----------- ------------ -dir0/dir1/file1 False This request is not authorized to perform this operation using this permission. -dir0/dir2/file4 False This request is not authorized to perform this operation using this permission. - -# user need fix the failed item , then can resume with ContinuationToken - -foreach ($path in $result.FailedEntries.Name) - { - # user code to fix failed entry in $path - - #set ACL again - Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path $path -Acl $acl -Context $ctx - } - - This command first updateds ACL recursively to a directory with ContinueOnFailure, and some items failed, then resume the failed items one by one. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azdatalakegen2aclrecursive - - - - - - Update-AzDataLakeGen2Item - Update - AzDataLakeGen2Item - - Update a file or directory on properties, metadata, permission, ACL, and owner. - - - - The Update-AzDataLakeGen2Item cmdlet updates a file or directory on properties, metadata, permission, ACL, and owner. This cmdlet only works if Hierarchical Namespace is enabled for the Storage account. This kind of account can be created by run "New-AzStorageAccount" cmdlet with "-EnableHierarchicalNamespace $true". - - - - Update-AzDataLakeGen2Item - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Acl - - Sets POSIX access control rights on files and directories. Create this object with New-AzDataLakeGen2ItemAclObject. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Group - - Sets the owning group of the blob. - - System.String - - System.String - - - None - - - Metadata - - Specifies metadata for the directory or file. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Owner - - Sets the owner of the blob. - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be updated. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/'. Not specify this parameter will update the root directory of the Filesystem. - - System.String - - System.String - - - None - - - Permission - - Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. Symbolic (rwxrw-rw-) is supported. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set.Invalid in conjunction with ACL. - - System.String - - System.String - - - None - - - Property - - Specifies properties for the directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. The supported properties for directory are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - Update-AzDataLakeGen2Item - - Acl - - Sets POSIX access control rights on files and directories. Create this object with New-AzDataLakeGen2ItemAclObject. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - Group - - Sets the owning group of the blob. - - System.String - - System.String - - - None - - - InputObject - - Azure Datalake Gen2 Item Object to update - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - Metadata - - Specifies metadata for the directory or file. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Owner - - Sets the owner of the blob. - - System.String - - System.String - - - None - - - Permission - - Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. Symbolic (rwxrw-rw-) is supported. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set.Invalid in conjunction with ACL. - - System.String - - System.String - - - None - - - Property - - Specifies properties for the directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. The supported properties for directory are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Acl - - Sets POSIX access control rights on files and directories. Create this object with New-AzDataLakeGen2ItemAclObject. - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[] - - - None - - - Context - - Azure Storage Context Object - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - FileSystem - - FileSystem name - - System.String - - System.String - - - None - - - Group - - Sets the owning group of the blob. - - System.String - - System.String - - - None - - - InputObject - - Azure Datalake Gen2 Item Object to update - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - None - - - Metadata - - Specifies metadata for the directory or file. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Owner - - Sets the owner of the blob. - - System.String - - System.String - - - None - - - Path - - The path in the specified Filesystem that should be updated. Can be a file or directory In the format 'directory/file.txt' or 'directory1/directory2/'. Not specify this parameter will update the root directory of the Filesystem. - - System.String - - System.String - - - None - - - Permission - - Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. Symbolic (rwxrw-rw-) is supported. The sticky bit is also supported and its represented either by the letter t or T in the final character-place depending on whether the execution bit for the others category is set or unset respectively, absence of t or T indicates sticky bit not set.Invalid in conjunction with ACL. - - System.String - - System.String - - - None - - - Property - - Specifies properties for the directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. The supported properties for directory are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage. - - System.Collections.Hashtable - - System.Collections.Hashtable - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - System.String - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - - - - - - - - - - Example 1: Create an ACL object with 3 ACL entry, and update ACL to all items in a Filesystem recursively - $acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rwt" -InputObject $acl -Get-AzDataLakeGen2ChildItem -FileSystem "filesystem1" -Recurse | Update-AzDataLakeGen2Item -ACL $acl - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1 True 2020-03-13 13:07:34Z rwxrw-rwt $superuser $superuser -dir1/file1 False 1024 2020-03-23 09:29:18Z rwxrw-rwt $superuser $superuser -dir2 True 2020-03-23 09:28:36Z rwxrw-rwt $superuser $superuser - - This command first creates an ACL object with 3 acl entry (use -InputObject parameter to add acl entry to existing acl object), then get all items in a filesystem and update acl on the items. - - - - - - -- Example 2: Update all properties on a file, and show them -- - $file = Update-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" ` - -Acl $acl ` - -Property @{"ContentType" = "image/jpeg"; "ContentMD5" = "i727sP7HigloQDsqadNLHw=="; "ContentEncoding" = "UDF8"; "CacheControl" = "READ"; "ContentDisposition" = "True"; "ContentLanguage" = "EN-US"} ` - -Metadata @{"tag1" = "value1"; "tag2" = "value2" } ` - -Permission rw-rw-rwx ` - -Owner '$superuser' ` - -Group '$superuser' - -$file - - FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/file1 False 1024 2020-03-23 09:57:33Z rwxrw-rw- $superuser $superuser - -$file.ACL - -DefaultScope AccessControlType EntityId Permissions ------------- ----------------- -------- ----------- -False User rwx -False Group rw- -False Other rw- - -$file.Permissions - -Owner : Execute, Write, Read -Group : Write, Read -Other : Write, Read -StickyBit : False -ExtendedAcls : False - -$file.Properties.Metadata - -Key Value ---- ----- -tag2 value2 -tag1 value1 - -$file.Properties - - -LastModified : 3/23/2020 9:57:33 AM +00:00 -CreatedOn : 3/23/2020 9:29:18 AM +00:00 -Metadata : {[tag2, value2], [tag1, value1]} -CopyCompletedOn : 1/1/0001 12:00:00 AM +00:00 -CopyStatusDescription : -CopyId : -CopyProgress : -CopySource : -CopyStatus : Pending -IsIncrementalCopy : False -LeaseDuration : Infinite -LeaseState : Available -LeaseStatus : Unlocked -ContentLength : 1024 -ContentType : image/jpeg -ETag : "0x8D7CF109B9878CC" -ContentHash : {139, 189, 187, 176...} -ContentEncoding : UDF8 -ContentDisposition : True -ContentLanguage : EN-US -CacheControl : READ -AcceptRanges : bytes -IsServerEncrypted : True -EncryptionKeySha256 : -AccessTier : Cool -ArchiveStatus : -AccessTierChangedOn : 1/1/0001 12:00:00 AM +00:00 - - This command updates all properties on a file (ACL, permission,owner, group, metadata, property can be updated with any conbination), and show them in Powershell console. - - - - - - ---------- Example 3: Add an ACL entry to a directory ---------- - ## Get the origin ACL -$acl = (Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path 'dir1/dir3/').ACL - -# Update permission of a new ACL entry (if ACL entry with same AccessControlType/EntityId/DefaultScope not exist, will add a new ACL entry, else update permission of existing ACL entry) -$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission rw- -InputObject $acl - -# set the new acl to the directory -Update-AzDataLakeGen2Item -FileSystem "filesystem1" -Path 'dir1/dir3/' -ACL $acl - -FileSystem Name: filesystem1 - -Path IsDirectory Length LastModified Permissions Owner Group ----- ----------- ------ ------------ ----------- ----- ----- -dir1/dir3 True 2020-03-23 09:34:31Z rwxrw-rw-+ $superuser $superuser - - This command gets ACL from a directory, updates/adds an ACL entry, and sets back to the directory. If ACL entry with same AccessControlType/EntityId/DefaultScope not exist, will add a new ACL entry, else update permission of existing ACL entry. - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azdatalakegen2item - - - - - - Update-AzStorageServiceProperty - Update - AzStorageServiceProperty - - Modifies the properties for the Azure Storage service. - - - - The Update-AzStorageServiceProperty cmdlet modifies the properties for the Azure Storage service. - - - - Update-AzStorageServiceProperty - - ServiceType - - Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - - Blob - Table - Queue - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultServiceVersion - - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions. See more details in https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services - - System.String - - System.String - - - None - - - PassThru - - Display ServiceProperties - - - System.Management.Automation.SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - System.Management.Automation.SwitchParameter - - - False - - - - - - Context - - Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - None - - - DefaultProfile - - The credentials, account, tenant, and subscription used for communication with Azure. - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer - - - None - - - DefaultServiceVersion - - DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions. See more details in https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services - - System.String - - System.String - - - None - - - PassThru - - Display ServiceProperties - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - ServiceType - - Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. The acceptable values for this parameter are: - Blob - - Table - - Queue - - File - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType - - - None - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - System.Management.Automation.SwitchParameter - - System.Management.Automation.SwitchParameter - - - False - - - - - - Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext - - - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties - - - - - - - - - - - - - - Example 1: Set Blob Service DefaultServiceVersion to 2017-04-17 - Update-AzStorageServiceProperty -ServiceType Blob -DefaultServiceVersion 2017-04-17 - - This command Set the DefaultServiceVersion of Blob Service to 2017-04-17 - - - - - - - - Online Version: - https://learn.microsoft.com/powershell/module/az.storage/update-azstorageserviceproperty - - - - \ No newline at end of file diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Storage.Common.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Storage.Common.dll deleted file mode 100644 index 0f91a78c21be..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Storage.Common.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Storage.Management.Sdk.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Storage.Management.Sdk.dll deleted file mode 100644 index 511e202fd091..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.PowerShell.Storage.Management.Sdk.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Blob.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Blob.dll deleted file mode 100644 index 48df07335288..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Blob.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Common.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Common.dll deleted file mode 100644 index d1046d78ca84..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Common.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.DataMovement.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.DataMovement.dll deleted file mode 100644 index ba9fb651d90f..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.DataMovement.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.File.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.File.dll deleted file mode 100644 index 7a25af32b593..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.File.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Queue.dll b/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Queue.dll deleted file mode 100644 index b1d0270d1cad..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Azure.Storage.Queue.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.OData.Core.dll b/Modules/Az.Storage/8.1.0/Microsoft.OData.Core.dll deleted file mode 100644 index caf31559cc7c..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.OData.Core.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.OData.Edm.dll b/Modules/Az.Storage/8.1.0/Microsoft.OData.Edm.dll deleted file mode 100644 index 24b70c0727d3..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.OData.Edm.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Microsoft.Spatial.dll b/Modules/Az.Storage/8.1.0/Microsoft.Spatial.dll deleted file mode 100644 index e1382163d88a..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Microsoft.Spatial.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/PSGetModuleInfo.xml b/Modules/Az.Storage/8.1.0/PSGetModuleInfo.xml deleted file mode 100644 index 7153aee3fd54..000000000000 --- a/Modules/Az.Storage/8.1.0/PSGetModuleInfo.xml +++ /dev/null @@ -1,493 +0,0 @@ - - - - Microsoft.PowerShell.Commands.PSRepositoryItemInfo - System.Management.Automation.PSCustomObject - System.Object - - - Az.Storage - 8.1.0 - Module - Microsoft Azure PowerShell - Storage service data plane and management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. Creates and manages storage accounts in Azure Resource Manager._x000D__x000A__x000D__x000A_For more information on Storage, please visit the following: https://learn.microsoft.com/azure/storage/ - Microsoft Corporation - azure-sdk - Microsoft Corporation. All rights reserved. -
2025-01-14T03:10:24-05:00
- - - https://aka.ms/azps-license - https://github.com/Azure/azure-powershell - - - - System.Object[] - System.Array - System.Object - - - Azure - ResourceManager - ARM - Storage - StorageAccount - PSModule - PSEdition_Core - PSEdition_Desktop - - - - - System.Collections.Hashtable - System.Object - - - - RoleCapability - - - - - - - Function - - - - Get-AzStorageAccountMigration - Start-AzStorageAccountMigration - - - - - Cmdlet - - - - Add-AzRmStorageContainerLegalHold - Add-AzStorageAccountManagementPolicyAction - Add-AzStorageAccountNetworkRule - Close-AzStorageFileHandle - Copy-AzStorageBlob - Disable-AzStorageBlobDeleteRetentionPolicy - Disable-AzStorageBlobLastAccessTimeTracking - Disable-AzStorageBlobRestorePolicy - Disable-AzStorageContainerDeleteRetentionPolicy - Disable-AzStorageDeleteRetentionPolicy - Disable-AzStorageStaticWebsite - Enable-AzStorageBlobDeleteRetentionPolicy - Enable-AzStorageBlobLastAccessTimeTracking - Enable-AzStorageBlobRestorePolicy - Enable-AzStorageContainerDeleteRetentionPolicy - Enable-AzStorageDeleteRetentionPolicy - Enable-AzStorageStaticWebsite - Get-AzDataLakeGen2ChildItem - Get-AzDataLakeGen2DeletedItem - Get-AzDataLakeGen2Item - Get-AzDataLakeGen2ItemContent - Get-AzRmStorageContainer - Get-AzRmStorageContainerImmutabilityPolicy - Get-AzRmStorageShare - Get-AzStorageAccount - Get-AzStorageAccountKey - Get-AzStorageAccountManagementPolicy - Get-AzStorageAccountNameAvailability - Get-AzStorageAccountNetworkRuleSet - Get-AzStorageBlob - Get-AzStorageBlobByTag - Get-AzStorageBlobContent - Get-AzStorageBlobCopyState - Get-AzStorageBlobInventoryPolicy - Get-AzStorageBlobQueryResult - Get-AzStorageBlobServiceProperty - Get-AzStorageBlobTag - Get-AzStorageContainer - Get-AzStorageContainerStoredAccessPolicy - Get-AzStorageCORSRule - Get-AzStorageEncryptionScope - Get-AzStorageFile - Get-AzStorageFileContent - Get-AzStorageFileCopyState - Get-AzStorageFileHandle - Get-AzStorageFileServiceProperty - Get-AzStorageLocalUser - Get-AzStorageLocalUserKey - Get-AzStorageObjectReplicationPolicy - Get-AzStorageQueue - Get-AzStorageQueueStoredAccessPolicy - Get-AzStorageServiceLoggingProperty - Get-AzStorageServiceMetricsProperty - Get-AzStorageServiceProperty - Get-AzStorageShare - Get-AzStorageShareStoredAccessPolicy - Get-AzStorageTable - Get-AzStorageTableStoredAccessPolicy - Get-AzStorageUsage - Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration - Invoke-AzStorageAccountFailover - Invoke-AzStorageAccountHierarchicalNamespaceUpgrade - Lock-AzRmStorageContainerImmutabilityPolicy - Move-AzDataLakeGen2Item - New-AzDataLakeGen2Item - New-AzDataLakeGen2SasToken - New-AzRmStorageContainer - New-AzRmStorageShare - New-AzStorageAccount - New-AzStorageAccountKey - New-AzStorageAccountManagementPolicyBlobIndexMatchObject - New-AzStorageAccountManagementPolicyFilter - New-AzStorageAccountManagementPolicyRule - New-AzStorageAccountSASToken - New-AzStorageBlobInventoryPolicyRule - New-AzStorageBlobQueryConfig - New-AzStorageBlobRangeToRestore - New-AzStorageBlobSASToken - New-AzStorageContainer - New-AzStorageContainerSASToken - New-AzStorageContainerStoredAccessPolicy - New-AzStorageContext - New-AzStorageDirectory - New-AzStorageEncryptionScope - New-AzStorageFileSASToken - New-AzStorageLocalUserPermissionScope - New-AzStorageLocalUserSshPassword - New-AzStorageLocalUserSshPublicKey - New-AzStorageObjectReplicationPolicyRule - New-AzStorageQueue - New-AzStorageQueueSASToken - New-AzStorageQueueStoredAccessPolicy - New-AzStorageShare - New-AzStorageShareSASToken - New-AzStorageShareStoredAccessPolicy - New-AzStorageTable - New-AzStorageTableSASToken - New-AzStorageTableStoredAccessPolicy - Remove-AzDataLakeGen2AclRecursive - Remove-AzDataLakeGen2Item - Remove-AzRmStorageContainer - Remove-AzRmStorageContainerImmutabilityPolicy - Remove-AzRmStorageContainerLegalHold - Remove-AzRmStorageShare - Remove-AzStorageAccount - Remove-AzStorageAccountManagementPolicy - Remove-AzStorageAccountNetworkRule - Remove-AzStorageBlob - Remove-AzStorageBlobImmutabilityPolicy - Remove-AzStorageBlobInventoryPolicy - Remove-AzStorageContainer - Remove-AzStorageContainerStoredAccessPolicy - Remove-AzStorageCORSRule - Remove-AzStorageDirectory - Remove-AzStorageFile - Remove-AzStorageLocalUser - Remove-AzStorageObjectReplicationPolicy - Remove-AzStorageQueue - Remove-AzStorageQueueStoredAccessPolicy - Remove-AzStorageShare - Remove-AzStorageShareStoredAccessPolicy - Remove-AzStorageTable - Remove-AzStorageTableStoredAccessPolicy - Rename-AzStorageDirectory - Rename-AzStorageFile - Restore-AzDataLakeGen2DeletedItem - Restore-AzRmStorageShare - Restore-AzStorageBlobRange - Restore-AzStorageContainer - Revoke-AzStorageAccountUserDelegationKeys - Set-AzCurrentStorageAccount - Set-AzDataLakeGen2AclRecursive - Set-AzDataLakeGen2ItemAclObject - Set-AzRmStorageContainerImmutabilityPolicy - Set-AzStorageAccount - Set-AzStorageAccountManagementPolicy - Set-AzStorageBlobContent - Set-AzStorageBlobImmutabilityPolicy - Set-AzStorageBlobInventoryPolicy - Set-AzStorageBlobLegalHold - Set-AzStorageBlobTag - Set-AzStorageContainerAcl - Set-AzStorageContainerStoredAccessPolicy - Set-AzStorageCORSRule - Set-AzStorageFileContent - Set-AzStorageLocalUser - Set-AzStorageObjectReplicationPolicy - Set-AzStorageQueueStoredAccessPolicy - Set-AzStorageServiceLoggingProperty - Set-AzStorageServiceMetricsProperty - Set-AzStorageShareQuota - Set-AzStorageShareStoredAccessPolicy - Set-AzStorageTableStoredAccessPolicy - Start-AzStorageBlobCopy - Start-AzStorageBlobIncrementalCopy - Start-AzStorageFileCopy - Stop-AzStorageAccountHierarchicalNamespaceUpgrade - Stop-AzStorageBlobCopy - Stop-AzStorageFileCopy - Update-AzDataLakeGen2AclRecursive - Update-AzDataLakeGen2Item - Update-AzRmStorageContainer - Update-AzRmStorageShare - Update-AzStorageAccountNetworkRuleSet - Update-AzStorageBlobServiceProperty - Update-AzStorageEncryptionScope - Update-AzStorageFileServiceProperty - Update-AzStorageServiceProperty - - - - - DscResource - - - - Workflow - - - - Command - - - - Add-AzRmStorageContainerLegalHold - Add-AzStorageAccountManagementPolicyAction - Add-AzStorageAccountNetworkRule - Close-AzStorageFileHandle - Copy-AzStorageBlob - Disable-AzStorageBlobDeleteRetentionPolicy - Disable-AzStorageBlobLastAccessTimeTracking - Disable-AzStorageBlobRestorePolicy - Disable-AzStorageContainerDeleteRetentionPolicy - Disable-AzStorageDeleteRetentionPolicy - Disable-AzStorageStaticWebsite - Enable-AzStorageBlobDeleteRetentionPolicy - Enable-AzStorageBlobLastAccessTimeTracking - Enable-AzStorageBlobRestorePolicy - Enable-AzStorageContainerDeleteRetentionPolicy - Enable-AzStorageDeleteRetentionPolicy - Enable-AzStorageStaticWebsite - Get-AzDataLakeGen2ChildItem - Get-AzDataLakeGen2DeletedItem - Get-AzDataLakeGen2Item - Get-AzDataLakeGen2ItemContent - Get-AzRmStorageContainer - Get-AzRmStorageContainerImmutabilityPolicy - Get-AzRmStorageShare - Get-AzStorageAccount - Get-AzStorageAccountKey - Get-AzStorageAccountManagementPolicy - Get-AzStorageAccountNameAvailability - Get-AzStorageAccountNetworkRuleSet - Get-AzStorageBlob - Get-AzStorageBlobByTag - Get-AzStorageBlobContent - Get-AzStorageBlobCopyState - Get-AzStorageBlobInventoryPolicy - Get-AzStorageBlobQueryResult - Get-AzStorageBlobServiceProperty - Get-AzStorageBlobTag - Get-AzStorageContainer - Get-AzStorageContainerStoredAccessPolicy - Get-AzStorageCORSRule - Get-AzStorageEncryptionScope - Get-AzStorageFile - Get-AzStorageFileContent - Get-AzStorageFileCopyState - Get-AzStorageFileHandle - Get-AzStorageFileServiceProperty - Get-AzStorageLocalUser - Get-AzStorageLocalUserKey - Get-AzStorageObjectReplicationPolicy - Get-AzStorageQueue - Get-AzStorageQueueStoredAccessPolicy - Get-AzStorageServiceLoggingProperty - Get-AzStorageServiceMetricsProperty - Get-AzStorageServiceProperty - Get-AzStorageShare - Get-AzStorageShareStoredAccessPolicy - Get-AzStorageTable - Get-AzStorageTableStoredAccessPolicy - Get-AzStorageUsage - Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration - Invoke-AzStorageAccountFailover - Invoke-AzStorageAccountHierarchicalNamespaceUpgrade - Lock-AzRmStorageContainerImmutabilityPolicy - Move-AzDataLakeGen2Item - New-AzDataLakeGen2Item - New-AzDataLakeGen2SasToken - New-AzRmStorageContainer - New-AzRmStorageShare - New-AzStorageAccount - New-AzStorageAccountKey - New-AzStorageAccountManagementPolicyBlobIndexMatchObject - New-AzStorageAccountManagementPolicyFilter - New-AzStorageAccountManagementPolicyRule - New-AzStorageAccountSASToken - New-AzStorageBlobInventoryPolicyRule - New-AzStorageBlobQueryConfig - New-AzStorageBlobRangeToRestore - New-AzStorageBlobSASToken - New-AzStorageContainer - New-AzStorageContainerSASToken - New-AzStorageContainerStoredAccessPolicy - New-AzStorageContext - New-AzStorageDirectory - New-AzStorageEncryptionScope - New-AzStorageFileSASToken - New-AzStorageLocalUserPermissionScope - New-AzStorageLocalUserSshPassword - New-AzStorageLocalUserSshPublicKey - New-AzStorageObjectReplicationPolicyRule - New-AzStorageQueue - New-AzStorageQueueSASToken - New-AzStorageQueueStoredAccessPolicy - New-AzStorageShare - New-AzStorageShareSASToken - New-AzStorageShareStoredAccessPolicy - New-AzStorageTable - New-AzStorageTableSASToken - New-AzStorageTableStoredAccessPolicy - Remove-AzDataLakeGen2AclRecursive - Remove-AzDataLakeGen2Item - Remove-AzRmStorageContainer - Remove-AzRmStorageContainerImmutabilityPolicy - Remove-AzRmStorageContainerLegalHold - Remove-AzRmStorageShare - Remove-AzStorageAccount - Remove-AzStorageAccountManagementPolicy - Remove-AzStorageAccountNetworkRule - Remove-AzStorageBlob - Remove-AzStorageBlobImmutabilityPolicy - Remove-AzStorageBlobInventoryPolicy - Remove-AzStorageContainer - Remove-AzStorageContainerStoredAccessPolicy - Remove-AzStorageCORSRule - Remove-AzStorageDirectory - Remove-AzStorageFile - Remove-AzStorageLocalUser - Remove-AzStorageObjectReplicationPolicy - Remove-AzStorageQueue - Remove-AzStorageQueueStoredAccessPolicy - Remove-AzStorageShare - Remove-AzStorageShareStoredAccessPolicy - Remove-AzStorageTable - Remove-AzStorageTableStoredAccessPolicy - Rename-AzStorageDirectory - Rename-AzStorageFile - Restore-AzDataLakeGen2DeletedItem - Restore-AzRmStorageShare - Restore-AzStorageBlobRange - Restore-AzStorageContainer - Revoke-AzStorageAccountUserDelegationKeys - Set-AzCurrentStorageAccount - Set-AzDataLakeGen2AclRecursive - Set-AzDataLakeGen2ItemAclObject - Set-AzRmStorageContainerImmutabilityPolicy - Set-AzStorageAccount - Set-AzStorageAccountManagementPolicy - Set-AzStorageBlobContent - Set-AzStorageBlobImmutabilityPolicy - Set-AzStorageBlobInventoryPolicy - Set-AzStorageBlobLegalHold - Set-AzStorageBlobTag - Set-AzStorageContainerAcl - Set-AzStorageContainerStoredAccessPolicy - Set-AzStorageCORSRule - Set-AzStorageFileContent - Set-AzStorageLocalUser - Set-AzStorageObjectReplicationPolicy - Set-AzStorageQueueStoredAccessPolicy - Set-AzStorageServiceLoggingProperty - Set-AzStorageServiceMetricsProperty - Set-AzStorageShareQuota - Set-AzStorageShareStoredAccessPolicy - Set-AzStorageTableStoredAccessPolicy - Start-AzStorageBlobCopy - Start-AzStorageBlobIncrementalCopy - Start-AzStorageFileCopy - Stop-AzStorageAccountHierarchicalNamespaceUpgrade - Stop-AzStorageBlobCopy - Stop-AzStorageFileCopy - Update-AzDataLakeGen2AclRecursive - Update-AzDataLakeGen2Item - Update-AzRmStorageContainer - Update-AzRmStorageShare - Update-AzStorageAccountNetworkRuleSet - Update-AzStorageBlobServiceProperty - Update-AzStorageEncryptionScope - Update-AzStorageFileServiceProperty - Update-AzStorageServiceProperty - Get-AzStorageAccountMigration - Start-AzStorageAccountMigration - - - - - - - * Upgraded nuget package to signed package._x000D__x000A_* Added warning message for account migration cmdlet._x000D__x000A_ - 'Start-AzStorageAccountMigration'_x000D__x000A_* Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount._x000D__x000A_ - 'New-AzStorageContext'_x000D__x000A_* Upgraded Azure.Storage.Blobs to 12.23.0_x000D__x000A_* Upgraded Azure.Storage.Files.Shares to 12.21.0_x000D__x000A_* Upgraded Azure.Storage.Files.DataLake to 12.21.0_x000D__x000A_* Upgraded Azure.Storage.Queues to 12.21.0_x000D__x000A_* Supported ClientName property when listing file handles _x000D__x000A_ - 'Get-AzStorageFileHandle'_x000D__x000A_* Upgraded Azure.Core to 1.44.1. - - - - - - System.Collections.Specialized.OrderedDictionary - System.Object - - - - Name - Az.Accounts - - - MinimumVersion - 4.0.1 - - - CanonicalId - nuget:Az.Accounts/4.0.1 - - - - - - https://www.powershellgallery.com/api/v2 - PSGallery - NuGet - - - System.Management.Automation.PSCustomObject - System.Object - - - Microsoft Corporation. All rights reserved. - Microsoft Azure PowerShell - Storage service data plane and management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. Creates and manages storage accounts in Azure Resource Manager._x000D__x000A__x000D__x000A_For more information on Storage, please visit the following: https://learn.microsoft.com/azure/storage/ - True - * Upgraded nuget package to signed package._x000D__x000A_* Added warning message for account migration cmdlet._x000D__x000A_ - 'Start-AzStorageAccountMigration'_x000D__x000A_* Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount._x000D__x000A_ - 'New-AzStorageContext'_x000D__x000A_* Upgraded Azure.Storage.Blobs to 12.23.0_x000D__x000A_* Upgraded Azure.Storage.Files.Shares to 12.21.0_x000D__x000A_* Upgraded Azure.Storage.Files.DataLake to 12.21.0_x000D__x000A_* Upgraded Azure.Storage.Queues to 12.21.0_x000D__x000A_* Supported ClientName property when listing file handles _x000D__x000A_ - 'Get-AzStorageFileHandle'_x000D__x000A_* Upgraded Azure.Core to 1.44.1. - True - True - 6713475 - 219543588 - 5381932 - 1/14/2025 3:10:24 AM -05:00 - 1/14/2025 3:10:24 AM -05:00 - 1/30/2025 5:40:00 PM -05:00 - Azure ResourceManager ARM Storage StorageAccount PSModule PSEdition_Core PSEdition_Desktop - False - 2025-01-30T17:40:00Z - 8.1.0 - Microsoft Corporation - false - Module - Az.Storage.nuspec|Azure.Storage.Files.DataLake.dll|Microsoft.Azure.Cosmos.Table.dll|Microsoft.Azure.PowerShell.Cmdlets.Storage.dll|Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll-Help.xml|Microsoft.Azure.Storage.Blob.dll|Microsoft.Azure.Storage.File.dll|Microsoft.OData.Edm.dll|Storage.format.ps1xml|Storage.Management.format.ps1xml|Storage.Autorest\Az.Storage.format.ps1xml|Storage.Autorest\bin\Az.Storage.private.dll|Storage.Autorest\custom\Start-AzStorageAccountMigration.ps1|Storage.Autorest\internal\Az.Storage.internal.psm1|Storage.Autorest\utils\Get-SubscriptionIdTestSafe.ps1|Azure.Data.Tables.dll|Azure.Storage.Files.Shares.dll|Microsoft.Azure.DocumentDB.Core.dll|Microsoft.Azure.PowerShell.Cmdlets.Storage.dll-Help.xml|Microsoft.Azure.PowerShell.Storage.Common.dll|Microsoft.Azure.Storage.Common.dll|Microsoft.Azure.Storage.Queue.dll|Microsoft.Spatial.dll|Storage.generated.format.ps1xml|System.IO.Hashing.dll|Storage.Autorest\Az.Storage.psm1|Storage.Autorest\custom\Az.Storage.custom.psm1|Storage.Autorest\exports\ProxyCmdletDefinitions.ps1|Storage.Autorest\internal\ProxyCmdletDefinitions.ps1|Storage.Autorest\utils\Unprotect-SecureString.ps1|Az.Storage.psd1|Azure.Storage.Blobs.dll|Azure.Storage.Queues.dll|Microsoft.Azure.KeyVault.Core.dll|Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll|Microsoft.Azure.PowerShell.Storage.Management.Sdk.dll|Microsoft.Azure.Storage.DataMovement.dll|Microsoft.OData.Core.dll|Az.Storage.psm1|Azure.Storage.Common.dll|.signature.p7s - Add-AzRmStorageContainerLegalHold Add-AzStorageAccountManagementPolicyAction Add-AzStorageAccountNetworkRule Close-AzStorageFileHandle Copy-AzStorageBlob Disable-AzStorageBlobDeleteRetentionPolicy Disable-AzStorageBlobLastAccessTimeTracking Disable-AzStorageBlobRestorePolicy Disable-AzStorageContainerDeleteRetentionPolicy Disable-AzStorageDeleteRetentionPolicy Disable-AzStorageStaticWebsite Enable-AzStorageBlobDeleteRetentionPolicy Enable-AzStorageBlobLastAccessTimeTracking Enable-AzStorageBlobRestorePolicy Enable-AzStorageContainerDeleteRetentionPolicy Enable-AzStorageDeleteRetentionPolicy Enable-AzStorageStaticWebsite Get-AzDataLakeGen2ChildItem Get-AzDataLakeGen2DeletedItem Get-AzDataLakeGen2Item Get-AzDataLakeGen2ItemContent Get-AzRmStorageContainer Get-AzRmStorageContainerImmutabilityPolicy Get-AzRmStorageShare Get-AzStorageAccount Get-AzStorageAccountKey Get-AzStorageAccountManagementPolicy Get-AzStorageAccountNameAvailability Get-AzStorageAccountNetworkRuleSet Get-AzStorageBlob Get-AzStorageBlobByTag Get-AzStorageBlobContent Get-AzStorageBlobCopyState Get-AzStorageBlobInventoryPolicy Get-AzStorageBlobQueryResult Get-AzStorageBlobServiceProperty Get-AzStorageBlobTag Get-AzStorageContainer Get-AzStorageContainerStoredAccessPolicy Get-AzStorageCORSRule Get-AzStorageEncryptionScope Get-AzStorageFile Get-AzStorageFileContent Get-AzStorageFileCopyState Get-AzStorageFileHandle Get-AzStorageFileServiceProperty Get-AzStorageLocalUser Get-AzStorageLocalUserKey Get-AzStorageObjectReplicationPolicy Get-AzStorageQueue Get-AzStorageQueueStoredAccessPolicy Get-AzStorageServiceLoggingProperty Get-AzStorageServiceMetricsProperty Get-AzStorageServiceProperty Get-AzStorageShare Get-AzStorageShareStoredAccessPolicy Get-AzStorageTable Get-AzStorageTableStoredAccessPolicy Get-AzStorageUsage Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration Invoke-AzStorageAccountFailover Invoke-AzStorageAccountHierarchicalNamespaceUpgrade Lock-AzRmStorageContainerImmutabilityPolicy Move-AzDataLakeGen2Item New-AzDataLakeGen2Item New-AzDataLakeGen2SasToken New-AzRmStorageContainer New-AzRmStorageShare New-AzStorageAccount New-AzStorageAccountKey New-AzStorageAccountManagementPolicyBlobIndexMatchObject New-AzStorageAccountManagementPolicyFilter New-AzStorageAccountManagementPolicyRule New-AzStorageAccountSASToken New-AzStorageBlobInventoryPolicyRule New-AzStorageBlobQueryConfig New-AzStorageBlobRangeToRestore New-AzStorageBlobSASToken New-AzStorageContainer New-AzStorageContainerSASToken New-AzStorageContainerStoredAccessPolicy New-AzStorageContext New-AzStorageDirectory New-AzStorageEncryptionScope New-AzStorageFileSASToken New-AzStorageLocalUserPermissionScope New-AzStorageLocalUserSshPassword New-AzStorageLocalUserSshPublicKey New-AzStorageObjectReplicationPolicyRule New-AzStorageQueue New-AzStorageQueueSASToken New-AzStorageQueueStoredAccessPolicy New-AzStorageShare New-AzStorageShareSASToken New-AzStorageShareStoredAccessPolicy New-AzStorageTable New-AzStorageTableSASToken New-AzStorageTableStoredAccessPolicy Remove-AzDataLakeGen2AclRecursive Remove-AzDataLakeGen2Item Remove-AzRmStorageContainer Remove-AzRmStorageContainerImmutabilityPolicy Remove-AzRmStorageContainerLegalHold Remove-AzRmStorageShare Remove-AzStorageAccount Remove-AzStorageAccountManagementPolicy Remove-AzStorageAccountNetworkRule Remove-AzStorageBlob Remove-AzStorageBlobImmutabilityPolicy Remove-AzStorageBlobInventoryPolicy Remove-AzStorageContainer Remove-AzStorageContainerStoredAccessPolicy Remove-AzStorageCORSRule Remove-AzStorageDirectory Remove-AzStorageFile Remove-AzStorageLocalUser Remove-AzStorageObjectReplicationPolicy Remove-AzStorageQueue Remove-AzStorageQueueStoredAccessPolicy Remove-AzStorageShare Remove-AzStorageShareStoredAccessPolicy Remove-AzStorageTable Remove-AzStorageTableStoredAccessPolicy Rename-AzStorageDirectory Rename-AzStorageFile Restore-AzDataLakeGen2DeletedItem Restore-AzRmStorageShare Restore-AzStorageBlobRange Restore-AzStorageContainer Revoke-AzStorageAccountUserDelegationKeys Set-AzCurrentStorageAccount Set-AzDataLakeGen2AclRecursive Set-AzDataLakeGen2ItemAclObject Set-AzRmStorageContainerImmutabilityPolicy Set-AzStorageAccount Set-AzStorageAccountManagementPolicy Set-AzStorageBlobContent Set-AzStorageBlobImmutabilityPolicy Set-AzStorageBlobInventoryPolicy Set-AzStorageBlobLegalHold Set-AzStorageBlobTag Set-AzStorageContainerAcl Set-AzStorageContainerStoredAccessPolicy Set-AzStorageCORSRule Set-AzStorageFileContent Set-AzStorageLocalUser Set-AzStorageObjectReplicationPolicy Set-AzStorageQueueStoredAccessPolicy Set-AzStorageServiceLoggingProperty Set-AzStorageServiceMetricsProperty Set-AzStorageShareQuota Set-AzStorageShareStoredAccessPolicy Set-AzStorageTableStoredAccessPolicy Start-AzStorageBlobCopy Start-AzStorageBlobIncrementalCopy Start-AzStorageFileCopy Stop-AzStorageAccountHierarchicalNamespaceUpgrade Stop-AzStorageBlobCopy Stop-AzStorageFileCopy Update-AzDataLakeGen2AclRecursive Update-AzDataLakeGen2Item Update-AzRmStorageContainer Update-AzRmStorageShare Update-AzStorageAccountNetworkRuleSet Update-AzStorageBlobServiceProperty Update-AzStorageEncryptionScope Update-AzStorageFileServiceProperty Update-AzStorageServiceProperty - Get-AzStorageAccountMigration Start-AzStorageAccountMigration - dfa9e4ea-1407-446d-9111-79122977ab20 - 5.1 - 4.7.2 - Microsoft Corporation - - - C:\GitHub\CIPP Workspace\CIPP-API\Modules\Az.Storage\8.1.0 -
-
-
diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/Az.Storage.format.ps1xml b/Modules/Az.Storage/8.1.0/Storage.Autorest/Az.Storage.format.ps1xml deleted file mode 100644 index bffffc49f2fa..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/Az.Storage.format.ps1xml +++ /dev/null @@ -1,3841 +0,0 @@ - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.AccountImmutabilityPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.AccountImmutabilityPolicyProperties#Multiple - - - - - - - - - - - - - - - - - - AllowProtectedAppendWrite - - - ImmutabilityPeriodSinceCreationInDay - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.AccountSasParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.AccountSasParameters#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IPAddressOrRange - - - KeyToSign - - - Permission - - - Protocol - - - ResourceType - - - Service - - - SharedAccessExpiryTime - - - SharedAccessStartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ActiveDirectoryProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ActiveDirectoryProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccountType - - - AzureStorageSid - - - DomainGuid - - - DomainName - - - DomainSid - - - ForestName - - - NetBiosDomainName - - - SamAccountName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.AzureFilesIdentityBasedAuthentication - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.AzureFilesIdentityBasedAuthentication#Multiple - - - - - - - - - - - - - - - DefaultSharePermission - - - DirectoryServiceOption - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryCreationTime - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryCreationTime#Multiple - - - - - - - - - - - - LastNDay - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicy#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyDefinition - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyDefinition#Multiple - - - - - - - - - - - - - - - - - - Format - - - ObjectType - - - Schedule - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyFilter - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyFilter#Multiple - - - - - - - - - - - - - - - - - - IncludeBlobVersion - - - IncludeDeleted - - - IncludeSnapshot - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyProperties#Multiple - - - - - - - - - - - - LastModifiedTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyRule - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicyRule#Multiple - - - - - - - - - - - - - - - - - - Destination - - - Enabled - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicySchema - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobInventoryPolicySchema#Multiple - - - - - - - - - - - - - - - Destination - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobRestoreParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobRestoreParameters#Multiple - - - - - - - - - - - - TimeToRestore - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobRestoreRange - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobRestoreRange#Multiple - - - - - - - - - - - - - - - EndRange - - - StartRange - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobRestoreStatus - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.BlobRestoreStatus#Multiple - - - - - - - - - - - - - - - - - - FailureReason - - - RestoreId - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.CheckNameAvailabilityResult - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.CheckNameAvailabilityResult#Multiple - - - - - - - - - - - - - - - - - - Message - - - NameAvailable - - - Reason - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.CloudErrorBody - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.CloudErrorBody#Multiple - - - - - - - - - - - - - - - - - - Code - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.CustomDomain - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.CustomDomain#Multiple - - - - - - - - - - - - - - - Name - - - UseSubDomainName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DateAfterCreation - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DateAfterCreation#Multiple - - - - - - - - - - - - - - - DaysAfterCreationGreaterThan - - - DaysAfterLastTierChangeGreaterThan - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DateAfterModification - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DateAfterModification#Multiple - - - - - - - - - - - - - - - - - - - - - DaysAfterCreationGreaterThan - - - DaysAfterLastAccessTimeGreaterThan - - - DaysAfterLastTierChangeGreaterThan - - - DaysAfterModificationGreaterThan - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeletedAccount - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeletedAccount#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeletedAccountListResult - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeletedAccountListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeletedAccountProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeletedAccountProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - CreationTime - - - DeletionTime - - - Location - - - RestoreReference - - - StorageAccountResourceId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Dimension - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Dimension#Multiple - - - - - - - - - - - - - - - DisplayName - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Encryption - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Encryption#Multiple - - - - - - - - - - - - - - - KeySource - - - RequireInfrastructureEncryption - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionIdentity#Multiple - - - - - - - - - - - - - - - EncryptionFederatedIdentityClientId - - - EncryptionUserAssignedIdentity - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScope - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScope#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScopeKeyVaultProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScopeKeyVaultProperties#Multiple - - - - - - - - - - - - - - - - - - CurrentVersionedKeyIdentifier - - - KeyUri - - - LastKeyRotationTimestamp - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScopeListResult - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScopeListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScopeProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionScopeProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - CreationTime - - - LastModifiedTime - - - RequireInfrastructureEncryption - - - Source - - - State - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionService - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.EncryptionService#Multiple - - - - - - - - - - - - - - - - - - Enabled - - - KeyType - - - LastEnabledTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Endpoints - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Endpoints#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - Blob - - - Df - - - File - - - Queue - - - Table - - - Web - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorDetail - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorDetail#Multiple - - - - - - - - - - - - - - - - - - Code - - - Message - - - Target - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorResponseBody - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorResponseBody#Multiple - - - - - - - - - - - - - - - Code - - - Message - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ExtendedLocation - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ExtendedLocation#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.GeoReplicationStats - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.GeoReplicationStats#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - CanFailover - - - CanPlannedFailover - - - LastSyncTime - - - PostFailoverRedundancy - - - PostPlannedFailoverRedundancy - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Identity - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Identity#Multiple - - - - - - - - - - - - - - - PrincipalId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutableStorageAccount - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ImmutableStorageAccount#Multiple - - - - - - - - - - - - Enabled - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IPRule - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IPRule#Multiple - - - - - - - - - - - - - - - Action - - - IPAddressOrRange - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.KeyCreationTime - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.KeyCreationTime#Multiple - - - - - - - - - - - - - - - Key1 - - - Key2 - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.KeyPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.KeyPolicy#Multiple - - - - - - - - - - - - KeyExpirationPeriodInDay - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.KeyVaultProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.KeyVaultProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - CurrentVersionedKeyExpirationTimestamp - - - CurrentVersionedKeyIdentifier - - - KeyName - - - KeyVaultUri - - - KeyVersion - - - LastKeyRotationTimestamp - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ListAccountSasResponse - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ListAccountSasResponse#Multiple - - - - - - - - - - - - AccountSasToken - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ListServiceSasResponse - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ListServiceSasResponse#Multiple - - - - - - - - - - - - ServiceSasToken - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUser - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUser#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUserKeys - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUserKeys#Multiple - - - - - - - - - - - - SharedKey - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUserProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUserProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - HasSharedKey - - - HasSshKey - - - HasSshPassword - - - HomeDirectory - - - Sid - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUserRegeneratePasswordResult - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.LocalUserRegeneratePasswordResult#Multiple - - - - - - - - - - - - SshPassword - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicy#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyBaseBlob - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyBaseBlob#Multiple - - - - - - - - - - - - EnableAutoTierToHotFromCool - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyProperties#Multiple - - - - - - - - - - - - LastModifiedTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyRule - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyRule#Multiple - - - - - - - - - - - - - - - Enabled - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.MetricSpecification - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.MetricSpecification#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AggregationType - - - Category - - - DisplayDescription - - - DisplayName - - - FillGapWithZero - - - Name - - - ResourceIdDimensionNameOverride - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkRuleSet - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkRuleSet#Multiple - - - - - - - - - - - - - - - Bypass - - - DefaultAction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicy#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyFilter - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyFilter#Multiple - - - - - - - - - - - - MinCreationTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyProperties#Multiple - - - - - - - - - - - - - - - - - - - - - DestinationAccount - - - EnabledTime - - - PolicyId - - - SourceAccount - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyRule - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyRule#Multiple - - - - - - - - - - - - - - - - - - DestinationContainer - - - RuleId - - - SourceContainer - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Operation - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Operation#Multiple - - - - - - - - - - - - - - - Name - - - Origin - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.OperationDisplay - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.OperationDisplay#Multiple - - - - - - - - - - - - - - - - - - - - - Description - - - Operation - - - Provider - - - Resource - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PermissionScope - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PermissionScope#Multiple - - - - - - - - - - - - - - - - - - Permission - - - ResourceName - - - Service - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateEndpointConnection - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateEndpointConnection#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateEndpointConnectionProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateEndpointConnectionProperties#Multiple - - - - - - - - - - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateLinkResource - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateLinkResource#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateLinkResourceProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateLinkResourceProperties#Multiple - - - - - - - - - - - - GroupId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateLinkServiceConnectionState - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.PrivateLinkServiceConnectionState#Multiple - - - - - - - - - - - - - - - - - - ActionRequired - - - Description - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProxyResource - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProxyResource#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Resource - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Resource#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ResourceAccessRule - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ResourceAccessRule#Multiple - - - - - - - - - - - - - - - ResourceId - - - TenantId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Restriction - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Restriction#Multiple - - - - - - - - - - - - ReasonCode - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.RoutingPreference - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.RoutingPreference#Multiple - - - - - - - - - - - - - - - - - - PublishInternetEndpoint - - - PublishMicrosoftEndpoint - - - RoutingChoice - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SasPolicy - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SasPolicy#Multiple - - - - - - - - - - - - - - - ExpirationAction - - - SasExpirationPeriod - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ServiceSasParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ServiceSasParameters#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CacheControl - - - CanonicalizedResource - - - ContentDisposition - - - ContentEncoding - - - ContentLanguage - - - ContentType - - - IPAddressOrRange - - - Identifier - - - KeyToSign - - - PartitionKeyEnd - - - PartitionKeyStart - - - Permission - - - Protocol - - - Resource - - - RowKeyEnd - - - RowKeyStart - - - SharedAccessExpiryTime - - - SharedAccessStartTime - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Sku - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Sku#Multiple - - - - - - - - - - - - - - - Name - - - Tier - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SkuCapability - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SkuCapability#Multiple - - - - - - - - - - - - - - - Name - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SkuInformation - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SkuInformation#Multiple - - - - - - - - - - - - - - - - - - - - - Kind - - - Name - - - ResourceType - - - Tier - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SshPublicKey - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SshPublicKey#Multiple - - - - - - - - - - - - - - - Description - - - Key - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccount - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccount#Multiple - - - - - - - - - - - - - - - - - - - - - Location - - - Name - - - Kind - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountCheckNameAvailabilityParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountCheckNameAvailabilityParameters#Multiple - - - - - - - - - - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountCreateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountCreateParameters#Multiple - - - - - - - - - - - - - - - Kind - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountCreateParametersTags - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountCreateParametersTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountInternetEndpoints - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountInternetEndpoints#Multiple - - - - - - - - - - - - - - - - - - - - - Blob - - - Df - - - File - - - Web - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountKey - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountKey#Multiple - - - - - - - - - - - - - - - - - - - - - CreationTime - - - KeyName - - - Permission - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountListResult - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountMicrosoftEndpoints - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountMicrosoftEndpoints#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - Blob - - - Df - - - File - - - Queue - - - Table - - - Web - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountMigration - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountMigration#Multiple - - - - - - - - - - - - - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountMigrationProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountMigrationProperties#Multiple - - - - - - - - - - - - - - - - - - - - - MigrationFailedDetailedReason - - - MigrationFailedReason - - - MigrationStatus - - - TargetSkuName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountProperties - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountProperties#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessTier - - - AccountMigrationInProgress - - - AllowBlobPublicAccess - - - AllowCrossTenantReplication - - - AllowSharedKeyAccess - - - AllowedCopyScope - - - CreationTime - - - DefaultToOAuthAuthentication - - - DnsEndpointType - - - EnableHttpsTrafficOnly - - - EnableNfsV3 - - - FailoverInProgress - - - IsHnsEnabled - - - IsLocalUserEnabled - - - IsSftpEnabled - - - IsSkuConversionBlocked - - - LargeFileSharesState - - - LastGeoFailoverTime - - - MinimumTlsVersion - - - PrimaryLocation - - - ProvisioningState - - - PublicNetworkAccess - - - SecondaryLocation - - - StatusOfPrimary - - - StatusOfSecondary - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountPropertiesCreateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountPropertiesCreateParameters#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessTier - - - AllowBlobPublicAccess - - - AllowCrossTenantReplication - - - AllowSharedKeyAccess - - - AllowedCopyScope - - - DefaultToOAuthAuthentication - - - DnsEndpointType - - - EnableHttpsTrafficOnly - - - EnableNfsV3 - - - IsHnsEnabled - - - IsLocalUserEnabled - - - IsSftpEnabled - - - LargeFileSharesState - - - MinimumTlsVersion - - - PublicNetworkAccess - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountPropertiesUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountPropertiesUpdateParameters#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccessTier - - - AllowBlobPublicAccess - - - AllowCrossTenantReplication - - - AllowSharedKeyAccess - - - AllowedCopyScope - - - DefaultToOAuthAuthentication - - - DnsEndpointType - - - EnableHttpsTrafficOnly - - - IsLocalUserEnabled - - - IsSftpEnabled - - - LargeFileSharesState - - - MinimumTlsVersion - - - PublicNetworkAccess - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountRegenerateKeyParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountRegenerateKeyParameters#Multiple - - - - - - - - - - - - KeyName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountSkuConversionStatus - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountSkuConversionStatus#Multiple - - - - - - - - - - - - - - - - - - - - - EndTime - - - SkuConversionStatus - - - StartTime - - - TargetSkuName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountUpdateParameters - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountUpdateParameters#Multiple - - - - - - - - - - - - Kind - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountUpdateParametersTags - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccountUpdateParametersTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageIdentity#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AccountName - - - BlobInventoryPolicyName - - - DeletedAccountName - - - EncryptionScopeName - - - Location - - - ManagementPolicyName - - - MigrationName - - - ObjectReplicationPolicyId - - - PrivateEndpointConnectionName - - - ResourceGroupName - - - SubscriptionId - - - Username - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SystemData - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.SystemData#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - CreatedAt - - - CreatedBy - - - CreatedByType - - - LastModifiedAt - - - LastModifiedBy - - - LastModifiedByType - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.TagFilter - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.TagFilter#Multiple - - - - - - - - - - - - - - - - - - Name - - - Op - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.TrackedResource - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.TrackedResource#Multiple - - - - - - - - - - - - - - - Name - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.TrackedResourceTags - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.TrackedResourceTags#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Usage - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Usage#Multiple - - - - - - - - - - - - - - - - - - CurrentValue - - - Limit - - - Unit - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.UsageName - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.UsageName#Multiple - - - - - - - - - - - - - - - LocalizedValue - - - Value - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.UserAssignedIdentity - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.UserAssignedIdentity#Multiple - - - - - - - - - - - - - - - ClientId - - - PrincipalId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.VirtualNetworkRule - - Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.VirtualNetworkRule#Multiple - - - - - - - - - - - - - - - - - - Action - - - State - - - VirtualNetworkResourceId - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/Az.Storage.psm1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/Az.Storage.psm1 deleted file mode 100644 index 06cc98bd6220..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/Az.Storage.psm1 +++ /dev/null @@ -1,337 +0,0 @@ -# region Generated - # ---------------------------------------------------------------------------------- - # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. - # ---------------------------------------------------------------------------------- - # Load required Az.Accounts module - $accountsName = 'Az.Accounts' - $accountsModule = Get-Module -Name $accountsName - if(-not $accountsModule) { - $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' - if(Test-Path -Path $localAccountsPath) { - $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 - if($localAccounts) { - $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru - } - } - if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 - if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru - } - } - } - - if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop - } - Write-Information "Loaded Module '$($accountsModule.Name)'" - - # Load the private module dll - $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.Storage.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.Storage.Module]::Instance - - # Ask for the shared functionality table - $VTable = Register-AzModule - - # Tweaks the pipeline on module load - $instance.OnModuleLoad = $VTable.OnModuleLoad - - # Following two delegates are added for telemetry - $instance.GetTelemetryId = $VTable.GetTelemetryId - $instance.Telemetry = $VTable.Telemetry - - # Delegate to sanitize the output object - $instance.SanitizeOutput = $VTable.SanitizerHandler - - # Delegate to get the telemetry info - $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo - - # Tweaks the pipeline per call - $instance.OnNewRequest = $VTable.OnNewRequest - - # Gets shared parameter values - $instance.GetParameterValue = $VTable.GetParameterValue - - # Allows shared module to listen to events from this module - $instance.EventListener = $VTable.EventListener - - # Gets shared argument completers - $instance.ArgumentCompleter = $VTable.ArgumentCompleter - - # The name of the currently selected Azure profile - $instance.ProfileName = $VTable.ProfileName - - # Load the custom module - $customModulePath = Join-Path $PSScriptRoot './custom/Az.Storage.custom.psm1' - if(Test-Path $customModulePath) { - $null = Import-Module -Name $customModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = Join-Path $PSScriptRoot './exports' - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } - - # Finalize initialization of this module - $instance.Init(); - Write-Information "Loaded Module '$($instance.Name)'" -# endregion - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDBSpO4nLgVZZiE -# p1iRBhK5XCm0c7tXqZhhGj3VQypBsKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5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/GMqqF7l2HEn3ad7tZkyxksrgj5tyrhWiRzwPH5Ju0jb0b1GJFBBM86aXCABa -# HpWU2jVExEFr00n6EuVffmegt4Ygee1fA4W3L2ey4LXUSlR8fA1nKB1LNl9aILvC -# TS96U7/uSIGcrSplCRjD30EaSVrzFdk8os9RLjk6pZeSZY/pbWJGIwKOEfNQVdVc -# 8oduHrNMSnmmScFjrmPkg3heYtk1kvg5dH4ZXD6NM3ylDa2tN/FRvBRdKDQxEM7R -# LFum34rAhEQQyll0/3I09MCRK6vQ0tInvLwjzn6SxEHDJHAe2rYipEECh74h35AJ -# Jr/805QxcbSJIPk62sNXXYxi5xptRL4UxzFl7CLB1MAjzqzfb4F8PnKN46T6rgW2 -# kgeHrqm1ZyVqRYisovm6nPLBoQyRgfdTnHgVfFC9XAyaodJgOdrSBDiXYbjhc/0h -# ms+gtA6decjG9rHAbhY= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/bin/Az.Storage.private.dll b/Modules/Az.Storage/8.1.0/Storage.Autorest/bin/Az.Storage.private.dll deleted file mode 100644 index d173a782c043..000000000000 Binary files a/Modules/Az.Storage/8.1.0/Storage.Autorest/bin/Az.Storage.private.dll and /dev/null differ diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/custom/Az.Storage.custom.psm1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/custom/Az.Storage.custom.psm1 deleted file mode 100644 index 305315b2e392..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/custom/Az.Storage.custom.psm1 +++ /dev/null @@ -1,235 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Storage.private.dll') - - # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Storage.internal.psm1' - if(Test-Path $internalModulePath) { - $null = Import-Module -Name $internalModulePath - } - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export script cmdlets - Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) -# endregion - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCA5y03H/4iWEUzs -# t4OdHhPLBv3R0cG86hsmM72gSRcR6aCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5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m -# Bfn6S1zX7+Mq+v9EQEZJXJm5en0QPkfcUrzxXBI1rT2YtYzT139JXutpQD70YsRl -# rJzf9KcVN8xrDmNJrqB7yegVMkuhwEvJ5aUVTjp7Ca2lEmBgSTrRWMJQ+W1TMVU+ -# B6NnAr/wtRyc1/0ryyRhEhBFH/oNymUX/yOcAl0KL7a3AToc83VJpYo1WlQ97pPW -# A/5pkgGAmnrEALTEPc9eFScSGisaEHcBfTOXfbXFXe/LLj2+oSnvotCLot5GKsGM -# yqeNLZ17qCd/dVb/EsdRFVgxAxd6nt5aY82eBq6pZ30actWImo+e2SQ9t1LX2kXe -# EeUB+EBqsGz2t+8WDLfhvpUCLz3glBnSWsfpsY6UFG/2Xo7iheVLWSUbjEaAcdn/ -# k/ZnCotCNZcS00BJyeSJS7cfgRjNwjgxNW5Dc85KkDHPYVAjwxKsysw9XU5hrgtK -# oJIf2F6Q3xDpYv35BXY= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 deleted file mode 100644 index 2a6dc353a47f..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 +++ /dev/null @@ -1,426 +0,0 @@ -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Account Migration request can be triggered for a storage account to change its redundancy level. -The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. -Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. -.Description -Account Migration request can be triggered for a storage account to change its redundancy level. -The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. -Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. -.Example -Start-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresourcegroup -TargetSku Standard_LRS -Name migration1 -AsJob -.Example -Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name myaccount | Start-AzStorageAccountMigration -TargetSku Standard_LRS -AsJob -.Example -$properties = '{ - "properties": { - "targetSkuName": "Standard_ZRS" - } -}' - Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonString $properties -AsJob -.Example -# Before executing the cmdlet, make sure you have a json file that contains {"properties": {"targetSkuName": }} -Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonFilePath properties.json -AsJob - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' - [DeletedAccountName ]: Name of the deleted storage account. - [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope 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. - [Id ]: Resource identity path - [Location ]: The location of the deleted storage account. - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' - [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. - [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. -.Link -https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration -#> -function Start-AzStorageAccountMigration { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='CustomerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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. - ${AccountName}, - - [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaJsonFilePath')] - [Parameter(ParameterSetName='CustomerViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CustomerViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.PSArgumentCompleterAttribute("Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", "Standard_RAGZRS")] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Target sku name for the account - ${TargetSku}, - - [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # current value is 'default' for customer initiated migration - ${Name}, - - [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # SrpAccountMigrationType in ARM contract which is 'accountMigrations' - ${Type}, - - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Path of Json file supplied to the Customer operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Json string supplied to the Customer operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - - process { - Write-Warning("After your request to convert the account's redundancy configuration is validated, the conversion will typically complete in a few days, but can take a few weeks depending on current resource demands in the region, account size, and other factors. The conversion can't be stopped after being initiated, and for accounts with geo redundancy a failover can't be initiated while conversion is in progress. The data within the storage account will continue to be accessible with no loss of durability or availability.") - Az.Storage.internal\Start-AzStorageAccountMigration @PSBoundParameters - } -} - -# SIG # Begin signature block -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCC859puGL2l4nNN -# Dkq3fhgBG4unrW8AxFOXHW596OrkUKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROzAdHdYpObpCOdeAY2P5XqtJkk79aROpzw16wCjdSn8qMzCBzR7r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jEaFAHYUuuNxLXe3ff0Aji -# jMoSDb6xXlff2ZcsEs0BTXb6J2hK58izI99tx9LcJVyp8JpY0qJWdq5GyCybwoi6 -# K7tLte66hsckVSGoHUP5HFpn3oJWvwfBsSftpUEbxrvIHQyYiiNtRmZqdyOa9dol -# S7n+GFeLxVfkYwWaZ0aHOcCH8gwd0JtOuU3uAwQDM9GWwyInlLutn7rP1VK21jZu -# NYsd1VJVJj4XAEb1cMetWmV9EYY+YPcVGJjG/s11kXhD2b36T/fOVB8se8FHG2P2 -# Rb6Vvk5rV0aH6CUwpd343vx9u+FnoyCmVk1XsPNa0sOuh/w3xnf0+SOzFD29ZvS6 -# RumL8/g42W38uDPwTM3E3t4f6k7rl0idGK9jcdHdzd3P+ZukqfcGEKxv9XNIn5sG -# s9z7wsb00Vq/jt1nsLsiwvQ= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index 1ae80bdebdd7..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,713 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Gets the status of the ongoing migration for the specified storage account. -.Description -Gets the status of the ongoing migration for the specified storage account. -.Example -Get-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresroucegroup - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' - [DeletedAccountName ]: Name of the deleted storage account. - [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope 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. - [Id ]: Resource identity path - [Location ]: The location of the deleted storage account. - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' - [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. - [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. -.Link -https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccountmigration -#> -function Get-AzStorageAccountMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] -param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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. - ${AccountName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Storage.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - Get = 'Az.Storage.private\Get-AzStorageAccountMigration_Get'; - GetViaIdentity = 'Az.Storage.private\Get-AzStorageAccountMigration_GetViaIdentity'; - } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Storage.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Account Migration request can be triggered for a storage account to change its redundancy level. -The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. -Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. -.Description -Account Migration request can be triggered for a storage account to change its redundancy level. -The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. -Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. -.Example -Start-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresourcegroup -TargetSku Standard_LRS -Name migration1 -AsJob -.Example -Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name myaccount | Start-AzStorageAccountMigration -TargetSku Standard_LRS -AsJob -.Example -$properties = '{ - "properties": { - "targetSkuName": "Standard_ZRS" - } -}' - Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonString $properties -AsJob -.Example -# Before executing the cmdlet, make sure you have a json file that contains {"properties": {"targetSkuName": }} -Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonFilePath properties.json -AsJob - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' - [DeletedAccountName ]: Name of the deleted storage account. - [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope 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. - [Id ]: Resource identity path - [Location ]: The location of the deleted storage account. - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' - [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. - [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. -.Link -https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration -#> -function Start-AzStorageAccountMigration { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='CustomerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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. - ${AccountName}, - - [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaJsonString')] - [Parameter(ParameterSetName='CustomerViaJsonFilePath')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='CustomerViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.PSArgumentCompleterAttribute("Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", "Standard_RAGZRS")] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Target sku name for the account - ${TargetSku}, - - [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # current value is 'default' for customer initiated migration - ${Name}, - - [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # SrpAccountMigrationType in ARM contract which is 'accountMigrations' - ${Type}, - - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Json string supplied to the Customer operation - ${JsonString}, - - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Path of Json file supplied to the Customer operation - ${JsonFilePath}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.Storage.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - CustomerExpanded = 'Az.Storage.custom\Start-AzStorageAccountMigration'; - CustomerViaJsonString = 'Az.Storage.custom\Start-AzStorageAccountMigration'; - CustomerViaJsonFilePath = 'Az.Storage.custom\Start-AzStorageAccountMigration'; - CustomerViaIdentityExpanded = 'Az.Storage.custom\Start-AzStorageAccountMigration'; - } - if (('CustomerExpanded', 'CustomerViaJsonString', 'CustomerViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.Storage.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -# SIG # Begin signature block -# MIIoOQYJKoZIhvcNAQcCoIIoKjCCKCYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3A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xX6VBSJttw7oB -# mg/dEZCfUdJTjJ8Kg3zTF5Z4AImWT/Da0djggvYgEeQ3ROdoElOUXiobLgJQ8b84 -# h9rh/L7Scxgoj0MJGH6TfJEByXHA8O0WlsBVODFucETR9enY01/ZrPly0cV/PS2o -# 9MDrssScH/seyOjpGS6mnyto07QzBKDkX6+o9SE/EhC/pU8qBlndQNc+4jsEQhNr -# qwfdj+bHVa+h0hPhMJPTDMRM+WFLnHWSU0JC8qI= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/internal/Az.Storage.internal.psm1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/internal/Az.Storage.internal.psm1 deleted file mode 100644 index 57bd3e23c7e1..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/internal/Az.Storage.internal.psm1 +++ /dev/null @@ -1,256 +0,0 @@ -# region Generated - # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Storage.private.dll') - - # Get the private module's instance - $instance = [Microsoft.Azure.PowerShell.Cmdlets.Storage.Module]::Instance - - # Export nothing to clear implicit exports - Export-ModuleMember - - # Export proxy cmdlet scripts - $exportsPath = $PSScriptRoot - $directories = Get-ChildItem -Directory -Path $exportsPath - $profileDirectory = $null - if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." - } - } elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 - } - - if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName - } - - if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) - } -# endregion - -# SIG # Begin signature block -# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCy7aZDAGSyfmFx -# cucI97RlwuRwihoeuqeEAnHkOPtxE6CCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz -# NB10jpbg0lhvkT1AzfX2TLITSXwS8D+mBzGCWMM/wTpciWBV/pbjSazbzoKvRrNo -# DV/u9omOM2Eawyo5JJJdNkM2d8qzkQ0bRuRd4HarmGunSouyb9NY7egWN5E5lUc3 -# a2AROz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CH+/FQco7x7iVuOgJ5nZZObKBz -# o1u6RETNKqdqcvr1xGQoQhnWJdrZJqmkRbGBXeiv/oEBFwE+TFvrWW3HGYdb49WX -# qMuAAIoz4Q9iJU9O2p2+i9CevFV+oSKKlFxr1L/887q/e9RqZHLxpuBC3w04fnxO -# IeuTfORjXDx3IEq8Rx8BRX3gsTCE5NIk3YrX3mo58KMFSRTriTCqRR4w8cy10Gq8 -# WFmF4epAXgtIP0LtdE5cLPBDZttfpZ43FdlgXX7OAK/raWI7qq55pKBNoRSxAzhm -# sZeY7Wf6yJLiMSOuvwJOeOmSAh0h1FzX/WYf+5gZm7J+AMXh3t3FdyxwAroLb49+ -# 3UP9w++esRVpYTdrjzFS3nqmkHJd9E3VFQdk5CL9YR8RbscwZksChFcHzDWYmZTH -# VB74ayD4fvkS0dIM1lo= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 deleted file mode 100644 index af35fdb2f8f5..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ /dev/null @@ -1,605 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Lists all of the available Storage Rest API operations. -.Description -Lists all of the available Storage Rest API operations. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IOperation -.Link -https://learn.microsoft.com/powershell/module/az.storage/get-azstorageoperation -#> -function Get-AzStorageOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IOperation])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.private\Get-AzStorageOperation_List'; - } - - $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 -Account Migration request can be triggered for a storage account to change its redundancy level. -The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. -Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. -.Description -Account Migration request can be triggered for a storage account to change its redundancy level. -The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. -Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. -.Example -Start-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresourcegroup -TargetSku Standard_LRS -Name migration1 -AsJob -.Example -Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name myaccount | Start-AzStorageAccountMigration -TargetSku Standard_LRS -AsJob -.Example -$properties = '{ - "properties": { - "targetSkuName": "Standard_ZRS" - } -}' - Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonString $properties -AsJob -.Example -# Before executing the cmdlet, make sure you have a json file that contains {"properties": {"targetSkuName": }} -Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonFilePath properties.json -AsJob - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity -.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 : Identity Parameter - [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. - [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' - [DeletedAccountName ]: Name of the deleted storage account. - [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope 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. - [Id ]: Resource identity path - [Location ]: The location of the deleted storage account. - [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' - [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' - [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. - [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. - [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. - -PARAMETER : The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. - DetailTargetSkuName : Target sku name for the account - [Name ]: current value is 'default' for customer initiated migration - [Type ]: SrpAccountMigrationType in ARM contract which is 'accountMigrations' -.Link -https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration -#> -function Start-AzStorageAccountMigration { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Start', Mandatory)] - [Parameter(ParameterSetName='StartExpanded', Mandatory)] - [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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. - ${AccountName}, - - [Parameter(ParameterSetName='Start', Mandatory)] - [Parameter(ParameterSetName='StartExpanded', Mandatory)] - [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] - [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Start')] - [Parameter(ParameterSetName='StartExpanded')] - [Parameter(ParameterSetName='StartViaJsonFilePath')] - [Parameter(ParameterSetName='StartViaJsonString')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] - # Identity Parameter - ${InputObject}, - - [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration] - # The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. - ${Parameter}, - - [Parameter(ParameterSetName='StartExpanded', Mandatory)] - [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.PSArgumentCompleterAttribute("Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", "Standard_RAGZRS")] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Target sku name for the account - ${TargetSku}, - - [Parameter(ParameterSetName='StartExpanded')] - [Parameter(ParameterSetName='StartViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # current value is 'default' for customer initiated migration - ${Name}, - - [Parameter(ParameterSetName='StartExpanded')] - [Parameter(ParameterSetName='StartViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # SrpAccountMigrationType in ARM contract which is 'accountMigrations' - ${Type}, - - [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Path of Json file supplied to the Start operation - ${JsonFilePath}, - - [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Json string supplied to the Start operation - ${JsonString}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.private\Start-AzStorageAccountMigration_Start'; - StartExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_StartExpanded'; - StartViaIdentity = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaIdentity'; - StartViaIdentityExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaIdentityExpanded'; - StartViaJsonFilePath = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaJsonFilePath'; - StartViaJsonString = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaJsonString'; - } - if (('Start', 'StartExpanded', 'StartViaJsonFilePath', 'StartViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } - if ($testPlayback) { - $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') - } else { - $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 -# MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDG6lXJMpSTwoN6 -# QQU4ZtvepYPJ5w68AZjCvbnmSQlyfqCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEM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RG/Cs6oV1NO/ieyeeeWmTwQG25LiBl7tn8gKUi9A1kl -# jrfF2VBOxPTCWurhypBwqNc= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 deleted file mode 100644 index 9213c3763627..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 +++ /dev/null @@ -1,224 +0,0 @@ -param() -if ($env:AzPSAutorestTestPlaybackMode) { - $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' - . ($loadEnvPath) - return $env.SubscriptionId -} -return (Get-AzContext).Subscription.Id -# SIG # Begin signature block -# MIIoKQYJKoZIhvcNAQcCoIIoGjCCKBYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCvmGT2RlJhp/rC -# DOiTnt/3S1Bv3biEMflyZwWMS2xRdKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 -# Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvc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6QABAAAB5zAiBCBEm+MnX6BUaw2hoO31T8VOQURXR1mD -# tTiPuzpaNaxqQTANBgkqhkiG9w0BAQsFAASCAgBews9oufEPazqt0EzJChqw/s4w -# ydX6moKL9sZr979ineeCHC3pY//7oxmCLxcJg00KBmEGhRv3wvx5m9qYeKgVhyKw -# sW5Nm0pqmNfKwUcNq/6xUB86UWiHOp5XN3B78HkjrT7IEMc9OA2gbRwGZl9nwLyZ -# /5myqnfj3GTfM6OVW+/bZBxHLQVFEWWDKSLpyIoFMyiTUbipXnrQpkbHgmHtAYxJ -# JhGr6I65aoRJKzHZzCkeB9zX/OMIFTcs3k8h9gjNIdgyG3xmyTG9IzeXuGQhO/BV -# vk88pV/btLDG6HF9QSGI95pOCvyfoG/ySV64L5NascO5yRX6DiwN2QPm1XZzE2zI -# D3Ypm8CrMG5lLwqSYuY/jRrb+pUdre7u61nuasWUWV13iepOjy8dF/wMOucfd8m3 -# 5s93Zb0ThTo6RselEpQOd8Qnxjqoq4DO137VbhCxHzgnY23G/jS+pfCuYSX0jId9 -# RXWO59DknoV01R6u1a9bcNuUbwOXU8k6Iwt203tLmXLrFiTN1JqcDoA0zpB1qV2y -# XIhlV7jY/LMe0IZdwGkkMyAe93DSgNofTjTotiDLLcI3dn5yIepxjGF0P1fUNQuM -# eAVMPxi+ne47AJm4NixZWBP48Qi2Py6mFjs8FMYTL5gVwYWWMLB7JG1lUQqWKoDG -# rFnouitaw1wRQR0WhA== -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Autorest/utils/Unprotect-SecureString.ps1 b/Modules/Az.Storage/8.1.0/Storage.Autorest/utils/Unprotect-SecureString.ps1 deleted file mode 100644 index f186085d93b0..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Autorest/utils/Unprotect-SecureString.ps1 +++ /dev/null @@ -1,233 +0,0 @@ -#This script converts securestring to plaintext - -param( - [Parameter(Mandatory, ValueFromPipeline)] - [System.Security.SecureString] - ${SecureString} -) - -$ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) -try { - $plaintext = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) -} finally { - [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) -} - -return $plaintext -# SIG # Begin signature block -# MIIoOQYJKoZIhvcNAQcCoIIoKjCCKCYCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDT7ZbNoY98P1cW -# CLQEXghewcRRqpuzw+uOgG2nbQ8aHaCCDYUwggYDMIID66ADAgECAhMzAAAEA73V -# lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD -# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p -# bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw -# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u -# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy -# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -# AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV -# LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY -# oUhLVE+UzRihV8ooxoftsmKLb2xb7BoFS6UAo3Zz4afnOdqI7FGoi7g4vx/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mF63p3HNJZpJYY8ti/aKNgxnydU5SC87mtuhGotAuKAFYO7SNdjx -# fgTmZx+WfObfkvc9qWAP83Dm6nJQsLqUiYnockovlNDEL56XneV6LGQTy54fZ0t3 -# ETd6xpWXjE8+UAz2iASScHFOCBbkOnRgwLTzrByJPiNeTI4Kbh39Ctm1b6PUDGP9 -# iLDLeehaFAH7sbH0ccOk00pXdNCEL7eDmeXTtu6kMbw/L1/rT10n8X15VRa8Mshy -# 503Fd9hjmkcRvvs9MPL2Z3njc3xuQ7HOg7KblPOqBhngHhHs+dIeTrX9qP1gX1XX -# TcrVBzNqVO2C8Swur7/a2m4W8LuXCpqslYzBwWJgaykQ/tqOO13M9rnx4EXGrjSZ -# 4q4gvNI7FsJb0WsbIIBeF+jwktYBoEfUV9Pv5j0OKdcrcrwfCdJ5VJ2latZCoCaq -# TjHwobcIgvCSPH9GiXZgWG2uSWRinDsCc60jJkI= -# SIG # End signature block diff --git a/Modules/Az.Storage/8.1.0/Storage.Management.format.ps1xml b/Modules/Az.Storage/8.1.0/Storage.Management.format.ps1xml deleted file mode 100644 index 1682493cf2a7..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.Management.format.ps1xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - StorageAccountName - - - Left - ResourceGroupName - - - Left - PrimaryLocation - - - Left - $_.Sku.Name - - - Left - Kind - - - Left - AccessTier - - - Left - CreationTime - - - Left - ProvisioningState - - - Left - EnableHttpsTrafficOnly - - - Left - LargeFileSharesState - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet - - - - - - - Bypass - - - - DefaultAction - - - - if (($_.ipRules -ne $null) -and ($_.ipRules.Count -ne 0)) {"[" + $_.ipRules[0].IPAddressOrRange + ",...]"} else {$null} - - - - if ($_.virtualNetworkRules[0] -ne $null) {"[" + $_.virtualNetworkRules[0].VirtualNetworkResourceId + ",...]"} else {$null} - - - - if ($_.ResourceAccessRules[0] -ne $null) {"[(" + $_.ResourceAccessRules[0].TenantId + "," + $_.ResourceAccessRules[0].ResourceId + "),...]"} else {$null} - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - Microsoft.Azure.Commands.Management.Storage.Models.PSContainer - - - $_.ResourceGroupName + ", StorageAccountName: " + $_.StorageAccountName - - - - - - - Left - - - - Left - 20 - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - $_.Name - - - $_.PublicAccess - - - $_.LastModifiedTime.ToUniversalTime().ToString("u") - - - $_.HasLegalHold - - - $_.HasImmutabilityPolicy - - - $_.Deleted - - - $_.Version - - - $_.ImmutableStorageWithVersioning.Enabled - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy - - - - - - - ResourceGroupName - - - - StorageAccountName - - - - Id - - - - Type - - - - LastModifiedTime - - - - ConvertTo-Json $_.Rules -Depth 10 - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup - - - - - - - $_.BaseBlob.TierToCool.DaysAfterModificationGreaterThan - - - - $_.BaseBlob.TierToCool.DaysAfterLastAccessTimeGreaterThan - - - - $_.BaseBlob.TierToCool.DaysAfterCreationGreaterThan - - - - $_.BaseBlob.EnableAutoTierToHotFromCool - - - - $_.BaseBlob.TierToArchive.DaysAfterModificationGreaterThan - - - - $_.BaseBlob.TierToArchive.DaysAfterLastAccessTimeGreaterThan - - - - $_.BaseBlob.TierToArchive.DaysAfterCreationGreaterThan - - - - $_.BaseBlob.TierToArchive.DaysAfterLastTierChangeGreaterThan - - - - $_.BaseBlob.Delete.DaysAfterModificationGreaterThan - - - - $_.BaseBlob.Delete.DaysAfterLastAccessTimeGreaterThan - - - - $_.BaseBlob.Delete.DaysAfterCreationGreaterThan - - - - $_.BaseBlob.TierToCold.DaysAfterModificationGreaterThan - - - - $_.BaseBlob.TierToCold.DaysAfterLastAccessTimeGreaterThan - - - - $_.BaseBlob.TierToCold.DaysAfterCreationGreaterThan - - - - $_.BaseBlob.TierToHot.DaysAfterModificationGreaterThan - - - - $_.BaseBlob.TierToHot.DaysAfterLastAccessTimeGreaterThan - - - - $_.BaseBlob.TierToHot.DaysAfterCreationGreaterThan - - - - $_.Snapshot.TierToCool.DaysAfterCreationGreaterThan - - - - $_.Snapshot.TierToArchive.DaysAfterCreationGreaterThan - - - - $_.Snapshot.TierToArchive.DaysAfterLastTierChangeGreaterThan - - - - $_.Snapshot.Delete.DaysAfterCreationGreaterThan - - - - $_.Snapshot.TierToCold.DaysAfterCreationGreaterThan - - - - $_.Snapshot.TierToHot.DaysAfterCreationGreaterThan - - - - $_.Version.TierToCool.DaysAfterCreationGreaterThan - - - - $_.Version.TierToArchive.DaysAfterCreationGreaterThan - - - - $_.Version.TierToArchive.DaysAfterLastTierChangeGreaterThan - - - - $_.Version.Delete.DaysAfterCreationGreaterThan - - - - $_.Version.TierToCold.DaysAfterCreationGreaterThan - - - - $_.Version.TierToHot.DaysAfterCreationGreaterThan - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule - - Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule - - - - - - - Enabled - - - - Name - - - - ConvertTo-Json $_.Definition -Depth 10 - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties - - Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties - - - - - - - StorageAccountName - - - - ResourceGroupName - - - - - $_.ShareDeleteRetentionPolicy.Enabled - - - - $_.ShareDeleteRetentionPolicy.Days - - - - $_.ProtocolSettings.Smb.Multichannel.Enabled - - - - $_.ProtocolSettings.Smb.Versions - - - - $_.ProtocolSettings.Smb.AuthenticationMethods - - - - $_.ProtocolSettings.Smb.KerberosTicketEncryption - - - - $_.ProtocolSettings.Smb.ChannelEncryption - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties - - - - - - - StorageAccountName - - - - ResourceGroupName - - - - DefaultServiceVersion - - - - - $_.DeleteRetentionPolicy.Enabled - - - - $_.DeleteRetentionPolicy.Days - - - - $_.DeleteRetentionPolicy.AllowPermanentDelete - - - - $_.ContainerDeleteRetentionPolicy.Enabled - - - - $_.ContainerDeleteRetentionPolicy.Days - - - - $_.RestorePolicy.Enabled - - - - $_.RestorePolicy.Days - - - - $_.RestorePolicy.MinRestoreTime - - - - $_.ChangeFeed.Enabled - - - - $_.ChangeFeed.RetentionInDays - - - IsVersioningEnabled - - - - - $_.LastAccessTimeTrackingPolicy.Enable - - - - $_.LastAccessTimeTrackingPolicy.Name - - - - $_.LastAccessTimeTrackingPolicy.TrackingGranularityInDays - - - - $_.LastAccessTimeTrackingPolicy.BlobType - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - Microsoft.Azure.Commands.Management.Storage.Models.PSShare - - - $_.ResourceGroupName + ", StorageAccountName: " + $_.StorageAccountName - - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - QuotaGiB - - - Left - EnabledProtocols - - - Left - AccessTier - - - Left - Deleted - - - Left - Version - - - Left - ShareUsageBytes - - - Left - $_.SnapshotTime.ToUniversalTime().ToString("s")+"Z" - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - ResourceGroupName - - - Left - StorageAccountName - - - Left - PolicyId - - - Left - EnabledTime - - - Left - SourceAccount - - - Left - DestinationAccount - - - Left - if (($_.Rules -ne $null) -and ($_.Rules.Count -ne 0)) { if ($_.Rules.Count -eq 1) {'[' + $_.Rules[0].RuleId + ']'} else {'[' + $_.Rules[0].RuleId + ',...]'}} else {$null} - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule - - Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - RuleId - - - Left - SourceContainer - - - Left - DestinationContainer - - - Left - '{' + ($_.Filters.PrefixMatch -join ', ') + '}' - - - Left - $_.Filters.MinCreationTime.ToUniversalTime().ToString("s")+"Z" - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Status - - - Left - RestoreId - - - Left - FailureReason - - - Left - $_.Parameters.TimeToRestore.ToString("o") - - - Left - if ($_.Parameters.BlobRanges[0] -ne $null) {if ($_.Parameters.BlobRanges[1] -ne $null) {'["' + $_.Parameters.BlobRanges[0].StartRange + '" -> "' + $_.Parameters.BlobRanges[0].EndRange + '",...]'} else {'["' + $_.Parameters.BlobRanges[0].StartRange + '" -> "' + $_.Parameters.BlobRanges[0].EndRange + '"]'}} else {$null} - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy - - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Enabled - - - Left - Days - - - Left - MinRestoreTime - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - Microsoft.Azure.Commands.Management.Storage.Models.PSEncryptionScope - - - $_.ResourceGroupName + ", StorageAccountName: " + $_.StorageAccountName - - - - - - - Left - - - - Left - 20 - - - - Left - - - - Left - - - - Left - - - - - - - Name - - - State - - - Source - - - $_.KeyVaultProperties.keyUri - - - RequireInfrastructureEncryption - - - - - - - - Microsoft.Azure.Management.Storage.Models.Endpoints - - Microsoft.Azure.Management.Storage.Models.Endpoints - - - - - - - Blob - - - - Queue - - - - Table - - - - File - - - - Web - - - - Dfs - - - - ConvertTo-Json $_.MicrosoftEndpoints -Compress - - - - ConvertTo-Json $_.InternetEndpoints -Compress - - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicyRule - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Enabled - - - Left - Destination - - - Left - $_.Definition.ObjectType - - - Left - $_.Definition.Format - - - Left - $_.Definition.Schedule - - - Left - $_.Definition.Filters.IncludeSnapshots - - - Left - $_.Definition.Filters.IncludeBlobVersions - - - Left - $_.Definition.Filters.IncludeDeleted - - - Left - $_.Definition.Filters.BlobTypes - - - Left - $_.Definition.Filters.PrefixMatch - - - Left - $_.Definition.Filters.ExcludePrefix - - - Left - $_.Definition.SchemaFields - - - Left - if ($_.Definition.Filters.CreationTime.LastNDays -ne $null) {"LastNDays=$($_.Definition.Filters.CreationTime.LastNDays)"} - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - Microsoft.Azure.Commands.Management.Storage.Models.PSBlobInventoryPolicy - - - - - - - StorageAccountName - - - - ResourceGroupName - - - - Name - - - - - Id - - - - Type - - - - LastModifiedTime - - - - $_.Enabled - - - - $_.Rules - - - - - - - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - Microsoft.Azure.Commands.Management.Storage.Models.PSLocalUser - - - $_.ResourceGroupName + ", StorageAccountName: " + $_.StorageAccountName - - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - - Left - Name - - - Left - Sid - - - Left - HomeDirectory - - - Left - HasSharedKey - - - Left - HasSshKey - - - Left - HasSshPassword - - - Left - - if (($_.PermissionScopes -ne $null) -and ($_.PermissionScopes.Count -ne 0)) {if ($_.PermissionScopes.Count -eq 1) {"[" + $_.PermissionScopes[0].ResourceName + "]"} else {"[" + $_.PermissionScopes[0].ResourceName + ",...]"}} else {$null} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Storage/8.1.0/Storage.format.ps1xml b/Modules/Az.Storage/8.1.0/Storage.format.ps1xml deleted file mode 100644 index bee20e64b4a7..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.format.ps1xml +++ /dev/null @@ -1,837 +0,0 @@ - - - - - Microsoft.Azure.Storage.File.CloudFileShare - - Microsoft.Azure.Storage.File.CloudFileShare - - - $_.ServiceClient.BaseUri - - - - - - - 63 - Left - - - - Left - - - - Left - - - - Left - - - - - - - $_.Name - - - $_.Properties.LastModified - - - $_.IsSnapshot - - - $_.SnapshotTime - - - - - - - - Microsoft.Azure.Storage.File.CloudFileItems - - Microsoft.Azure.Storage.File.CloudFile - Microsoft.Azure.Storage.File.CloudFileDirectory - - - $_.Parent.SnapshotQualifiedUri - - - - - - - 10 - Left - - - - 15 - Right - - - - Left - - - - - - - $_.DirectoryTag - - - $_.Properties.Length - - - $_.Name - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - Microsoft.Azure.Storage.Blob.CloudBlobContainer - - - $_.ServiceClient.BaseUri - - - - - - - 20 - Left - - - - 60 - Left - - - - Left - - - - - - - $_.Name - - - $_.Uri - - - $_.Properties.LastModified.UtcDateTime.ToString("u") - - - - - - - - Microsoft.Azure.Storage.Blob.ICloudBlob - - Microsoft.Azure.Storage.Blob.ICloudBlob - Microsoft.Azure.Storage.Blob.CloudBlockBlob - Microsoft.Azure.Storage.Blob.CloudPageBlob - Microsoft.Azure.Storage.Blob.CloudAppendBlob - - - $_.Container.Uri - - - - - - - 20 - Left - - - - 15 - Left - - - - Left - 15 - - - - Left - 10 - - - - 10 - Left - - - - 30 - Left - - - - 20 - Left - - - - Left - 10 - - - - 20 - Left - - - - - - - $_.Name - - - $_.BlobType - - - $_.Properties.Length - - - $_.IsDeleted - - - $_.Properties.RemainingDaysBeforePermanentDelete - - - $_.Properties.ContentType - - - $_.Properties.LastModified.UtcDateTime.ToString("u") - - - $_.ICloudBlob.Properties.StandardBlobTier - - - $_.SnapshotTime.UtcDateTime.ToString("u") - - - - - - - - Microsoft.WindowsAzure.Storage.Table.CloudTable - - Microsoft.WindowsAzure.Storage.Table.CloudTable - - - $_.ServiceClient.BaseUri - - - - - - - 40 - Left - - - - 40 - Left - - - - - - - $_.Name - - - $_.Uri - - - - - - - - Azure.Storage.Queues.QueueClient - - Azure.Storage.Queues.QueueClient - - - $_.QueueClient.AccountName - - - - - - - 30 - Left - - - - 20 - Left - - - - 40 - Left - - - - - - - $_.Name - - - - if (!$_.ApproximateMessageCount) - { - ""; - } - else - { - $_.ApproximateMessageCount - } - - - - $_.Uri - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.AzureStorageContext - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.AzureStorageContext - - - - - - - - StorageAccountName - - - - BlobEndPoint - - - - TableEndPoint - - - - QueueEndPoint - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties - - Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties - - - - - - - - $_.Logging.Version - - - - $_.Logging.LoggingOperations - - - - $_.Logging.RetentionDays - - - - $_.HourMetrics.Version - - - - $_.HourMetrics.MetricsLevel - - - - $_.HourMetrics.RetentionDays - - - - $_.MinuteMetrics.Version - - - - $_.MinuteMetrics.MetricsLevel - - - - $_.MinuteMetrics.RetentionDays - - - - $_.DeleteRetentionPolicy.Enabled - - - - $_.DeleteRetentionPolicy.RetentionDays - - - - $_.StaticWebsite.Enabled - - - - $_.StaticWebsite.IndexDocument - - - - $_.StaticWebsite.ErrorDocument404Path - - - $_.Cors - - - - - DefaultServiceVersion - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.LoggingProperties - - Microsoft.Azure.Storage.Shared.Protocol.LoggingProperties - - - - - - Left - 20 - - - - Left - 30 - - - - Left - 20 - - - - - - - $_.Version - - - $_.LoggingOperations - - - $_.RetentionDays - - - - - - - - Microsoft.Azure.Storage.Shared.Protocol.MetricsProperties - - Microsoft.Azure.Storage.Shared.Protocol.MetricsProperties - - - - - - Left - 20 - - - - Left - 30 - - - - Left - 20 - - - - - - - $_.Version - - - $_.MetricsLevel - - - $_.RetentionDays - - - - - - - - Microsoft.Azure.Storage.Blob.CloudBlobDirectory - - Microsoft.Azure.Storage.Blob.CloudBlobDirectory - - - $_.Container.Uri - - - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - $_.Prefix - - - $_.PathProperties.Owner - - - $_.PathProperties.Group - - - $_.PathProperties.Permissions.ToSymbolicString() - - - $_.Properties.LastModified.UtcDateTime.ToString("u") - - - - - - - - Microsoft.Azure.Storage.Blob.PathPermissions - - Microsoft.Azure.Storage.Blob.PathPermissions - - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - $_.Owner.ToSymbolicString() - - - $_.Group.ToSymbolicString() - - - $_.Other.ToSymbolicString() - - - StickyBit - - - ExtendedInfoInAcl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Storage/8.1.0/Storage.generated.format.ps1xml b/Modules/Az.Storage/8.1.0/Storage.generated.format.ps1xml deleted file mode 100644 index e2481638999e..000000000000 --- a/Modules/Az.Storage/8.1.0/Storage.generated.format.ps1xml +++ /dev/null @@ -1,921 +0,0 @@ - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable - - - - - Left - - - - Left - - - - - - - - Left - $_.Name - - - Left - $_.Uri - - - - - - - $_.CloudTable.ServiceClient.BaseUri - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue - - - - - Left - - - - Left - - - - Left - - - - - - - - Left - $_.Name - - - Left - $_.Uri - - - Left - $_.ApproximateMessageCount - - - - - - - $_.QueueClient.AccountName - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties - - - - - - - $_.Logging.Version - - - - $_.Logging.LoggingOperations - - - - $_.Logging.RetentionDays - - - - $_.HourMetrics.Version - - - - $_.HourMetrics.MetricsLevel - - - - $_.HourMetrics.RetentionDays - - - - $_.MinuteMetrics.Version - - - - $_.MinuteMetrics.MetricsLevel - - - - $_.MinuteMetrics.RetentionDays - - - - $_.DeleteRetentionPolicy.Enabled - - - - $_.DeleteRetentionPolicy.RetentionDays - - - - - $_.StaticWebsite.Enabled - - - - $_.StaticWebsite.IndexDocument - - - - $_.StaticWebsite.ErrorDocument404Path - - - $_.Cors - - - - DefaultServiceVersion - - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer - - - - - Left - - 20 - - - Left - - 20 - - - Left - - 30 - - - Left - - 10 - - - Left - - 17 - - - - - - - Left - $_.Name - - - Left - PublicAccess - - - Left - LastModified - - - Left - IsDeleted - - - Left - VersionId - - - - - - - $_.BlobContainerClient.AccountName - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob - - - - - Left - - 20 - - - Left - - 9 - - - Left - - 15 - - - Left - - 30 - - - Left - - 20 - - - Left - - 10 - - - Left - - 28 - - - Left - - 10 - - - Left - - 30 - - - - - - - Left - $_.Name - - - Left - if ($_.BlobType -ne "Unspecified") {$_.BlobType} - - - Left - if (($_.BlobType -ne "Unspecified") -or ($_.Length -ne 0 )) {$_.Length} - - - Left - ContentType - - - Left - $_.LastModified.UtcDateTime.ToString("u") - - - Left - $_.AccessTier - - - Left - $_.SnapshotTime.UtcDateTime.ToString("o") - - - Left - IsDeleted - - - Left - if ($_.IsLatestVersion){$_.VersionId + " *"} else {$_.VersionId} - - - - - - - $_.BlobBaseClient.AccountName + ", ContainerName: " + $_.BlobBaseClient.BlobContainerName - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory - - - if ($_.ShareDirectoryClient -eq $null) {$_.ShareFileClient.AccountName + ", ShareName: " + $_.ShareFileClient.ShareName} else {$_.ShareDirectoryClient.AccountName + ", ShareName: " + $_.ShareDirectoryClient.ShareName} - - - - - - - 10 - Left - - - - 15 - Right - - - - Left - - - - - - - if ($_.ShareFileClient -eq $null) {"Directory"} else {"File"} - - - $_.Length - - - $_.Name - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare - - - $_.Context.FileEndPoint - - - - - - Left - - - - Left - - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - $_.Name - - - $_.Quota - - - $_.LastModified.UtcDateTime.ToString("o") - - - $_.IsSnapshot - - - $_.SnapshotTime.UtcDateTime.ToString("o") - - - $_.IsDeleted - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item - - - - - Left - - 20 - - - Left - - 12 - - - Left - - 15 - - - Left - - 20 - - - - Left - 12 - - - Left - - 20 - - - Left - - 20 - - - - - - - Left - Path - - - Left - IsDirectory - - - Left - if ($_.IsDirectory -eq $false) {$_.Length} - - - Left - $_.LastModified.UtcDateTime.ToString("u") - - - Left - $_.Permissions.ToSymbolicPermissions() - - - Left - Owner - - - Left - Group - - - - - - - if ($_.IsDirectory) {$_.Directory.FileSystemName} else {$_.File.FileSystemName} - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle - - - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - HandleId - - - Path - - - ClientIp - - - ClientPort - - - $_.OpenTime.UtcDateTime.ToString("u") - - - $_.LastReconnectTime.UtcDateTime.ToString("u") - - - FileId - - - ParentId - - - SessionId - - - ClientName - - - - - - - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry - - Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry - - - - - - Left - - - - Left - - - - Left - - - - Left - - - - - - - DefaultScope - - - AccessControlType - - - EntityId - - - $_.GetSymbolicRolePermissions() - - - - - - - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2DeletedItem - - - - - Left - - 20 - - - Left - - 20 - - - Left - - 20 - - - Left - - 22 - - - - - - - Left - Path - - - Left - DeletionId - - - Left - $_.DeletedOn.UtcDateTime.ToString("u") - - - Left - RemainingRetentionDays - - - - - - - $_.FileSystemName - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Modules/Az.Storage/8.1.0/System.IO.Hashing.dll b/Modules/Az.Storage/8.1.0/System.IO.Hashing.dll deleted file mode 100644 index 122d5973b18b..000000000000 Binary files a/Modules/Az.Storage/8.1.0/System.IO.Hashing.dll and /dev/null differ diff --git a/Modules/CIPPCore/CippCore.psd1 b/Modules/CIPPCore/CIPPCore.psd1 similarity index 82% rename from Modules/CIPPCore/CippCore.psd1 rename to Modules/CIPPCore/CIPPCore.psd1 index cfc565177729..92c03ecd3705 100644 Binary files a/Modules/CIPPCore/CippCore.psd1 and b/Modules/CIPPCore/CIPPCore.psd1 differ diff --git a/Modules/CIPPCore/CIPPCore.psm1 b/Modules/CIPPCore/CIPPCore.psm1 index 93ce138d723d..7cd3fd6ee225 100644 --- a/Modules/CIPPCore/CIPPCore.psm1 +++ b/Modules/CIPPCore/CIPPCore.psm1 @@ -1,12 +1,16 @@ -$Public = @(Get-ChildItem -Path (Join-Path $PSScriptRoot "Public\*.ps1") -Recurse -ErrorAction SilentlyContinue) -$Private = @(Get-ChildItem -Path (Join-Path $PSScriptRoot "Private\*.ps1") -Recurse -ErrorAction SilentlyContinue) -$Functions = $Public + $Private -foreach ($import in @($Functions)) { - try { - . $import.FullName - } catch { - Write-Error -Message "Failed to import function $($import.FullName): $_" +# ModuleBuilder will concatenate all function files into this module +# This block is only used when running from source (not built) +if (Test-Path (Join-Path $PSScriptRoot 'Public')) { + $Public = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public\*.ps1') -Recurse -ErrorAction SilentlyContinue) + $Private = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Private\*.ps1') -Recurse -ErrorAction SilentlyContinue) + $Functions = $Public + $Private + foreach ($import in @($Functions)) { + try { + . $import.FullName + } catch { + Write-Error -Message "Failed to import function $($import.FullName): $_" + } } -} -Export-ModuleMember -Function $Public.BaseName -Alias * + Export-ModuleMember -Function $Public.BaseName +} diff --git a/Modules/CIPPCore/Public/Add-CIPPDelegatedPermission.ps1 b/Modules/CIPPCore/Public/Add-CIPPDelegatedPermission.ps1 index e06e3493ce0c..2202e25147f9 100644 --- a/Modules/CIPPCore/Public/Add-CIPPDelegatedPermission.ps1 +++ b/Modules/CIPPCore/Public/Add-CIPPDelegatedPermission.ps1 @@ -69,7 +69,8 @@ function Add-CIPPDelegatedPermission { } } - $Translator = Get-Content '.\PermissionsTranslator.json' | ConvertFrom-Json + $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase + $Translator = Get-Content (Join-Path $ModuleBase 'lib\data\PermissionsTranslator.json') | ConvertFrom-Json $ServicePrincipalList = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/servicePrincipals?`$select=appId,id,displayName&`$top=999" -tenantid $TenantFilter -skipTokenCache $true -NoAuthCheck $true $ourSVCPrincipal = $ServicePrincipalList | Where-Object -Property appId -EQ $ApplicationId $Results = [System.Collections.Generic.List[string]]::new() diff --git a/Modules/CIPPCore/Public/Add-CIPPScheduledTask.ps1 b/Modules/CIPPCore/Public/Add-CIPPScheduledTask.ps1 index 4dd7e2a14e77..fc6f62033e82 100644 --- a/Modules/CIPPCore/Public/Add-CIPPScheduledTask.ps1 +++ b/Modules/CIPPCore/Public/Add-CIPPScheduledTask.ps1 @@ -185,6 +185,7 @@ function Add-CIPPScheduledTask { ScheduledTime = [string]$task.ScheduledTime Recurrence = [string]$Recurrence PostExecution = [string]$PostExecution + Reference = [string]$task.Reference AdditionalProperties = [string]$AdditionalProperties Hidden = [bool]$Hidden Results = 'Planned' diff --git a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertEntraConnectSyncStatus.ps1 b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertEntraConnectSyncStatus.ps1 index a9816aa5aef6..31ebb125ad83 100644 --- a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertEntraConnectSyncStatus.ps1 +++ b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertEntraConnectSyncStatus.ps1 @@ -36,6 +36,8 @@ function Get-CIPPAlertEntraConnectSyncStatus { } } } catch { - Write-AlertMessage -tenant $($TenantFilter) -message "Could not get Entra Connect Sync Status for $($TenantFilter): $(Get-NormalizedError -message $_.Exception.message)" + Write-AlertMessage -tenant $($TenantFilter) -message "Could not get Entra Connect Sync Status for $($TenantFilter): $(Get-NormalizedError -message $_.Exception.message)" -LogData (Get-CippException -Exception $_) + Write-Information "Could not get Entra Connect Sync Status for $($TenantFilter): $(Get-NormalizedError -message $_.Exception.message)" + Write-Information $_.PositionMessage } } diff --git a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertExpiringLicenses.ps1 b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertExpiringLicenses.ps1 index a1b626f4662e..a770812e9c7a 100644 --- a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertExpiringLicenses.ps1 +++ b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertExpiringLicenses.ps1 @@ -11,13 +11,36 @@ function Get-CIPPAlertExpiringLicenses { $TenantFilter ) try { + # Parse input parameters - default to 30 days if not specified + # Support both old format (direct value) and new format (object with properties) + if ($InputValue -is [hashtable] -or $InputValue -is [PSCustomObject]) { + $DaysThreshold = if ($InputValue.ExpiringLicensesDays) { [int]$InputValue.ExpiringLicensesDays } else { 30 } + $UnassignedOnly = if ($null -ne $InputValue.ExpiringLicensesUnassignedOnly) { [bool]$InputValue.ExpiringLicensesUnassignedOnly } else { $false } + } else { + # Backward compatibility: if InputValue is a simple value, treat it as days threshold + $DaysThreshold = if ($InputValue) { [int]$InputValue } else { 30 } + $UnassignedOnly = $false + } + $AlertData = Get-CIPPLicenseOverview -TenantFilter $TenantFilter | ForEach-Object { - $TermData = $_.TermInfo | ConvertFrom-Json + $UnassignedCount = [int]$_.CountAvailable + + # If unassigned only filter is enabled, skip licenses with no unassigned units + if ($UnassignedOnly -and $UnassignedCount -le 0) { + return + } + foreach ($Term in $TermData) { - if ($Term.DaysUntilRenew -lt 30 -and $Term.DaysUntilRenew -gt 0) { - Write-Host "$($_.License) will expire in $($Term.DaysUntilRenew) days. The estimated term is $($Term.Term)" + if ($Term.DaysUntilRenew -lt $DaysThreshold -and $Term.DaysUntilRenew -gt 0) { + $Message = if ($UnassignedOnly) { + "$($_.License) has $UnassignedCount unassigned license(s) expiring in $($Term.DaysUntilRenew) days. The estimated term is $($Term.Term)" + } else { + "$($_.License) will expire in $($Term.DaysUntilRenew) days. The estimated term is $($Term.Term)" + } + + Write-Host $Message [PSCustomObject]@{ - Message = "$($_.License) will expire in $($Term.DaysUntilRenew) days. The estimated term is $($Term.Term)" + Message = $Message License = $_.License SkuId = $_.skuId DaysUntilRenew = $Term.DaysUntilRenew @@ -25,6 +48,7 @@ function Get-CIPPAlertExpiringLicenses { Status = $Term.Status TotalLicenses = $Term.TotalLicenses CountUsed = $_.CountUsed + CountAvailable = $UnassignedCount NextLifecycle = $Term.NextLifecycle Tenant = $_.Tenant } @@ -36,4 +60,3 @@ function Get-CIPPAlertExpiringLicenses { } catch { } } - diff --git a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertGlobalAdminAllowList.ps1 b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertGlobalAdminAllowList.ps1 new file mode 100644 index 000000000000..a9ad871008dd --- /dev/null +++ b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertGlobalAdminAllowList.ps1 @@ -0,0 +1,84 @@ +function Get-CIPPAlertGlobalAdminAllowList { + <# + .FUNCTIONALITY + Entrypoint + #> + [CmdletBinding()] + param ( + [Parameter(Mandatory = $false)] + [Alias('input')] + $InputValue, + $TenantFilter + ) + try { + $AllowedAdmins = @() + $AlertEachAdmin = $false + if ($InputValue -is [hashtable] -or $InputValue -is [pscustomobject]) { + $AlertEachAdmin = [bool]($InputValue['AlertEachAdmin']) + $ApprovedValue = if ($InputValue.ContainsKey('ApprovedGlobalAdmins') -or ($InputValue.PSObject.Properties.Name -contains 'ApprovedGlobalAdmins')) { + $InputValue['ApprovedGlobalAdmins'] + } else { + $null + } + $InputValue = $ApprovedValue + } + if ($null -ne $InputValue) { + if ($InputValue -is [string]) { + $AllowedAdmins = $InputValue -split ',' | ForEach-Object { $_.Trim() } | Where-Object { $_ } + } elseif ($InputValue -is [System.Collections.IEnumerable]) { + $AllowedAdmins = $InputValue | ForEach-Object { $_.ToString().Trim() } | Where-Object { $_ } + } else { + $AllowedAdmins = @("$InputValue") + } + } + $AllowedLookup = $AllowedAdmins | ForEach-Object { $_.ToLowerInvariant() } | Select-Object -Unique + + if (-not $AllowedLookup -or $AllowedLookup.Count -eq 0) { + return + } + + $GlobalAdmins = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/directoryRoles/roleTemplateId=62e90394-69f5-4237-9190-012177145e10/members?`$select=id,displayName,userPrincipalName" -tenantid $TenantFilter -AsApp $true -ErrorAction Stop | Where-Object { + $_.'@odata.type' -eq '#microsoft.graph.user' -and $_.displayName -ne 'On-Premises Directory Synchronization Service Account' + } + + $UnapprovedAdmins = foreach ($admin in $GlobalAdmins) { + if ([string]::IsNullOrWhiteSpace($admin.userPrincipalName)) { continue } + $UpnPrefix = ($admin.userPrincipalName -split '@')[0].ToLowerInvariant() + if ($AllowedLookup -notcontains $UpnPrefix) { + [PSCustomObject]@{ + Admin = $admin + UpnPrefix = $UpnPrefix + } + } + } + + if ($UnapprovedAdmins) { + if ($AlertEachAdmin) { + $AlertData = foreach ($item in $UnapprovedAdmins) { + $admin = $item.Admin + $UpnPrefix = $item.UpnPrefix + [PSCustomObject]@{ + Message = "$($admin.userPrincipalName) has Global Administrator role but is not in the approved allow list (prefix '$UpnPrefix')." + DisplayName = $admin.displayName + UserPrincipalName = $admin.userPrincipalName + Id = $admin.id + AllowedList = if ($AllowedAdmins) { $AllowedAdmins -join ', ' } else { 'Not provided' } + Tenant = $TenantFilter + } + } + } else { + $NonCompliantUpns = @($UnapprovedAdmins.Admin.userPrincipalName) + $AlertData = @([PSCustomObject]@{ + Message = "Found $($NonCompliantUpns.Count) Global Administrator account(s) not in the approved allow list." + NonCompliantUsers = $NonCompliantUpns + ApprovedPrefixes = if ($AllowedAdmins) { $AllowedAdmins -join ', ' } else { 'Not provided' } + Tenant = $TenantFilter + }) + } + + Write-AlertTrace -cmdletName $MyInvocation.MyCommand -tenantFilter $TenantFilter -data $AlertData + } + } catch { + Write-AlertMessage -tenant $TenantFilter -message "Failed to check approved Global Admins: $(Get-NormalizedError -message $_.Exception.Message)" + } +} diff --git a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertNewAppApproval.ps1 b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertNewAppApproval.ps1 index c6da6950077f..34e8f6a87918 100644 --- a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertNewAppApproval.ps1 +++ b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertNewAppApproval.ps1 @@ -12,41 +12,56 @@ function Get-CIPPAlertNewAppApproval { $TenantFilter, $Headers ) - try { - $Approvals = New-GraphGetRequest -Uri "https://graph.microsoft.com/beta/identityGovernance/appConsent/appConsentRequests?`$filter=userConsentRequests/any (u:u/status eq 'InProgress')" -tenantid $TenantFilter - if ($Approvals.count -gt 0) { - $TenantGUID = (Get-Tenants -TenantFilter $TenantFilter -SkipDomains).customerId - $AlertData = [System.Collections.Generic.List[PSCustomObject]]::new() - foreach ($App in $Approvals) { - $userConsentRequests = New-GraphGetRequest -Uri "https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests/$($App.id)/userConsentRequests" -tenantid $TenantFilter - $userConsentRequests | ForEach-Object { - $consentUrl = if ($App.consentType -eq 'Static') { - # if something is going wrong here you've probably stumbled on a fourth variation - rvdwegen - "https://login.microsoftonline.com/$($TenantFilter)/adminConsent?client_id=$($App.appId)&bf_id=$($App.id)&redirect_uri=https://entra.microsoft.com/TokenAuthorize" - } elseif ($App.pendingScopes.displayName) { - "https://login.microsoftonline.com/$($TenantFilter)/v2.0/adminConsent?client_id=$($App.appId)&scope=$($App.pendingScopes.displayName -Join(' '))&bf_id=$($App.id)&redirect_uri=https://entra.microsoft.com/TokenAuthorize" - } else { - "https://login.microsoftonline.com/$($TenantFilter)/adminConsent?client_id=$($App.appId)&bf_id=$($App.id)&redirect_uri=https://entra.microsoft.com/TokenAuthorize" + + Measure-CippTask -TaskName 'NewAppApprovalAlert' -EventName 'CIPP.AlertProfile' -Script { + try { + $Approvals = Measure-CippTask -TaskName 'GetAppConsentRequests' -EventName 'CIPP.AlertProfile' -Script { + New-GraphGetRequest -Uri "https://graph.microsoft.com/beta/identityGovernance/appConsent/appConsentRequests?`$top=100&`$filter=userConsentRequests/any (u:u/status eq 'InProgress')" -tenantid $TenantFilter + } + + if ($Approvals.count -gt 0) { + Measure-CippTask -TaskName 'ProcessApprovals' -EventName 'CIPP.AlertProfile' -Script { + $TenantGUID = (Get-Tenants -TenantFilter $TenantFilter -SkipDomains).customerId + $AlertData = [System.Collections.Generic.List[PSCustomObject]]::new() + + foreach ($App in $Approvals) { + $userConsentRequests = Measure-CippTask -TaskName 'GetUserConsentRequests' -EventName 'CIPP.AlertProfile' -Script { + New-GraphGetRequest -Uri "https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests/$($App.id)/userConsentRequests" -tenantid $TenantFilter + } + + $userConsentRequests | ForEach-Object { + $consentUrl = if ($App.consentType -eq 'Static') { + # if something is going wrong here you've probably stumbled on a fourth variation - rvdwegen + "https://login.microsoftonline.com/$($TenantFilter)/adminConsent?client_id=$($App.appId)&bf_id=$($App.id)&redirect_uri=https://entra.microsoft.com/TokenAuthorize" + } elseif ($App.pendingScopes.displayName) { + "https://login.microsoftonline.com/$($TenantFilter)/v2.0/adminConsent?client_id=$($App.appId)&scope=$($App.pendingScopes.displayName -Join(' '))&bf_id=$($App.id)&redirect_uri=https://entra.microsoft.com/TokenAuthorize" + } else { + "https://login.microsoftonline.com/$($TenantFilter)/adminConsent?client_id=$($App.appId)&bf_id=$($App.id)&redirect_uri=https://entra.microsoft.com/TokenAuthorize" + } + + $Message = [PSCustomObject]@{ + RequestId = $_.id + AppName = $App.appDisplayName + RequestUser = $_.createdBy.user.userPrincipalName + Reason = $_.reason + RequestDate = $_.createdDateTime + Status = $_.status # Will allways be InProgress as we filter to only get these but this will reduce confusion when an alert is generated + AppId = $App.appId + Scopes = ($App.pendingScopes.displayName -join ', ') + ConsentURL = $consentUrl + Tenant = $TenantFilter + TenantId = $TenantGUID + } + $AlertData.Add($Message) + } } - $Message = [PSCustomObject]@{ - RequestId = $_.id - AppName = $App.appDisplayName - RequestUser = $_.createdBy.user.userPrincipalName - Reason = $_.reason - RequestDate = $_.createdDateTime - Status = $_.status # Will allways be InProgress as we filter to only get these but this will reduce confusion when an alert is generated - AppId = $App.appId - Scopes = ($App.pendingScopes.displayName -join ', ') - ConsentURL = $consentUrl - Tenant = $TenantFilter - TenantId = $TenantGUID + Measure-CippTask -TaskName 'WriteAlertTrace' -EventName 'CIPP.AlertProfile' -Script { + Write-AlertTrace -cmdletName $MyInvocation.MyCommand -tenantFilter $TenantFilter -data $AlertData } - $AlertData.Add($Message) } } - Write-AlertTrace -cmdletName $MyInvocation.MyCommand -tenantFilter $TenantFilter -data $AlertData + } catch { } - } catch { } } diff --git a/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertQuarantineReleaseRequests.ps1 b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertQuarantineReleaseRequests.ps1 new file mode 100644 index 000000000000..37e710c5caeb --- /dev/null +++ b/Modules/CIPPCore/Public/Alerts/Get-CIPPAlertQuarantineReleaseRequests.ps1 @@ -0,0 +1,56 @@ +function Get-CIPPAlertQuarantineReleaseRequests { + <# + .FUNCTIONALITY + Entrypoint + #> + [CmdletBinding()] + param ( + [Parameter(Mandatory = $false)] + [Alias('input')] + $InputValue, + $TenantFilter + ) + + $HasLicense = Test-CIPPStandardLicense -StandardName 'QuarantineReleaseRequests' -TenantFilter $TenantFilter -RequiredCapabilities @( + 'EXCHANGE_S_STANDARD', + 'EXCHANGE_S_ENTERPRISE', + 'EXCHANGE_S_STANDARD_GOV', + 'EXCHANGE_S_ENTERPRISE_GOV', + 'EXCHANGE_LITE' + ) + + if (-not $HasLicense) { + return + } + + try { + $RequestedReleases = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Get-QuarantineMessage' -cmdParams @{ PageSize = 1000; ReleaseStatus = 'Requested' } -ErrorAction Stop | Select-Object -ExcludeProperty *data.type* + + if ($RequestedReleases) { + # Get the CIPP URL for the Quarantine link + $CippConfigTable = Get-CippTable -tablename Config + $CippConfig = Get-CIPPAzDataTableEntity @CippConfigTable -Filter "PartitionKey eq 'InstanceProperties' and RowKey eq 'CIPPURL'" + $CIPPUrl = 'https://{0}' -f $CippConfig.Value + + $AlertData = foreach ($Message in $RequestedReleases) { + [PSCustomObject]@{ + Identity = $Message.Identity + MessageId = $Message.MessageId + Subject = $Message.Subject + SenderAddress = $Message.SenderAddress + RecipientAddress = $Message.RecipientAddress + Type = $Message.Type + PolicyName = $Message.PolicyName + ReleaseStatus = $Message.ReleaseStatus + ReceivedTime = $Message.ReceivedTime + QuarantineViewUrl = "$CIPPUrl/email/administration/quarantine?tenantFilter=$TenantFilter" + Tenant = $TenantFilter + } + } + + Write-AlertTrace -cmdletName $MyInvocation.MyCommand -tenantFilter $TenantFilter -data $AlertData + } + } catch { + Write-AlertMessage -tenant $TenantFilter -message "QuarantineReleaseRequests: $(Get-NormalizedError -message $_.Exception.Message)" + } +} diff --git a/Modules/CIPPCore/Public/Authentication/Get-CIPPAzIdentityToken.ps1 b/Modules/CIPPCore/Public/Authentication/Get-CIPPAzIdentityToken.ps1 new file mode 100644 index 000000000000..94f8037d8477 --- /dev/null +++ b/Modules/CIPPCore/Public/Authentication/Get-CIPPAzIdentityToken.ps1 @@ -0,0 +1,78 @@ +function Get-CIPPAzIdentityToken { + <# + .SYNOPSIS + Get the Azure Identity token for Managed Identity + .DESCRIPTION + This function retrieves the Azure Identity token using the Managed Identity endpoint for the specified resource. + Tokens are cached per resource URL until expiration to reduce redundant API calls. + .PARAMETER ResourceUrl + The Azure resource URL to get a token for. Defaults to 'https://management.azure.com/' for Azure Resource Manager. + + Common resources: + - https://management.azure.com/ (Azure Resource Manager - default) + - https://vault.azure.net (Azure Key Vault) + - https://api.loganalytics.io (Log Analytics / Application Insights) + - https://storage.azure.com/ (Azure Storage) + .PARAMETER SkipCache + Force a new token to be fetched, bypassing the cache. + .EXAMPLE + Get-CIPPAzIdentityToken + Gets a token for Azure Resource Manager + .EXAMPLE + Get-CIPPAzIdentityToken -ResourceUrl 'https://vault.azure.net' + Gets a token for Azure Key Vault + .EXAMPLE + Get-CIPPAzIdentityToken -ResourceUrl 'https://api.loganalytics.io' + Gets a token for Log Analytics API + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false)] + [string]$ResourceUrl = 'https://management.azure.com/', + [switch]$SkipCache + ) + + $Endpoint = $env:IDENTITY_ENDPOINT + $Secret = $env:IDENTITY_HEADER + + if (-not $Endpoint -or -not $Secret) { + throw 'Managed Identity environment variables (IDENTITY_ENDPOINT/IDENTITY_HEADER) not found. Is Managed Identity enabled on the Function App?' + } + + # Build cache key from resource URL + $TokenKey = "ManagedIdentity-$ResourceUrl" + + try { + # Check if cached token exists and is still valid + if ($script:ManagedIdentityTokens.$TokenKey -and [int](Get-Date -UFormat %s -Millisecond 0) -lt $script:ManagedIdentityTokens.$TokenKey.expires_on -and $SkipCache -ne $true) { + return $script:ManagedIdentityTokens.$TokenKey.access_token + } + + # Get new token + $EncodedResource = [System.Uri]::EscapeDataString($ResourceUrl) + $TokenUri = "$($Endpoint)?resource=$EncodedResource&api-version=2019-08-01" + $Headers = @{ + 'X-IDENTITY-HEADER' = $Secret + } + + $TokenResponse = Invoke-RestMethod -Method Get -Headers $Headers -Uri $TokenUri -ErrorAction Stop + + # Calculate expiration time + $ExpiresOn = [int](Get-Date -UFormat %s -Millisecond 0) + $TokenResponse.expires_in + + # Store in cache (initialize synchronized hash table if needed) + if (-not $script:ManagedIdentityTokens) { + $script:ManagedIdentityTokens = [HashTable]::Synchronized(@{}) + } + + # Add expires_on to token response for tracking + Add-Member -InputObject $TokenResponse -NotePropertyName 'expires_on' -NotePropertyValue $ExpiresOn -Force + + # Cache the token + $script:ManagedIdentityTokens.$TokenKey = $TokenResponse + + return $TokenResponse.access_token + } catch { + throw "Failed to get managed identity token for resource '$ResourceUrl': $($_.Exception.Message)" + } +} diff --git a/Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1 b/Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1 index d81c8f2ae54a..1c5880fd8be1 100644 --- a/Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1 +++ b/Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1 @@ -4,25 +4,27 @@ function Get-CippApiAuth { [string]$FunctionAppName ) - if ($env:MSI_SECRET) { - Disable-AzContextAutosave -Scope Process | Out-Null - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $Context = Set-AzContext -SubscriptionId $SubscriptionId - } else { - $Context = Get-AzContext - $SubscriptionId = $Context.Subscription.Id + $SubscriptionId = Get-CIPPAzFunctionAppSubId + + try { + # Get auth settings via REST + $uri = "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" + $response = New-CIPPAzRestRequest -Uri $uri -Method POST -ErrorAction Stop + $AuthSettings = $response.properties + } catch { + Write-Warning "Failed to get auth settings via REST: $($_.Exception.Message)" } - # Get auth settings - $AuthSettings = Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" -ErrorAction Stop | Select-Object -ExpandProperty Content | ConvertFrom-Json + if (!$AuthSettings -and $env:WEBSITE_AUTH_V2_CONFIG_JSON) { + $AuthSettings = $env:WEBSITE_AUTH_V2_CONFIG_JSON | ConvertFrom-Json -ErrorAction SilentlyContinue + } - if ($AuthSettings.properties) { + if ($AuthSettings) { [PSCustomObject]@{ ApiUrl = "https://$($env:WEBSITE_HOSTNAME)" - TenantID = $AuthSettings.properties.identityProviders.azureActiveDirectory.registration.openIdIssuer -replace 'https://sts.windows.net/', '' -replace '/v2.0', '' - ClientIDs = $AuthSettings.properties.identityProviders.azureActiveDirectory.validation.defaultAuthorizationPolicy.allowedApplications - Enabled = $AuthSettings.properties.identityProviders.azureActiveDirectory.enabled + TenantID = $AuthSettings.identityProviders.azureActiveDirectory.registration.openIdIssuer -replace 'https://sts.windows.net/', '' -replace '/v2.0', '' + ClientIDs = $AuthSettings.identityProviders.azureActiveDirectory.validation.defaultAuthorizationPolicy.allowedApplications + Enabled = $AuthSettings.identityProviders.azureActiveDirectory.enabled } } else { throw 'No auth settings found' diff --git a/Modules/CIPPCore/Public/Authentication/New-CIPPAPIConfig.ps1 b/Modules/CIPPCore/Public/Authentication/New-CIPPAPIConfig.ps1 index 43bbee34f7a2..948d2a17f1fa 100644 --- a/Modules/CIPPCore/Public/Authentication/New-CIPPAPIConfig.ps1 +++ b/Modules/CIPPCore/Public/Authentication/New-CIPPAPIConfig.ps1 @@ -19,7 +19,8 @@ function New-CIPPAPIConfig { try { if ($AppId) { - $APIApp = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/applications(appid='$($AppId)')" -NoAuthCheck $true + $APIApp = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/applications(appid='$($AppId)')" -NoAuthCheck $true -AsApp $true + Write-Information "Found existing app with AppId $AppId" } else { $CreateBody = @{ api = @{ @@ -62,18 +63,23 @@ function New-CIPPAPIConfig { if ($PSCmdlet.ShouldProcess($AppName, 'Create API App')) { Write-Information 'Creating app' Write-Information $CreateBody + $Step = 'Creating Application' $APIApp = New-GraphPOSTRequest -uri 'https://graph.microsoft.com/v1.0/applications' -AsApp $true -NoAuthCheck $true -type POST -body $CreateBody Write-Information 'Creating password' - $APIPassword = New-GraphPOSTRequest -uri "https://graph.microsoft.com/v1.0/applications/$($APIApp.id)/addPassword" -AsApp $true -NoAuthCheck $true -type POST -body "{`"passwordCredential`":{`"displayName`":`"Generated by API Setup`"}}" + $Step = 'Creating Application Password' + $APIPassword = New-GraphPOSTRequest -uri "https://graph.microsoft.com/v1.0/applications/$($APIApp.id)/addPassword" -AsApp $true -NoAuthCheck $true -type POST -body "{`"passwordCredential`":{`"displayName`":`"Generated by API Setup`"}}" -maxRetries 3 Write-Information 'Adding App URL' - $APIIdUrl = New-GraphPOSTRequest -uri "https://graph.microsoft.com/v1.0/applications/$($APIApp.id)" -AsApp $true -NoAuthCheck $true -type PATCH -body "{`"identifierUris`":[`"api://$($APIApp.appId)`"]}" + $Step = 'Adding Application Identifier URI' + $APIIdUrl = New-GraphPOSTRequest -uri "https://graph.microsoft.com/v1.0/applications/$($APIApp.id)" -AsApp $true -NoAuthCheck $true -type PATCH -body "{`"identifierUris`":[`"api://$($APIApp.appId)`"]}" -maxRetries 3 Write-Information 'Adding serviceprincipal' - $ServicePrincipal = New-GraphPOSTRequest -uri 'https://graph.microsoft.com/v1.0/serviceprincipals' -AsApp $true -NoAuthCheck $true -type POST -body "{`"accountEnabled`":true,`"appId`":`"$($APIApp.appId)`",`"displayName`":`"$AppName`",`"tags`":[`"WindowsAzureActiveDirectoryIntegratedApp`",`"AppServiceIntegratedApp`"]}" + $Step = 'Creating Service Principal' + $ServicePrincipal = New-GraphPOSTRequest -uri 'https://graph.microsoft.com/v1.0/serviceprincipals' -AsApp $true -NoAuthCheck $true -type POST -body "{`"accountEnabled`":true,`"appId`":`"$($APIApp.appId)`",`"displayName`":`"$AppName`",`"tags`":[`"WindowsAzureActiveDirectoryIntegratedApp`",`"AppServiceIntegratedApp`"]}" -maxRetries 3 Write-LogMessage -headers $Headers -API $APINAME -tenant 'None '-message "Created CIPP-API App with name '$($APIApp.displayName)'." -Sev 'info' } } if ($ResetSecret.IsPresent -and $APIApp) { if ($PSCmdlet.ShouldProcess($APIApp.displayName, 'Reset API Secret')) { + $Step = 'Resetting Application Password' Write-Information 'Removing all old passwords' $Requests = @( @{ @@ -118,7 +124,7 @@ function New-CIPPAPIConfig { } catch { $ErrorMessage = Get-CippException -Exception $_ Write-Information ($ErrorMessage | ConvertTo-Json -Depth 10) - Write-LogMessage -headers $Headers -API $APINAME -tenant 'None' -message "Failed to setup CIPP-API Access: $($ErrorMessage.NormalizedError) Linenumber: $($_.InvocationInfo.ScriptLineNumber)" -Sev 'Error' -LogData $ErrorMessage + Write-LogMessage -headers $Headers -API $APINAME -tenant 'None' -message "CIPP-API Setup failed at step ($Step): $($ErrorMessage.NormalizedError) Linenumber: $($_.InvocationInfo.ScriptLineNumber)" -Sev 'Error' -LogData $ErrorMessage throw "Failed to setup CIPP-API Access: $($ErrorMessage.NormalizedError)" } } diff --git a/Modules/CIPPCore/Public/Authentication/Set-CippApiAuth.ps1 b/Modules/CIPPCore/Public/Authentication/Set-CippApiAuth.ps1 index b6c9278c45a5..91e40acb6290 100644 --- a/Modules/CIPPCore/Public/Authentication/Set-CippApiAuth.ps1 +++ b/Modules/CIPPCore/Public/Authentication/Set-CippApiAuth.ps1 @@ -7,18 +7,15 @@ function Set-CippApiAuth { [string[]]$ClientIds ) - if ($env:MSI_SECRET) { - Disable-AzContextAutosave -Scope Process | Out-Null - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $Context = Set-AzContext -SubscriptionId $SubscriptionId - } else { - $Context = Get-AzContext - $SubscriptionId = $Context.Subscription.Id - } + # Resolve subscription ID via helper (managed identity environment assumed for ARM). + $SubscriptionId = Get-CIPPAzFunctionAppSubId - # Get auth settings - $AuthSettings = Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" | Select-Object -ExpandProperty Content | ConvertFrom-Json + # Get auth settings via ARM REST (managed identity) + $getUri = "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" + $resp = New-CIPPAzRestRequest -Uri $getUri -Method 'GET' + $AuthSettings = $resp | Select-Object -ExpandProperty Content -ErrorAction SilentlyContinue + if ($AuthSettings -is [string]) { $AuthSettings = $AuthSettings | ConvertFrom-Json } + else { $AuthSettings = $resp } Write-Information "AuthSettings: $($AuthSettings | ConvertTo-Json -Depth 10)" @@ -65,11 +62,12 @@ function Set-CippApiAuth { } if ($PSCmdlet.ShouldProcess('Update auth settings')) { - # Update auth settings - $null = Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2?api-version=2020-06-01" -Method PUT -Payload ($AuthSettings | ConvertTo-Json -Depth 10) + # Update auth settings via ARM REST + $putUri = "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2?api-version=2020-06-01" + $null = New-CIPPAzRestRequest -Uri $putUri -Method 'PUT' -Body $AuthSettings -ContentType 'application/json' } if ($PSCmdlet.ShouldProcess('Update allowed tenants')) { - $null = Update-AzFunctionAppSetting -Name $FunctionAppName -ResourceGroupName $RGName -AppSetting @{ 'WEBSITE_AUTH_AAD_ALLOWED_TENANTS' = $TenantId } + $null = Update-CIPPAzFunctionAppSetting -Name $FunctionAppName -ResourceGroupName $RGName -AppSetting @{ 'WEBSITE_AUTH_AAD_ALLOWED_TENANTS' = $TenantId } } } diff --git a/Modules/CIPPCore/Public/Authentication/Test-CIPPAccess.ps1 b/Modules/CIPPCore/Public/Authentication/Test-CIPPAccess.ps1 index 31c817c0b583..4afa5ee47d61 100644 --- a/Modules/CIPPCore/Public/Authentication/Test-CIPPAccess.ps1 +++ b/Modules/CIPPCore/Public/Authentication/Test-CIPPAccess.ps1 @@ -4,26 +4,65 @@ function Test-CIPPAccess { [switch]$TenantList, [switch]$GroupList ) + # Initialize per-call profiling + $AccessTimings = @{} + $AccessTotalSw = [System.Diagnostics.Stopwatch]::StartNew() if ($Request.Params.CIPPEndpoint -eq 'ExecSAMSetup') { return $true } # Get function help $FunctionName = 'Invoke-{0}' -f $Request.Params.CIPPEndpoint - if ($FunctionName -ne 'Invoke-me') { - try { - $Help = Get-Help $FunctionName -ErrorAction Stop - } catch { - Write-Warning "Function '$FunctionName' not found" + $SwPermissions = [System.Diagnostics.Stopwatch]::StartNew() + if (-not $global:CIPPFunctionPermissions) { + $CIPPCoreModule = Get-Module -Name CIPPCore + if ($CIPPCoreModule) { + $PermissionsFileJson = Join-Path $CIPPCoreModule.ModuleBase 'lib' 'data' 'function-permissions.json' + + if (Test-Path $PermissionsFileJson) { + try { + $jsonData = Get-Content -Path $PermissionsFileJson -Raw | ConvertFrom-Json -AsHashtable + $global:CIPPFunctionPermissions = [System.Collections.Hashtable]::new([StringComparer]::OrdinalIgnoreCase) + foreach ($key in $jsonData.Keys) { + $global:CIPPFunctionPermissions[$key] = $jsonData[$key] + } + Write-Information "Loaded $($global:CIPPFunctionPermissions.Count) function permissions from JSON cache" + } catch { + Write-Warning "Failed to load function permissions from JSON: $($_.Exception.Message)" + } + } } } + $SwPermissions.Stop() + $AccessTimings['FunctionPermissions'] = $SwPermissions.Elapsed.TotalMilliseconds - # Check help for role - $APIRole = $Help.Role + if ($FunctionName -ne 'Invoke-me') { + $swHelp = [System.Diagnostics.Stopwatch]::StartNew() + if ($global:CIPPFunctionPermissions -and $global:CIPPFunctionPermissions.ContainsKey($FunctionName)) { + $PermissionData = $global:CIPPFunctionPermissions[$FunctionName] + $APIRole = $PermissionData['Role'] + $Functionality = $PermissionData['Functionality'] + Write-Information "Loaded function permission data from cache for '$FunctionName': Role='$APIRole', Functionality='$Functionality'" + } else { + try { + $Help = Get-Help $FunctionName -ErrorAction Stop + $APIRole = $Help.Role + $Functionality = $Help.Functionality + Write-Information "Loaded function permission data via Get-Help for '$FunctionName': Role='$APIRole', Functionality='$Functionality'" + } catch { + Write-Warning "Function '$FunctionName' not found" + } + } + $swHelp.Stop() + $AccessTimings['GetHelp'] = $swHelp.Elapsed.TotalMilliseconds + } # Get default roles from config + $swRolesLoad = [System.Diagnostics.Stopwatch]::StartNew() $CIPPCoreModuleRoot = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase $CIPPRoot = (Get-Item $CIPPCoreModuleRoot).Parent.Parent $BaseRoles = Get-Content -Path $CIPPRoot\Config\cipp-roles.json | ConvertFrom-Json + $swRolesLoad.Stop() + $AccessTimings['LoadBaseRoles'] = $swRolesLoad.Elapsed.TotalMilliseconds $DefaultRoles = @('superadmin', 'admin', 'editor', 'readonly', 'anonymous', 'authenticated') if ($APIRole -eq 'Public') { @@ -32,6 +71,7 @@ function Test-CIPPAccess { if ($Request.Headers.'x-ms-client-principal-idp' -eq 'aad' -and $Request.Headers.'x-ms-client-principal-name' -match '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$') { $Type = 'APIClient' + $swApiClient = [System.Diagnostics.Stopwatch]::StartNew() # Direct API Access $ForwardedFor = $Request.Headers.'x-forwarded-for' -split ',' | Select-Object -First 1 $IPRegex = '^(?(?:\d{1,3}(?:\.\d{1,3}){3}|\[[0-9a-fA-F:]+\]|[0-9a-fA-F:]+))(?::\d+)?$' @@ -92,14 +132,20 @@ function Test-CIPPAccess { } | ConvertTo-Json -Depth 5) }) } + $swApiClient.Stop() + $AccessTimings['ApiClientBranch'] = $swApiClient.Elapsed.TotalMilliseconds } else { $Type = 'User' + $swUserBranch = [System.Diagnostics.Stopwatch]::StartNew() $User = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Request.Headers.'x-ms-client-principal')) | ConvertFrom-Json # Check for roles granted via group membership if (($User.userRoles | Measure-Object).Count -eq 2 -and $User.userRoles -contains 'authenticated' -and $User.userRoles -contains 'anonymous') { + $swResolveUserRoles = [System.Diagnostics.Stopwatch]::StartNew() $User = Test-CIPPAccessUserRole -User $User + $swResolveUserRoles.Stop() + $AccessTimings['ResolveUserRoles'] = $swResolveUserRoles.Elapsed.TotalMilliseconds } #Write-Information ($User | ConvertTo-Json -Depth 5) @@ -117,7 +163,10 @@ function Test-CIPPAccess { }) } + $swPermsMe = [System.Diagnostics.Stopwatch]::StartNew() $Permissions = Get-CippAllowedPermissions -UserRoles $User.userRoles + $swPermsMe.Stop() + $AccessTimings['GetPermissions(me)'] = $swPermsMe.Elapsed.TotalMilliseconds return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::OK Body = ( @@ -187,8 +236,12 @@ function Test-CIPPAccess { if (@('admin', 'superadmin') -contains $BaseRole.Name) { return $true } else { + $swTenantsLoad = [System.Diagnostics.Stopwatch]::StartNew() $Tenants = Get-Tenants -IncludeErrors + $swTenantsLoad.Stop() + $AccessTimings['LoadTenants'] = $swTenantsLoad.Elapsed.TotalMilliseconds $PermissionsFound = $false + $swRolePerms = [System.Diagnostics.Stopwatch]::StartNew() $PermissionSet = foreach ($CustomRole in $CustomRoles) { try { Get-CIPPRolePermissions -Role $CustomRole @@ -198,9 +251,12 @@ function Test-CIPPAccess { continue } } + $swRolePerms.Stop() + $AccessTimings['GetRolePermissions'] = $swRolePerms.Elapsed.TotalMilliseconds if ($PermissionsFound) { if ($TenantList.IsPresent) { + $swTenantList = [System.Diagnostics.Stopwatch]::StartNew() $LimitedTenantList = foreach ($Permission in $PermissionSet) { if ((($Permission.AllowedTenants | Measure-Object).Count -eq 0 -or $Permission.AllowedTenants -contains 'AllTenants') -and (($Permission.BlockedTenants | Measure-Object).Count -eq 0)) { @('AllTenants') @@ -240,8 +296,11 @@ function Test-CIPPAccess { $ExpandedAllowedTenants | Where-Object { $ExpandedBlockedTenants -notcontains $_ } } } + $swTenantList.Stop() + $AccessTimings['BuildTenantList'] = $swTenantList.Elapsed.TotalMilliseconds return @($LimitedTenantList | Sort-Object -Unique) } elseif ($GroupList.IsPresent) { + $swGroupList = [System.Diagnostics.Stopwatch]::StartNew() Write-Information "Getting allowed groups for roles: $($CustomRoles -join ', ')" $LimitedGroupList = foreach ($Permission in $PermissionSet) { if ((($Permission.AllowedTenants | Measure-Object).Count -eq 0 -or $Permission.AllowedTenants -contains 'AllTenants') -and (($Permission.BlockedTenants | Measure-Object).Count -eq 0)) { @@ -254,11 +313,14 @@ function Test-CIPPAccess { } } } + $swGroupList.Stop() + $AccessTimings['BuildGroupList'] = $swGroupList.Elapsed.TotalMilliseconds return @($LimitedGroupList | Sort-Object -Unique) } $TenantAllowed = $false $APIAllowed = $false + $swPermissionEval = [System.Diagnostics.Stopwatch]::StartNew() foreach ($Role in $PermissionSet) { foreach ($Perm in $Role.Permissions) { if ($Perm -match $APIRole) { @@ -329,11 +391,13 @@ function Test-CIPPAccess { } } } + $swPermissionEval.Stop() + $AccessTimings['EvaluatePermissions'] = $swPermissionEval.Elapsed.TotalMilliseconds if (!$APIAllowed) { throw "Access to this CIPP API endpoint is not allowed, you do not have the required permission: $APIRole" } - if (!$TenantAllowed -and $Help.Functionality -notmatch 'AnyTenant') { + if (!$TenantAllowed -and $Functionality -notmatch 'AnyTenant') { throw 'Access to this tenant is not allowed' } else { return $true @@ -371,12 +435,12 @@ function Test-CIPPAccess { } } - if (!$TenantAllowed -and $Help.Functionality -notmatch 'AnyTenant') { + if (!$TenantAllowed -and $Functionality -notmatch 'AnyTenant') { if (!$APIAllowed) { throw "Access to this CIPP API endpoint is not allowed, you do not have the required permission: $APIRole" } - if (!$TenantAllowed -and $Help.Functionality -notmatch 'AnyTenant') { + if (!$TenantAllowed -and $Functionality -notmatch 'AnyTenant') { Write-Information "Tenant not allowed: $TenantFilter" throw 'Access to this tenant is not allowed' @@ -392,10 +456,22 @@ function Test-CIPPAccess { } return $true } + $swUserBranch.Stop() + $AccessTimings['UserBranch'] = $swUserBranch.Elapsed.TotalMilliseconds } if ($TenantList.IsPresent) { + $AccessTotalSw.Stop() + $AccessTimings['Total'] = $AccessTotalSw.Elapsed.TotalMilliseconds + $AccessTimingsRounded = [ordered]@{} + foreach ($Key in ($AccessTimings.Keys | Sort-Object)) { $AccessTimingsRounded[$Key] = [math]::Round($AccessTimings[$Key], 2) } + Write-Debug "#### Access Timings #### $($AccessTimingsRounded | ConvertTo-Json -Compress)" return @('AllTenants') } + $AccessTotalSw.Stop() + $AccessTimings['Total'] = $AccessTotalSw.Elapsed.TotalMilliseconds + $AccessTimingsRounded = [ordered]@{} + foreach ($Key in ($AccessTimings.Keys | Sort-Object)) { $AccessTimingsRounded[$Key] = [math]::Round($AccessTimings[$Key], 2) } + Write-Debug "#### Access Timings #### $($AccessTimingsRounded | ConvertTo-Json -Compress)" return $true } diff --git a/Modules/CIPPCore/Public/Authentication/Test-CIPPAccessUserRole.ps1 b/Modules/CIPPCore/Public/Authentication/Test-CIPPAccessUserRole.ps1 index ec7bf596ca37..82fc925e0687 100644 --- a/Modules/CIPPCore/Public/Authentication/Test-CIPPAccessUserRole.ps1 +++ b/Modules/CIPPCore/Public/Authentication/Test-CIPPAccessUserRole.ps1 @@ -19,65 +19,115 @@ function Test-CIPPAccessUserRole { param( $User ) + # Initialize per-call profiling + $UserRoleTimings = @{} + $UserRoleTotalSw = [System.Diagnostics.Stopwatch]::StartNew() $Roles = @() - try { - $Table = Get-CippTable -TableName cacheAccessUserRoles - $Filter = "PartitionKey eq 'AccessUser' and RowKey eq '$($User.userDetails)' and Timestamp ge datetime'$((Get-Date).AddMinutes(-15).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ss.fffZ'))'" - $UserRole = Get-CIPPAzDataTableEntity @Table -Filter $Filter - } catch { - Write-Information "Could not access cached user roles table. $($_.Exception.Message)" - $UserRole = $null - } - if ($UserRole) { - Write-Information "Found cached user role for $($User.userDetails)" - $Roles = $UserRole.Role | ConvertFrom-Json + # Check AsyncLocal cache first (per-request cache) + if ($script:CippUserRolesStorage -and $script:CippUserRolesStorage.Value -and $script:CippUserRolesStorage.Value.ContainsKey($User.userDetails)) { + $Roles = $script:CippUserRolesStorage.Value[$User.userDetails] } else { + # Check table storage cache (persistent cache) try { - $uri = "https://graph.microsoft.com/beta/users/$($User.userDetails)/transitiveMemberOf" - $Memberships = New-GraphGetRequest -uri $uri -NoAuthCheck $true | Where-Object { $_.'@odata.type' -eq '#microsoft.graph.group' } - if ($Memberships) { - Write-Information "Found group memberships for $($User.userDetails)" - } else { - Write-Information "No group memberships found for $($User.userDetails)" - } + $swTableLookup = [System.Diagnostics.Stopwatch]::StartNew() + $Table = Get-CippTable -TableName cacheAccessUserRoles + $Filter = "PartitionKey eq 'AccessUser' and RowKey eq '$($User.userDetails)' and Timestamp ge datetime'$((Get-Date).AddMinutes(-15).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ss.fffZ'))'" + $UserRole = Get-CIPPAzDataTableEntity @Table -Filter $Filter + $swTableLookup.Stop() + $UserRoleTimings['TableLookup'] = $swTableLookup.Elapsed.TotalMilliseconds } catch { - Write-Information "Could not get user roles for $($User.userDetails). $($_.Exception.Message)" - return $User + Write-Information "Could not access cached user roles table. $($_.Exception.Message)" + $UserRole = $null } + if ($UserRole) { + Write-Information "Found cached user role for $($User.userDetails)" + $Roles = $UserRole.Role | ConvertFrom-Json + + # Store in AsyncLocal cache for this request + if ($script:CippUserRolesStorage -and $script:CippUserRolesStorage.Value) { + $script:CippUserRolesStorage.Value[$User.userDetails] = $Roles + } + } else { + try { + $swGraphMemberships = [System.Diagnostics.Stopwatch]::StartNew() + $uri = "https://graph.microsoft.com/beta/users/$($User.userDetails)/transitiveMemberOf" + $Memberships = New-GraphGetRequest -uri $uri -NoAuthCheck $true -AsApp $true | Where-Object { $_.'@odata.type' -eq '#microsoft.graph.group' } + $swGraphMemberships.Stop() + $UserRoleTimings['GraphMemberships'] = $swGraphMemberships.Elapsed.TotalMilliseconds + if ($Memberships) { + Write-Information "Found group memberships for $($User.userDetails)" + } else { + Write-Information "No group memberships found for $($User.userDetails)" + } + } catch { + Write-Information "Could not get user roles for $($User.userDetails). $($_.Exception.Message)" + $UserRoleTotalSw.Stop() + $UserRoleTimings['Total'] = $UserRoleTotalSw.Elapsed.TotalMilliseconds + $timingsRounded = [ordered]@{} + foreach ($Key in ($UserRoleTimings.Keys | Sort-Object)) { $timingsRounded[$Key] = [math]::Round($UserRoleTimings[$Key], 2) } + Write-Debug "#### UserRole Timings #### $($timingsRounded | ConvertTo-Json -Compress)" + return $User + } + + $swAccessGroups = [System.Diagnostics.Stopwatch]::StartNew() + $AccessGroupsTable = Get-CippTable -TableName AccessRoleGroups + $AccessGroups = Get-CIPPAzDataTableEntity @AccessGroupsTable -Filter "PartitionKey eq 'AccessRoleGroups'" + $swAccessGroups.Stop() + $UserRoleTimings['AccessGroupsFetch'] = $swAccessGroups.Elapsed.TotalMilliseconds - $AccessGroupsTable = Get-CippTable -TableName AccessRoleGroups - $AccessGroups = Get-CIPPAzDataTableEntity @AccessGroupsTable -Filter "PartitionKey eq 'AccessRoleGroups'" - $CustomRolesTable = Get-CippTable -TableName CustomRoles - $CustomRoles = Get-CIPPAzDataTableEntity @CustomRolesTable -Filter "PartitionKey eq 'CustomRoles'" - $BaseRoles = @('superadmin', 'admin', 'editor', 'readonly') + $swCustomRoles = [System.Diagnostics.Stopwatch]::StartNew() + $CustomRolesTable = Get-CippTable -TableName CustomRoles + $CustomRoles = Get-CIPPAzDataTableEntity @CustomRolesTable -Filter "PartitionKey eq 'CustomRoles'" + $swCustomRoles.Stop() + $UserRoleTimings['CustomRolesFetch'] = $swCustomRoles.Elapsed.TotalMilliseconds + $BaseRoles = @('superadmin', 'admin', 'editor', 'readonly') - $Roles = foreach ($AccessGroup in $AccessGroups) { - if ($Memberships.id -contains $AccessGroup.GroupId -and ($CustomRoles.RowKey -contains $AccessGroup.RowKey -or $BaseRoles -contains $AccessGroup.RowKey)) { - $AccessGroup.RowKey + $swDeriveRoles = [System.Diagnostics.Stopwatch]::StartNew() + $Roles = foreach ($AccessGroup in $AccessGroups) { + if ($Memberships.id -contains $AccessGroup.GroupId -and ($CustomRoles.RowKey -contains $AccessGroup.RowKey -or $BaseRoles -contains $AccessGroup.RowKey)) { + $AccessGroup.RowKey + } } - } + $swDeriveRoles.Stop() + $UserRoleTimings['DeriveRoles'] = $swDeriveRoles.Elapsed.TotalMilliseconds - $Roles = @($Roles) + @($User.userRoles) + $Roles = @($Roles) + @($User.userRoles) - if ($Roles) { - Write-Information "Roles determined for $($User.userDetails): $($Roles -join ', ')" - } + if ($Roles) { + Write-Information "Roles determined for $($User.userDetails): $($Roles -join ', ')" + } - if (($Roles | Measure-Object).Count -gt 2) { - try { - $UserRole = [PSCustomObject]@{ - PartitionKey = 'AccessUser' - RowKey = [string]$User.userDetails - Role = [string](ConvertTo-Json -Compress -InputObject $Roles) + if (($Roles | Measure-Object).Count -gt 2) { + try { + $swCacheWrite = [System.Diagnostics.Stopwatch]::StartNew() + $UserRole = [PSCustomObject]@{ + PartitionKey = 'AccessUser' + RowKey = [string]$User.userDetails + Role = [string](ConvertTo-Json -Compress -InputObject $Roles) + } + Add-CIPPAzDataTableEntity @Table -Entity $UserRole -Force + $swCacheWrite.Stop() + $UserRoleTimings['TableWrite'] = $swCacheWrite.Elapsed.TotalMilliseconds + } catch { + Write-Information "Could not cache user roles for $($User.userDetails). $($_.Exception.Message)" } - Add-CIPPAzDataTableEntity @Table -Entity $UserRole -Force - } catch { - Write-Information "Could not cache user roles for $($User.userDetails). $($_.Exception.Message)" + } + + # Store in AsyncLocal cache for this request + if ($script:CippUserRolesStorage -and $script:CippUserRolesStorage.Value) { + $script:CippUserRolesStorage.Value[$User.userDetails] = $Roles } } } $User.userRoles = $Roles + # Log timings summary + $UserRoleTotalSw.Stop() + $UserRoleTimings['Total'] = $UserRoleTotalSw.Elapsed.TotalMilliseconds + $timingsRounded = [ordered]@{} + foreach ($Key in ($UserRoleTimings.Keys | Sort-Object)) { $timingsRounded[$Key] = [math]::Round($UserRoleTimings[$Key], 2) } + Write-Debug "#### UserRole Timings #### $($timingsRounded | ConvertTo-Json -Compress)" + return $User } diff --git a/Modules/CIPPCore/Public/CippQueue/Set-CippQueueTask.ps1 b/Modules/CIPPCore/Public/CippQueue/Set-CippQueueTask.ps1 index 33c48d2adff4..928c6e06285d 100644 --- a/Modules/CIPPCore/Public/CippQueue/Set-CippQueueTask.ps1 +++ b/Modules/CIPPCore/Public/CippQueue/Set-CippQueueTask.ps1 @@ -8,7 +8,8 @@ function Set-CippQueueTask { [string]$TaskId = (New-Guid).Guid.ToString(), [string]$Name, [ValidateSet('Queued', 'Running', 'Completed', 'Failed')] - [string]$Status = 'Queued' + [string]$Status = 'Queued', + [string]$Message ) $CippQueueTasks = Get-CippTable -TableName CippQueueTasks @@ -20,8 +21,11 @@ function Set-CippQueueTask { Name = $Name Status = $Status } + if ($Message) { + $QueueTaskEntry.Message = $Message + } $CippQueueTasks.Entity = $QueueTaskEntry Add-CIPPAzDataTableEntity @CippQueueTasks -Force return $QueueTaskEntry -} \ No newline at end of file +} diff --git a/Modules/CIPPCore/Public/Clear-CippDurables.ps1 b/Modules/CIPPCore/Public/Clear-CippDurables.ps1 index 6b0edd1a0caa..972f3d8fc853 100644 --- a/Modules/CIPPCore/Public/Clear-CippDurables.ps1 +++ b/Modules/CIPPCore/Public/Clear-CippDurables.ps1 @@ -2,7 +2,6 @@ function Clear-CippDurables { [CmdletBinding(SupportsShouldProcess = $true)] param() # Collect info - $StorageContext = New-AzStorageContext -ConnectionString $env:AzureWebJobsStorage $FunctionName = $env:WEBSITE_SITE_NAME -replace '-', '' # Get orchestrators @@ -16,21 +15,22 @@ function Clear-CippDurables { Remove-AzDataTable @QueueTable Remove-AzDataTable @CippQueueTasks - $Queues = Get-AzStorageQueue -Context $StorageContext -Name ('{0}*' -f $FunctionName) | Select-Object -Property Name, ApproximateMessageCount, QueueClient + $Queues = Get-CIPPAzStorageQueue -Name ('{0}*' -f $FunctionName) $RunningQueues = $Queues | Where-Object { $_.ApproximateMessageCount -gt 0 } foreach ($Queue in $RunningQueues) { Write-Information "- Removing queue: $($Queue.Name), message count: $($Queue.ApproximateMessageCount)" if ($PSCmdlet.ShouldProcess($Queue.Name, 'Clear Queue')) { - $Queue.QueueClient.ClearMessagesAsync() + $null = Clear-CIPPAzStorageQueue -Name $Queue.Name } } $BlobContainer = '{0}-largemessages' -f $FunctionName - if (Get-AzStorageContainer -Name $BlobContainer -Context $StorageContext -ErrorAction SilentlyContinue) { + $containerMatch = Get-CIPPAzStorageContainer -Name $BlobContainer | Where-Object { $_.Name -eq $BlobContainer } + if ($containerMatch) { Write-Information "- Removing blob container: $BlobContainer" if ($PSCmdlet.ShouldProcess($BlobContainer, 'Remove Blob Container')) { - Remove-AzStorageContainer -Name $BlobContainer -Context $StorageContext -Confirm:$false -Force + $null = Remove-CIPPAzStorageContainer -Name $BlobContainer } } diff --git a/Modules/CIPPCore/Public/Compare-CIPPIntuneObject.ps1 b/Modules/CIPPCore/Public/Compare-CIPPIntuneObject.ps1 index da8f54359689..ee24dfd6b620 100644 --- a/Modules/CIPPCore/Public/Compare-CIPPIntuneObject.ps1 +++ b/Modules/CIPPCore/Public/Compare-CIPPIntuneObject.ps1 @@ -28,6 +28,8 @@ function Compare-CIPPIntuneObject { 'qualityUpdatesWillBeRolledBack', 'qualityUpdatesPauseStartDate', 'featureUpdatesPauseStartDate' + 'wslDistributions', + 'lastSuccessfulSyncDateTime' ) $excludeProps = $defaultExcludeProperties + $ExcludeProperties diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserDomain.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserDomain.ps1 index 08cf028b8704..ed24471113d9 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserDomain.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserDomain.ps1 @@ -145,7 +145,7 @@ function Push-DomainAnalyserDomain { try { $DMARCPolicy = Read-DmarcPolicy -Domain $Domain -ErrorAction Stop - If ([string]::IsNullOrEmpty($DMARCPolicy.Record)) { + if ([string]::IsNullOrEmpty($DMARCPolicy.Record)) { $Result.DMARCPresent = $false $ScoreExplanation.Add('No DMARC Records Found') | Out-Null } else { @@ -320,11 +320,8 @@ function Push-DomainAnalyserDomain { $DomainTable.Entity = $DomainObject $DomainTable.Force = $true Add-CIPPAzDataTableEntity @DomainTable -Entity $DomainObject -Force - - # Final Write to Output - Write-LogMessage -API 'DomainAnalyser' -tenant $DomainObject.TenantId -message "DNS Analyser Finished For $Domain" -sev Info } catch { Write-LogMessage -API 'DomainAnalyser' -tenant $DomainObject.TenantId -message "Error saving domain $Domain to table " -sev Error -LogData (Get-CippException -Exception $_) } - return $null + return $Result } diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserTenant.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserTenant.ps1 index 586518f8afe1..43444b4a4101 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserTenant.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserTenant.ps1 @@ -1,8 +1,8 @@ function Push-DomainAnalyserTenant { <# - .FUNCTIONALITY - Entrypoint - #> + .FUNCTIONALITY + Entrypoint + #> param($Item) $Tenant = Get-Tenants -IncludeAll | Where-Object { $_.customerId -eq $Item.customerId } | Select-Object -First 1 @@ -13,7 +13,7 @@ function Push-DomainAnalyserTenant { $CleanupRows = Get-CIPPAzDataTableEntity @DomainTable -Filter $Filter $CleanupCount = ($CleanupRows | Measure-Object).Count if ($CleanupCount -gt 0) { - Write-LogMessage -API 'DomainAnalyser' -tenant $Tenant.defaultDomainName -message "Cleaning up $CleanupCount domain(s) for excluded tenant" -sev Info + Write-LogMessage -API 'DomainAnalyser' -tenant $Tenant.defaultDomainName -tenantid $Tenant.customerId -message "Cleaning up $CleanupCount domain(s) for excluded tenant" -sev Info Remove-AzDataTableEntity -Force @DomainTable -Entity $CleanupRows } } elseif ($Tenant.GraphErrorCount -gt 50) { @@ -61,8 +61,6 @@ function Push-DomainAnalyserTenant { } } - Write-Information ($TenantDomains | ConvertTo-Json -Depth 10) - $DomainCount = ($TenantDomains | Measure-Object).Count if ($DomainCount -gt 0) { Write-Host "############# $DomainCount tenant Domains" @@ -119,21 +117,26 @@ function Push-DomainAnalyserTenant { TenantGUID = $Tenant.customerId } OrchestratorName = "DomainAnalyser_$($Tenant.defaultDomainName)" - SkipLog = $true + PostExecution = @{ + FunctionName = 'GetDomainAnalyserResults' + Parameters = @{ + Tenant = $Tenant + } + } } Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Compress -Depth 5) Write-Host "Started analysis for $DomainCount tenant domains in $($Tenant.defaultDomainName)" - Write-LogMessage -API 'DomainAnalyser' -tenant $Tenant.defaultDomainName -message "Started analysis for $DomainCount tenant domains" -sev Info + Write-LogMessage -Tenant $Tenant.defaultDomainName -TenantId $Tenant.customerId -API 'DomainAnalyser' -message "Started analysis for $DomainCount tenant domains" -sev Info } catch { - Write-LogMessage -API 'DomainAnalyser' -message 'Domain Analyser GetTenantDomains error' -sev 'Error' -LogData (Get-CippException -Exception $_) + Write-LogMessage -Tenant $Tenant.defaultDomainName -TenantId $Tenant.customerId -API 'DomainAnalyser' -message 'Domain Analyser GetTenantDomains error' -sev 'Error' -LogData (Get-CippException -Exception $_) } } catch { - Write-LogMessage -API 'DomainAnalyser' -message 'GetTenantDomains loop error' -sev 'Error' -LogData (Get-CippException -Exception $_) + Write-LogMessage -Tenant $Tenant.defaultDomainName -TenantId $Tenant.customerId -API 'DomainAnalyser' -message 'GetTenantDomains loop error' -sev 'Error' -LogData (Get-CippException -Exception $_) } } } catch { #Write-Host (Get-CippException -Exception $_ | ConvertTo-Json) - Write-LogMessage -API 'DomainAnalyser' -tenant $tenant.defaultDomainName -message 'DNS Analyser GraphGetRequest' -LogData (Get-CippException -Exception $_) -sev Error + Write-LogMessage -Tenant $Tenant.defaultDomainName -TenantId $Tenant.customerId -API 'DomainAnalyser' -message 'DNS Analyser GraphGetRequest' -LogData (Get-CippException -Exception $_) -sev Error } } return $null diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-GetDomainAnalyserResults.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-GetDomainAnalyserResults.ps1 new file mode 100644 index 000000000000..9a98b49ceb06 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-GetDomainAnalyserResults.ps1 @@ -0,0 +1,10 @@ +function Push-GetDomainAnalyserResults { + [CmdletBinding()] + param ( + $Item + ) + + $Tenant = $Item.Parameters.Tenant + Write-LogMessage -API 'DomainAnalyser' -Tenant $Tenant.defaultDomainName -TenantId $Tenant.customerId -message "Domain Analyser completed for tenant $($Tenant.defaultDomainName)" -sev Info -LogData ($Item.Results | Select-Object Domain, @{Name = 'Score'; Expression = { "$($_.Score)/$($_.MaximumScore)" } }) + return +} diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 index 7614842279e4..d199f7c5ada2 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 @@ -7,7 +7,11 @@ function Push-ExecScheduledCommand { $item = $Item | ConvertTo-Json -Depth 100 | ConvertFrom-Json Write-Information "We are going to be running a scheduled task: $($Item.TaskInfo | ConvertTo-Json -Depth 10)" - $script:ScheduledTaskId = $Item.TaskInfo.RowKey + # Initialize AsyncLocal storage for thread-safe per-invocation context + if (-not $script:CippScheduledTaskIdStorage) { + $script:CippScheduledTaskIdStorage = [System.Threading.AsyncLocal[string]]::new() + } + $script:CippScheduledTaskIdStorage.Value = $Item.TaskInfo.RowKey $Table = Get-CippTable -tablename 'ScheduledTasks' $task = $Item.TaskInfo @@ -268,10 +272,15 @@ function Push-ExecScheduledCommand { # Add alert comment if available if ($task.AlertComment) { - $HTML += "

Alert Information

$($task.AlertComment)

" + if ($task.AlertComment -match '%resultcount%') { + $resultCount = if ($Results -is [array]) { $Results.Count } else { 1 } + $task.AlertComment = $task.AlertComment -replace '%resultcount%', "$resultCount" + } + $task.AlertComment = Get-CIPPTextReplacement -Text $task.AlertComment -TenantFilter $Tenant + $HTML += "

Alert Information

$($task.AlertComment)

" } - $title = "$TaskType - $Tenant - $($task.Name)" + $title = "$TaskType - $Tenant - $($task.Name)$(if ($task.Reference) { " - Reference: $($task.Reference)" })" Write-Information 'Scheduler: Sending the results to the target.' Write-Information "The content of results is: $Results" switch -wildcard ($task.PostExecution) { @@ -337,4 +346,5 @@ function Push-ExecScheduledCommand { Write-LogMessage -API 'Scheduler_UserTasks' -tenant $Tenant -tenantid $TenantInfo.customerId -message "Successfully executed task: $($task.Name)" -sev Info } Remove-Variable -Name ScheduledTaskId -Scope Script -ErrorAction SilentlyContinue + return 'Task Completed Successfully.' } diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListLicensesQueue.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListLicensesQueue.ps1 index 562834b46c99..2a9c65d73acb 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListLicensesQueue.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListLicensesQueue.ps1 @@ -11,16 +11,22 @@ function Push-ListLicensesQueue { $domainName = $Item.defaultDomainName try { Write-Host "Processing $domainName" - $Overview = Get-CIPPLicenseOverview -TenantFilter $domainName + $Licenses = Get-CIPPLicenseOverview -TenantFilter $domainName } catch { - $Overview = [pscustomobject]@{ + $Licenses = [pscustomobject]@{ Tenant = [string]$domainName License = "Could not connect to client: $($_.Exception.Message)" 'PartitionKey' = 'License' - 'RowKey' = "$($domainName)-$((New-Guid).Guid)" + 'RowKey' = "$($domainName)" } } finally { $Table = Get-CIPPTable -TableName cachelicenses + $JSON = ConvertTo-Json -Depth 10 -Compress -InputObject @($Licenses) + $Overview = [pscustomobject]@{ + License = [string]$JSON + 'PartitionKey' = 'License' + 'RowKey' = "$($domainName)" + } Add-CIPPAzDataTableEntity @Table -Entity $Overview -Force | Out-Null } -} \ No newline at end of file +} diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListMailQuarantineAllTenants.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListMailQuarantineAllTenants.ps1 index 0f46c617dd0d..34398c9567bd 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListMailQuarantineAllTenants.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ListMailQuarantineAllTenants.ps1 @@ -12,7 +12,7 @@ try { $quarantineMessages = New-ExoRequest -tenantid $domainName -cmdlet 'Get-QuarantineMessage' -cmdParams @{ 'PageSize' = 1000 } | Select-Object -ExcludeProperty *data.type* - $GraphRequest = foreach ($message in $quarantineMessages) { + foreach ($message in $quarantineMessages) { $messageData = @{ QuarantineMessage = [string]($message | ConvertTo-Json -Depth 10 -Compress) RowKey = [string](New-Guid).Guid diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-SchedulerCIPPNotifications.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-SchedulerCIPPNotifications.ps1 index 438511222545..bc1d438f1a99 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-SchedulerCIPPNotifications.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-SchedulerCIPPNotifications.ps1 @@ -115,6 +115,7 @@ function Push-SchedulerCIPPNotifications { } if ($CurrentStandardsLogs) { + $Data = $CurrentStandardsLogs $JSONContent = New-CIPPAlertTemplate -Data $Data -Format 'json' -InputObject 'table' -CIPPURL $CIPPURL $CurrentStandardsLogs | ConvertTo-Json -Compress Send-CIPPAlert -Type 'webhook' -JSONContent $JSONContent -TenantFilter $Tenant -APIName 'Alerts' diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPDriftManagement.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPDriftManagement.ps1 index e5d7fe008cbb..bdd3d2d2bf81 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPDriftManagement.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPDriftManagement.ps1 @@ -12,58 +12,70 @@ function Push-CippDriftManagement { try { $Drift = Get-CIPPDrift -TenantFilter $Item.Tenant if ($Drift.newDeviationsCount -gt 0) { - $Settings = (Get-CIPPTenantAlignment -TenantFilter $Item.Tenant | Where-Object -Property standardType -EQ 'drift') + $Settings = $Drift.driftSettings $email = $Settings.driftAlertEmail $webhook = $Settings.driftAlertWebhook $CippConfigTable = Get-CippTable -tablename Config $CippConfig = Get-CIPPAzDataTableEntity @CippConfigTable -Filter "PartitionKey eq 'InstanceProperties' and RowKey eq 'CIPPURL'" $CIPPURL = 'https://{0}' -f $CippConfig.Value - $Data = $Drift.currentDeviations | ForEach-Object { - $currentValue = if ($_.receivedValue -and $_.receivedValue.Length -gt 200) { - $_.receivedValue.Substring(0, 200) + '...' + + # Process deviations more efficiently with foreach instead of ForEach-Object + $Data = foreach ($deviation in $Drift.currentDeviations) { + $currentValue = if ($deviation.receivedValue -and $deviation.receivedValue.Length -gt 200) { + $deviation.receivedValue.Substring(0, 200) + '...' } else { - $_.receivedValue + $deviation.receivedValue } [PSCustomObject]@{ - Standard = $_.standardDisplayName ? $_.standardDisplayName : $_.standardName - 'Expected Value' = $_.expectedValue + Standard = $deviation.standardDisplayName ? $deviation.standardDisplayName : $deviation.standardName + 'Expected Value' = $deviation.expectedValue 'Current Value' = $currentValue - Status = $_.status + Status = $deviation.status } } $GenerateEmail = New-CIPPAlertTemplate -format 'html' -data $Data -CIPPURL $CIPPURL -Tenant $Item.Tenant -InputObject 'driftStandard' -AuditLogLink $drift.standardId - $CIPPAlert = @{ - Type = 'email' - Title = $GenerateEmail.title - HTMLContent = $GenerateEmail.htmlcontent - TenantFilter = $Item.Tenant - } - Write-Host 'Going to send the mail' - Send-CIPPAlert @CIPPAlert -altEmail $email - $WebhookData = @{ - Title = $GenerateEmail.title - ActionUrl = $GenerateEmail.ButtonUrl - ActionText = $GenerateEmail.ButtonText - AlertData = $Data - Tenant = $Item.Tenant - } | ConvertTo-Json -Depth 15 -Compress - $CippAlert = @{ - Type = 'webhook' - Title = $GenerateEmail.title - JSONContent = $WebhookData - TenantFilter = $Item.Tenant - } - Write-Host 'Sending Webhook Content' - Send-CIPPAlert @CippAlert -altWebhook $webhook - #Always do PSA. - $CIPPAlert = @{ - Type = 'psa' - Title = $GenerateEmail.title - HTMLContent = $GenerateEmail.htmlcontent - TenantFilter = $Item.Tenant + + # Check if notifications are disabled (default to false if not set) + if (-not $Settings.driftAlertDisableEmail) { + # Send email alert if configured + $CIPPAlert = @{ + Type = 'email' + Title = $GenerateEmail.title + HTMLContent = $GenerateEmail.htmlcontent + TenantFilter = $Item.Tenant + } + Write-Information "Sending email alert for tenant $($Item.Tenant)" + Send-CIPPAlert @CIPPAlert -altEmail $email + + # Send webhook alert if configured + $WebhookData = @{ + Title = $GenerateEmail.title + ActionUrl = $GenerateEmail.ButtonUrl + ActionText = $GenerateEmail.ButtonText + AlertData = $Data + Tenant = $Item.Tenant + } | ConvertTo-Json -Depth 5 -Compress + $CippAlert = @{ + Type = 'webhook' + Title = $GenerateEmail.title + JSONContent = $WebhookData + TenantFilter = $Item.Tenant + } + Write-Information "Sending webhook alert for tenant $($Item.Tenant)" + Send-CIPPAlert @CippAlert -altWebhook $webhook + + # Send PSA alert + $CIPPAlert = @{ + Type = 'psa' + Title = $GenerateEmail.title + HTMLContent = $GenerateEmail.htmlcontent + TenantFilter = $Item.Tenant + } + Send-CIPPAlert @CIPPAlert + } else { + Write-Information "All notifications disabled for tenant $($Item.Tenant)" } - Send-CIPPAlert @CIPPAlert return $true } else { Write-LogMessage -API 'DriftStandards' -tenant $Item.Tenant -message "No new drift deviations found for tenant $($Item.Tenant)" -sev Info diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandard.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandard.ps1 index 758fac1e6add..020ff3a469f9 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandard.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandard.ps1 @@ -8,9 +8,11 @@ function Push-CIPPStandard { ) Write-Information "Received queue item for $($Item.Tenant) and standard $($Item.Standard)." + $Tenant = $Item.Tenant $Standard = $Item.Standard $FunctionName = 'Invoke-CIPPStandard{0}' -f $Standard + Write-Information "We'll be running $FunctionName" if ($Standard -in @('IntuneTemplate', 'ConditionalAccessTemplate')) { @@ -38,7 +40,35 @@ function Push-CIPPStandard { $StandardInfo.ConditionalAccessTemplateId = $Item.Settings.TemplateList.value } - $Script:StandardInfo = $StandardInfo + # Initialize AsyncLocal storage for thread-safe per-invocation context + if (-not $script:CippStandardInfoStorage) { + $script:CippStandardInfoStorage = [System.Threading.AsyncLocal[object]]::new() + } + $script:CippStandardInfoStorage.Value = $StandardInfo + + # ---- Standard execution telemetry ---- + $runId = [guid]::NewGuid().ToString() + $invocationId = if ($ExecutionContext -and $ExecutionContext.InvocationId) { + "$($ExecutionContext.InvocationId)" + } else { + $null + } + + $sw = [System.Diagnostics.Stopwatch]::StartNew() + $result = 'Unknown' + $err = $null + + Write-Information -Tag 'CIPPStandardStart' -MessageData (@{ + Kind = 'CIPPStandardStart' + RunId = $runId + InvocationId = $invocationId + Tenant = $Tenant + Standard = $Standard + TemplateId = $Item.templateId + API = $API + FunctionName = $FunctionName + } | ConvertTo-Json -Compress) + # ------------------------------------- try { # Convert settings to JSON, replace %variables%, then convert back to object @@ -49,14 +79,55 @@ function Push-CIPPStandard { $Settings = $Item.Settings } - & $FunctionName -Tenant $Item.Tenant -Settings $Settings -ErrorAction Stop + # Prepare telemetry metadata for standard execution + $metadata = @{ + Standard = $Standard + Tenant = $Tenant + TemplateId = $Item.templateId + FunctionName = $FunctionName + TriggerType = 'Standard' + } + + if ($Standard -eq 'IntuneTemplate' -and $Item.Settings.TemplateList.value) { + $metadata['IntuneTemplateId'] = $Item.Settings.TemplateList.value + } + if ($Standard -eq 'ConditionalAccessTemplate' -and $Item.Settings.TemplateList.value) { + $metadata['CATemplateId'] = $Item.Settings.TemplateList.value + } + + Measure-CippTask -TaskName $Standard -EventName 'CIPP.StandardCompleted' -Metadata $metadata -Script { + & $FunctionName -Tenant $Item.Tenant -Settings $Settings -ErrorAction Stop + } + + $result = 'Success' Write-Information "Standard $($Standard) completed for tenant $($Tenant)" } catch { + $result = 'Failed' + $err = $_.Exception.Message + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Error running standard $($Standard) for tenant $($Tenant) - $($_.Exception.Message)" -sev Error -LogData (Get-CippException -Exception $_) Write-Warning "Error running standard $($Standard) for tenant $($Tenant) - $($_.Exception.Message)" Write-Information $_.InvocationInfo.PositionMessage throw $_.Exception.Message } finally { - Remove-Variable -Name StandardInfo -Scope Script -ErrorAction SilentlyContinue + $sw.Stop() + + Write-Information -Tag 'CIPPStandardEnd' -MessageData (@{ + Kind = 'CIPPStandardEnd' + RunId = $runId + InvocationId = $invocationId + Tenant = $Tenant + Standard = $Standard + TemplateId = $Item.templateId + API = $API + FunctionName = $FunctionName + Result = $result + ElapsedMs = $sw.ElapsedMilliseconds + Error = $err + } | ConvertTo-Json -Compress) + + if ($script:CippStandardInfoStorage) { + $script:CippStandardInfoStorage.Value = $null + } } } diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsApplyBatch.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsApplyBatch.ps1 new file mode 100644 index 000000000000..da334d1686a2 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsApplyBatch.ps1 @@ -0,0 +1,41 @@ +function Push-CIPPStandardsApplyBatch { + <# + .FUNCTIONALITY + Entrypoint + #> + param($Item) + + try { + # Aggregate all standards from all tenants + $AllStandards = $Item.Results | ForEach-Object { + foreach ($Standard in $_) { + if ($Standard -and $Standard.FunctionName -eq 'CIPPStandard') { + $Standard + } + } + } + + if ($AllStandards.Count -eq 0) { + Write-Information 'No standards to apply across all tenants' + return + } + + Write-Information "Aggregated $($AllStandards.Count) standards from all tenants: $($AllStandards | ConvertTo-Json -Depth 5 -Compress)" + + # Start orchestrator to apply standards + $InputObject = [PSCustomObject]@{ + OrchestratorName = 'StandardsApply' + Batch = @($AllStandards) + SkipLog = $true + } | ConvertTo-Json -Depth 25 -Compress + Write-Host "Standards InputObject: $InputObject" + $InstanceId = Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject $InputObject + Write-Information "Started standards apply orchestrator with ID = '$InstanceId'" + + } catch { + Write-Warning "Error in standards apply batch aggregation: $($_.Exception.Message)" + } + return @{ + Success = $true + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsList.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsList.ps1 new file mode 100644 index 000000000000..9cd477e3b68a --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsList.ps1 @@ -0,0 +1,200 @@ +function Push-CIPPStandardsList { + <# + .FUNCTIONALITY + Entrypoint + #> + param($Item) + + $TenantFilter = $Item.TenantFilter + $runManually = $Item.runManually + $TemplateId = $Item.TemplateId + + try { + # Get standards for this tenant + $GetStandardParams = @{ + TenantFilter = $TenantFilter + runManually = $runManually + } + if ($TemplateId) { + $GetStandardParams['TemplateId'] = $TemplateId + } + + $AllStandards = Get-CIPPStandards @GetStandardParams + + if ($AllStandards.Count -eq 0) { + Write-Information "No standards found for tenant $TenantFilter" + return @() + } + Write-Host "Retrieved $($AllStandards.Count) standards for tenant $TenantFilter before filtering." + # Build hashtable for efficient lookup + $ComputedStandards = @{} + foreach ($Standard in $AllStandards) { + $Key = "$($Standard.Standard)|$($Standard.Settings.TemplateList.value)" + $ComputedStandards[$Key] = $Standard + } + + # Check if IntuneTemplate standards are present + $IntuneTemplateFound = ($ComputedStandards.Keys.Where({ $_ -like '*IntuneTemplate*' }, 'First').Count -gt 0) + + if ($IntuneTemplateFound) { + # Perform license check + $TestResult = Test-CIPPStandardLicense -StandardName 'IntuneTemplate_general' -TenantFilter $TenantFilter -RequiredCapabilities @('INTUNE_A', 'MDM_Services', 'EMS', 'SCCM', 'MICROSOFTINTUNEPLAN1') + + if (-not $TestResult) { + # Remove IntuneTemplate standards and set compare fields + $IntuneKeys = @($ComputedStandards.Keys | Where-Object { $_ -like '*IntuneTemplate*' }) + $BulkFields = [System.Collections.Generic.List[object]]::new() + + foreach ($Key in $IntuneKeys) { + $TemplateKey = ($Key -split '\|', 2)[1] + if ($TemplateKey) { + $BulkFields.Add([PSCustomObject]@{ + FieldName = "standards.IntuneTemplate.$TemplateKey" + FieldValue = 'This tenant does not have the required license for this standard.' + }) + } + [void]$ComputedStandards.Remove($Key) + } + + if ($BulkFields.Count -gt 0) { + Set-CIPPStandardsCompareField -TenantFilter $TenantFilter -BulkFields $BulkFields + } + + Write-Information "Removed IntuneTemplate standards for $TenantFilter - missing required license" + } else { + # License valid - check policy timestamps to filter unchanged templates + $TypeMap = @{ + Device = 'deviceManagement/deviceConfigurations' + Catalog = 'deviceManagement/configurationPolicies' + Admin = 'deviceManagement/groupPolicyConfigurations' + deviceCompliancePolicies = 'deviceManagement/deviceCompliancePolicies' + AppProtection_Android = 'deviceAppManagement/androidManagedAppProtections' + AppProtection_iOS = 'deviceAppManagement/iosManagedAppProtections' + } + + $BulkRequests = $TypeMap.GetEnumerator() | ForEach-Object { + @{ + id = $_.Key + url = "$($_.Value)?`$orderby=lastModifiedDateTime desc&`$select=id,lastModifiedDateTime&`$top=999" + method = 'GET' + } + } + + try { + $TrackingTable = Get-CippTable -tablename 'IntunePolicyTypeTracking' + $BulkResults = New-GraphBulkRequest -Requests $BulkRequests -tenantid $TenantFilter -NoPaginateIds @($BulkRequests.id) + $PolicyTimestamps = @{} + + foreach ($Result in $BulkResults) { + $GraphTime = $Result.body.value[0].lastModifiedDateTime + $GraphId = $Result.body.value[0].id + $GraphCount = ($Result.body.value | Measure-Object).Count + $Cached = Get-CIPPAzDataTableEntity @TrackingTable -Filter "PartitionKey eq '$TenantFilter' and RowKey eq '$($Result.id)'" + + $CountChanged = $false + if ($Cached -and $Cached.PolicyCount -ne $null) { + $CountChanged = ($GraphCount -ne $Cached.PolicyCount) + } + + $IdChanged = $false + if ($GraphId -and $Cached -and $Cached.LatestPolicyId) { + $IdChanged = ($GraphId -ne $Cached.LatestPolicyId) + } + + if ($GraphTime) { + $GraphTimeUtc = ([DateTime]$GraphTime).ToUniversalTime() + if ($Cached -and $Cached.LatestPolicyModified -and -not $IdChanged -and -not $CountChanged) { + $CachedTimeUtc = ([DateTimeOffset]$Cached.LatestPolicyModified).UtcDateTime + $TimeDiff = [Math]::Abs(($GraphTimeUtc - $CachedTimeUtc).TotalSeconds) + $Changed = ($TimeDiff -gt 60) + } else { + $Changed = $true + } + Add-CIPPAzDataTableEntity @TrackingTable -Entity @{ + PartitionKey = $TenantFilter + RowKey = $Result.id + LatestPolicyModified = $GraphTime + LatestPolicyId = $GraphId + PolicyCount = $GraphCount + } -Force | Out-Null + } else { + $Changed = $true + } + + $PolicyTimestamps[$Result.id] = $Changed + } + + # Filter unchanged templates + $TemplateTable = Get-CippTable -tablename 'templates' + $StandardTemplateTable = Get-CippTable -tablename 'templates' + $IntuneKeys = @($ComputedStandards.Keys | Where-Object { $_ -like '*IntuneTemplate*' }) + + foreach ($Key in $IntuneKeys) { + $Template = $ComputedStandards[$Key] + $TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable -Filter "PartitionKey eq 'IntuneTemplate' and RowKey eq '$($Template.Settings.TemplateList.value)'" + + if (-not $TemplateEntity) { continue } + + $ParsedTemplate = $TemplateEntity.JSON | ConvertFrom-Json + if (-not $ParsedTemplate.Type) { continue } + + $PolicyType = $ParsedTemplate.Type + $PolicyChanged = if ($PolicyType -eq 'AppProtection') { + [bool]($PolicyTimestamps['AppProtection_Android'] -or $PolicyTimestamps['AppProtection_iOS']) + } else { + [bool]$PolicyTimestamps[$PolicyType] + } + + # Check StandardTemplate changes + $StandardTemplate = Get-CIPPAzDataTableEntity @StandardTemplateTable -Filter "PartitionKey eq 'StandardsTemplateV2' and RowKey eq '$($Template.TemplateId)'" + $StandardTemplateChanged = $false + + if ($StandardTemplate) { + $StandardTimeUtc = ([DateTimeOffset]$StandardTemplate.Timestamp).UtcDateTime + $CachedStandardTemplate = Get-CIPPAzDataTableEntity @TrackingTable -Filter "PartitionKey eq '$TenantFilter' and RowKey eq 'StandardTemplate_$($Template.TemplateId)'" + + if ($CachedStandardTemplate -and $CachedStandardTemplate.CachedTimestamp) { + $CachedStandardTimeUtc = ([DateTimeOffset]$CachedStandardTemplate.CachedTimestamp).UtcDateTime + $TimeDiff = [Math]::Abs(($StandardTimeUtc - $CachedStandardTimeUtc).TotalSeconds) + $StandardTemplateChanged = ($TimeDiff -gt 60) + } else { + $StandardTemplateChanged = $true + } + + Add-CIPPAzDataTableEntity @TrackingTable -Entity @{ + PartitionKey = $TenantFilter + RowKey = "StandardTemplate_$($Template.TemplateId)" + CachedTimestamp = $StandardTemplate.Timestamp + } -Force | Out-Null + } + + # Remove if both unchanged + if (-not $PolicyChanged -and -not $StandardTemplateChanged) { +x [void]$ComputedStandards.Remove($Key) + } + } + } catch { + Write-Warning "Timestamp check failed for $TenantFilter : $($_.Exception.Message)" + } + } + } + + Write-Host "Returning $($ComputedStandards.Count) standards for tenant $TenantFilter after filtering." + # Return filtered standards + $FilteredStandards = $ComputedStandards.Values | ForEach-Object { + [PSCustomObject]@{ + Tenant = $_.Tenant + Standard = $_.Standard + Settings = $_.Settings + TemplateId = $_.TemplateId + FunctionName = 'CIPPStandard' + } + } + Write-Host "Sending back $($FilteredStandards.Count) standards: $($FilteredStandards | ConvertTo-Json -Depth 5 -Compress)" + return $FilteredStandards + + } catch { + Write-Warning "Error listing standards for $TenantFilter : $($_.Exception.Message)" + return @() + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecAppInsightsQuery.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecAppInsightsQuery.ps1 new file mode 100644 index 000000000000..23868530621f --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecAppInsightsQuery.ps1 @@ -0,0 +1,51 @@ +function Invoke-ExecAppInsightsQuery { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + CIPP.SuperAdmin.Read + #> + [CmdletBinding()] + param ( + $Request, + $TriggerMetadata + ) + + $Query = $Request.Body.query ?? $Request.Query.query + if (-not $Query) { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::BadRequest + Body = @{ + Results = 'No query provided in request body.' + } + } + } + + try { + $LogData = Get-ApplicationInsightsQuery -Query $Query + + $Body = @{ + Results = @($LogData) + Metadata = @{ + Query = $Query + } + } | ConvertTo-Json -Depth 10 -Compress + + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::OK + Body = $Body + } + + } catch { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::InternalServerError + Body = @{ + Results = "$($_.Exception.Message)" + Metadata = @{ + Query = $Query + Exception = Get-CippException -Exception $_ + } + } + } + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecDiagnosticsPresets.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecDiagnosticsPresets.ps1 new file mode 100644 index 000000000000..9cab483eba99 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecDiagnosticsPresets.ps1 @@ -0,0 +1,89 @@ +function Invoke-ExecDiagnosticsPresets { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + CIPP.SuperAdmin.ReadWrite + #> + [CmdletBinding()] + param ( + $Request, + $TriggerMetadata + ) + + try { + $Table = Get-CIPPTable -TableName 'DiagnosticsPresets' + $Action = $Request.Body.action + $GUID = $Request.Body.GUID + + if ($Action -eq 'delete') { + if (-not $GUID) { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::BadRequest + Body = @{ + Results = 'GUID is required for delete action' + } + } + } + + Remove-AzDataTableEntity @Table -Entity @{ + PartitionKey = 'Preset' + RowKey = $GUID + } + + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::OK + Body = @{ + Results = 'Preset deleted successfully' + } + } + } else { + # Save or update preset + $Name = $Request.Body.name + $Query = $Request.Body.query + + if (-not $Name -or -not $Query) { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::BadRequest + Body = @{ + Results = 'Name and query are required' + } + } + } + + # Use provided GUID or generate new one + if (-not $GUID) { + $GUID = (New-Guid).Guid + } + + # Convert query to compressed JSON for storage + $QueryJson = ConvertTo-Json -InputObject @{ query = $Query } -Compress + + $Entity = @{ + PartitionKey = 'Preset' + RowKey = [string]$GUID + name = [string]$Name + data = [string]$QueryJson + } + + Add-CIPPAzDataTableEntity @Table -Entity $Entity -Force + + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::OK + Body = @{ + Results = 'Preset saved successfully' + Metadata = @{ + GUID = $GUID + } + } + } + } + } catch { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::InternalServerError + Body = @{ + Error = "Failed to manage diagnostics preset: $($_.Exception.Message)" + } + } + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecPartnerWebhook.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecPartnerWebhook.ps1 index 21febc29a539..4799774c2025 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecPartnerWebhook.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecPartnerWebhook.ps1 @@ -18,8 +18,13 @@ function Invoke-ExecPartnerWebhook { $ConfigTable = Get-CIPPTable -TableName Config $WebhookConfig = Get-CIPPAzDataTableEntity @ConfigTable -Filter "RowKey eq 'PartnerWebhookOnboarding'" - if ($WebhookConfig.StandardsExcludeAllTenants -eq $true) { - $Results | Add-Member -MemberType NoteProperty -Name 'standardsExcludeAllTenants' -Value $true -Force + if ($WebhookConfig) { + $Results | Add-Member -MemberType NoteProperty -Name 'enabled' -Value ([bool]$WebhookConfig.Enabled) -Force + if ($WebhookConfig.StandardsExcludeAllTenants -eq $true) { + $Results | Add-Member -MemberType NoteProperty -Name 'standardsExcludeAllTenants' -Value $true -Force + } + } else { + $Results | Add-Member -MemberType NoteProperty -Name 'enabled' -Value $false -Force } } catch {} if (!$Results) { @@ -27,6 +32,7 @@ function Invoke-ExecPartnerWebhook { webhoookUrl = 'None' lastModifiedTimestamp = 'Never' webhookEvents = @() + enabled = $false } } } @@ -50,6 +56,7 @@ function Invoke-ExecPartnerWebhook { $PartnerWebhookOnboarding = [PSCustomObject]@{ PartitionKey = 'Config' RowKey = 'PartnerWebhookOnboarding' + Enabled = [bool]$Request.Body.enabled StandardsExcludeAllTenants = $Request.Body.standardsExcludeAllTenants } Add-CIPPAzDataTableEntity @ConfigTable -Entity $PartnerWebhookOnboarding -Force | Out-Null diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListApiTest.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListApiTest.ps1 index db079c9d79f7..56784611a481 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListApiTest.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListApiTest.ps1 @@ -10,6 +10,7 @@ function Invoke-ListApiTest { $Response = @{} $Response.Request = $Request + $Response.TriggerMetadata = $TriggerMetadata if ($env:DEBUG_ENV_VARS -eq 'true') { $BlockedKeys = @('ApplicationSecret', 'RefreshToken', 'AzureWebJobsStorage', 'DEPLOYMENT_STORAGE_CONNECTION_STRING') $EnvironmentVariables = [PSCustomObject]@{} @@ -17,9 +18,15 @@ function Invoke-ListApiTest { $EnvironmentVariables | Add-Member -NotePropertyName $_.Name -NotePropertyValue $_.Value } $Response.EnvironmentVariables = $EnvironmentVariables + + # test New-CIPPAzRestRequest KQL for resource graph + $Query = 'Resources | project name, type' + $Json = ConvertTo-Json -Depth 10 -Compress -InputObject @{ query = $Query } + $Request = New-CIPPAzRestRequest -Method POST -Resource 'https://management.azure.com/' -Uri 'https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01' -Body $Json + $Response.ResourceGraphTest = $Request } - $Response.AllowedTenants = $script:AllowedTenants - $Response.AllowedGroups = $script:AllowedGroups + $Response.AllowedTenants = $script:CippAllowedTenantsStorage.Value + $Response.AllowedGroups = $script:CippAllowedGroupsStorage.Value return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::OK diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListDiagnosticsPresets.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListDiagnosticsPresets.ps1 new file mode 100644 index 000000000000..a52b7c6e0982 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ListDiagnosticsPresets.ps1 @@ -0,0 +1,37 @@ +function Invoke-ListDiagnosticsPresets { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + CIPP.SuperAdmin.Read + #> + [CmdletBinding()] + param ( + $Request, + $TriggerMetadata + ) + + try { + $Table = Get-CIPPTable -TableName 'DiagnosticsPresets' + $Presets = Get-CIPPAzDataTableEntity @Table | ForEach-Object { + $Data = $_.data | ConvertFrom-Json + [PSCustomObject]@{ + GUID = $_.RowKey + name = $_.name + query = $Data.query + } + } + + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::OK + Body = @($Presets) + } + } catch { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::InternalServerError + Body = @{ + Error = "Failed to list diagnostics presets: $($_.Exception.Message)" + } + } + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 index a9ef82959f51..043b12fea790 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 @@ -7,7 +7,7 @@ function Invoke-ExecBackendURLs { #> [CmdletBinding()] param($Request, $TriggerMetadata) - $Subscription = ($env:WEBSITE_OWNER_NAME).split('+') | Select-Object -First 1 + $Subscription = Get-CIPPAzFunctionAppSubId $SWAName = $env:WEBSITE_SITE_NAME -replace 'cipp', 'CIPP-SWA-' # Write to the Azure Functions log stream. @@ -32,6 +32,12 @@ function Invoke-ExecBackendURLs { RGName = $RGName FunctionName = $env:WEBSITE_SITE_NAME SWAName = $SWAName + Hosted = $env:CIPP_HOSTED -eq 'true' ?? $false + OS = $IsLinux ? 'Linux' : 'Windows' + SKU = $env:WEBSITE_SKU + Timezone = $env:WEBSITE_TIME_ZONE ?? 'UTC' + BusinessHoursStart = $env:CIPP_BUSINESS_HOURS_START ?? '09:00' + BusinessHoursEnd = $env:CIPP_BUSINESS_HOURS_END ?? '17:00' } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackupRetentionConfig.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackupRetentionConfig.ps1 new file mode 100644 index 000000000000..064784c49851 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackupRetentionConfig.ps1 @@ -0,0 +1,56 @@ +function Invoke-ExecBackupRetentionConfig { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + CIPP.AppSettings.ReadWrite + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + $Table = Get-CIPPTable -TableName Config + $Filter = "PartitionKey eq 'BackupRetention' and RowKey eq 'Settings'" + + $results = try { + if ($Request.Query.List) { + $RetentionSettings = Get-CIPPAzDataTableEntity @Table -Filter $Filter + if (!$RetentionSettings) { + # Return default values if not set + @{ + RetentionDays = 30 + } + } else { + @{ + RetentionDays = [int]$RetentionSettings.RetentionDays + } + } + } else { + $RetentionDays = [int]$Request.Body.RetentionDays + + # Validate minimum value + if ($RetentionDays -lt 7) { + throw 'Retention days must be at least 7 days' + } + + $RetentionConfig = @{ + 'RetentionDays' = $RetentionDays + 'PartitionKey' = 'BackupRetention' + 'RowKey' = 'Settings' + } + + Add-CIPPAzDataTableEntity @Table -Entity $RetentionConfig -Force | Out-Null + Write-LogMessage -headers $Request.Headers -API $Request.Params.CIPPEndpoint -message "Set backup retention to $RetentionDays days" -Sev 'Info' + "Successfully set backup retention to $RetentionDays days" + } + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -headers $Request.Headers -API $Request.Params.CIPPEndpoint -message "Failed to set backup retention configuration: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage + "Failed to set configuration: $($ErrorMessage.NormalizedError)" + } + + $body = [pscustomobject]@{'Results' = $Results } + + return ([HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::OK + Body = $body + }) +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecExchangeRoleRepair.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecExchangeRoleRepair.ps1 index 4ce8b2264706..c208252b3dca 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecExchangeRoleRepair.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecExchangeRoleRepair.ps1 @@ -22,7 +22,7 @@ function Invoke-ExecExchangeRoleRepair { Write-Information "Found $($RoleDefinitions.Count) Exchange role definitions" $BasePath = Get-Module -Name 'CIPPCore' | Select-Object -ExpandProperty ModuleBase - $AllOrgManagementRoles = Get-Content -Path "$BasePath\Public\OrganizationManagementRoles.json" -ErrorAction Stop | ConvertFrom-Json + $AllOrgManagementRoles = Get-Content -Path "$BasePath\lib\data\OrganizationManagementRoles.json" -ErrorAction Stop | ConvertFrom-Json $AvailableRoles = $RoleDefinitions | Where-Object -Property displayName -In $AllOrgManagementRoles | Select-Object -Property displayName, id, description Write-Information "Found $($AvailableRoles.Count) available Organization Management roles in Exchange" diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecMaintenanceScripts.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecMaintenanceScripts.ps1 index 9fba0a453be0..d543ce5a2770 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecMaintenanceScripts.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecMaintenanceScripts.ps1 @@ -17,7 +17,7 @@ Function Invoke-ExecMaintenanceScripts { '##TENANTID##' = $env:TenantID '##RESOURCEGROUP##' = $env:WEBSITE_RESOURCE_GROUP '##FUNCTIONAPP##' = $env:WEBSITE_SITE_NAME - '##SUBSCRIPTION##' = (($env:WEBSITE_OWNER_NAME).split('+') | Select-Object -First 1) + '##SUBSCRIPTION##' = Get-CIPPAzFunctionAppSubId '##TOKENIP##' = $AccessTokenDetails.IPAddress } } catch { Write-Host $_.Exception.Message } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecPermissionRepair.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecPermissionRepair.ps1 index 52d1a81378ad..513e0bd5aca0 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecPermissionRepair.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecPermissionRepair.ps1 @@ -13,70 +13,9 @@ function Invoke-ExecPermissionRepair { param($Request, $TriggerMetadata) try { - $Table = Get-CippTable -tablename 'AppPermissions' $User = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Request.Headers.'x-ms-client-principal')) | ConvertFrom-Json - - $CurrentPermissions = Get-CippSamPermissions - if (($CurrentPermissions.MissingPermissions | Measure-Object).Count -gt 0) { - Write-Information 'Missing permissions found' - $MissingPermissions = $CurrentPermissions.MissingPermissions - $Permissions = $CurrentPermissions.Permissions - - $AppIds = @($Permissions.PSObject.Properties.Name + $MissingPermissions.PSObject.Properties.Name) - - $NewPermissions = @{} - foreach ($AppId in $AppIds) { - if (!$AppId) { continue } - $ApplicationPermissions = [system.collections.generic.list[object]]::new() - $DelegatedPermissions = [system.collections.generic.list[object]]::new() - - # App permissions - foreach ($Permission in $Permissions.$AppId.applicationPermissions) { - $ApplicationPermissions.Add($Permission) - } - if (($MissingPermissions.$AppId.applicationPermissions | Measure-Object).Count -gt 0) { - foreach ($MissingPermission in $MissingPermissions.$AppId.applicationPermissions) { - Write-Host "Adding missing permission: $MissingPermission" - $ApplicationPermissions.Add($MissingPermission) - } - } - - # Delegated permissions - foreach ($Permission in $Permissions.$AppId.delegatedPermissions) { - $DelegatedPermissions.Add($Permission) - } - if (($MissingPermissions.$AppId.delegatedPermissions | Measure-Object).Count -gt 0) { - foreach ($MissingPermission in $MissingPermissions.$AppId.delegatedPermissions) { - Write-Host "Adding missing permission: $MissingPermission" - $DelegatedPermissions.Add($MissingPermission) - } - } - # New permission object - $NewPermissions.$AppId = @{ - applicationPermissions = @($ApplicationPermissions | Sort-Object -Property label) - delegatedPermissions = @($DelegatedPermissions | Sort-Object -Property label) - } - } - - - $Entity = @{ - 'PartitionKey' = 'CIPP-SAM' - 'RowKey' = 'CIPP-SAM' - 'Permissions' = [string]([PSCustomObject]$NewPermissions | ConvertTo-Json -Depth 10 -Compress) - 'UpdatedBy' = $User.UserDetails ?? 'CIPP-API' - } - $Table = Get-CIPPTable -TableName 'AppPermissions' - $null = Add-CIPPAzDataTableEntity @Table -Entity $Entity -Force - - $Body = @{ - 'Results' = 'Permissions Updated' - } - Write-LogMessage -headers $Request.Headers -API 'ExecPermissionRepair' -message 'CIPP-SAM Permissions Updated' -Sev 'Info' -LogData $Permissions - } else { - $Body = @{ - 'Results' = 'No permissions to update' - } - } + $Result = Update-CippSamPermissions -UpdatedBy ($User.UserDetails ?? 'CIPP-API') + $Body = @{'Results' = $Result } } catch { $Body = @{ 'Results' = "$($_.Exception.Message) - at line $($_.InvocationInfo.ScriptLineNumber)" diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecTimeSettings.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecTimeSettings.ps1 new file mode 100644 index 000000000000..ef058b8a94b2 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecTimeSettings.ps1 @@ -0,0 +1,97 @@ +function Invoke-ExecTimeSettings { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + CIPP.SuperAdmin.ReadWrite + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + + try { + $Subscription = Get-CIPPAzFunctionAppSubId + $Owner = $env:WEBSITE_OWNER_NAME + + if ($env:WEBSITE_SKU -ne 'FlexConsumption' -and $Owner -match '^(?[^+]+)\+(?[^-]+(?:-[^-]+)*?)(?:-[^-]+webspace(?:-Linux)?)?$') { + $RGName = $Matches.RGName + } else { + $RGName = $env:WEBSITE_RESOURCE_GROUP + } + + $FunctionName = $env:WEBSITE_SITE_NAME + $Timezone = $Request.Body.Timezone.value ?? $Request.Body.Timezone + $BusinessHoursStart = $Request.Body.BusinessHoursStart.value ?? $Request.Body.BusinessHoursStart + + # Validate timezone format + if (-not $Timezone) { + throw 'Timezone is required' + } + + if (!$IsLinux) { + # Get Timezone standard name for Windows + $Timezone = Get-TimeZone -Id $Timezone | Select-Object -ExpandProperty StandardName + } + + # Calculate business hours end time (10 hours after start) + $BusinessHoursEnd = $null + if ($env:WEBSITE_SKU -eq 'FlexConsumption') { + if (-not $BusinessHoursStart) { + throw 'Business hours start time is required for Flex Consumption plans' + } + + # Validate time format (HH:mm) + if ($BusinessHoursStart -notmatch '^\d{2}:\d{2}$') { + throw 'Business hours start time must be in HH:mm format' + } + + # Calculate end time (start + 10 hours) + $StartTime = [DateTime]::ParseExact($BusinessHoursStart, 'HH:mm', $null) + $EndTime = $StartTime.AddHours(10) + $BusinessHoursEnd = $EndTime.ToString('HH:mm') + } + + Write-Information "Updating function app time settings: Timezone=$Timezone, BusinessHoursStart=$BusinessHoursStart, BusinessHoursEnd=$BusinessHoursEnd" + + # Build app settings hashtable + $AppSettings = @{ + 'WEBSITE_TIME_ZONE' = $Timezone + } + + if ($env:WEBSITE_SKU -eq 'FlexConsumption') { + $AppSettings['CIPP_BUSINESS_HOURS_START'] = $BusinessHoursStart + $AppSettings['CIPP_BUSINESS_HOURS_END'] = $BusinessHoursEnd + } + + # Update app settings using ARM REST via managed identity + Update-CIPPAzFunctionAppSetting -Name $FunctionName -ResourceGroupName $RGName -AppSetting $AppSettings | Out-Null + + Write-LogMessage -API 'ExecTimeSettings' -headers $Request.Headers -message "Updated time settings: Timezone=$Timezone, BusinessHours=$BusinessHoursStart-$BusinessHoursEnd" -Sev 'Info' + + $Results = @{ + Results = 'Time settings updated successfully. Please note that timezone changes may require a function app restart to take effect.' + Timezone = $Timezone + SKU = $env:WEBSITE_SKU + } + + if ($env:WEBSITE_SKU -eq 'FlexConsumption') { + $Results.BusinessHoursStart = $BusinessHoursStart + $Results.BusinessHoursEnd = $BusinessHoursEnd + } + + return ([HttpResponseContext]@{ + StatusCode = [httpstatusCode]::OK + Body = $Results + }) + + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -API 'ExecTimeSettings' -headers $Request.Headers -message "Failed to update time settings: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage + + return ([HttpResponseContext]@{ + StatusCode = [httpstatusCode]::BadRequest + Body = @{ + Results = "Failed to update time settings: $($ErrorMessage.NormalizedError)" + } + }) + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCombinedSetup.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCombinedSetup.ps1 index 1bf97df9724b..154edd7c73af 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCombinedSetup.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCombinedSetup.ps1 @@ -11,13 +11,6 @@ function Invoke-ExecCombinedSetup { #Make arraylist of Results $Results = [System.Collections.ArrayList]::new() try { - # Set up Azure context if needed for Key Vault access - if (($env:AzureWebJobsStorage -ne 'UseDevelopmentStorage=true' -or $env:NonLocalHostAzurite -ne 'true') -and $env:MSI_SECRET) { - Disable-AzContextAutosave -Scope Process | Out-Null - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $null = Set-AzContext -SubscriptionId $SubscriptionId - } if ($request.body.selectedBaselines -and $request.body.baselineOption -eq 'downloadBaselines') { #do a single download of the selected baselines. foreach ($template in $request.body.selectedBaselines) { @@ -88,19 +81,19 @@ function Invoke-ExecCombinedSetup { $Results.add('Manual credentials have been set in the DevSecrets table.') } else { if ($Request.Body.tenantId) { - Set-AzKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $Request.Body.tenantId -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $Request.Body.tenantId -AsPlainText -Force) $Results.add('Set tenant ID in Key Vault.') } if ($Request.Body.applicationId) { - Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationId -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationId -AsPlainText -Force) $Results.add('Set application ID in Key Vault.') } if ($Request.Body.applicationSecret) { - Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationSecret -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationSecret -AsPlainText -Force) $Results.add('Set application secret in Key Vault.') } if ($Request.Body.RefreshToken) { - Set-AzKeyVaultSecret -VaultName $kv -Name 'refreshtoken' -SecretValue (ConvertTo-SecureString -String $Request.Body.RefreshToken -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'refreshtoken' -SecretValue (ConvertTo-SecureString -String $Request.Body.RefreshToken -AsPlainText -Force) $Results.add('Set refresh token in Key Vault.') } } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCreateSAMApp.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCreateSAMApp.ps1 index 1aa1fb57bf8a..3e00555ce247 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCreateSAMApp.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCreateSAMApp.ps1 @@ -24,7 +24,7 @@ function Invoke-ExecCreateSAMApp { $state = 'updated' #remove the entire web object from the app registration $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase - $SamManifestFile = Get-Item (Join-Path $ModuleBase 'Public\SAMManifest.json') + $SamManifestFile = Get-Item (Join-Path $ModuleBase 'lib\data\SAMManifest.json') $app = Get-Content $SamManifestFile.FullName | ConvertFrom-Json $app.web.redirectUris = @("$($url)/authredirect") $app = ConvertTo-Json -Depth 15 -Compress -InputObject $app @@ -32,7 +32,7 @@ function Invoke-ExecCreateSAMApp { } else { $state = 'created' $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase - $SamManifestFile = Get-Item (Join-Path $ModuleBase 'Public\SAMManifest.json') + $SamManifestFile = Get-Item (Join-Path $ModuleBase 'lib\data\SAMManifest.json') $app = Get-Content $SamManifestFile.FullName | ConvertFrom-Json $app.web.redirectUris = @("$($url)/authredirect") $app = $app | ConvertTo-Json -Depth 15 @@ -83,9 +83,9 @@ function Invoke-ExecCreateSAMApp { Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force } else { - Set-AzKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $TenantId -AsPlainText -Force) - Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Appid.appId -AsPlainText -Force) - Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $AppPassword -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $TenantId -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Appid.appId -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $AppPassword -AsPlainText -Force) } $ConfigTable = Get-CippTable -tablename 'Config' #update the ConfigTable with the latest appId, for caching compare. diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecSAMSetup.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecSAMSetup.ps1 index fc124c54c5c7..92de081e10e4 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecSAMSetup.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecSAMSetup.ps1 @@ -35,13 +35,6 @@ function Invoke-ExecSAMSetup { } Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force } - } else { - if ($env:MSI_SECRET) { - Disable-AzContextAutosave -Scope Process | Out-Null - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $null = Set-AzContext -SubscriptionId $SubscriptionId - } } if (!$env:SetFromProfile) { Write-Information "We're reloading from KV" @@ -63,10 +56,10 @@ function Invoke-ExecSAMSetup { if ($Request.Body.ApplicationSecret) { $Secret.ApplicationSecret = $Request.Body.ApplicationSecret } Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force } else { - if ($Request.Body.tenantid) { Set-AzKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $Request.Body.tenantid -AsPlainText -Force) } - if ($Request.Body.RefreshToken) { Set-AzKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $Request.Body.RefreshToken -AsPlainText -Force) } - if ($Request.Body.applicationid) { Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationid -AsPlainText -Force) } - if ($Request.Body.applicationsecret) { Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationsecret -AsPlainText -Force) } + if ($Request.Body.tenantid) { Set-CippKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $Request.Body.tenantid -AsPlainText -Force) } + if ($Request.Body.RefreshToken) { Set-CippKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $Request.Body.RefreshToken -AsPlainText -Force) } + if ($Request.Body.applicationid) { Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationid -AsPlainText -Force) } + if ($Request.Body.applicationsecret) { Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $Request.Body.applicationsecret -AsPlainText -Force) } } $Results = @{ Results = 'The keys have been replaced. Please perform a permissions check.' } @@ -82,7 +75,7 @@ function Invoke-ExecSAMSetup { if ($env:AzureWebJobsStorage -eq 'UseDevelopmentStorage=true' -or $env:NonLocalHostAzurite -eq 'true') { $clientsecret = $Secret.ApplicationSecret } else { - $clientsecret = Get-AzKeyVaultSecret -VaultName $kv -Name 'ApplicationSecret' -AsPlainText + $clientsecret = Get-CippKeyVaultSecret -VaultName $kv -Name 'ApplicationSecret' -AsPlainText } if (!$clientsecret) { $clientsecret = $env:ApplicationSecret } Write-Information "client_id=$appid&scope=https://graph.microsoft.com/.default+offline_access+openid+profile&code=$($Request.Query.code)&grant_type=authorization_code&redirect_uri=$($url)&client_secret=$clientsecret" #-Uri "https://login.microsoftonline.com/$TenantId/oauth2/v2.0/token" @@ -92,7 +85,7 @@ function Invoke-ExecSAMSetup { $Secret.RefreshToken = $RefreshToken.refresh_token Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force } else { - Set-AzKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $RefreshToken.refresh_token -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $RefreshToken.refresh_token -AsPlainText -Force) } $Results = 'Authentication is now complete. You may now close this window.' @@ -145,7 +138,7 @@ function Invoke-ExecSAMSetup { if ($PartnerSetup) { #$app = Get-Content '.\Cache_SAMSetup\SAMManifest.json' | ConvertFrom-Json $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase - $SamManifestFile = Get-Item (Join-Path $ModuleBase 'Public\SAMManifest.json') + $SamManifestFile = Get-Item (Join-Path $ModuleBase 'lib\data\SAMManifest.json') $app = Get-Content $SamManifestFile.FullName | ConvertFrom-Json $App.web.redirectUris = @($App.web.redirectUris + $URL) @@ -192,9 +185,9 @@ function Invoke-ExecSAMSetup { Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force Write-Information ($Secret | ConvertTo-Json -Depth 5) } else { - Set-AzKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $TenantId -AsPlainText -Force) - Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Appid.appId -AsPlainText -Force) - Set-AzKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $AppPassword -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'tenantid' -SecretValue (ConvertTo-SecureString -String $TenantId -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationid' -SecretValue (ConvertTo-SecureString -String $Appid.appId -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -SecretValue (ConvertTo-SecureString -String $AppPassword -AsPlainText -Force) } $Results = @{'message' = 'Created application. Waiting 30 seconds for Azure propagation'; step = $step } } else { diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecTokenExchange.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecTokenExchange.ps1 index a046cc2e92e8..6fd1a97bf94a 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecTokenExchange.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecTokenExchange.ps1 @@ -39,7 +39,7 @@ Function Invoke-ExecTokenExchange { Write-LogMessage -API $APIName -message 'Retrieved client secret from development secrets' -Sev 'Info' } else { try { - $ClientSecret = (Get-AzKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -AsPlainText) + $ClientSecret = (Get-CippKeyVaultSecret -VaultName $kv -Name 'applicationsecret' -AsPlainText) Write-LogMessage -API $APIName -message 'Retrieved client secret from key vault' -Sev 'Info' } catch { Write-LogMessage -API $APIName -message "Failed to retrieve client secret: $($_.Exception.Message)" -Sev 'Error' diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecUpdateRefreshToken.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecUpdateRefreshToken.ps1 index fcaa4156c323..6a6dfae29ccc 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecUpdateRefreshToken.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecUpdateRefreshToken.ps1 @@ -29,12 +29,12 @@ function Invoke-ExecUpdateRefreshToken { Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force } else { if ($env:TenantID -eq $Request.body.tenantId) { - Set-AzKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $Request.body.refreshtoken -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $Request.body.refreshtoken -AsPlainText -Force) } else { Write-Host "$($env:TenantID) does not match $($Request.body.tenantId) - we're adding a new secret for the tenant." $name = $Request.body.tenantId try { - Set-AzKeyVaultSecret -VaultName $kv -Name $name -SecretValue (ConvertTo-SecureString -String $Request.body.refreshtoken -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $kv -Name $name -SecretValue (ConvertTo-SecureString -String $Request.body.refreshtoken -AsPlainText -Force) } catch { Write-Host "Failed to set secret $name in KeyVault. $($_.Exception.Message)" throw $_ diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Invoke-ListMailboxRules.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Invoke-ListMailboxRules.ps1 index 65a0ee9d6e7c..648d7251deee 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Invoke-ListMailboxRules.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Invoke-ListMailboxRules.ps1 @@ -31,9 +31,6 @@ function Invoke-ListMailboxRules { QueueMessage = "Still loading data for $TenantFilter. Please check back in a few more minutes" QueueId = $RunningQueue.RowKey } - [PSCustomObject]@{ - Waiting = $true - } } elseif ((!$Rows -and !$RunningQueue) -or ($TenantFilter -eq 'AllTenants' -and ($Rows | Measure-Object).Count -eq 1)) { Write-Information "No cached mailbox rules found for $TenantFilter, starting new orchestration" if ($TenantFilter -eq 'AllTenants') { @@ -58,7 +55,7 @@ function Invoke-ListMailboxRules { SkipLog = $true } #Write-Host ($InputObject | ConvertTo-Json) - $InstanceId = Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Depth 5 -Compress) + Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Depth 5 -Compress) Write-Host "Started mailbox rules orchestration with ID = '$InstanceId'" } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Spamfilter/Invoke-ListMailQuarantine.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Spamfilter/Invoke-ListMailQuarantine.ps1 index b01f46feebf4..d785b015f940 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Spamfilter/Invoke-ListMailQuarantine.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Spamfilter/Invoke-ListMailQuarantine.ps1 @@ -19,16 +19,13 @@ function Invoke-ListMailQuarantine { $Filter = "PartitionKey eq '$PartitionKey'" $Rows = Get-CIPPAzDataTableEntity @Table -filter $Filter | Where-Object -Property Timestamp -GT (Get-Date).AddMinutes(-30) $QueueReference = '{0}-{1}' -f $TenantFilter, $PartitionKey - $RunningQueue = Invoke-ListCippQueue | Where-Object { $_.Reference -eq $QueueReference -and $_.Status -notmatch 'Completed' -and $_.Status -notmatch 'Failed' } + $RunningQueue = Invoke-ListCippQueue -Reference $QueueReference | Where-Object { $_.Status -notmatch 'Completed' -and $_.Status -notmatch 'Failed' } # If a queue is running, we will not start a new one if ($RunningQueue) { $Metadata = [PSCustomObject]@{ QueueMessage = 'Still loading data for all tenants. Please check back in a few more minutes' QueueId = $RunningQueue.RowKey } - [PSCustomObject]@{ - Waiting = $true - } } elseif (!$Rows -and !$RunningQueue) { # If no rows are found and no queue is running, we will start a new one $TenantList = Get-Tenants -IncludeErrors @@ -49,16 +46,13 @@ function Invoke-ListMailQuarantine { } SkipLog = $true } - Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Depth 5 -Compress) - [PSCustomObject]@{ - Waiting = $true - } + $null = Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Depth 5 -Compress) } else { $Metadata = [PSCustomObject]@{ QueueId = $RunningQueue.RowKey ?? $null } - $messages = $Rows - foreach ($message in $messages) { + $Messages = $Rows + foreach ($message in $Messages) { $messageObj = $message.QuarantineMessage | ConvertFrom-Json $messageObj | Add-Member -NotePropertyName 'Tenant' -NotePropertyValue $message.Tenant -Force $messageObj diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Tools/Invoke-ListExoRequest.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Tools/Invoke-ListExoRequest.ps1 index 84b8abd072ca..e0ec0e5407d0 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Tools/Invoke-ListExoRequest.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Tools/Invoke-ListExoRequest.ps1 @@ -1,4 +1,10 @@ function Invoke-ListExoRequest { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + CIPP.Core.Read + #> param($Request, $TriggerMetadata) try { $AllowedVerbs = @( diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/Applications/Invoke-ListApps.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/Applications/Invoke-ListApps.ps1 index b9699fc7db68..d7376956e5c6 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/Applications/Invoke-ListApps.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/Applications/Invoke-ListApps.ps1 @@ -1,4 +1,4 @@ -Function Invoke-ListApps { +function Invoke-ListApps { <# .FUNCTIONALITY Entrypoint @@ -10,7 +10,57 @@ Function Invoke-ListApps { # Interact with query parameters or the body of the request. $TenantFilter = $Request.Query.TenantFilter try { - $GraphRequest = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceAppManagement/mobileApps?`$top=999&`$filter=(microsoft.graph.managedApp/appAvailability%20eq%20null%20or%20microsoft.graph.managedApp/appAvailability%20eq%20%27lineOfBusiness%27%20or%20isAssigned%20eq%20true)&`$orderby=displayName&" -tenantid $TenantFilter + # Use bulk requests to get groups and apps with assignments + $BulkRequests = @( + @{ + id = 'Groups' + method = 'GET' + url = '/groups?$top=999&$select=id,displayName' + } + @{ + id = 'Apps' + method = 'GET' + url = "/deviceAppManagement/mobileApps?`$top=999&`$expand=assignments&`$filter=(microsoft.graph.managedApp/appAvailability%20eq%20null%20or%20microsoft.graph.managedApp/appAvailability%20eq%20%27lineOfBusiness%27%20or%20isAssigned%20eq%20true)&`$orderby=displayName" + } + ) + + $BulkResults = New-GraphBulkRequest -Requests $BulkRequests -tenantid $TenantFilter + + # Extract groups for resolving assignment names + $Groups = ($BulkResults | Where-Object { $_.id -eq 'Groups' }).body.value + $Apps = ($BulkResults | Where-Object { $_.id -eq 'Apps' }).body.value + + $GraphRequest = foreach ($App in $Apps) { + # Process assignments + $AppAssignment = [System.Collections.Generic.List[string]]::new() + $AppExclude = [System.Collections.Generic.List[string]]::new() + + if ($App.assignments) { + foreach ($Assignment in $App.assignments) { + $target = $Assignment.target + $intent = $Assignment.intent + $intentSuffix = if ($intent) { " ($intent)" } else { '' } + + switch ($target.'@odata.type') { + '#microsoft.graph.allDevicesAssignmentTarget' { $AppAssignment.Add("All Devices$intentSuffix") } + '#microsoft.graph.allLicensedUsersAssignmentTarget' { $AppAssignment.Add("All Licensed Users$intentSuffix") } + '#microsoft.graph.groupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $AppAssignment.Add("$groupName$intentSuffix") } + } + '#microsoft.graph.exclusionGroupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $AppExclude.Add($groupName) } + } + } + } + } + + $App | Add-Member -NotePropertyName 'AppAssignment' -NotePropertyValue ($AppAssignment -join ', ') -Force + $App | Add-Member -NotePropertyName 'AppExclude' -NotePropertyValue ($AppExclude -join ', ') -Force + $App + } + $StatusCode = [HttpStatusCode]::OK } catch { $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddIntuneTemplate.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddIntuneTemplate.ps1 index f8efbd292ecf..22c029fb5b16 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddIntuneTemplate.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddIntuneTemplate.ps1 @@ -1,4 +1,4 @@ -Function Invoke-AddIntuneTemplate { +function Invoke-AddIntuneTemplate { <# .FUNCTIONALITY Entrypoint,AnyTenant @@ -9,10 +9,12 @@ Function Invoke-AddIntuneTemplate { param($Request, $TriggerMetadata) $APIName = $Request.Params.CIPPEndpoint + $Headers = $Request.Headers + $GUID = (New-Guid).GUID try { if ($Request.Body.RawJSON) { - if (!$Request.Body.displayName) { throw 'You must enter a displayname' } + if (!$Request.Body.displayName) { throw 'You must enter a displayName' } if ($null -eq ($Request.Body.RawJSON | ConvertFrom-Json)) { throw 'the JSON is invalid' } @@ -30,9 +32,10 @@ Function Invoke-AddIntuneTemplate { RowKey = "$GUID" PartitionKey = 'IntuneTemplate' } - Write-LogMessage -headers $Request.Headers -API $APINAME -message "Created intune policy template named $($Request.Body.displayName) with GUID $GUID" -Sev 'Debug' + Write-LogMessage -headers $Headers -API $APIName -message "Created intune policy template named $($Request.Body.displayName) with GUID $GUID" -Sev 'Debug' - $body = [pscustomobject]@{'Results' = 'Successfully added template' } + $Result = 'Successfully added template' + $StatusCode = [HttpStatusCode]::OK } else { $TenantFilter = $Request.Body.tenantFilter ?? $Request.Query.tenantFilter $URLName = $Request.Body.URLName ?? $Request.Query.URLName @@ -54,19 +57,21 @@ Function Invoke-AddIntuneTemplate { RowKey = "$GUID" PartitionKey = 'IntuneTemplate' } - Write-LogMessage -headers $Request.Headers -API $APINAME -message "Created intune policy template $($Request.Body.displayName) with GUID $GUID using an original policy from a tenant" -Sev 'Debug' + Write-LogMessage -headers $Headers -API $APIName -message "Created intune policy template $($Request.Body.displayName) with GUID $GUID using an original policy from a tenant" -Sev 'Debug' - $body = [pscustomobject]@{'Results' = 'Successfully added template' } + $Result = 'Successfully added template' + $StatusCode = [HttpStatusCode]::OK } } catch { - Write-LogMessage -headers $Request.Headers -API $APINAME -message "Intune Template Deployment failed: $($_.Exception.Message)" -Sev 'Error' - $body = [pscustomobject]@{'Results' = "Intune Template Deployment failed: $($_.Exception.Message)" } + $StatusCode = [HttpStatusCode]::InternalServerError + $ErrorMessage = Get-CippException -Exception $_ + $Result = "Intune Template Deployment failed: $($ErrorMessage.NormalizedMessage)" + Write-LogMessage -headers $Headers -API $APIName -message $Result -Sev 'Error' -LogData $ErrorMessage } return ([HttpResponseContext]@{ - StatusCode = [HttpStatusCode]::OK - Body = $body + StatusCode = $StatusCode + Body = @{'Results' = $Result } }) - } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddPolicy.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddPolicy.ps1 index 50463f0035da..5aaf4692faac 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddPolicy.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-AddPolicy.ps1 @@ -9,36 +9,43 @@ function Invoke-AddPolicy { param($Request, $TriggerMetadata) $APIName = $Request.Params.CIPPEndpoint + $Headers = $Request.Headers $Tenants = $Request.Body.tenantFilter.value ? $Request.Body.tenantFilter.value : $Request.Body.tenantFilter - if ('AllTenants' -in $Tenants) { $Tetnants = (Get-Tenants).defaultDomainName } - $displayname = $Request.Body.displayName + if ('AllTenants' -in $Tenants) { $Tenants = (Get-Tenants).defaultDomainName } + + $DisplayName = $Request.Body.displayName $description = $Request.Body.Description $AssignTo = if ($Request.Body.AssignTo -ne 'on') { $Request.Body.AssignTo } $ExcludeGroup = $Request.Body.excludeGroup - $Request.body.customGroup ? ($AssignTo = $Request.body.customGroup) : $null + $Request.Body.customGroup ? ($AssignTo = $Request.Body.customGroup) : $null $RawJSON = $Request.Body.RAWJson - $results = foreach ($Tenant in $tenants) { - if ($Request.Body.replacemap.$tenant) { - ([pscustomobject]$Request.Body.replacemap.$tenant).psobject.properties | ForEach-Object { $RawJson = $RawJson -replace $_.name, $_.value } + $Results = foreach ($Tenant in $Tenants) { + if ($Request.Body.replacemap.$Tenant) { + ([pscustomobject]$Request.Body.replacemap.$Tenant).PSObject.Properties | ForEach-Object { $RawJSON = $RawJSON -replace $_.name, $_.value } } try { Write-Host 'Calling Adding policy' - Set-CIPPIntunePolicy -TemplateType $Request.body.TemplateType -Description $description -DisplayName $displayname -RawJSON $RawJSON -AssignTo $AssignTo -ExcludeGroup $ExcludeGroup -tenantFilter $Tenant -Headers $Request.Headers - Write-LogMessage -headers $Request.Headers -API $APINAME -tenant $($Tenant) -message "Added policy $($Displayname)" -Sev 'Info' + $params = @{ + TemplateType = $Request.Body.TemplateType + Description = $description + DisplayName = $DisplayName + RawJSON = $RawJSON + AssignTo = $AssignTo + ExcludeGroup = $ExcludeGroup + tenantFilter = $Tenant + Headers = $Headers + APIName = $APIName + } + Set-CIPPIntunePolicy @params } catch { "$($_.Exception.Message)" - Write-LogMessage -headers $Request.Headers -API $APINAME -tenant $($Tenant) -message "Failed adding policy $($Displayname). Error: $($_.Exception.Message)" -Sev 'Error' continue } - } - $body = [pscustomobject]@{'Results' = @($results) } - return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::OK - Body = $body + Body = @{'Results' = @($Results) } }) - } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecAssignPolicy.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecAssignPolicy.ps1 index dc6220fca72d..ce22cb30d03f 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecAssignPolicy.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecAssignPolicy.ps1 @@ -1,4 +1,4 @@ -Function Invoke-ExecAssignPolicy { +function Invoke-ExecAssignPolicy { <# .FUNCTIONALITY Entrypoint @@ -10,44 +10,95 @@ Function Invoke-ExecAssignPolicy { $APIName = $Request.Params.CIPPEndpoint $Headers = $Request.Headers - Write-LogMessage -headers $Request.Headers -API $APINAME -message 'Accessed this API' -Sev 'Debug' # Interact with the body of the request $TenantFilter = $Request.Body.tenantFilter $ID = $request.Body.ID $Type = $Request.Body.Type $AssignTo = $Request.Body.AssignTo + $PlatformType = $Request.Body.platformType + $ExcludeGroup = $Request.Body.excludeGroup + $GroupIdsRaw = $Request.Body.GroupIds + $GroupNamesRaw = $Request.Body.GroupNames + $AssignmentMode = $Request.Body.assignmentMode + $AssignmentFilterName = $Request.Body.AssignmentFilterName + $AssignmentFilterType = $Request.Body.AssignmentFilterType + + # Standardize GroupIds input (can be array or comma-separated string) + function Get-StandardizedList { + param($InputObject) + if ($null -eq $InputObject -or ($InputObject -is [string] -and [string]::IsNullOrWhiteSpace($InputObject))) { + return @() + } + if ($InputObject -is [string]) { + return ($InputObject -split ',') | ForEach-Object { $_.Trim() } | Where-Object { $_ } + } + if ($InputObject -is [System.Collections.IEnumerable]) { + return @($InputObject | Where-Object { $_ }) + } + return @($InputObject) + } + + $GroupIds = Get-StandardizedList -InputObject $GroupIdsRaw + $GroupNames = Get-StandardizedList -InputObject $GroupNamesRaw + + # Validate and default AssignmentMode + if ([string]::IsNullOrWhiteSpace($AssignmentMode)) { + $AssignmentMode = 'replace' + } $AssignTo = if ($AssignTo -ne 'on') { $AssignTo } - $results = try { - if ($AssignTo) { - $AssignmentResult = Set-CIPPAssignedPolicy -PolicyId $ID -TenantFilter $TenantFilter -GroupName $AssignTo -Type $Type -Headers $Headers - if ($AssignmentResult) { - # Check if it's a warning message (no groups found) - if ($AssignmentResult -like "*No groups found*") { - $StatusCode = [HttpStatusCode]::BadRequest - } else { - $StatusCode = [HttpStatusCode]::OK - } - $AssignmentResult - } else { - $StatusCode = [HttpStatusCode]::OK - "Successfully edited policy for $($TenantFilter)" + $Results = try { + if ($AssignTo -or @($GroupIds).Count -gt 0) { + $params = @{ + PolicyId = $ID + TenantFilter = $TenantFilter + GroupName = $AssignTo + Type = $Type + Headers = $Headers + AssignmentMode = $AssignmentMode + } + + if (@($GroupIds).Count -gt 0) { + $params.GroupIds = @($GroupIds) + } + + if (@($GroupNames).Count -gt 0) { + $params.GroupNames = @($GroupNames) + } + + if (-not [string]::IsNullOrWhiteSpace($PlatformType)) { + $params.PlatformType = $PlatformType } + + if (-not [string]::IsNullOrWhiteSpace($ExcludeGroup)) { + $params.ExcludeGroup = $ExcludeGroup + } + + if (-not [string]::IsNullOrWhiteSpace($AssignmentFilterName)) { + $params.AssignmentFilterName = $AssignmentFilterName + } + + if (-not [string]::IsNullOrWhiteSpace($AssignmentFilterType)) { + $params.AssignmentFilterType = $AssignmentFilterType + } + + Set-CIPPAssignedPolicy @params + $StatusCode = [HttpStatusCode]::OK } else { + 'No assignments specified. No action taken.' $StatusCode = [HttpStatusCode]::OK - "Successfully edited policy for $($TenantFilter)" } } catch { + "$($_.Exception.Message)" $StatusCode = [HttpStatusCode]::InternalServerError - "Failed to add policy for $($TenantFilter): $($_.Exception.Message)" } return ([HttpResponseContext]@{ StatusCode = $StatusCode - Body = @{Results = $results } + Body = @{Results = $Results } }) } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecDevicePasscodeAction.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecDevicePasscodeAction.ps1 new file mode 100644 index 000000000000..2207fa5761b0 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecDevicePasscodeAction.ps1 @@ -0,0 +1,53 @@ +function Invoke-ExecDevicePasscodeAction { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + Endpoint.MEM.ReadWrite + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + + $APIName = $Request.Params.CIPPEndpoint + $Headers = $Request.Headers + + $Action = $Request.Body.Action + $DeviceFilter = $Request.Body.GUID + $TenantFilter = $Request.Body.tenantFilter + + try { + $GraphResponse = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/deviceManagement/managedDevices('$DeviceFilter')/$($Action)" -type POST -tenantid $TenantFilter -body '{}' + + $Result = switch ($Action) { + 'resetPasscode' { + if ($GraphResponse.value) { + "Passcode reset successfully. New passcode: $($GraphResponse.value)" + } else { + "Passcode reset queued for device $DeviceFilter. The new passcode will be generated and can be retrieved from the device details." + } + } + 'removeDevicePasscode' { + "Successfully removed passcode requirement from device $DeviceFilter" + } + default { + "Successfully queued $Action on device $DeviceFilter" + } + } + + Write-LogMessage -headers $Headers -API $APIName -tenant $TenantFilter -message $Result -Sev Info + $StatusCode = [HttpStatusCode]::OK + $Results = $Result + + } catch { + $ErrorMessage = Get-CippException -Exception $_ + $Result = "Failed to execute $Action on device $DeviceFilter : $($ErrorMessage.NormalizedError)" + Write-LogMessage -headers $Headers -API $APIName -tenant $TenantFilter -message $Result -Sev Error -LogData $ErrorMessage + $StatusCode = [HttpStatusCode]::InternalServerError + $Results = $Result + } + + Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{ + StatusCode = $StatusCode + Body = @{Results = $Results } + }) +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAppProtectionPolicies.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAppProtectionPolicies.ps1 new file mode 100644 index 000000000000..7fc2af495e1b --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAppProtectionPolicies.ps1 @@ -0,0 +1,183 @@ +function Invoke-ListAppProtectionPolicies { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + Endpoint.MEM.Read + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + + $APIName = $Request.Params.CIPPEndpoint + $Headers = $Request.Headers + Write-LogMessage -headers $Headers -API $APIName -message 'Accessed this API' -Sev 'Debug' + + $TenantFilter = $Request.Query.tenantFilter + + try { + # Use bulk requests to get groups, managed app policies and mobile app configurations + $BulkRequests = @( + @{ + id = 'Groups' + method = 'GET' + url = '/groups?$top=999&$select=id,displayName' + } + @{ + id = 'ManagedAppPolicies' + method = 'GET' + url = '/deviceAppManagement/managedAppPolicies?$expand=assignments&$orderby=displayName' + } + @{ + id = 'MobileAppConfigurations' + method = 'GET' + url = '/deviceAppManagement/mobileAppConfigurations?$expand=assignments&$orderby=displayName' + } + ) + + $BulkResults = New-GraphBulkRequest -Requests $BulkRequests -tenantid $TenantFilter + + # Extract groups for resolving assignment names + $Groups = ($BulkResults | Where-Object { $_.id -eq 'Groups' }).body.value + + $GraphRequest = [System.Collections.Generic.List[object]]::new() + + # Process Managed App Policies - these need separate assignment lookups + $ManagedAppPolicies = ($BulkResults | Where-Object { $_.id -eq 'ManagedAppPolicies' }).body.value + if ($ManagedAppPolicies) { + # Build bulk requests for assignments of policies that support them + $AssignmentRequests = [System.Collections.Generic.List[object]]::new() + foreach ($Policy in $ManagedAppPolicies) { + # Only certain policy types support assignments endpoint + $odataType = $Policy.'@odata.type' + if ($odataType -match 'androidManagedAppProtection|iosManagedAppProtection|windowsManagedAppProtection|targetedManagedAppConfiguration') { + $urlSegment = switch -Wildcard ($odataType) { + '*androidManagedAppProtection*' { 'androidManagedAppProtections' } + '*iosManagedAppProtection*' { 'iosManagedAppProtections' } + '*windowsManagedAppProtection*' { 'windowsManagedAppProtections' } + '*targetedManagedAppConfiguration*' { 'targetedManagedAppConfigurations' } + } + if ($urlSegment) { + $AssignmentRequests.Add(@{ + id = $Policy.id + method = 'GET' + url = "/deviceAppManagement/$urlSegment('$($Policy.id)')/assignments" + }) + } + } + } + + # Fetch assignments in bulk if we have any + $AssignmentResults = @{} + if ($AssignmentRequests.Count -gt 0) { + $AssignmentBulkResults = New-GraphBulkRequest -Requests $AssignmentRequests -tenantid $TenantFilter + foreach ($result in $AssignmentBulkResults) { + if ($result.body.value) { + $AssignmentResults[$result.id] = $result.body.value + } + } + } + + foreach ($Policy in $ManagedAppPolicies) { + $policyType = switch -Wildcard ($Policy.'@odata.type') { + '*androidManagedAppProtection*' { 'Android App Protection' } + '*iosManagedAppProtection*' { 'iOS App Protection' } + '*windowsManagedAppProtection*' { 'Windows App Protection' } + '*mdmWindowsInformationProtectionPolicy*' { 'Windows Information Protection (MDM)' } + '*windowsInformationProtectionPolicy*' { 'Windows Information Protection' } + '*targetedManagedAppConfiguration*' { 'App Configuration (MAM)' } + '*defaultManagedAppProtection*' { 'Default App Protection' } + default { 'App Protection Policy' } + } + + # Process assignments + $PolicyAssignment = [System.Collections.Generic.List[string]]::new() + $PolicyExclude = [System.Collections.Generic.List[string]]::new() + $Assignments = $AssignmentResults[$Policy.id] + if ($Assignments) { + foreach ($Assignment in $Assignments) { + $target = $Assignment.target + switch ($target.'@odata.type') { + '#microsoft.graph.allDevicesAssignmentTarget' { $PolicyAssignment.Add('All Devices') } + '#microsoft.graph.allLicensedUsersAssignmentTarget' { $PolicyAssignment.Add('All Licensed Users') } + '#microsoft.graph.groupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $PolicyAssignment.Add($groupName) } + } + '#microsoft.graph.exclusionGroupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $PolicyExclude.Add($groupName) } + } + } + } + } + + $Policy | Add-Member -NotePropertyName 'PolicyTypeName' -NotePropertyValue $policyType -Force + $Policy | Add-Member -NotePropertyName 'URLName' -NotePropertyValue 'managedAppPolicies' -Force + $Policy | Add-Member -NotePropertyName 'PolicySource' -NotePropertyValue 'AppProtection' -Force + $Policy | Add-Member -NotePropertyName 'PolicyAssignment' -NotePropertyValue ($PolicyAssignment -join ', ') -Force + $Policy | Add-Member -NotePropertyName 'PolicyExclude' -NotePropertyValue ($PolicyExclude -join ', ') -Force + $GraphRequest.Add($Policy) + } + } + + # Process Mobile App Configurations - assignments are already expanded + $MobileAppConfigs = ($BulkResults | Where-Object { $_.id -eq 'MobileAppConfigurations' }).body.value + if ($MobileAppConfigs) { + foreach ($Config in $MobileAppConfigs) { + $policyType = switch -Wildcard ($Config.'@odata.type') { + '*androidManagedStoreAppConfiguration*' { 'Android Enterprise App Configuration' } + '*androidForWorkAppConfigurationSchema*' { 'Android for Work Configuration' } + '*iosMobileAppConfiguration*' { 'iOS App Configuration' } + default { 'App Configuration Policy' } + } + + # Process assignments + $PolicyAssignment = [System.Collections.Generic.List[string]]::new() + $PolicyExclude = [System.Collections.Generic.List[string]]::new() + if ($Config.assignments) { + foreach ($Assignment in $Config.assignments) { + $target = $Assignment.target + switch ($target.'@odata.type') { + '#microsoft.graph.allDevicesAssignmentTarget' { $PolicyAssignment.Add('All Devices') } + '#microsoft.graph.allLicensedUsersAssignmentTarget' { $PolicyAssignment.Add('All Licensed Users') } + '#microsoft.graph.groupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $PolicyAssignment.Add($groupName) } + } + '#microsoft.graph.exclusionGroupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $PolicyExclude.Add($groupName) } + } + } + } + } + + $Config | Add-Member -NotePropertyName 'PolicyTypeName' -NotePropertyValue $policyType -Force + $Config | Add-Member -NotePropertyName 'URLName' -NotePropertyValue 'mobileAppConfigurations' -Force + $Config | Add-Member -NotePropertyName 'PolicySource' -NotePropertyValue 'AppConfiguration' -Force + $Config | Add-Member -NotePropertyName 'PolicyAssignment' -NotePropertyValue ($PolicyAssignment -join ', ') -Force + $Config | Add-Member -NotePropertyName 'PolicyExclude' -NotePropertyValue ($PolicyExclude -join ', ') -Force + + # Ensure isAssigned property exists for consistency + if (-not $Config.PSObject.Properties['isAssigned']) { + $Config | Add-Member -NotePropertyName 'isAssigned' -NotePropertyValue $false -Force + } + $GraphRequest.Add($Config) + } + } + + # Sort combined results by displayName + $GraphRequest = $GraphRequest | Sort-Object -Property displayName + + $StatusCode = [HttpStatusCode]::OK + } catch { + $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message + $StatusCode = [HttpStatusCode]::Forbidden + $GraphRequest = $ErrorMessage + } + + return ([HttpResponseContext]@{ + StatusCode = $StatusCode + Body = @($GraphRequest) + }) +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAssignmentFilters.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAssignmentFilters.ps1 index c405a939425b..91c3270702be 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAssignmentFilters.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListAssignmentFilters.ps1 @@ -11,15 +11,14 @@ function Invoke-ListAssignmentFilters { $APIName = $Request.Params.CIPPEndpoint $Headers = $Request.Headers - Write-LogMessage -headers $Request.Headers -API $APINAME -message 'Accessed this API' -Sev Debug - # Get the tenant filter - $TenantFilter = $Request.Query.TenantFilter + $TenantFilter = $Request.Query.tenantFilter + $FilterId = $Request.Query.filterId try { - if ($Request.Query.filterId) { + if ($FilterId) { # Get specific filter - $AssignmentFilters = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/assignmentFilters/$($Request.Query.filterId)" -tenantid $TenantFilter + $AssignmentFilters = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/assignmentFilters/$($FilterId)" -tenantid $TenantFilter } else { # Get all filters $AssignmentFilters = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceManagement/assignmentFilters' -tenantid $TenantFilter @@ -28,12 +27,11 @@ function Invoke-ListAssignmentFilters { $StatusCode = [HttpStatusCode]::OK } catch { $ErrorMessage = Get-CippException -Exception $_ - Write-LogMessage -headers $Request.Headers -API $APINAME -message "Failed to retrieve assignment filters: $($ErrorMessage.NormalizedError)" -Sev Error -LogData $ErrorMessage + Write-LogMessage -headers $Headers -API $APIName -message "Failed to retrieve assignment filters: $($ErrorMessage.NormalizedError)" -Sev Error -LogData $ErrorMessage $AssignmentFilters = @() $StatusCode = [HttpStatusCode]::InternalServerError } - # Associate values to output bindings by calling 'Push-OutputBinding'. return ([HttpResponseContext]@{ StatusCode = $StatusCode Body = @($AssignmentFilters) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListCompliancePolicies.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListCompliancePolicies.ps1 new file mode 100644 index 000000000000..94a782928ad5 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListCompliancePolicies.ps1 @@ -0,0 +1,95 @@ +function Invoke-ListCompliancePolicies { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + Endpoint.MEM.Read + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + + $APIName = $Request.Params.CIPPEndpoint + $Headers = $Request.Headers + Write-LogMessage -headers $Headers -API $APIName -message 'Accessed this API' -Sev 'Debug' + + $TenantFilter = $Request.Query.tenantFilter + + try { + # Use bulk requests to get groups and compliance policies + $BulkRequests = @( + @{ + id = 'Groups' + method = 'GET' + url = '/groups?$top=999&$select=id,displayName' + } + @{ + id = 'CompliancePolicies' + method = 'GET' + url = '/deviceManagement/deviceCompliancePolicies?$expand=assignments&$orderby=displayName' + } + ) + + $BulkResults = New-GraphBulkRequest -Requests $BulkRequests -tenantid $TenantFilter + + # Extract results + $Groups = ($BulkResults | Where-Object { $_.id -eq 'Groups' }).body.value + $Policies = ($BulkResults | Where-Object { $_.id -eq 'CompliancePolicies' }).body.value + + $GraphRequest = [System.Collections.Generic.List[object]]::new() + + foreach ($Policy in $Policies) { + # Determine policy type from @odata.type + $policyType = switch -Wildcard ($Policy.'@odata.type') { + '*windows10CompliancePolicy*' { 'Windows 10/11 Compliance' } + '*windowsPhone81CompliancePolicy*' { 'Windows Phone 8.1 Compliance' } + '*windows81CompliancePolicy*' { 'Windows 8.1 Compliance' } + '*iosCompliancePolicy*' { 'iOS Compliance' } + '*macOSCompliancePolicy*' { 'macOS Compliance' } + '*androidCompliancePolicy*' { 'Android Compliance' } + '*androidDeviceOwnerCompliancePolicy*' { 'Android Enterprise Compliance' } + '*androidWorkProfileCompliancePolicy*' { 'Android Work Profile Compliance' } + '*aospDeviceOwnerCompliancePolicy*' { 'AOSP Compliance' } + default { 'Compliance Policy' } + } + + # Process assignments + $PolicyAssignment = [System.Collections.Generic.List[string]]::new() + $PolicyExclude = [System.Collections.Generic.List[string]]::new() + + if ($Policy.assignments) { + foreach ($Assignment in $Policy.assignments) { + $target = $Assignment.target + switch ($target.'@odata.type') { + '#microsoft.graph.allDevicesAssignmentTarget' { $PolicyAssignment.Add('All Devices') } + '#microsoft.graph.allLicensedUsersAssignmentTarget' { $PolicyAssignment.Add('All Licensed Users') } + '#microsoft.graph.groupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $PolicyAssignment.Add($groupName) } + } + '#microsoft.graph.exclusionGroupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $PolicyExclude.Add($groupName) } + } + } + } + } + + $Policy | Add-Member -NotePropertyName 'PolicyTypeName' -NotePropertyValue $policyType -Force + $Policy | Add-Member -NotePropertyName 'PolicyAssignment' -NotePropertyValue ($PolicyAssignment -join ', ') -Force + $Policy | Add-Member -NotePropertyName 'PolicyExclude' -NotePropertyValue ($PolicyExclude -join ', ') -Force + + $GraphRequest.Add($Policy) + } + + $StatusCode = [HttpStatusCode]::OK + } catch { + $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message + $StatusCode = [HttpStatusCode]::Forbidden + $GraphRequest = $ErrorMessage + } + + return ([HttpResponseContext]@{ + StatusCode = $StatusCode + Body = @($GraphRequest) + }) +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntunePolicy.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntunePolicy.ps1 index 9a190fe23747..adcebec6267a 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntunePolicy.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntunePolicy.ps1 @@ -1,5 +1,5 @@ -Function Invoke-ListIntunePolicy { +function Invoke-ListIntunePolicy { <# .FUNCTIONALITY Entrypoint @@ -16,38 +16,41 @@ Function Invoke-ListIntunePolicy { if ($ID) { $GraphRequest = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($URLName)('$ID')" -tenantid $TenantFilter } else { - $Groups = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/groups?$top=999' -tenantid $TenantFilter | Select-Object -Property id, displayName - $BulkRequests = [PSCustomObject]@( + @{ + id = 'Groups' + method = 'GET' + url = '/groups?$top=999&$select=id,displayName' + } @{ id = 'DeviceConfigurations' method = 'GET' - url = "/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName,description&`$expand=assignments&top=1000" + url = "/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName,description&`$expand=assignments&`$top=1000" } @{ id = 'WindowsDriverUpdateProfiles' method = 'GET' - url = "/deviceManagement/windowsDriverUpdateProfiles?`$expand=assignments&top=200" + url = "/deviceManagement/windowsDriverUpdateProfiles?`$expand=assignments&`$top=200" } @{ id = 'WindowsFeatureUpdateProfiles' method = 'GET' - url = "/deviceManagement/windowsFeatureUpdateProfiles?`$expand=assignments&top=200" + url = "/deviceManagement/windowsFeatureUpdateProfiles?`$expand=assignments&`$top=200" } @{ id = 'windowsQualityUpdatePolicies' method = 'GET' - url = "/deviceManagement/windowsQualityUpdatePolicies?`$expand=assignments&top=200" + url = "/deviceManagement/windowsQualityUpdatePolicies?`$expand=assignments&`$top=200" } @{ id = 'windowsQualityUpdateProfiles' method = 'GET' - url = "/deviceManagement/windowsQualityUpdateProfiles?`$expand=assignments&top=200" + url = "/deviceManagement/windowsQualityUpdateProfiles?`$expand=assignments&`$top=200" } @{ id = 'GroupPolicyConfigurations' method = 'GET' - url = "/deviceManagement/groupPolicyConfigurations?`$expand=assignments&top=1000" + url = "/deviceManagement/groupPolicyConfigurations?`$expand=assignments&`$top=1000" } @{ id = 'MobileAppConfigurations' @@ -57,13 +60,16 @@ Function Invoke-ListIntunePolicy { @{ id = 'ConfigurationPolicies' method = 'GET' - url = "/deviceManagement/configurationPolicies?`$expand=assignments&top=1000" + url = "/deviceManagement/configurationPolicies?`$expand=assignments&`$top=1000" } ) $BulkResults = New-GraphBulkRequest -Requests $BulkRequests -tenantid $TenantFilter - $GraphRequest = $BulkResults | ForEach-Object { + # Extract groups for resolving assignment names + $Groups = ($BulkResults | Where-Object { $_.id -eq 'Groups' }).body.value + + $GraphRequest = $BulkResults | Where-Object { $_.id -ne 'Groups' } | ForEach-Object { $URLName = $_.Id $_.body.Value | ForEach-Object { $policyTypeName = switch -Wildcard ($_.'assignments@odata.context') { @@ -89,7 +95,7 @@ Function Invoke-ListIntunePolicy { $Assignments = $_.assignments.target | Select-Object -Property '@odata.type', groupId $PolicyAssignment = [System.Collections.Generic.List[string]]::new() $PolicyExclude = [System.Collections.Generic.List[string]]::new() - ForEach ($target in $Assignments) { + foreach ($target in $Assignments) { switch ($target.'@odata.type') { '#microsoft.graph.allDevicesAssignmentTarget' { $PolicyAssignment.Add('All Devices') } '#microsoft.graph.exclusionallDevicesAssignmentTarget' { $PolicyExclude.Add('All Devices') } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneScript.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneScript.ps1 index 5e2a8459cb53..2eb73bca4a00 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneScript.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneScript.ps1 @@ -15,26 +15,31 @@ function Invoke-ListIntuneScript { $TenantFilter = $Request.Query.tenantFilter $Results = [System.Collections.Generic.List[System.Object]]::new() - $BulkRequests = [PSCustomObject]@( + $BulkRequests = @( + @{ + id = 'Groups' + method = 'GET' + url = '/groups?$top=999&$select=id,displayName' + } @{ id = 'Windows' method = 'GET' - url = '/deviceManagement/deviceManagementScripts' + url = '/deviceManagement/deviceManagementScripts?$expand=assignments' } @{ id = 'MacOS' method = 'GET' - url = '/deviceManagement/deviceShellScripts' + url = '/deviceManagement/deviceShellScripts?$expand=assignments' } @{ id = 'Remediation' method = 'GET' - url = '/deviceManagement/deviceHealthScripts' + url = '/deviceManagement/deviceHealthScripts?$expand=assignments' } @{ id = 'Linux' method = 'GET' - url = '/deviceManagement/configurationPolicies' + url = '/deviceManagement/configurationPolicies?$expand=assignments' } ) @@ -45,6 +50,9 @@ function Invoke-ListIntuneScript { Write-Host "Failed to retrieve scripts. Error: $($ErrorMessage.NormalizedError)" } + # Extract groups for resolving assignment names + $Groups = ($BulkResults | Where-Object { $_.id -eq 'Groups' }).body.value + foreach ($scriptId in @('Windows', 'MacOS', 'Remediation', 'Linux')) { $BulkResult = ($BulkResults | Where-Object { $_.id -eq $scriptId }) if ($BulkResult.status -ne 200) { @@ -65,6 +73,33 @@ function Invoke-ListIntuneScript { $scripts | ForEach-Object { $_ | Add-Member -MemberType NoteProperty -Name displayName -Value $_.name -Force } } + # Process assignments for each script + foreach ($script in $scripts) { + $ScriptAssignment = [System.Collections.Generic.List[string]]::new() + $ScriptExclude = [System.Collections.Generic.List[string]]::new() + + if ($script.assignments) { + foreach ($Assignment in $script.assignments) { + $target = $Assignment.target + switch ($target.'@odata.type') { + '#microsoft.graph.allDevicesAssignmentTarget' { $ScriptAssignment.Add('All Devices') } + '#microsoft.graph.allLicensedUsersAssignmentTarget' { $ScriptAssignment.Add('All Licensed Users') } + '#microsoft.graph.groupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $ScriptAssignment.Add($groupName) } + } + '#microsoft.graph.exclusionGroupAssignmentTarget' { + $groupName = ($Groups | Where-Object { $_.id -eq $target.groupId }).displayName + if ($groupName) { $ScriptExclude.Add($groupName) } + } + } + } + } + + $script | Add-Member -NotePropertyName 'ScriptAssignment' -NotePropertyValue ($ScriptAssignment -join ', ') -Force + $script | Add-Member -NotePropertyName 'ScriptExclude' -NotePropertyValue ($ScriptExclude -join ', ') -Force + } + $scripts | Add-Member -MemberType NoteProperty -Name scriptType -Value $scriptId Write-Host "$scriptId scripts count: $($scripts.Count)" $Results.AddRange(@($scripts)) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneTemplates.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneTemplates.ps1 index 54333e58ff47..f1db08619aed 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneTemplates.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntuneTemplates.ps1 @@ -56,7 +56,7 @@ function Invoke-ListIntuneTemplates { value = $package type = 'tag' templateCount = ($RawTemplates | Where-Object { $_.Package -eq $package }).Count - templates = ($RawTemplates | Where-Object { $_.Package -eq $package } | ForEach-Object { + templates = @($RawTemplates | Where-Object { $_.Package -eq $package } | ForEach-Object { try { $JSONData = $_.JSON | ConvertFrom-Json -Depth 100 -ErrorAction SilentlyContinue $data = $JSONData.RAWJson | ConvertFrom-Json -Depth 100 -ErrorAction SilentlyContinue diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-RemovePolicy.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-RemovePolicy.ps1 index e5e9f83b1d1e..3dd078da0045 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-RemovePolicy.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-RemovePolicy.ps1 @@ -16,7 +16,11 @@ function Invoke-RemovePolicy { $TenantFilter = $Request.Query.tenantFilter ?? $Request.body.tenantFilter $PolicyId = $Request.Query.ID ?? $Request.body.ID $UrlName = $Request.Query.URLName ?? $Request.body.URLName - $BaseEndpoint = $UrlName -eq 'managedAppPolicies' ? 'deviceAppManagement' : 'deviceManagement' + $BaseEndpoint = switch ($UrlName) { + 'managedAppPolicies' { 'deviceAppManagement' } + 'mobileAppConfigurations' { 'deviceAppManagement' } + default { 'deviceManagement' } + } if (!$PolicyId) { exit } try { diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupSenderAuthentication.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupSenderAuthentication.ps1 index 855e35ab8395..203b28046a6d 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupSenderAuthentication.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupSenderAuthentication.ps1 @@ -1,4 +1,10 @@ -Function Invoke-ListGroupSenderAuthentication { +function Invoke-ListGroupSenderAuthentication { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + Exchange.Groups.Read + #> [CmdletBinding()] param($Request, $TriggerMetadata) # Interact with query parameters or the body of the request. diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 index f2f642edc5d8..70dacf0b7314 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 @@ -13,36 +13,44 @@ function Invoke-ListGroupTemplates { $Table = Get-CippTable -tablename 'templates' $Filter = "PartitionKey eq 'GroupTemplate'" $Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter) | ForEach-Object { - $data = $_.JSON | ConvertFrom-Json - - # Normalize groupType to camelCase for consistent frontend handling - # Handle both stored normalized values and legacy values - $normalizedGroupType = switch -Wildcard ($data.groupType.ToLower()) { - # Already normalized values (most common) - 'dynamicdistribution' { 'dynamicDistribution'; break } - 'azurerole' { 'azureRole'; break } - # Legacy values that might exist in stored templates - '*dynamicdistribution*' { 'dynamicDistribution'; break } - '*dynamic*' { 'dynamic'; break } - '*azurerole*' { 'azureRole'; break } - '*unified*' { 'm365'; break } - '*microsoft*' { 'm365'; break } - '*m365*' { 'm365'; break } - '*generic*' { 'generic'; break } - '*security*' { 'security'; break } - '*distribution*' { 'distribution'; break } - '*mail*' { 'distribution'; break } - default { $data.groupType } - } + try { + $data = $_.JSON | ConvertFrom-Json -ErrorAction SilentlyContinue + # Normalize groupType to camelCase for consistent frontend handling + # Handle both stored normalized values and legacy values + + if (!$data.groupType) { + $data.groupType = 'generic' + } + + $normalizedGroupType = switch -Wildcard ($data.groupType) { + # Already normalized values (most common) + 'dynamicdistribution' { 'dynamicDistribution'; break } + 'azurerole' { 'azureRole'; break } + # Legacy values that might exist in stored templates + '*dynamicdistribution*' { 'dynamicDistribution'; break } + '*dynamic*' { 'dynamic'; break } + '*azurerole*' { 'azureRole'; break } + '*unified*' { 'm365'; break } + '*microsoft*' { 'm365'; break } + '*m365*' { 'm365'; break } + '*generic*' { 'generic'; break } + '*security*' { 'security'; break } + '*distribution*' { 'distribution'; break } + '*mail*' { 'distribution'; break } + default { $data.groupType } + } - [PSCustomObject]@{ - displayName = $data.displayName - description = $data.description - groupType = $normalizedGroupType - membershipRules = $data.membershipRules - allowExternal = $data.allowExternal - username = $data.username - GUID = $_.RowKey + [PSCustomObject]@{ + displayName = $data.displayName + description = $data.description + groupType = $normalizedGroupType + membershipRules = $data.membershipRules + allowExternal = $data.allowExternal + username = $data.username + GUID = $_.RowKey + } + } catch { + Write-Information "Could not parse group template $($_.RowKey): $($_.Exception.Message)" } } | Sort-Object -Property displayName diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUser.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUser.ps1 index 5a26d87f2694..8d679686c945 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUser.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUser.ps1 @@ -23,9 +23,10 @@ function Invoke-AddUser { value = 'New-CIPPUserTask' label = 'New-CIPPUserTask' } - Parameters = [pscustomobject]@{ UserObj = $UserObj } - ScheduledTime = $UserObj.Scheduled.date - PostExecution = @{ + Parameters = [pscustomobject]@{ UserObj = $UserObj } + ScheduledTime = $UserObj.Scheduled.date + Reference = $UserObj.reference ?? $null + PostExecution = @{ Webhook = [bool]$Request.Body.PostExecution.Webhook Email = [bool]$Request.Body.PostExecution.Email PSA = [bool]$Request.Body.PostExecution.PSA diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecJITAdmin.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecJITAdmin.ps1 index 890ab08c3748..3a054bc4f0f7 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecJITAdmin.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecJITAdmin.ps1 @@ -16,13 +16,9 @@ function Invoke-ExecJITAdmin { $TenantFilter = $Request.Body.tenantFilter.value ? $Request.Body.tenantFilter.value : $Request.Body.tenantFilter - if ($Request.Body.existingUser.value -match '^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$') { - $Username = (New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/users/$($Request.Body.existingUser.value)" -tenantid $TenantFilter).userPrincipalName - } - $Start = ([System.DateTimeOffset]::FromUnixTimeSeconds($Request.Body.StartDate)).DateTime.ToLocalTime() $Expiration = ([System.DateTimeOffset]::FromUnixTimeSeconds($Request.Body.EndDate)).DateTime.ToLocalTime() - $Results = [System.Collections.Generic.List[string]]::new() + $Results = [System.Collections.Generic.List[object]]::new() if ($Request.Body.userAction -eq 'create') { $Domain = $Request.Body.Domain.value ? $Request.Body.Domain.value : $Request.Body.Domain @@ -36,20 +32,66 @@ function Invoke-ExecJITAdmin { 'UserPrincipalName' = $Username } Expiration = $Expiration + StartDate = $Start Reason = $Request.Body.reason Action = 'Create' TenantFilter = $TenantFilter + Headers = $Headers + APIName = $APIName + } + try { + $CreateResult = Set-CIPPUserJITAdmin @JITAdmin + } catch { + return ([HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::BadRequest + Body = @{'Results' = @("Failed to create JIT Admin user: $($_.Exception.Message)") } + }) } - $CreateResult = Set-CIPPUserJITAdmin @JITAdmin - Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message "Created JIT Admin user: $Username. Reason: $($Request.Body.reason). Roles: $($Request.Body.adminRoles.label -join ', ')" -Sev 'Info' -LogData $JITAdmin - $Results.Add("Created User: $Username") + $Results.Add(@{ + resultText = "Created User: $Username" + copyField = $Username + state = 'success' + }) if (!$Request.Body.UseTAP) { - $Results.Add("Password: $($CreateResult.password)") + $Results.Add(@{ + resultText = "Password: $($CreateResult.password)" + copyField = $CreateResult.password + state = 'success' + }) } $Results.Add("JIT Admin Expires: $($Expiration)") Start-Sleep -Seconds 1 + } else { + + $Username = $Request.Body.existingUser.value + if ($Username -match '^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$') { + Write-Information "Resolving UserPrincipalName from ObjectId: $($Request.Body.existingUser.value)" + $Username = (New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/users/$($Request.Body.existingUser.value)" -tenantid $TenantFilter).userPrincipalName + + # If the resolved username is a guest user, we need to use the id instead of the UPN + if ($Username -clike '*#EXT#*') { + $Username = $Request.Body.existingUser.value + } + } + + # Validate we have a username + if ([string]::IsNullOrWhiteSpace($Username)) { + return [HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::BadRequest + Body = @{ 'Results' = @("Could not resolve username from existingUser value: $($Request.Body.existingUser.value)") } + } + } + + # Add username result for existing user + $Results.Add(@{ + resultText = "User: $Username" + copyField = $Username + state = 'success' + }) } + + #Region TAP creation if ($Request.Body.UseTAP) { try { @@ -82,13 +124,21 @@ function Invoke-ExecJITAdmin { $PasswordLink = New-PwPushLink -Payload $TempPass $Password = $PasswordLink ? $PasswordLink : $TempPass - $Results.Add("Temporary Access Pass: $Password") + $Results.Add(@{ + resultText = "Temporary Access Pass: $Password" + copyField = $Password + state = 'success' + }) $Results.Add("This TAP is usable starting at $($TapRequest.startDateTime) UTC for the next $PasswordExpiration minutes") } catch { $Results.Add('Failed to create TAP, if this is not yet enabled, use the Standards to push the settings to the tenant.') Write-Information (Get-CippException -Exception $_ | ConvertTo-Json -Depth 5) if ($Password) { - $Results.Add("Password: $Password") + $Results.Add(@{ + resultText = "Password: $Password" + copyField = $Password + state = 'success' + }) } } } @@ -103,6 +153,9 @@ function Invoke-ExecJITAdmin { Action = 'AddRoles' Reason = $Request.Body.Reason Expiration = $Expiration + StartDate = $Start + Headers = $Headers + APIName = $APIName } if ($Start -gt (Get-Date)) { $TaskBody = @{ @@ -122,14 +175,19 @@ function Invoke-ExecJITAdmin { } Add-CIPPScheduledTask -Task $TaskBody -hidden $false if ($Request.Body.userAction -ne 'create') { - Set-CIPPUserJITAdminProperties -TenantFilter $TenantFilter -UserId $Request.Body.existingUser.value -Expiration $Expiration -Reason $Request.Body.Reason + Set-CIPPUserJITAdminProperties -TenantFilter $TenantFilter -UserId $Request.Body.existingUser.value -Expiration $Expiration -StartDate $Start -Reason $Request.Body.Reason -CreatedBy (([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Headers.'x-ms-client-principal')) | ConvertFrom-Json).userDetails) } $Results.Add("Scheduling JIT Admin enable task for $Username") - Write-LogMessage -Headers $Headers -API $APIName -message "Scheduling JIT Admin for existing user: $Username. Reason: $($Request.Body.reason). Roles: $($Request.Body.adminRoles.label -join ', ') " -tenant $TenantFilter -Sev 'Info' } else { - $Results.Add("Executing JIT Admin enable task for $Username") - Set-CIPPUserJITAdmin @Parameters - Write-LogMessage -Headers $Headers -API $APIName -message "Executing JIT Admin for existing user: $Username. Reason: $($Request.Body.reason). Roles: $($Request.Body.adminRoles.label -join ', ') " -tenant $TenantFilter -Sev 'Info' + try { + $Results.Add("Executing JIT Admin enable task for $Username") + Set-CIPPUserJITAdmin @Parameters + } catch { + return ([HttpResponseContext]@{ + StatusCode = [HttpStatusCode]::BadRequest + Body = @{'Results' = @("Failed to execute JIT Admin enable task: $($_.Exception.Message)") } + }) + } } $DisableTaskBody = [pscustomobject]@{ @@ -158,7 +216,6 @@ function Invoke-ExecJITAdmin { $null = Add-CIPPScheduledTask -Task $DisableTaskBody -hidden $false $Results.Add("Scheduling JIT Admin $($Request.Body.ExpireAction.value) task for $Username") - # TODO - We should find a way to have this return a HTTP status code based on the success or failure of the operation. This also doesn't return the results of the operation in a Results hash table, like most of the rest of the API. return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::OK Body = @{'Results' = @($Results) } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecOffboardUser.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecOffboardUser.ps1 index 0ce96583a85a..0ca013970a1f 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecOffboardUser.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecOffboardUser.ps1 @@ -35,6 +35,7 @@ function Invoke-ExecOffboardUser { Email = [bool]$Request.Body.PostExecution.email PSA = [bool]$Request.Body.PostExecution.psa } + Reference = $Request.Body.reference } Add-CIPPScheduledTask -Task $taskObject -hidden $false -Headers $Headers } else { diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListJITAdmin.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListJITAdmin.ps1 index 9c4ca15bc5d6..705e4b205258 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListJITAdmin.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListJITAdmin.ps1 @@ -46,7 +46,9 @@ accountEnabled = $_.accountEnabled jitAdminEnabled = $_.($Schema.id).jitAdminEnabled jitAdminExpiration = $_.($Schema.id).jitAdminExpiration + jitAdminStartDate = $_.($Schema.id).jitAdminStartDate jitAdminReason = $_.($Schema.id).jitAdminReason + jitAdminCreatedBy = $_.($Schema.id).jitAdminCreatedBy memberOf = $MemberOf } } @@ -109,7 +111,9 @@ accountEnabled = $UserObject.accountEnabled jitAdminEnabled = $UserObject.jitAdminEnabled jitAdminExpiration = $UserObject.jitAdminExpiration + jitAdminStartDate = $UserObject.jitAdminStartDate jitAdminReason = $UserObject.jitAdminReason + jitAdminCreatedBy = $UserObject.jitAdminCreatedBy memberOf = $UserObject.memberOf } ) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListNewUserDefaults.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListNewUserDefaults.ps1 index a3e243fdf143..847e7271c95f 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListNewUserDefaults.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListNewUserDefaults.ps1 @@ -12,7 +12,13 @@ function Invoke-ListNewUserDefaults { # Get the TenantFilter from query parameters $TenantFilter = $Request.Query.TenantFilter - Write-Host "TenantFilter from request: $TenantFilter" + + # Get the includeAllTenants flag from query or body parameters (defaults to true) + $IncludeAllTenants = if ($Request.Query.includeAllTenants -eq 'false' -or $Request.Body.includeAllTenants -eq 'false') { + $false + } else { + $true + } # Get the templates table $Table = Get-CippTable -tablename 'templates' @@ -25,19 +31,27 @@ function Invoke-ListNewUserDefaults { $data = $row.JSON | ConvertFrom-Json -Depth 100 -ErrorAction Stop $data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $row.GUID -Force $data | Add-Member -NotePropertyName 'RowKey' -NotePropertyValue $row.RowKey -Force - Write-Host "Template found: $($data.templateName), tenantFilter: $($data.tenantFilter)" $data } catch { Write-Warning "Failed to process User Default template: $($row.RowKey) - $($_.Exception.Message)" } } - Write-Host "Total templates before filtering: $($Templates.Count)" - # Filter by tenant if TenantFilter is provided if ($TenantFilter) { - $Templates = $Templates | Where-Object -Property tenantFilter -EQ $TenantFilter - Write-Host "Templates after filtering: $($Templates.Count)" + if ($TenantFilter -eq 'AllTenants') { + # When requesting AllTenants, return only templates stored under AllTenants + $Templates = $Templates | Where-Object -Property tenantFilter -eq 'AllTenants' + } else { + # When requesting a specific tenant + if ($IncludeAllTenants) { + # Include both tenant-specific and AllTenants templates + $Templates = $Templates | Where-Object { $_.tenantFilter -eq $TenantFilter -or $_.tenantFilter -eq 'AllTenants' } + } else { + # Return only tenant-specific templates (exclude AllTenants) + $Templates = $Templates | Where-Object -Property tenantFilter -eq $TenantFilter + } + } } # Sort by template name @@ -45,7 +59,7 @@ function Invoke-ListNewUserDefaults { # If a specific ID is requested, filter to that template if ($Request.query.ID) { - $Templates = $Templates | Where-Object -Property GUID -EQ $Request.query.ID + $Templates = $Templates | Where-Object -Property GUID -eq $Request.query.ID } $Templates = ConvertTo-Json -InputObject @($Templates) -Depth 100 diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUsers.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUsers.ps1 index d7e0c7f2f33f..40928e896231 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUsers.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUsers.ps1 @@ -7,7 +7,8 @@ Function Invoke-ListUsers { #> [CmdletBinding()] param($Request, $TriggerMetadata) - $ConvertTable = Import-Csv ConversionTable.csv | Sort-Object -Property 'guid' -Unique + $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase + $ConvertTable = Import-Csv (Join-Path $ModuleBase 'lib\data\ConversionTable.csv') | Sort-Object -Property 'guid' -Unique # Interact with query parameters or the body of the request. $TenantFilter = $Request.Query.tenantFilter $GraphFilter = $Request.Query.graphFilter diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/New-CippCoreRequest.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/New-CippCoreRequest.ps1 index 5ccd7467ec94..70586323cd32 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/New-CippCoreRequest.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/New-CippCoreRequest.ps1 @@ -12,6 +12,34 @@ function New-CippCoreRequest { [CmdletBinding(SupportsShouldProcess = $true)] param($Request, $TriggerMetadata) + # Initialize per-request timing + $HttpTimings = @{} + $HttpTotalStopwatch = [System.Diagnostics.Stopwatch]::StartNew() + + # Initialize AsyncLocal storage for thread-safe per-invocation context + if (-not $script:CippInvocationIdStorage) { + $script:CippInvocationIdStorage = [System.Threading.AsyncLocal[string]]::new() + } + if (-not $script:CippAllowedTenantsStorage) { + $script:CippAllowedTenantsStorage = [System.Threading.AsyncLocal[object]]::new() + } + if (-not $script:CippAllowedGroupsStorage) { + $script:CippAllowedGroupsStorage = [System.Threading.AsyncLocal[object]]::new() + } + if (-not $script:CippUserRolesStorage) { + $script:CippUserRolesStorage = [System.Threading.AsyncLocal[hashtable]]::new() + } + + # Initialize user roles cache for this request + if (-not $script:CippUserRolesStorage.Value) { + $script:CippUserRolesStorage.Value = @{} + } + + # Set InvocationId in AsyncLocal storage for console logging correlation + if ($global:TelemetryClient -and $TriggerMetadata.InvocationId) { + $script:CippInvocationIdStorage.Value = $TriggerMetadata.InvocationId + } + $FunctionName = 'Invoke-{0}' -f $Request.Params.CIPPEndpoint Write-Information "API Endpoint: $($Request.Params.CIPPEndpoint) | Frontend Version: $($Request.Headers.'X-CIPP-Version' ?? 'Not specified')" @@ -41,48 +69,107 @@ function New-CippCoreRequest { if ((Get-Command -Name $FunctionName -ErrorAction SilentlyContinue) -or $FunctionName -eq 'Invoke-Me') { try { + $swAccess = [System.Diagnostics.Stopwatch]::StartNew() $Access = Test-CIPPAccess -Request $Request + $swAccess.Stop() + $HttpTimings['AccessCheck'] = $swAccess.Elapsed.TotalMilliseconds if ($FunctionName -eq 'Invoke-Me') { + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return $Access } } catch { Write-Information "Access denied for $FunctionName : $($_.Exception.Message)" + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::Forbidden Body = $_.Exception.Message }) } - + $swTenants = [System.Diagnostics.Stopwatch]::StartNew() $AllowedTenants = Test-CippAccess -Request $Request -TenantList + $swTenants.Stop() + $HttpTimings['AllowedTenants'] = $swTenants.Elapsed.TotalMilliseconds + + $swGroups = [System.Diagnostics.Stopwatch]::StartNew() $AllowedGroups = Test-CippAccess -Request $Request -GroupList + $swGroups.Stop() + $HttpTimings['AllowedGroups'] = $swGroups.Elapsed.TotalMilliseconds if ($AllowedTenants -notcontains 'AllTenants') { Write-Warning 'Limiting tenant access' - $script:AllowedTenants = $AllowedTenants + $script:CippAllowedTenantsStorage.Value = $AllowedTenants } if ($AllowedGroups -notcontains 'AllGroups') { Write-Warning 'Limiting group access' - $script:AllowedGroups = $AllowedGroups + $script:CippAllowedGroupsStorage.Value = $AllowedGroups } try { Write-Information "Access: $Access" Write-LogMessage -headers $Headers -API $Request.Params.CIPPEndpoint -message 'Accessed this API' -Sev 'Debug' if ($Access) { - $Response = & $FunctionName @HttpTrigger + # Prepare telemetry metadata for HTTP API call + $metadata = @{ + Endpoint = $Request.Params.CIPPEndpoint + FunctionName = $FunctionName + Method = $Request.Method + TriggerType = 'HTTP' + } + + # Add tenant filter if present + if ($Request.Query.TenantFilter) { + $metadata['Tenant'] = $Request.Query.TenantFilter + } elseif ($Request.Body.TenantFilter) { + $metadata['Tenant'] = $Request.Body.TenantFilter + } + + # Add user info if available + if ($Request.Headers.'x-ms-client-principal-name') { + $metadata['User'] = $Request.Headers.'x-ms-client-principal-name' + } + + # Wrap the API call execution with telemetry + $swInvoke = [System.Diagnostics.Stopwatch]::StartNew() + $Response = Measure-CippTask -TaskName $Request.Params.CIPPEndpoint -Metadata $metadata -Script { & $FunctionName @HttpTrigger } + $swInvoke.Stop() + $HttpTimings['InvokeEndpoint'] = $swInvoke.Elapsed.TotalMilliseconds + # Filter to only return HttpResponseContext objects $HttpResponse = $Response | Where-Object { $_.PSObject.TypeNames -eq 'Microsoft.Azure.Functions.PowerShellWorker.HttpResponseContext' } if ($HttpResponse) { # Return the first valid HttpResponseContext found + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]($HttpResponse | Select-Object -First 1)) } else { # If no valid response context found, create a default success response if ($Response.PSObject.Properties.Name -contains 'StatusCode' -and $Response.PSObject.Properties.Name -contains 'Body') { + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]@{ StatusCode = $Response.StatusCode Body = $Response.Body }) } else { + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::OK Body = $Response @@ -92,18 +179,33 @@ function New-CippCoreRequest { } } catch { Write-Warning "Exception occurred on HTTP trigger ($FunctionName): $($_.Exception.Message)" + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::InternalServerError Body = $_.Exception.Message }) } } else { + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::NotFound Body = 'Endpoint not found' }) } } else { + $HttpTotalStopwatch.Stop() + $HttpTimings['Total'] = $HttpTotalStopwatch.Elapsed.TotalMilliseconds + $HttpTimingsRounded = [ordered]@{} + foreach ($Key in ($HttpTimings.Keys | Sort-Object)) { $HttpTimingsRounded[$Key] = [math]::Round($HttpTimings[$Key], 2) } + Write-Debug "#### HTTP Request Timings #### $($HttpTimingsRounded | ConvertTo-Json -Compress)" return ([HttpResponseContext]@{ StatusCode = [HttpStatusCode]::PreconditionFailed Body = 'Request not processed' diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Security/Invoke-ExecAlertsList.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Security/Invoke-ExecAlertsList.ps1 index 1f1733152f55..5e87cdc60e00 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Security/Invoke-ExecAlertsList.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Security/Invoke-ExecAlertsList.ps1 @@ -62,9 +62,6 @@ function Invoke-ExecAlertsList { QueueMessage = 'Still loading data for all tenants. Please check back in a few more minutes' QueueId = $RunningQueue.RowKey } - [PSCustomObject]@{ - Waiting = $true - } } elseif (!$Rows -and !$RunningQueue) { # If no rows are found and no queue is running, we will start a new one $TenantList = Get-Tenants -IncludeErrors @@ -85,11 +82,7 @@ function Invoke-ExecAlertsList { } SkipLog = $true } | ConvertTo-Json -Depth 10 - $InstanceId = Start-NewOrchestration -FunctionName CIPPOrchestrator -InputObject $InputObject - [PSCustomObject]@{ - Waiting = $true - InstanceId = $InstanceId - } + Start-NewOrchestration -FunctionName CIPPOrchestrator -InputObject $InputObject } else { $Metadata = [PSCustomObject]@{ QueueId = $RunningQueue.RowKey ?? $null diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Domains/Invoke-AddDomain.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Domains/Invoke-AddDomain.ps1 new file mode 100644 index 000000000000..4e6f40b4b01b --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Domains/Invoke-AddDomain.ps1 @@ -0,0 +1,50 @@ +function Invoke-AddDomain { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + Tenant.Administration.ReadWrite + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + + $APIName = $Request.Params.CIPPEndpoint + $TenantFilter = $Request.Body.tenantFilter + $DomainName = $Request.Body.domain + + # Interact with query parameters or the body of the request. + try { + if ([string]::IsNullOrWhiteSpace($DomainName)) { + throw 'Domain name is required' + } + + # Validate domain name format + if ($DomainName -notmatch '^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$') { + throw 'Invalid domain name format' + } + + Write-Information "Adding domain $DomainName to tenant $TenantFilter" + + $Body = @{ + id = $DomainName + } | ConvertTo-Json -Compress + + $GraphRequest = New-GraphPOSTRequest -uri 'https://graph.microsoft.com/beta/domains' -tenantid $TenantFilter -type POST -body $Body -AsApp $true + + $Result = "Successfully added domain $DomainName to tenant $TenantFilter. Please verify the domain to complete setup." + Write-LogMessage -headers $Request.Headers -API $APIName -tenant $TenantFilter -message "Added domain $DomainName" -Sev 'Info' + $StatusCode = [HttpStatusCode]::OK + } catch { + $ErrorMessage = Get-CippException -Exception $_ + $Result = "Failed to add domain $DomainName`: $($ErrorMessage.NormalizedError)" + Write-LogMessage -headers $Request.Headers -API $APIName -tenant $TenantFilter -message "Failed to add domain $DomainName`: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage + $StatusCode = [HttpStatusCode]::Forbidden + } + + return ([HttpResponseContext]@{ + StatusCode = $StatusCode + Body = @{'Results' = $Result } + }) + +} + diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Domains/Invoke-ExecDomainAction.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Domains/Invoke-ExecDomainAction.ps1 new file mode 100644 index 000000000000..91380834dae8 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Domains/Invoke-ExecDomainAction.ps1 @@ -0,0 +1,91 @@ +function Invoke-ExecDomainAction { + <# + .FUNCTIONALITY + Entrypoint + .ROLE + Tenant.Administration.ReadWrite + #> + [CmdletBinding()] + param($Request, $TriggerMetadata) + + $APIName = $Request.Params.CIPPEndpoint + $TenantFilter = $Request.Body.tenantFilter + $DomainName = $Request.Body.domain + $Action = $Request.Body.Action + + try { + if ([string]::IsNullOrWhiteSpace($DomainName)) { + throw 'Domain name is required' + } + + if ([string]::IsNullOrWhiteSpace($Action)) { + throw 'Action is required' + } + + switch ($Action) { + 'verify' { + Write-Information "Verifying domain $DomainName for tenant $TenantFilter" + + $Body = @{ + verificationDnsRecordCollection = @() + } | ConvertTo-Json -Compress + + $null = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/domains/$DomainName/verify" -tenantid $TenantFilter -type POST -body $Body -AsApp $true + + $Result = @{ + resultText = "Domain $DomainName has been verified successfully." + state = 'success' + } + + Write-LogMessage -headers $Request.Headers -API $APIName -tenant $TenantFilter -message "Verified domain $DomainName" -Sev 'Info' + $StatusCode = [HttpStatusCode]::OK + } + 'delete' { + Write-Information "Deleting domain $DomainName from tenant $TenantFilter" + + $null = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/domains/$DomainName" -tenantid $TenantFilter -type DELETE -AsApp $true + + $Result = @{ + resultText = "Domain $DomainName has been deleted successfully." + state = 'success' + } + + Write-LogMessage -headers $Request.Headers -API $APIName -tenant $TenantFilter -message "Deleted domain $DomainName" -Sev 'Info' + $StatusCode = [HttpStatusCode]::OK + } + 'setDefault' { + Write-Information "Setting domain $DomainName as default for tenant $TenantFilter" + + $Body = @{ + isDefault = $true + } | ConvertTo-Json -Compress + + $GraphRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/domains/$DomainName" -tenantid $TenantFilter -type PATCH -body $Body -AsApp $true + + $Result = @{ + resultText = "Domain $DomainName has been set as the default domain successfully." + state = 'success' + } + + Write-LogMessage -headers $Request.Headers -API $APIName -tenant $TenantFilter -message "Set domain $DomainName as default" -Sev 'Info' + $StatusCode = [HttpStatusCode]::OK + } + default { + throw "Invalid action: $Action" + } + } + } catch { + $ErrorMessage = Get-CippException -Exception $_ + $Result = @{ + resultText = "Failed to perform action on domain $DomainName`: $($ErrorMessage.NormalizedError)" + state = 'error' + } + Write-LogMessage -headers $Request.Headers -API $APIName -tenant $TenantFilter -message "Failed to perform action on domain $DomainName`: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage + $StatusCode = [HttpStatusCode]::Forbidden + } + + return ([HttpResponseContext]@{ + StatusCode = $StatusCode + Body = @{'Results' = $Result } + }) +} diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-AddCAPolicy.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-AddCAPolicy.ps1 index a18a532513d8..26fa7c3b2b19 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-AddCAPolicy.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-AddCAPolicy.ps1 @@ -11,13 +11,24 @@ function Invoke-AddCAPolicy { $APIName = $Request.Params.CIPPEndpoint $Headers = $Request.Headers - $Tenants = $Request.body.tenantFilter.value if ('AllTenants' -in $Tenants) { $Tenants = (Get-Tenants).defaultDomainName } $results = foreach ($Tenant in $tenants) { try { - $CAPolicy = New-CIPPCAPolicy -replacePattern $Request.Body.replacename -Overwrite $request.Body.overwrite -TenantFilter $Tenant -state $Request.Body.NewState -DisableSD $Request.Body.DisableSD -RawJSON $Request.Body.RawJSON -APIName $APIName -Headers $Headers + $NewCAPolicy = @{ + replacePattern = $Request.Body.replacename + Overwrite = $Request.Body.overwrite + TenantFilter = $Tenant + state = $Request.Body.NewState + DisableSD = $Request.Body.DisableSD + CreateGroups = $Request.Body.CreateGroups + RawJSON = $Request.Body.RawJSON + APIName = $APIName + Headers = $Headers + } + $CAPolicy = New-CIPPCAPolicy @NewCAPolicy + "$CAPolicy" } catch { "$($_.Exception.Message)" diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ExecCAExclusion.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ExecCAExclusion.ps1 index 27fdae54e71f..915f64fc4244 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ExecCAExclusion.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ExecCAExclusion.ps1 @@ -84,6 +84,8 @@ function Invoke-ExecCAExclusion { } Parameters = [pscustomobject]$Parameters ScheduledTime = $StartDate + PostExecution = $Request.Body.postExecution + Reference = $Request.Body.reference } Write-Information ($TaskBody | ConvertTo-Json -Depth 10) @@ -117,6 +119,7 @@ function Invoke-ExecCAExclusion { Command = @{ value = 'Set-CIPPAuditLogUserExclusion'; label = 'Set-CIPPAuditLogUserExclusion' } Parameters = [pscustomobject]@{ Users = $AuditUsers; Action = 'Remove'; Type = 'Location' } ScheduledTime = $EndDate + Reference = $Request.Body.reference } Add-CIPPScheduledTask -Task $AuditRemoveTask -hidden $true } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ExecGDAPInvite.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ExecGDAPInvite.ps1 index 2e5a051df76a..98021647278a 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ExecGDAPInvite.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ExecGDAPInvite.ps1 @@ -11,8 +11,6 @@ function Invoke-ExecGDAPInvite { $APIName = $Request.Params.CIPPEndpoint $Headers = $Request.Headers - - $Action = $Request.Body.Action ?? $Request.Query.Action ?? 'Create' $InviteId = $Request.Body.InviteId $Reference = $Request.Body.Reference @@ -23,8 +21,8 @@ function Invoke-ExecGDAPInvite { $user = $headers.'x-ms-client-principal' $Technician = ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($user)) | ConvertFrom-Json).userDetails } elseif ($Headers.'x-ms-client-principal-idp' -eq 'aad') { - $Table = Get-CIPPTable -TableName 'ApiClients' - $Client = Get-CIPPAzDataTableEntity @Table -Filter "RowKey eq '$($headers.'x-ms-client-principal-name')'" + $ApiClientTable = Get-CIPPTable -TableName 'ApiClients' + $Client = Get-CIPPAzDataTableEntity @ApiClientTable -Filter "RowKey eq '$($headers.'x-ms-client-principal-name')'" $Technician = $Client.AppName ?? 'CIPP-API' } else { try { diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Reports/Invoke-ListLicenses.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Reports/Invoke-ListLicenses.ps1 index 5f5cdfcf2920..b33334241408 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Reports/Invoke-ListLicenses.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Reports/Invoke-ListLicenses.ps1 @@ -1,4 +1,4 @@ -Function Invoke-ListLicenses { +function Invoke-ListLicenses { <# .FUNCTIONALITY Entrypoint @@ -9,10 +9,8 @@ Function Invoke-ListLicenses { param($Request, $TriggerMetadata) # Interact with query parameters or the body of the request. $TenantFilter = $Request.Query.tenantFilter - $RawGraphRequest = if ($TenantFilter -ne 'AllTenants') { + if ($TenantFilter -ne 'AllTenants') { $GraphRequest = Get-CIPPLicenseOverview -TenantFilter $TenantFilter | ForEach-Object { - $TermInfo = $_.TermInfo | ConvertFrom-Json -ErrorAction SilentlyContinue - $_.TermInfo = $TermInfo $_ } } else { @@ -38,14 +36,11 @@ Function Invoke-ListLicenses { Write-Host "Started permissions orchestration with ID = '$InstanceId'" } } else { - $GraphRequest = $Rows | Where-Object { $_.License } | ForEach-Object { - if ($_.TermInfo) { - $TermInfo = $_.TermInfo | ConvertFrom-Json -ErrorAction SilentlyContinue - $_.TermInfo = $TermInfo - } else { - $_ | Add-Member -NotePropertyName TermInfo -NotePropertyValue $null + $GraphRequest = $Rows | ForEach-Object { + $LicenseData = $_.License | ConvertFrom-Json -ErrorAction SilentlyContinue + foreach ($License in $LicenseData) { + $License } - $_ } } } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-CIPPStandardsRun.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-CIPPStandardsRun.ps1 index 72861c0358d8..f8b4316ad842 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-CIPPStandardsRun.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-CIPPStandardsRun.ps1 @@ -48,48 +48,53 @@ function Invoke-CIPPStandardsRun { } else { Write-Information 'Classic Standards Run' - $GetStandardParams = @{ - TenantFilter = $TenantFilter - runManually = $runManually - } - - if ($TemplateID) { - $GetStandardParams['TemplateId'] = $TemplateID - } - - $AllTasks = Get-CIPPStandards @GetStandardParams - if ($Force.IsPresent) { Write-Information 'Clearing Rerun Cache' Test-CIPPRerun -ClearAll -TenantFilter $TenantFilter -Type 'Standard' } - if ($AllTasks.Count -eq 0) { - Write-Information "No standards found for tenant $($TenantFilter)." + # Get tenant list for batch processing + write-host "Getting tenants for filter: $TenantFilter" + $AllTenantsList = if ($TenantFilter -eq 'allTenants') { + Get-Tenants + } else { + Get-Tenants | Where-Object { + $_.defaultDomainName -eq $TenantFilter -or $_.customerId -eq $TenantFilter + } + } + + if ($AllTenantsList.Count -eq 0) { + Write-Information "No tenants found for filter $TenantFilter" return } - #For each item in our object, run the queue. - $Queue = New-CippQueueEntry -Name "Applying Standards ($TenantFilter)" -TotalTasks ($AllTasks | Measure-Object).Count + # Build batch of per-tenant list activities + $Batch = foreach ($Tenant in $AllTenantsList) { + $BatchItem = @{ + FunctionName = 'CIPPStandardsList' + TenantFilter = $Tenant.defaultDomainName + runManually = $runManually + } + if ($TemplateID) { + $BatchItem['TemplateId'] = $TemplateID + } + $BatchItem + } + + Write-Information "Built batch of $($Batch.Count) tenant standards list activities: $($Batch | ConvertTo-Json -Depth 5 -Compress)" + # Start orchestrator with distributed batch and post-exec aggregation $InputObject = [PSCustomObject]@{ - OrchestratorName = 'StandardsOrchestrator' - QueueFunction = @{ - FunctionName = 'GetStandards' - QueueId = $Queue.RowKey - StandardParams = @{ - TenantFilter = $TenantFilter - runManually = $runManually - } + OrchestratorName = 'StandardsList' + Batch = @($Batch) + PostExecution = @{ + FunctionName = 'CIPPStandardsApplyBatch' } SkipLog = $true } - if ($TemplateID) { - $InputObject.QueueFunction.StandardParams['TemplateId'] = $TemplateID - } + Write-Information "InputObject: $($InputObject | ConvertTo-Json -Depth 5 -Compress)" $InstanceId = Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Depth 5 -Compress) - Write-Information "Started orchestration with ID = '$InstanceId'" - #$Orchestrator = New-OrchestrationCheckStatusResponse -Request $Request -InstanceId $InstanceId + Write-Information "Started standards list orchestration with ID = '$InstanceId'" } } diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1 index 3ec5056c2735..ffe14702ce63 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1 @@ -169,13 +169,13 @@ function Invoke-ExecCommunityRepo { $MigrationTable = $Files | Where-Object { $_.name -eq 'MigrationTable' } | Select-Object -Last 1 if ($MigrationTable) { - Write-Host 'Found a migration table, getting contents' + Write-Host "Found a migration table, getting contents for $FullName" $MigrationTable = (Get-GitHubFileContents -FullName $FullName -Branch $Branch -Path $MigrationTable.path).content | ConvertFrom-Json } $NamedLocations = $Files | Where-Object { $_.name -match 'ALLOWED COUNTRIES' } $LocationData = foreach ($Location in $NamedLocations) { - (Get-GitHubFileContents -FullName $TemplateSettings.templateRepo.value -Branch $TemplateSettings.templateRepoBranch.value -Path $Location.path).content | ConvertFrom-Json + (Get-GitHubFileContents -FullName $FullName -Branch $Branch -Path $Location.path).content | ConvertFrom-Json } } Import-CommunityTemplate -Template $Content -SHA $Template.sha -MigrationTable $MigrationTable -LocationData $LocationData diff --git a/Modules/CIPPCore/Public/Entrypoints/Invoke-ExecListAppId.ps1 b/Modules/CIPPCore/Public/Entrypoints/Invoke-ExecListAppId.ps1 index 7570b578f921..e3c8a7f62611 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Invoke-ExecListAppId.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Invoke-ExecListAppId.ps1 @@ -16,26 +16,10 @@ Function Invoke-ExecListAppId { $env:ApplicationID = $Secret.ApplicationID $env:TenantID = $Secret.TenantID } else { - Write-Information 'Connecting to Azure' - Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - try { - $Context = Get-AzContext - if ($Context.Subscription) { - #Write-Information "Current context: $($Context | ConvertTo-Json)" - if ($Context.Subscription.Id -ne $SubscriptionId) { - Write-Information "Setting context to subscription $SubscriptionId" - $null = Set-AzContext -SubscriptionId $SubscriptionId - } - } - } catch { - Write-Information "ERROR: Could not set context to subscription $SubscriptionId." - } - $keyvaultname = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] try { - $env:ApplicationID = (Get-AzKeyVaultSecret -AsPlainText -VaultName $keyvaultname -Name 'ApplicationID') - $env:TenantID = (Get-AzKeyVaultSecret -AsPlainText -VaultName $keyvaultname -Name 'TenantID') + $env:ApplicationID = (Get-CippKeyVaultSecret -AsPlainText -VaultName $keyvaultname -Name 'ApplicationID') + $env:TenantID = (Get-CippKeyVaultSecret -AsPlainText -VaultName $keyvaultname -Name 'TenantID') Write-Information "Retrieving secrets from KeyVault: $keyvaultname. The AppId is $($env:ApplicationID) and the TenantId is $($env:TenantID)" } catch { Write-Information "Retrieving secrets from KeyVault: $keyvaultname. The AppId is $($env:ApplicationID) and the TenantId is $($env:TenantID)" diff --git a/Modules/CIPPCore/Public/Entrypoints/Invoke-ListCheckExtAlerts.ps1 b/Modules/CIPPCore/Public/Entrypoints/Invoke-ListCheckExtAlerts.ps1 index 61618a0fc7c7..95533bce6e7c 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Invoke-ListCheckExtAlerts.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Invoke-ListCheckExtAlerts.ps1 @@ -22,7 +22,7 @@ function Invoke-ListCheckExtAlerts { try { $Tenants = Get-Tenants -IncludeErrors - $Alerts = Get-CIPPAzDataTableEntity @Table -Filter $Filter | Where-Object { $Tenants.defaultDomainName -contains $_.tenantFilter } ?? @() + $Alerts = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Where-Object { $Tenants.defaultDomainName -contains $_.tenantFilter }) ?? @() } catch { Write-LogMessage -headers $Headers -API $APIName -message "Failed to retrieve check extension alerts: $($_.Exception.Message)" -Sev 'Error' $Alerts = @() diff --git a/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogIngestion.ps1 b/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogIngestion.ps1 new file mode 100644 index 000000000000..f11d8f9396a3 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogIngestion.ps1 @@ -0,0 +1,91 @@ +function Start-AuditLogIngestion { + <# + .SYNOPSIS + Start the Audit Log Ingestion Orchestrator using Office 365 Management Activity API + + .DESCRIPTION + Orchestrator that creates batches of tenants to ingest audit logs from the Office 365 Management Activity API. + Each tenant is processed by Push-AuditLogIngestion activity function. + + .FUNCTIONALITY + Entrypoint + #> + [CmdletBinding(SupportsShouldProcess = $true)] + param() + + try { + Write-Information 'Office 365 Management Activity API: Starting audit log ingestion orchestrator' + # Get webhook rules to determine which tenants to monitor + $WebhookRulesTable = Get-CippTable -TableName 'WebhookRules' + $WebhookRules = Get-CIPPAzDataTableEntity @WebhookRulesTable -Filter "PartitionKey eq 'Webhookv2'" + if (($WebhookRules | Measure-Object).Count -eq 0) { + Write-Information 'No webhook rules defined, skipping audit log ingestion' + return + } + + # Process webhook rules to get tenant list + $ConfigEntries = $WebhookRules | ForEach-Object { + $ConfigEntry = $_ + if (!$ConfigEntry.excludedTenants) { + $ConfigEntry | Add-Member -MemberType NoteProperty -Name 'excludedTenants' -Value @() -Force + } else { + $ConfigEntry.excludedTenants = $ConfigEntry.excludedTenants | ConvertFrom-Json + } + $ConfigEntry.Tenants = $ConfigEntry.Tenants | ConvertFrom-Json + $ConfigEntry + } + + $TenantList = Get-Tenants -IncludeErrors + $TenantsToProcess = [System.Collections.Generic.List[object]]::new() + + foreach ($Tenant in $TenantList) { + # Check if tenant has any webhook rules and collect content types + $TenantInConfig = $false + $MatchingConfigs = [System.Collections.Generic.List[object]]::new() + + foreach ($ConfigEntry in $ConfigEntries) { + if ($ConfigEntry.excludedTenants.value -contains $Tenant.defaultDomainName) { + continue + } + $TenantsList = Expand-CIPPTenantGroups -TenantFilter ($ConfigEntry.Tenants) + if ($TenantsList.value -contains $Tenant.defaultDomainName -or $TenantsList.value -contains 'AllTenants') { + $TenantInConfig = $true + $MatchingConfigs.Add($ConfigEntry) + } + } + + if ($TenantInConfig -and $MatchingConfigs.Count -gt 0) { + # Extract unique content types from webhook rules (e.g., Audit.Exchange, Audit.SharePoint) + $ContentTypes = @($MatchingConfigs | Select-Object -Property type | Where-Object { $_.type } | Sort-Object -Property type -Unique | ForEach-Object { $_.type }) + + if ($ContentTypes.Count -gt 0) { + $TenantsToProcess.Add([PSCustomObject]@{ + defaultDomainName = $Tenant.defaultDomainName + customerId = $Tenant.customerId + ContentTypes = $ContentTypes + }) + } + } + } if ($TenantsToProcess.Count -eq 0) { + Write-Information 'No tenants configured for audit log ingestion' + return + } + + Write-Information "Audit Log Ingestion: Processing $($TenantsToProcess.Count) tenants" + + if ($PSCmdlet.ShouldProcess('Start-AuditLogIngestion', 'Starting Audit Log Ingestion')) { + $Queue = New-CippQueueEntry -Name 'Audit Logs Ingestion' -Reference 'AuditLogsIngestion' -TotalTasks $TenantsToProcess.Count + $Batch = $TenantsToProcess | Select-Object @{Name = 'TenantFilter'; Expression = { $_.defaultDomainName } }, @{Name = 'TenantId'; Expression = { $_.customerId } }, @{Name = 'ContentTypes'; Expression = { $_.ContentTypes } }, @{Name = 'QueueId'; Expression = { $Queue.RowKey } }, @{Name = 'FunctionName'; Expression = { 'AuditLogIngestion' } } + $InputObject = [PSCustomObject]@{ + OrchestratorName = 'AuditLogsIngestion' + Batch = @($Batch) + SkipLog = $true + } + Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Depth 5 -Compress) + Write-Information "Started audit log ingestion orchestration for $($TenantsToProcess.Count) tenants" + } + } catch { + Write-LogMessage -API 'AuditLogIngestion' -message 'Error in audit log ingestion orchestrator' -sev Error -LogData (Get-CippException -Exception $_) + Write-Information "Audit log ingestion orchestrator error: $($_.Exception.Message)" + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogProcessingOrchestrator.ps1 b/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogProcessingOrchestrator.ps1 index 3971a7d3e728..2a1427d33028 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogProcessingOrchestrator.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogProcessingOrchestrator.ps1 @@ -28,9 +28,9 @@ function Start-AuditLogProcessingOrchestrator { $ProcessBatch = foreach ($TenantGroup in $TenantGroups) { $TenantFilter = $TenantGroup.Name $RowIds = @($TenantGroup.Group.RowKey) - for ($i = 0; $i -lt $RowIds.Count; $i += 1000) { - Write-Host "Processing $TenantFilter with $($RowIds.Count) row IDs. We're processing id $($RowIds[$i]) to $($RowIds[[Math]::Min($i + 999, $RowIds.Count - 1)])" - $BatchRowIds = $RowIds[$i..([Math]::Min($i + 999, $RowIds.Count - 1))] + for ($i = 0; $i -lt $RowIds.Count; $i += 500) { + Write-Host "Processing $TenantFilter with $($RowIds.Count) row IDs. We're processing id $($RowIds[$i]) to $($RowIds[[Math]::Min($i + 499, $RowIds.Count - 1)])" + $BatchRowIds = $RowIds[$i..([Math]::Min($i + 499, $RowIds.Count - 1))] [PSCustomObject]@{ TenantFilter = $TenantFilter RowIds = $BatchRowIds diff --git a/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-ExtensionOrchestrator.ps1 b/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-ExtensionOrchestrator.ps1 index 7c47ad657c64..65773f8b0652 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-ExtensionOrchestrator.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-ExtensionOrchestrator.ps1 @@ -10,7 +10,7 @@ function Start-ExtensionOrchestrator { $Table = Get-CIPPTable -TableName Extensionsconfig $ExtensionConfig = (Get-AzDataTableEntity @Table).config - if (Test-Json -Json $ExtensionConfig) { + if ($ExtensionConfig -and (Test-Json -Json $ExtensionConfig)) { $Configuration = ($ExtensionConfig | ConvertFrom-Json) } else { $Configuration = @{} diff --git a/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-BackupRetentionCleanup.ps1 b/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-BackupRetentionCleanup.ps1 new file mode 100644 index 000000000000..9a70515884a4 --- /dev/null +++ b/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-BackupRetentionCleanup.ps1 @@ -0,0 +1,78 @@ +function Start-BackupRetentionCleanup { + <# + .SYNOPSIS + Start the Backup Retention Cleanup Timer + .DESCRIPTION + This function cleans up old CIPP and Tenant backups based on the retention policy + #> + [CmdletBinding(SupportsShouldProcess = $true)] + param() + + try { + # Get retention settings + $ConfigTable = Get-CippTable -tablename Config + $Filter = "PartitionKey eq 'BackupRetention' and RowKey eq 'Settings'" + $RetentionSettings = Get-CIPPAzDataTableEntity @ConfigTable -Filter $Filter + + # Default to 30 days if not set + $RetentionDays = if ($RetentionSettings.RetentionDays) { + [int]$RetentionSettings.RetentionDays + } else { + 30 + } + + # Ensure minimum retention of 7 days + if ($RetentionDays -lt 7) { + $RetentionDays = 7 + } + + Write-Host "Starting backup cleanup with retention of $RetentionDays days" + + # Calculate cutoff date + $CutoffDate = (Get-Date).AddDays(-$RetentionDays).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') + + $DeletedCounts = [System.Collections.Generic.List[int]]::new() + + # Clean up CIPP Backups + if ($PSCmdlet.ShouldProcess('CIPPBackup', 'Cleaning up old backups')) { + $CIPPBackupTable = Get-CippTable -tablename 'CIPPBackup' + $Filter = "PartitionKey eq 'CIPPBackup' and Timestamp lt datetime'$CutoffDate'" + + $OldCIPPBackups = Get-AzDataTableEntity @CIPPBackupTable -Filter $Filter -Property @('PartitionKey', 'RowKey', 'ETag') + + if ($OldCIPPBackups) { + Write-Host "Found $($OldCIPPBackups.Count) old CIPP backups to delete" + Remove-AzDataTableEntity @CIPPBackupTable -Entity $OldCIPPBackups -Force + $DeletedCounts.Add($OldCIPPBackups.Count) + Write-LogMessage -API 'BackupRetentionCleanup' -message "Deleted $($OldCIPPBackups.Count) old CIPP backups" -Sev 'Info' + } else { + Write-Host 'No old CIPP backups found' + } + } + + # Clean up Scheduled/Tenant Backups + if ($PSCmdlet.ShouldProcess('ScheduledBackup', 'Cleaning up old backups')) { + $ScheduledBackupTable = Get-CippTable -tablename 'ScheduledBackup' + $Filter = "PartitionKey eq 'ScheduledBackup' and Timestamp lt datetime'$CutoffDate'" + + $OldScheduledBackups = Get-AzDataTableEntity @ScheduledBackupTable -Filter $Filter -Property @('PartitionKey', 'RowKey', 'ETag') + + if ($OldScheduledBackups) { + Write-Host "Found $($OldScheduledBackups.Count) old tenant backups to delete" + Remove-AzDataTableEntity @ScheduledBackupTable -Entity $OldScheduledBackups -Force + $DeletedCounts.Add($OldScheduledBackups.Count) + Write-LogMessage -API 'BackupRetentionCleanup' -message "Deleted $($OldScheduledBackups.Count) old tenant backups" -Sev 'Info' + } else { + Write-Host 'No old tenant backups found' + } + } + + $TotalDeleted = ($DeletedCounts | Measure-Object -Sum).Sum + Write-LogMessage -API 'BackupRetentionCleanup' -message "Backup cleanup completed. Total backups deleted: $TotalDeleted (retention: $RetentionDays days)" -Sev 'Info' + + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -API 'BackupRetentionCleanup' -message "Failed to run backup cleanup: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage + throw + } +} diff --git a/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-CIPPProcessorQueue.ps1 b/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-CIPPProcessorQueue.ps1 index 094cfe4875a5..4e34dc09f102 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-CIPPProcessorQueue.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-CIPPProcessorQueue.ps1 @@ -24,7 +24,29 @@ function Start-CIPPProcessorQueue { } if (Get-Command -Name $FunctionName -ErrorAction SilentlyContinue) { try { - Invoke-Command -ScriptBlock { & $FunctionName @Parameters } + # Prepare telemetry metadata + $metadata = @{ + FunctionName = $FunctionName + TriggerType = 'ProcessorQueue' + QueueRowKey = $QueueItem.RowKey + } + + # Add parameters info if available + if ($Parameters.Count -gt 0) { + $metadata['ParameterCount'] = $Parameters.Count + # Add common parameters + if ($Parameters.Tenant) { + $metadata['Tenant'] = $Parameters.Tenant + } + if ($Parameters.TenantFilter) { + $metadata['Tenant'] = $Parameters.TenantFilter + } + } + + # Wrap function execution with telemetry + Measure-CippTask -TaskName $FunctionName -Metadata $metadata -Script { + Invoke-Command -ScriptBlock { & $FunctionName @Parameters } + } } catch { Write-Warning "Failed to run function $($FunctionName). Error: $($_.Exception.Message)" } diff --git a/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-UpdateTokensTimer.ps1 b/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-UpdateTokensTimer.ps1 index fd8654db8907..42d8bf955c72 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-UpdateTokensTimer.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-UpdateTokensTimer.ps1 @@ -23,15 +23,9 @@ function Start-UpdateTokensTimer { Write-LogMessage -API 'Update Tokens' -message 'Could not update refresh token. Will try again in 7 days.' -sev 'CRITICAL' } } else { - if ($env:MSI_SECRET) { - Disable-AzContextAutosave -Scope Process | Out-Null - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $null = Set-AzContext -SubscriptionId $SubscriptionId - } $KV = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] if ($Refreshtoken) { - Set-AzKeyVaultSecret -VaultName $KV -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $Refreshtoken -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $KV -Name 'RefreshToken' -SecretValue (ConvertTo-SecureString -String $Refreshtoken -AsPlainText -Force) } else { Write-LogMessage -API 'Update Tokens' -message 'Could not update refresh token. Will try again in 7 days.' -sev 'CRITICAL' } @@ -63,7 +57,7 @@ function Start-UpdateTokensTimer { $Secret.ApplicationSecret = $AppSecret.secretText Add-AzDataTableEntity @Table -Entity $Secret -Force } else { - Set-AzKeyVaultSecret -VaultName $KV -Name 'ApplicationSecret' -SecretValue (ConvertTo-SecureString -String $AppSecret.secretText -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $KV -Name 'ApplicationSecret' -SecretValue (ConvertTo-SecureString -String $AppSecret.secretText -AsPlainText -Force) } Write-LogMessage -API 'Update Tokens' -message "New application secret generated for $AppId. Expiration date: $($AppSecret.endDateTime)." -sev 'INFO' } @@ -113,7 +107,7 @@ function Start-UpdateTokensTimer { } else { if ($Refreshtoken) { $name = $Tenant.customerId - Set-AzKeyVaultSecret -VaultName $KV -Name $name -SecretValue (ConvertTo-SecureString -String $Refreshtoken -AsPlainText -Force) + Set-CippKeyVaultSecret -VaultName $KV -Name $name -SecretValue (ConvertTo-SecureString -String $Refreshtoken -AsPlainText -Force) } else { Write-Warning "Could not update refresh token for tenant $($Tenant.displayName) ($($Tenant.customerId))." Write-LogMessage -API 'Update Tokens' -tenant $Tenant.defaultDomainName -tenantid $Tenant.customerId -message "Could not update refresh token for tenant $($Tenant.displayName). Will try again in 7 days." -sev 'CRITICAL' diff --git a/Modules/CIPPCore/Public/Functions/Get-CIPPTenantAlignment.ps1 b/Modules/CIPPCore/Public/Functions/Get-CIPPTenantAlignment.ps1 index 364e6c9bdf85..5375089a2007 100644 --- a/Modules/CIPPCore/Public/Functions/Get-CIPPTenantAlignment.ps1 +++ b/Modules/CIPPCore/Public/Functions/Get-CIPPTenantAlignment.ps1 @@ -24,14 +24,14 @@ function Get-CIPPTenantAlignment { [Parameter(Mandatory = $false)] [string]$TemplateId ) + $TemplateTable = Get-CippTable -tablename 'templates' + $TemplateFilter = "PartitionKey eq 'StandardsTemplateV2'" + $TenantGroups = Get-TenantGroups try { # Get all standard templates - $TemplateTable = Get-CippTable -tablename 'templates' - $TemplateFilter = "PartitionKey eq 'StandardsTemplateV2'" - $Templates = (Get-CIPPAzDataTableEntity @TemplateTable -Filter $TemplateFilter) | ForEach-Object { - $JSON = $_.JSON -replace '"Action":', '"action":' + $JSON = $_.JSON try { $RowKey = $_.RowKey $Data = $JSON | ConvertFrom-Json -Depth 100 -ErrorAction Stop @@ -51,19 +51,25 @@ function Get-CIPPTenantAlignment { } # Get standards comparison data - $StandardsTable = Get-CIPPTable -TableName 'CippStandardsReports' - $AllStandards = Get-CIPPAzDataTableEntity @StandardsTable -Filter "PartitionKey ne 'StandardReport' and PartitionKey ne ''" + $StandardsTable = Get-CippTable -TableName 'CippStandardsReports' + #this if statement is to bring down performance when running scheduled checks, we have to revisit this to a better query due to the extreme size this can get. + if ($TenantFilter) { + $filter = "PartitionKey eq '$TenantFilter'" + } else { + $filter = "PartitionKey ne 'StandardReport' and PartitionKey ne ''" + } + $AllStandards = Get-CIPPAzDataTableEntity @StandardsTable -Filter $filter # Filter by tenant if specified $Standards = if ($TenantFilter) { - $AllStandards | Where-Object { $_.PartitionKey -eq $TenantFilter } + $AllStandards } else { $Tenants = Get-Tenants -IncludeErrors $AllStandards | Where-Object { $_.PartitionKey -in $Tenants.defaultDomainName } } - + $TagTemplates = Get-CIPPAzDataTableEntity @TemplateTable # Build tenant standards data structure - $TenantStandards = @{} + $tenantData = @{} foreach ($Standard in $Standards) { $FieldName = $Standard.RowKey $FieldValue = $Standard.Value @@ -72,28 +78,23 @@ function Get-CIPPTenantAlignment { # Process field value if ($FieldValue -is [System.Boolean]) { $FieldValue = [bool]$FieldValue - } elseif (Test-Json -Json $FieldValue -ErrorAction SilentlyContinue) { + } else { try { - $FieldValue = ConvertFrom-Json -Depth 100 -InputObject $FieldValue -ErrorAction Stop + $FieldValue = ConvertFrom-Json -Depth 5 -InputObject $FieldValue -ErrorAction Stop } catch { - Write-Warning "$($FieldName) standard report could not be loaded: $($_.Exception.Message)" - $FieldValue = [PSCustomObject]@{ - Error = "Invalid JSON format: $($_.Exception.Message)" - OriginalValue = $FieldValue - } + $FieldValue = [string]$FieldValue } - } else { - $FieldValue = [string]$FieldValue } - if (-not $TenantStandards.ContainsKey($Tenant)) { - $TenantStandards[$Tenant] = @{} + if (-not $tenantData.ContainsKey($Tenant)) { + $tenantData[$Tenant] = @{} } - $TenantStandards[$Tenant][$FieldName] = @{ + $tenantData[$Tenant][$FieldName] = @{ Value = $FieldValue LastRefresh = $Standard.TimeStamp.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') } } + $TenantStandards = $tenantData $Results = [System.Collections.Generic.List[object]]::new() @@ -112,7 +113,7 @@ function Get-CIPPTenantAlignment { # Extract tenant values from the tenantFilter array $TenantValues = $Template.tenantFilter | ForEach-Object { if ($_.type -eq 'group') { - (Get-TenantGroups -GroupId $_.value).members.defaultDomainName + ($TenantGroups | Where-Object -Property GroupName -EQ $_.value).Members.defaultDomainName } else { $_.value } @@ -152,26 +153,25 @@ function Get-CIPPTenantAlignment { $IntuneStandardId = "standards.IntuneTemplate.$($IntuneTemplate.TemplateList.value)" $IntuneActions = if ($IntuneTemplate.action) { $IntuneTemplate.action } else { @() } $IntuneReportingEnabled = ($IntuneActions | Where-Object { $_.value -and ($_.value.ToLower() -eq 'report' -or $_.value.ToLower() -eq 'remediate') }).Count -gt 0 - [PSCustomObject]@{ StandardId = $IntuneStandardId ReportingEnabled = $IntuneReportingEnabled } } + if ($IntuneTemplate.'TemplateList-Tags') { foreach ($Tag in $IntuneTemplate.'TemplateList-Tags') { Write-Host "Processing Intune Tag: $($Tag.value)" $IntuneActions = if ($IntuneTemplate.action) { $IntuneTemplate.action } else { @() } $IntuneReportingEnabled = ($IntuneActions | Where-Object { $_.value -and ($_.value.ToLower() -eq 'report' -or $_.value.ToLower() -eq 'remediate') }).Count -gt 0 - $TemplatesList = Get-CIPPAzDataTableEntity @TemplateTable -Filter $Filter | Where-Object -Property package -EQ $Tag.value - $TemplatesList | ForEach-Object { + $TagTemplate = $TagTemplates | Where-Object -Property package -EQ $Tag.value + $TagTemplates | ForEach-Object { $TagStandardId = "standards.IntuneTemplate.$($_.GUID)" [PSCustomObject]@{ StandardId = $TagStandardId ReportingEnabled = $IntuneReportingEnabled } } - } } } @@ -199,22 +199,43 @@ function Get-CIPPTenantAlignment { } $AllStandards = $StandardsData.StandardId - $ReportingEnabledStandards = ($StandardsData | Where-Object { $_.ReportingEnabled }).StandardId + $AllStandardsArray = @($AllStandards) $ReportingDisabledStandards = ($StandardsData | Where-Object { -not $_.ReportingEnabled }).StandardId + $ReportingDisabledSet = [System.Collections.Generic.HashSet[string]]::new() + foreach ($item in $ReportingDisabledStandards) { [void]$ReportingDisabledSet.Add($item) } + $TemplateAssignedTenantsSet = if ($TemplateAssignedTenants.Count -gt 0) { + $set = [System.Collections.Generic.HashSet[string]]::new() + foreach ($item in $TemplateAssignedTenants) { [void]$set.Add($item) } + $set + } else { $null } foreach ($TenantName in $TenantStandards.Keys) { - if (-not $AppliestoAllTenants -and $TenantName -notin $TemplateAssignedTenants) { - continue + # Check tenant scope with HashSet and cache tenant data + if (-not $AppliestoAllTenants) { + if ($TemplateAssignedTenantsSet -and -not $TemplateAssignedTenantsSet.Contains($TenantName)) { + continue + } } $AllCount = $AllStandards.Count $LatestDataCollection = $null + # Cache hashtable lookup + $CurrentTenantStandards = $TenantStandards[$TenantName] + + # Pre-allocate list with capacity + $ComparisonResults = [System.Collections.Generic.List[object]]::new($AllStandardsArray.Count) + + # Use for loop instead of foreach + for ($i = 0; $i -lt $AllStandardsArray.Count; $i++) { + $StandardKey = $AllStandardsArray[$i] - $ComparisonTable = foreach ($StandardKey in $AllStandards) { - $IsReportingDisabled = $ReportingDisabledStandards -contains $StandardKey + # Use HashSet for Contains + $IsReportingDisabled = $ReportingDisabledSet.Contains($StandardKey) + # Use cached tenant data + $HasStandard = $CurrentTenantStandards.ContainsKey($StandardKey) - if ($TenantStandards[$TenantName].ContainsKey($StandardKey)) { - $StandardObject = $TenantStandards[$TenantName][$StandardKey] + if ($HasStandard) { + $StandardObject = $CurrentTenantStandards[$StandardKey] $Value = $StandardObject.Value if ($StandardObject.LastRefresh) { @@ -227,44 +248,54 @@ function Get-CIPPTenantAlignment { $IsCompliant = ($Value -eq $true) $IsLicenseMissing = ($Value -is [string] -and $Value -like 'License Missing:*') - if ($IsReportingDisabled) { - $ComplianceStatus = 'Reporting Disabled' + $ComplianceStatus = if ($IsReportingDisabled) { + 'Reporting Disabled' } elseif ($IsCompliant) { - $ComplianceStatus = 'Compliant' + 'Compliant' } elseif ($IsLicenseMissing) { - $ComplianceStatus = 'License Missing' + 'License Missing' } else { - $ComplianceStatus = 'Non-Compliant' + 'Non-Compliant' } - [PSCustomObject]@{ - StandardName = $StandardKey - Compliant = $IsCompliant - StandardValue = ($Value | ConvertTo-Json -Depth 100 -Compress) - ComplianceStatus = $ComplianceStatus - ReportingDisabled = $IsReportingDisabled - } + $StandardValueJson = $Value | ConvertTo-Json -Depth 5 -Compress + + $ComparisonResults.Add([PSCustomObject]@{ + StandardName = $StandardKey + Compliant = $IsCompliant + StandardValue = $StandardValueJson + ComplianceStatus = $ComplianceStatus + ReportingDisabled = $IsReportingDisabled + }) } else { - if ($IsReportingDisabled) { - $ComplianceStatus = 'Reporting Disabled' + $ComplianceStatus = if ($IsReportingDisabled) { + 'Reporting Disabled' } else { - $ComplianceStatus = 'Non-Compliant' + 'Non-Compliant' } - [PSCustomObject]@{ - StandardName = $StandardKey - Compliant = $false - StandardValue = 'NOT FOUND' - ComplianceStatus = $ComplianceStatus - ReportingDisabled = $IsReportingDisabled - } + $ComparisonResults.Add([PSCustomObject]@{ + StandardName = $StandardKey + Compliant = $false + StandardValue = 'NOT FOUND' + ComplianceStatus = $ComplianceStatus + ReportingDisabled = $IsReportingDisabled + }) } } - $CompliantStandards = ($ComparisonTable | Where-Object { $_.ComplianceStatus -eq 'Compliant' }).Count - $NonCompliantStandards = ($ComparisonTable | Where-Object { $_.ComplianceStatus -eq 'Non-Compliant' }).Count - $LicenseMissingStandards = ($ComparisonTable | Where-Object { $_.ComplianceStatus -eq 'License Missing' }).Count - $ReportingDisabledStandardsCount = ($ComparisonTable | Where-Object { $_.ReportingDisabled }).Count + # Replace Where-Object with direct counting + $CompliantStandards = 0 + $NonCompliantStandards = 0 + $LicenseMissingStandards = 0 + $ReportingDisabledStandardsCount = 0 + + foreach ($item in $ComparisonResults) { + if ($item.ComplianceStatus -eq 'Compliant') { $CompliantStandards++ } + elseif ($item.ComplianceStatus -eq 'Non-Compliant') { $NonCompliantStandards++ } + elseif ($item.ComplianceStatus -eq 'License Missing') { $LicenseMissingStandards++ } + if ($item.ReportingDisabled) { $ReportingDisabledStandardsCount++ } + } $AlignmentPercentage = if (($AllCount - $ReportingDisabledStandardsCount) -gt 0) { [Math]::Round(($CompliantStandards / ($AllCount - $ReportingDisabledStandardsCount)) * 100) @@ -286,6 +317,7 @@ function Get-CIPPTenantAlignment { standardSettings = $Template.Standards driftAlertEmail = $Template.driftAlertEmail driftAlertWebhook = $Template.driftAlertWebhook + driftAlertDisableEmail = $Template.driftAlertDisableEmail AlignmentScore = $AlignmentPercentage LicenseMissingPercentage = $LicenseMissingPercentage CombinedScore = $AlignmentPercentage + $LicenseMissingPercentage @@ -295,7 +327,7 @@ function Get-CIPPTenantAlignment { TotalStandards = $AllCount ReportingDisabledCount = $ReportingDisabledStandardsCount LatestDataCollection = if ($LatestDataCollection) { $LatestDataCollection } else { $null } - ComparisonDetails = $ComparisonTable + ComparisonDetails = $ComparisonResults } $Results.Add($Result) diff --git a/Modules/CIPPCore/Public/Functions/Test-CIPPStandardLicense.ps1 b/Modules/CIPPCore/Public/Functions/Test-CIPPStandardLicense.ps1 index 758c68b75ea5..caf6edd5c6b4 100644 --- a/Modules/CIPPCore/Public/Functions/Test-CIPPStandardLicense.ps1 +++ b/Modules/CIPPCore/Public/Functions/Test-CIPPStandardLicense.ps1 @@ -37,7 +37,7 @@ function Test-CIPPStandardLicense { $TenantCapabilities = Get-CIPPTenantCapabilities -TenantFilter $TenantFilter $Capabilities = foreach ($Capability in $RequiredCapabilities) { - Write-Host "Checking capability: $Capability" + Write-Verbose "Checking capability: $Capability" if ($TenantCapabilities.$Capability -eq $true) { $Capability } @@ -47,11 +47,11 @@ function Test-CIPPStandardLicense { if (!$SkipLog.IsPresent) { Write-LogMessage -API 'Standards' -tenant $TenantFilter -message "Tenant does not have the required capability to run standard $StandardName`: The tenant needs one of the following service plans: $($RequiredCapabilities -join ',')" -sev Error Set-CIPPStandardsCompareField -FieldName "standards.$StandardName" -FieldValue "License Missing: This tenant is not licensed for the following capabilities: $($RequiredCapabilities -join ',')" -Tenant $TenantFilter - Write-Host "Tenant does not have the required capability to run standard $StandardName - $($RequiredCapabilities -join ','). Exiting" + Write-Verbose "Tenant does not have the required capability to run standard $StandardName - $($RequiredCapabilities -join ','). Exiting" } return $false } - Write-Host "Tenant has the required capabilities for standard $StandardName" + Write-Verbose "Tenant has the required capabilities for standard $StandardName" return $true } catch { if (!$SkipLog.IsPresent) { diff --git a/Modules/CIPPCore/Public/Get-ApplicationInsightsQuery.ps1 b/Modules/CIPPCore/Public/Get-ApplicationInsightsQuery.ps1 new file mode 100644 index 000000000000..a1eee795710c --- /dev/null +++ b/Modules/CIPPCore/Public/Get-ApplicationInsightsQuery.ps1 @@ -0,0 +1,50 @@ +function Get-ApplicationInsightsQuery { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string]$Query + ) + + if (-not $env:APPLICATIONINSIGHTS_CONNECTION_STRING -and -not $env:APPINSIGHTS_INSTRUMENTATIONKEY) { + throw 'Application Insights is not enabled for this instance.' + } + + $SubscriptionId = Get-CIPPAzFunctionAppSubId + if ($env:WEBSITE_SKU -ne 'FlexConsumption' -and $Owner -match '^(?[^+]+)\+(?[^-]+(?:-[^-]+)*?)(?:-[^-]+webspace(?:-Linux)?)?$') { + $RGName = $Matches.RGName + } else { + $RGName = $env:WEBSITE_RESOURCE_GROUP + } + $AppInsightsName = $env:WEBSITE_SITE_NAME + + $Body = @{ + 'query' = $Query + 'options' = @{'truncationMaxSize' = 67108864 } + 'maxRows' = 1001 + 'workspaceFilters' = @{'regions' = @() } + } | ConvertTo-Json -Depth 10 -Compress + + $AppInsightsQuery = 'subscriptions/{0}/resourceGroups/{1}/providers/microsoft.insights/components/{2}/query' -f $SubscriptionId, $RGName, $AppInsightsName + + $resource = 'https://api.loganalytics.io' + $Token = Get-CIPPAzIdentityToken -ResourceUrl $resource + + $headerParams = @{'Authorization' = "Bearer $Token" } + $logAnalyticsBaseURI = 'https://api.loganalytics.io/v1' + + $result = Invoke-RestMethod -Method POST -Uri "$($logAnalyticsBaseURI)/$AppInsightsQuery" -Headers $headerParams -Body $Body -ContentType 'application/json' -ErrorAction Stop + + # Format Result to PSObject + $headerRow = $null + $headerRow = $result.tables.columns | Select-Object name + $columnsCount = $headerRow.Count + $logData = foreach ($row in $result.tables.rows) { + $data = New-Object PSObject + for ($i = 0; $i -lt $columnsCount; $i++) { + $data | Add-Member -MemberType NoteProperty -Name $headerRow[$i].name -Value $row[$i] + } + $data + } + + return $logData +} diff --git a/Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1 b/Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1 index 02d791993929..1aecba454413 100644 --- a/Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1 +++ b/Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1 @@ -34,22 +34,6 @@ function Get-CIPPAuthentication { } } } else { - Write-Information 'Connecting to Azure' - Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - try { - $Context = Get-AzContext - if ($Context.Subscription) { - #Write-Information "Current context: $($Context | ConvertTo-Json)" - if ($Context.Subscription.Id -ne $SubscriptionId) { - Write-Information "Setting context to subscription $SubscriptionId" - $null = Set-AzContext -SubscriptionId $SubscriptionId - } - } - } catch { - Write-Information "ERROR: Could not set context to subscription $SubscriptionId." - } - $keyvaultname = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] #Get list of tenants that have 'directTenant' set to true $TenantsTable = Get-CippTable -tablename 'Tenants' @@ -58,14 +42,14 @@ function Get-CIPPAuthentication { if ($tenants) { $tenants | ForEach-Object { $name = $_.customerId - $secret = Get-AzKeyVaultSecret -VaultName $keyvaultname -Name $name -AsPlainText -ErrorAction Stop + $secret = Get-CippKeyVaultSecret -VaultName $keyvaultname -Name $name -AsPlainText -ErrorAction Stop if ($secret) { Set-Item -Path env:$name -Value $secret -Force } } } $Variables | ForEach-Object { - Set-Item -Path env:$_ -Value (Get-AzKeyVaultSecret -VaultName $keyvaultname -Name $_ -AsPlainText -ErrorAction Stop) -Force + Set-Item -Path env:$_ -Value (Get-CippKeyVaultSecret -VaultName $keyvaultname -Name $_ -AsPlainText -ErrorAction Stop) -Force } } $env:SetFromProfile = $true diff --git a/Modules/CIPPCore/Public/Get-CIPPDrift.ps1 b/Modules/CIPPCore/Public/Get-CIPPDrift.ps1 index 13bc151458b6..465b094f7066 100644 --- a/Modules/CIPPCore/Public/Get-CIPPDrift.ps1 +++ b/Modules/CIPPCore/Public/Get-CIPPDrift.ps1 @@ -29,39 +29,44 @@ function Get-CIPPDrift { [switch]$AllTenants ) - + $IntuneCapable = Test-CIPPStandardLicense -StandardName 'IntuneTemplate_general' -TenantFilter $TenantFilter -RequiredCapabilities @('INTUNE_A', 'MDM_Services', 'EMS', 'SCCM', 'MICROSOFTINTUNEPLAN1') + $ConditionalAccessCapable = Test-CIPPStandardLicense -StandardName 'ConditionalAccessTemplate_general' -TenantFilter $TenantFilter -RequiredCapabilities @('AAD_PREMIUM', 'AAD_PREMIUM_P2') $IntuneTable = Get-CippTable -tablename 'templates' - $IntuneFilter = "PartitionKey eq 'IntuneTemplate'" - $RawIntuneTemplates = (Get-CIPPAzDataTableEntity @IntuneTable -Filter $IntuneFilter) - $AllIntuneTemplates = $RawIntuneTemplates | ForEach-Object { - try { - $JSONData = $_.JSON | ConvertFrom-Json -Depth 100 -ErrorAction SilentlyContinue - $data = $JSONData.RAWJson | ConvertFrom-Json -Depth 100 -ErrorAction SilentlyContinue - $data | Add-Member -NotePropertyName 'displayName' -NotePropertyValue $JSONData.Displayname -Force - $data | Add-Member -NotePropertyName 'description' -NotePropertyValue $JSONData.Description -Force - $data | Add-Member -NotePropertyName 'Type' -NotePropertyValue $JSONData.Type -Force - $data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.RowKey -Force - $data - } catch { - # Skip invalid templates - } - } | Sort-Object -Property displayName - + if ($IntuneCapable) { + $IntuneFilter = "PartitionKey eq 'IntuneTemplate'" + $RawIntuneTemplates = (Get-CIPPAzDataTableEntity @IntuneTable -Filter $IntuneFilter) + $AllIntuneTemplates = $RawIntuneTemplates | ForEach-Object { + try { + $JSONData = $_.JSON | ConvertFrom-Json -Depth 10 -ErrorAction SilentlyContinue + $data = $JSONData.RAWJson | ConvertFrom-Json -Depth 10 -ErrorAction SilentlyContinue + $data | Add-Member -NotePropertyName 'displayName' -NotePropertyValue $JSONData.Displayname -Force + $data | Add-Member -NotePropertyName 'description' -NotePropertyValue $JSONData.Description -Force + $data | Add-Member -NotePropertyName 'Type' -NotePropertyValue $JSONData.Type -Force + $data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.RowKey -Force + $data + } catch { + # Skip invalid templates + } + } | Sort-Object -Property displayName + } # Load all CA templates - $CAFilter = "PartitionKey eq 'CATemplate'" - $RawCATemplates = (Get-CIPPAzDataTableEntity @IntuneTable -Filter $CAFilter) - $AllCATemplates = $RawCATemplates | ForEach-Object { - try { - $data = $_.JSON | ConvertFrom-Json -Depth 100 -ErrorAction SilentlyContinue - $data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.RowKey -Force - $data - } catch { - # Skip invalid templates - } - } | Sort-Object -Property displayName + if ($ConditionalAccessCapable) { + $CAFilter = "PartitionKey eq 'CATemplate'" + $RawCATemplates = (Get-CIPPAzDataTableEntity @IntuneTable -Filter $CAFilter) + $AllCATemplates = $RawCATemplates | ForEach-Object { + try { + $data = $_.JSON | ConvertFrom-Json -Depth 100 -ErrorAction SilentlyContinue + $data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.RowKey -Force + $data + } catch { + # Skip invalid templates + } + } | Sort-Object -Property displayName + } try { $AlignmentData = Get-CIPPTenantAlignment -TenantFilter $TenantFilter -TemplateId $TemplateId | Where-Object -Property standardType -EQ 'drift' + if (-not $AlignmentData) { Write-Warning "No alignment data found for tenant $TenantFilter" return @() @@ -101,8 +106,8 @@ function Get-CIPPDrift { #if the $ComparisonItem.StandardName contains *intuneTemplate*, then it's an Intune policy deviation, and we need to grab the correct displayname from the template table if ($ComparisonItem.StandardName -like '*intuneTemplate*') { $CompareGuid = $ComparisonItem.StandardName.Split('.') | Select-Object -Index 2 - Write-Host "Extracted GUID: $CompareGuid" - $Template = $AllIntuneTemplates | Where-Object { $_.GUID -like "*$CompareGuid*" } + Write-Verbose "Extracted GUID: $CompareGuid" + $Template = $AllIntuneTemplates | Where-Object { $_.GUID -eq "$CompareGuid" } if ($Template) { $displayName = $Template.displayName $standardDescription = $Template.description @@ -111,8 +116,8 @@ function Get-CIPPDrift { # Handle Conditional Access templates if ($ComparisonItem.StandardName -like '*ConditionalAccessTemplate*') { $CompareGuid = $ComparisonItem.StandardName.Split('.') | Select-Object -Index 2 - Write-Host "Extracted CA GUID: $CompareGuid" - $Template = $AllCATemplates | Where-Object { $_.GUID -like "*$CompareGuid*" } + Write-Verbose "Extracted CA GUID: $CompareGuid" + $Template = $AllCATemplates | Where-Object { $_.GUID -eq "$CompareGuid" } if ($Template) { $displayName = $Template.displayName $standardDescription = $Template.description @@ -136,89 +141,91 @@ function Get-CIPPDrift { } # Perform full policy collection + if ($IntuneCapable) { + # Always get live data when not in AllTenants mode + $IntuneRequests = @( + @{ + id = 'deviceAppManagement/managedAppPolicies' + url = 'deviceAppManagement/managedAppPolicies?$top=999' + method = 'GET' + } + @{ + id = 'deviceManagement/deviceCompliancePolicies' + url = 'deviceManagement/deviceCompliancePolicies?$top=999' + method = 'GET' + } + @{ + id = 'deviceManagement/groupPolicyConfigurations' + url = 'deviceManagement/groupPolicyConfigurations?$top=999' + method = 'GET' + } + @{ + id = 'deviceManagement/deviceConfigurations' + url = 'deviceManagement/deviceConfigurations?$top=999' + method = 'GET' + } + @{ + id = 'deviceManagement/configurationPolicies' + url = 'deviceManagement/configurationPolicies?$top=999' + method = 'GET' + } + @{ + id = 'deviceManagement/windowsDriverUpdateProfiles' + url = 'deviceManagement/windowsDriverUpdateProfiles?$top=200' + method = 'GET' + } + @{ + id = 'deviceManagement/windowsFeatureUpdateProfiles' + url = 'deviceManagement/windowsFeatureUpdateProfiles?$top=200' + method = 'GET' + } + @{ + id = 'deviceManagement/windowsQualityUpdatePolicies' + url = 'deviceManagement/windowsQualityUpdatePolicies?$top=200' + method = 'GET' + } + @{ + id = 'deviceManagement/windowsQualityUpdateProfiles' + url = 'deviceManagement/windowsQualityUpdateProfiles?$top=200' + method = 'GET' + } + ) - # Always get live data when not in AllTenants mode - $IntuneRequests = @( - @{ - id = 'deviceAppManagement/managedAppPolicies' - url = 'deviceAppManagement/managedAppPolicies' - method = 'GET' - } - @{ - id = 'deviceManagement/deviceCompliancePolicies' - url = 'deviceManagement/deviceCompliancePolicies' - method = 'GET' - } - @{ - id = 'deviceManagement/groupPolicyConfigurations' - url = 'deviceManagement/groupPolicyConfigurations' - method = 'GET' - } - @{ - id = 'deviceManagement/deviceConfigurations' - url = 'deviceManagement/deviceConfigurations' - method = 'GET' - } - @{ - id = 'deviceManagement/configurationPolicies' - url = 'deviceManagement/configurationPolicies' - method = 'GET' - } - @{ - id = 'deviceManagement/windowsDriverUpdateProfiles' - url = 'deviceManagement/windowsDriverUpdateProfiles' - method = 'GET' - } - @{ - id = 'deviceManagement/windowsFeatureUpdateProfiles' - url = 'deviceManagement/windowsFeatureUpdateProfiles' - method = 'GET' - } - @{ - id = 'deviceManagement/windowsQualityUpdatePolicies' - url = 'deviceManagement/windowsQualityUpdatePolicies' - method = 'GET' - } - @{ - id = 'deviceManagement/windowsQualityUpdateProfiles' - url = 'deviceManagement/windowsQualityUpdateProfiles' - method = 'GET' - } - ) - - $TenantIntunePolicies = [System.Collections.Generic.List[object]]::new() - - try { - $IntuneGraphRequest = New-GraphBulkRequest -Requests $IntuneRequests -tenantid $TenantFilter -asapp $true + $TenantIntunePolicies = [System.Collections.Generic.List[object]]::new() - foreach ($Request in $IntuneGraphRequest) { - if ($Request.body.value) { - foreach ($Policy in $Request.body.value) { - $TenantIntunePolicies.Add([PSCustomObject]@{ - Type = $Request.id - Policy = $Policy - }) + try { + $IntuneGraphRequest = New-GraphBulkRequest -Requests $IntuneRequests -tenantid $TenantFilter -asapp $true + + foreach ($Request in $IntuneGraphRequest) { + if ($Request.body.value) { + foreach ($Policy in $Request.body.value) { + $TenantIntunePolicies.Add([PSCustomObject]@{ + Type = $Request.id + Policy = $Policy + }) + } } } + } catch { + Write-Warning "Failed to get Intune policies: $($_.Exception.Message)" } - } catch { - Write-Warning "Failed to get Intune policies: $($_.Exception.Message)" } - # Get Conditional Access policies - try { - $CARequests = @( - @{ - id = 'policies' - url = 'identity/conditionalAccess/policies' - method = 'GET' - } - ) - $CAGraphRequest = New-GraphBulkRequest -Requests $CARequests -tenantid $TenantFilter -asapp $true - $TenantCAPolicies = ($CAGraphRequest | Where-Object { $_.id -eq 'policies' }).body.value - } catch { - Write-Warning "Failed to get Conditional Access policies: $($_.Exception.Message)" - $TenantCAPolicies = @() + if ($ConditionalAccessCapable) { + try { + $CARequests = @( + @{ + id = 'policies' + url = 'identity/conditionalAccess/policies?$top=999' + method = 'GET' + } + ) + $CAGraphRequest = New-GraphBulkRequest -Requests $CARequests -tenantid $TenantFilter -asapp $true + $TenantCAPolicies = ($CAGraphRequest | Where-Object { $_.id -eq 'policies' }).body.value + } catch { + Write-Warning "Failed to get Conditional Access policies: $($_.Exception.Message)" + $TenantCAPolicies = @() + } } if ($Alignment.standardSettings) { @@ -277,7 +284,7 @@ function Get-CIPPDrift { standardName = $PolicyKey standardDisplayName = "Intune - $TenantPolicyName" expectedValue = 'This policy only exists in the tenant, not in the template.' - receivedValue = ($TenantPolicy.Policy | ConvertTo-Json -Depth 10 -Compress) + receivedValue = $TenantPolicy.Policy state = 'current' Status = $Status } @@ -307,7 +314,7 @@ function Get-CIPPDrift { standardName = $PolicyKey standardDisplayName = "Conditional Access - $($TenantCAPolicy.displayName)" expectedValue = 'This policy only exists in the tenant, not in the template.' - receivedValue = ($TenantCAPolicy | ConvertTo-Json -Depth 10 -Compress) + receivedValue = $TenantCAPolicy | Out-String state = 'current' Status = $Status } @@ -347,6 +354,7 @@ function Get-CIPPDrift { deniedDeviations = @($DeniedDeviations) allDeviations = @($AllDeviations) latestDataCollection = $Alignment.LatestDataCollection + driftSettings = $AlignmentData } $Results.Add($Result) diff --git a/Modules/CIPPCore/Public/Get-CIPPLicenseOverview.ps1 b/Modules/CIPPCore/Public/Get-CIPPLicenseOverview.ps1 index 9ef67b5e673f..2866df56749f 100644 --- a/Modules/CIPPCore/Public/Get-CIPPLicenseOverview.ps1 +++ b/Modules/CIPPCore/Public/Get-CIPPLicenseOverview.ps1 @@ -50,8 +50,8 @@ function Get-CIPPLicenseOverview { Tenant = $TenantFilter Licenses = $LicRequest } - Set-Location (Get-Item $PSScriptRoot).FullName - $ConvertTable = Import-Csv ConversionTable.csv + $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase + $ConvertTable = Import-Csv (Join-Path $ModuleBase 'lib\data\ConversionTable.csv') $LicenseTable = Get-CIPPTable -TableName ExcludedLicenses $ExcludedSkuList = Get-CIPPAzDataTableEntity @LicenseTable @@ -142,11 +142,9 @@ function Get-CIPPLicenseOverview { skuId = [string]$sku.skuId skuPartNumber = [string]$PrettyName availableUnits = [string]$sku.prepaidUnits.enabled - $sku.consumedUnits - TermInfo = [string]($TermInfo | ConvertTo-Json -Depth 10 -Compress) + TermInfo = $TermInfo AssignedUsers = ($UsersBySku.ContainsKey($SkuKey) ? @(($UsersBySku[$SkuKey])) : $null) AssignedGroups = ($GroupsBySku.ContainsKey($SkuKey) ? @(($GroupsBySku[$SkuKey])) : $null) - 'PartitionKey' = 'License' - 'RowKey' = "$($singleReq.Tenant) - $($sku.skuid)" } } } diff --git a/Modules/CIPPCore/Public/Get-CIPPMFAState.ps1 b/Modules/CIPPCore/Public/Get-CIPPMFAState.ps1 index b3d8dd5b1c44..651261d3bdfb 100644 --- a/Modules/CIPPCore/Public/Get-CIPPMFAState.ps1 +++ b/Modules/CIPPCore/Public/Get-CIPPMFAState.ps1 @@ -69,7 +69,16 @@ function Get-CIPPMFAState { } if ($CAState.count -eq 0) { $CAState.Add('None') | Out-Null } + + $assignments = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments?`$expand=principal" -tenantid $TenantFilter -ErrorAction SilentlyContinue + $adminObjectIds = $assignments | + Where-Object { + $_.principal.'@odata.type' -eq '#microsoft.graph.user' + } | + ForEach-Object { + $_.principal.id + } # Interact with query parameters or the body of the request. $GraphRequest = $Users | ForEach-Object { @@ -98,6 +107,7 @@ function Get-CIPPMFAState { $CoveredByCA = 'Not Enforced' } } + $IsAdmin = if ($adminObjectIds -contains $_.ObjectId) { $true } else { $false } $PerUser = $_.PerUserMFAState @@ -117,6 +127,7 @@ function Get-CIPPMFAState { CoveredByCA = $CoveredByCA CAPolicies = $UserCAState CoveredBySD = $SecureDefaultsState + IsAdmin = $IsAdmin RowKey = [string]($_.UserPrincipalName).replace('#', '') PartitionKey = 'users' } diff --git a/Modules/CIPPCore/Public/Get-CIPPTenantCapabilities.ps1 b/Modules/CIPPCore/Public/Get-CIPPTenantCapabilities.ps1 index 196568107230..cc743b6b2893 100644 --- a/Modules/CIPPCore/Public/Get-CIPPTenantCapabilities.ps1 +++ b/Modules/CIPPCore/Public/Get-CIPPTenantCapabilities.ps1 @@ -8,7 +8,7 @@ function Get-CIPPTenantCapabilities { ) $ConfigTable = Get-CIPPTable -TableName 'CacheCapabilities' $datetime = (Get-Date).AddDays(-1).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') - $ConfigEntries = Get-CIPPAzDataTableEntity @ConfigTable -Filter "RowKey eq '$TenantFilter' and Timestamp ge datetime'$datetime'" + $ConfigEntries = Get-CIPPAzDataTableEntity @ConfigTable -Filter "RowKey eq '$TenantFilter' and PartitionKey eq 'Capabilities' and Timestamp ge datetime'$datetime'" if ($ConfigEntries) { $Org = $ConfigEntries.JSON | ConvertFrom-Json } else { diff --git a/Modules/CIPPCore/Public/Get-CIPPTimerFunctions.ps1 b/Modules/CIPPCore/Public/Get-CIPPTimerFunctions.ps1 index c1dd7e5cd8e9..d60ca8ed40cf 100644 --- a/Modules/CIPPCore/Public/Get-CIPPTimerFunctions.ps1 +++ b/Modules/CIPPCore/Public/Get-CIPPTimerFunctions.ps1 @@ -41,6 +41,7 @@ function Get-CIPPTimerFunctions { $CIPPRoot = (Get-Item $CIPPCoreModuleRoot).Parent.Parent $CippTimers = Get-Content -Path $CIPPRoot\CIPPTimers.json + if ($ListAllTasks) { $Orchestrators = $CippTimers | ConvertFrom-Json | Sort-Object -Property Priority } else { @@ -59,45 +60,47 @@ function Get-CIPPTimerFunctions { } foreach ($Orchestrator in $Orchestrators) { - $Status = $OrchestratorStatus | Where-Object { $_.RowKey -eq $Orchestrator.Id } - if ($Status.Cron) { - $CronString = $Status.Cron - } else { - $CronString = $Orchestrator.Cron - } - $CronCount = ($CronString -split ' ' | Measure-Object).Count - if ($CronCount -eq 5) { - $Cron = [Ncrontab.Advanced.CrontabSchedule]::Parse($CronString) - } elseif ($CronCount -eq 6) { - $Cron = [Ncrontab.Advanced.CrontabSchedule]::Parse($CronString, [Ncrontab.Advanced.Enumerations.CronStringFormat]::WithSeconds) - } else { - Write-Warning "Invalid cron expression for $($Orchestrator.Command): $($Orchestrator.Cron)" - continue - } + if (Get-Command -Name $Orchestrator.Command -Module CIPPCore -ErrorAction SilentlyContinue) { + $Status = $OrchestratorStatus | Where-Object { $_.RowKey -eq $Orchestrator.Id } + if ($Status.Cron -and $Orchestrator.IsSystem -eq $true -and -not $ResetToDefault.IsPresent) { + $CronString = $Status.Cron + } else { + $CronString = $Orchestrator.Cron + } - if (!$ListAllTasks.IsPresent) { - if ($Orchestrator.PreferredProcessor -and $AvailableNodes -contains $Orchestrator.PreferredProcessor -and $Node -ne $Orchestrator.PreferredProcessor) { - # only run on preferred processor when available - continue - } elseif ((!$Orchestrator.PreferredProcessor -or $AvailableNodes -notcontains $Orchestrator.PreferredProcessor) -and $Node -notin ('http', 'proc')) { - # Catchall function nodes + $CronCount = ($CronString -split ' ' | Measure-Object).Count + if ($CronCount -eq 5) { + $Cron = [Ncrontab.Advanced.CrontabSchedule]::Parse($CronString) + } elseif ($CronCount -eq 6) { + $Cron = [Ncrontab.Advanced.CrontabSchedule]::Parse($CronString, [Ncrontab.Advanced.Enumerations.CronStringFormat]::WithSeconds) + } else { + Write-Warning "Invalid cron expression for $($Orchestrator.Command): $($Orchestrator.Cron)" continue } - } - $Now = Get-Date - if ($ListAllTasks.IsPresent) { - $NextOccurrence = [datetime]$Cron.GetNextOccurrence($Now) - } else { - $NextOccurrences = $Cron.GetNextOccurrences($Now.AddMinutes(-15), $Now.AddMinutes(15)) - if (!$Status -or $Status.LastOccurrence -eq 'Never') { - $NextOccurrence = $NextOccurrences | Where-Object { $_ -le (Get-Date) } | Select-Object -First 1 + if (!$ListAllTasks.IsPresent) { + if ($Orchestrator.PreferredProcessor -and $AvailableNodes -contains $Orchestrator.PreferredProcessor -and $Node -ne $Orchestrator.PreferredProcessor) { + # only run on preferred processor when available + continue + } elseif ((!$Orchestrator.PreferredProcessor -or $AvailableNodes -notcontains $Orchestrator.PreferredProcessor) -and $Node -notin ('http', 'proc')) { + # Catchall function nodes + continue + } + } + + $Now = Get-Date + if ($ListAllTasks.IsPresent) { + $NextOccurrence = [datetime]$Cron.GetNextOccurrence($Now) } else { - $NextOccurrence = $NextOccurrences | Where-Object { $_ -gt $Status.LastOccurrence.DateTime.ToLocalTime() -and $_ -le (Get-Date) } | Select-Object -First 1 + $NextOccurrences = $Cron.GetNextOccurrences($Now.AddMinutes(-15), $Now.AddMinutes(15)) + if (!$Status -or $Status.LastOccurrence -eq 'Never') { + $NextOccurrence = $NextOccurrences | Where-Object { $_ -le (Get-Date) } | Select-Object -First 1 + } else { + $NextOccurrence = $NextOccurrences | Where-Object { $_ -gt $Status.LastOccurrence.DateTime.ToLocalTime() -and $_ -le (Get-Date) } | Select-Object -First 1 + } } - } - if (Get-Command -Name $Orchestrator.Command -Module CIPPCore -ErrorAction SilentlyContinue) { + if ($NextOccurrence -or $ListAllTasks.IsPresent) { if (!$Status) { $Status = [pscustomobject]@{ @@ -115,8 +118,9 @@ function Get-CIPPTimerFunctions { } Add-CIPPAzDataTableEntity @Table -Entity $Status -Force } else { + $Status.Command = $Orchestrator.Command if ($Orchestrator.IsSystem -eq $true -or $ResetToDefault.IsPresent) { - $Status.Cron = $CronString + $Status.Cron = $Orchestrator.Cron } $Status.NextOccurrence = $NextOccurrence.ToUniversalTime() $PreferredProcessor = $Orchestrator.PreferredProcessor ?? '' @@ -151,4 +155,11 @@ function Get-CIPPTimerFunctions { } } } + + foreach ($StaleStatus in $OrchestratorStatus) { + if ($Orchestrators.Id -notcontains $StaleStatus.RowKey) { + Write-Warning "Removing stale timer function entry: $($StaleStatus.RowKey)" + Remove-AzDataTableEntity @Table -Entity $StaleStatus + } + } } diff --git a/Modules/CIPPCore/Public/Get-CippKeyVaultSecret.ps1 b/Modules/CIPPCore/Public/Get-CippKeyVaultSecret.ps1 new file mode 100644 index 000000000000..6de9dc5c25a6 --- /dev/null +++ b/Modules/CIPPCore/Public/Get-CippKeyVaultSecret.ps1 @@ -0,0 +1,71 @@ +function Get-CippKeyVaultSecret { + <# + .SYNOPSIS + Retrieves a secret from Azure Key Vault using REST API (no Az.KeyVault module required) + + .DESCRIPTION + Lightweight replacement for Get-AzKeyVaultSecret that uses REST API directly. + Significantly faster as it doesn't require loading the Az.KeyVault module. + + .PARAMETER VaultName + Name of the Key Vault. If not provided, derives from WEBSITE_DEPLOYMENT_ID environment variable. + + .PARAMETER Name + Name of the secret to retrieve. + + .PARAMETER AsPlainText + Returns the secret value as plain text instead of SecureString. + + .EXAMPLE + Get-CippKeyVaultSecret -Name 'ApplicationID' -AsPlainText + + .EXAMPLE + Get-CippKeyVaultSecret -VaultName 'mykeyvault' -Name 'RefreshToken' -AsPlainText + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false)] + [string]$VaultName, + + [Parameter(Mandatory = $true)] + [string]$Name, + + [Parameter(Mandatory = $false)] + [switch]$AsPlainText + ) + + try { + # Derive vault name if not provided + if (-not $VaultName) { + if ($env:WEBSITE_DEPLOYMENT_ID) { + $VaultName = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] + } else { + throw "VaultName not provided and WEBSITE_DEPLOYMENT_ID environment variable not set" + } + } + + # Get access token for Key Vault + $token = Get-CIPPAzIdentityToken -ResourceUrl "https://vault.azure.net" + + # Call Key Vault REST API + $uri = "https://$VaultName.vault.azure.net/secrets/$Name`?api-version=7.4" + $response = Invoke-RestMethod -Uri $uri -Headers @{ + Authorization = "Bearer $token" + } -Method Get -ErrorAction Stop + + # Return based on AsPlainText switch + if ($AsPlainText) { + return $response.value + } else { + # Return object similar to Get-AzKeyVaultSecret for compatibility + return @{ + SecretValue = ($response.value | ConvertTo-SecureString -AsPlainText -Force) + Name = $Name + VaultName = $VaultName + } + } + } catch { + Write-Error "Failed to retrieve secret '$Name' from vault '$VaultName': $($_.Exception.Message)" + throw + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Clear-CIPPAzStorageQueue.ps1 b/Modules/CIPPCore/Public/GraphHelper/Clear-CIPPAzStorageQueue.ps1 new file mode 100644 index 000000000000..2c361bf3e2bb --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/Clear-CIPPAzStorageQueue.ps1 @@ -0,0 +1,43 @@ +function Clear-CIPPAzStorageQueue { + <# + .SYNOPSIS + Clears all messages from a specified Azure Storage Queue. + .DESCRIPTION + Issues a DELETE request to //messages via New-CIPPAzStorageRequest. + Returns a compact object with StatusCode, Headers, and Request Uri. + .PARAMETER Name + The name of the queue to clear. + .PARAMETER ConnectionString + Azure Storage connection string. Defaults to $env:AzureWebJobsStorage. + .EXAMPLE + Clear-CIPPAzStorageQueue -Name 'cippjta72-workitems' + #> + [CmdletBinding(SupportsShouldProcess)] + param( + [Parameter(Mandatory = $true, Position = 0)] + [ValidateNotNullOrEmpty()] + [string]$Name, + + [Parameter(Mandatory = $false)] + [string]$ConnectionString = $env:AzureWebJobsStorage + ) + + if ($PSCmdlet.ShouldProcess($Name, 'Clear queue messages')) { + try { + $headers = @{ Accept = 'application/xml' } + $resp = New-CIPPAzStorageRequest -Service 'queue' -Resource ("$Name/messages") -Method 'DELETE' -Headers $headers -ConnectionString $ConnectionString + if ($null -eq $resp) { + # Fallback when no object returned: assume 204 if no exception was thrown + return [PSCustomObject]@{ StatusCode = 204; Headers = @{}; Uri = $null; Name = $Name } + } + # Normalize to concise output and include the queue name + $status = $null; $uri = $null; $hdrs = @{} + if ($resp.PSObject.Properties['StatusCode']) { $status = [int]$resp.StatusCode } + if ($resp.PSObject.Properties['Uri']) { $uri = $resp.Uri } + if ($resp.PSObject.Properties['Headers']) { $hdrs = $resp.Headers } + return [PSCustomObject]@{ Name = $Name; StatusCode = $status; Headers = $hdrs; Uri = $uri } + } catch { + throw $_ + } + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Convert-SKUName.ps1 b/Modules/CIPPCore/Public/GraphHelper/Convert-SKUName.ps1 index 2783eba3937d..698288f18598 100644 --- a/Modules/CIPPCore/Public/GraphHelper/Convert-SKUName.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/Convert-SKUName.ps1 @@ -9,8 +9,8 @@ function Convert-SKUname { $ConvertTable ) if (!$ConvertTable) { - Set-Location (Get-Item $PSScriptRoot).Parent.FullName - $ConvertTable = Import-Csv ConversionTable.csv + $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase + $ConvertTable = Import-Csv (Join-Path $ModuleBase 'lib\data\ConversionTable.csv') } if ($SkuName) { $ReturnedName = ($ConvertTable | Where-Object { $_.String_Id -eq $SkuName } | Select-Object -Last 1).'Product_Display_Name' } if ($SkuID) { $ReturnedName = ($ConvertTable | Where-Object { $_.guid -eq $SkuID } | Select-Object -Last 1).'Product_Display_Name' } diff --git a/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzFunctionAppSetting.ps1 b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzFunctionAppSetting.ps1 new file mode 100644 index 000000000000..54b2c332faa8 --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzFunctionAppSetting.ps1 @@ -0,0 +1,35 @@ +function Get-CIPPAzFunctionAppSetting { + <# + .SYNOPSIS + Retrieves Azure Function App application settings via ARM REST using managed identity. + .PARAMETER Name + Function App name. + .PARAMETER ResourceGroupName + Resource group name. + .PARAMETER AccessToken + Optional bearer token to override Managed Identity. If provided, this token is used for Authorization. + .EXAMPLE + Get-CIPPAzFunctionAppSetting -Name myfunc -ResourceGroupName rg1 + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $true)] + [string]$Name, + + [Parameter(Mandatory = $true)] + [string]$ResourceGroupName, + + [Parameter(Mandatory = $false)] + [string]$AccessToken + ) + + $subscriptionId = Get-CIPPAzFunctionAppSubId + $apiVersion = '2024-11-01' + $uri = "https://management.azure.com/subscriptions/$subscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Web/sites/$Name/config/appsettings/list?api-version=$apiVersion" + + # ARM peculiarity: listing appsettings can require POST on some endpoints + $restParams = @{ Uri = $uri; Method = 'POST' } + if ($AccessToken) { $restParams.AccessToken = $AccessToken } + $resp = New-CIPPAzRestRequest @restParams + return $resp +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzFunctionAppSubId.ps1 b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzFunctionAppSubId.ps1 new file mode 100644 index 000000000000..98418a2add4b --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzFunctionAppSubId.ps1 @@ -0,0 +1,15 @@ +function Get-CIPPAzFunctionAppSubId { + <# + .SYNOPSIS + Get the subscription ID for the current function app + .DESCRIPTION + Get the subscription ID for the current function app + .EXAMPLE + Get-CIPPAzFunctionAppSubId + #> + [CmdletBinding()] + param() + + $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 + return $SubscriptionId +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzStorageContainer.ps1 b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzStorageContainer.ps1 new file mode 100644 index 000000000000..bcc7a0c44abf --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzStorageContainer.ps1 @@ -0,0 +1,155 @@ +function Get-CIPPAzStorageContainer { + <# + .SYNOPSIS + Lists Azure Storage blob containers using Shared Key auth. + .DESCRIPTION + Uses New-CIPPAzStorageRequest to call the Blob service list API. + - Uses server-side 'prefix' when Name ends with a single trailing '*'. + - Builds container URIs from the connection string (standard, provided endpoint, emulator). + - Passes through container Properties returned by the service. + .PARAMETER Name + Container name filter. Supports wildcards (e.g., 'cipp*'). Defaults to '*'. + When the pattern ends with a single trailing '*' and contains no other wildcards, + a server-side 'prefix' is used for listing; otherwise client-side filtering is applied. + .PARAMETER ConnectionString + Azure Storage connection string. Defaults to $env:AzureWebJobsStorage + .EXAMPLE + Get-CIPPAzStorageContainer -Name 'cipp*' + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false, Position = 0)] + [string]$Name = '*', + + [Parameter(Mandatory = $false)] + [string]$ConnectionString = $env:AzureWebJobsStorage + ) + + begin { + function Parse-ConnString { + param([string]$Conn) + $map = @{} + if (-not $Conn) { return $map } + foreach ($part in ($Conn -split ';')) { + $p = $part.Trim() + if ($p -and $p -match '^(.+?)=(.+)$') { $map[$matches[1]] = $matches[2] } + } + $map + } + + function Get-BlobBaseInfo { + param([hashtable]$ConnParams) + $service = 'blob' + $svcCap = [char]::ToUpper($service[0]) + $service.Substring(1) + $endpointKey = "${svcCap}Endpoint" + $provided = $ConnParams[$endpointKey] + $useDev = ($ConnParams['UseDevelopmentStorage'] -eq 'true') + $account = $ConnParams['AccountName'] + + if ($provided) { + $u = [System.Uri]::new($provided) + return [PSCustomObject]@{ + Scheme = $u.Scheme + Host = $u.Host + Port = $u.Port + Path = $u.AbsolutePath.TrimEnd('/') + Mode = 'ProvidedEndpoint' + Account = $account + } + } + + if ($useDev) { + return [PSCustomObject]@{ + Scheme = 'http' + Host = '127.0.0.1' + Port = 10000 + Path = $null + Mode = 'Emulator' + Account = ($account ?? 'devstoreaccount1') + } + } + + $suffix = $ConnParams['EndpointSuffix'] + if (-not $suffix) { $suffix = 'core.windows.net' } + $scheme = $ConnParams['DefaultEndpointsProtocol'] + if (-not $scheme) { $scheme = 'https' } + return [PSCustomObject]@{ + Scheme = $scheme + Host = "$account.blob.$suffix" + Port = -1 + Path = $null + Mode = 'Standard' + Account = $account + } + } + + function Build-ContainerUri { + param([pscustomobject]$BaseInfo, [string]$ContainerName) + $ub = [System.UriBuilder]::new() + $ub.Scheme = $BaseInfo.Scheme + $ub.Host = $BaseInfo.Host + if ($BaseInfo.Port -and $BaseInfo.Port -ne -1) { $ub.Port = [int]$BaseInfo.Port } + switch ($BaseInfo.Mode) { + 'ProvidedEndpoint' { + $prefixPath = $BaseInfo.Path + if ([string]::IsNullOrEmpty($prefixPath)) { $ub.Path = "/$ContainerName" } + else { $ub.Path = ("$prefixPath/$ContainerName").Replace('//', '/') } + } + 'Emulator' { $ub.Path = "$($BaseInfo.Account)/$ContainerName" } + default { $ub.Path = "/$ContainerName" } + } + $ub.Uri.AbsoluteUri + } + } + + process { + $connParams = Parse-ConnString -Conn $ConnectionString + $baseInfo = Get-BlobBaseInfo -ConnParams $connParams + + # Determine server-side prefix optimization + $serverPrefix = $null + $pattern = $Name + if ([string]::IsNullOrEmpty($pattern)) { $pattern = '*' } + $canUsePrefix = $false + if ($pattern.EndsWith('*') -and $pattern.IndexOfAny([char[]]@('*', '?')) -eq ($pattern.Length - 1)) { + $serverPrefix = $pattern.Substring(0, $pattern.Length - 1) + $canUsePrefix = $true + } + + $listParams = @{ Service = 'blob'; Component = 'list'; ConnectionString = $ConnectionString } + if ($canUsePrefix -and $serverPrefix) { $listParams['QueryParams'] = @{ prefix = $serverPrefix } } + + $containers = New-CIPPAzStorageRequest @listParams + if (-not $containers) { return @() } + + # Normalize to array of {Name, Properties} + $items = @() + foreach ($c in $containers) { + if ($null -ne $c -and $c.PSObject.Properties['Name']) { + $items += [PSCustomObject]@{ Name = $c.Name; Properties = $c.Properties } + } + } + + # Client-side wildcard filtering when needed + if (-not $canUsePrefix) { + $items = $items | Where-Object { $_.Name -like $pattern } + } + + $results = @() + foreach ($it in $items) { + $uri = Build-ContainerUri -BaseInfo $baseInfo -ContainerName $it.Name + $results += [PSCustomObject]@{ + Name = $it.Name + Uri = $uri + Properties = $it.Properties + } + } + + # Optional banner for UX parity when displayed directly + if ($results.Count -gt 0 -and $baseInfo.Account) { + Write-Host "\n Storage Account Name: $($baseInfo.Account)\n" -ForegroundColor DarkGray + } + + $results + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzStorageQueue.ps1 b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzStorageQueue.ps1 new file mode 100644 index 000000000000..91e7c11077ad --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/Get-CIPPAzStorageQueue.ps1 @@ -0,0 +1,166 @@ +function Get-CIPPAzStorageQueue { + <# + .SYNOPSIS + Lists Azure Storage queues and approximate message counts using Shared Key auth. + .DESCRIPTION + Uses New-CIPPAzStorageRequest to call the Queue service REST API. + - Lists queues (optionally with server-side prefix when Name ends with '*'). + - Enriches each queue with ApproximateMessageCount via comp=metadata. + - Constructs queue URIs consistent with the resolved endpoint. + .PARAMETER Name + Queue name filter. Supports wildcards (e.g., 'cipp*'). Defaults to '*'. + When the pattern ends with a single trailing '*' and contains no other wildcards, + a server-side 'prefix' is used for listing; otherwise client-side filtering is applied. + .PARAMETER ConnectionString + Azure Storage connection string. Defaults to $env:AzureWebJobsStorage + .PARAMETER NoCount + If set, skips the metadata call and returns ApproximateMessageCount as $null. + .EXAMPLE + Get-CIPPAzStorageQueue -Name 'cippjta*' + Returns objects similar to Get-AzStorageQueue with Name, Uri, and ApproximateMessageCount. + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false, Position = 0)] + [string]$Name = '*', + + [Parameter(Mandatory = $false)] + [string]$ConnectionString = $env:AzureWebJobsStorage, + + [Parameter(Mandatory = $false)] + [switch]$NoCount + ) + + begin { + function Parse-ConnString { + param([string]$Conn) + $map = @{} + if (-not $Conn) { return $map } + foreach ($part in ($Conn -split ';')) { + $p = $part.Trim() + if ($p -and $p -match '^(.+?)=(.+)$') { $map[$matches[1]] = $matches[2] } + } + $map + } + + function Get-QueueBaseInfo { + param([hashtable]$ConnParams) + $service = 'queue' + $svcCap = [char]::ToUpper($service[0]) + $service.Substring(1) + $endpointKey = "${svcCap}Endpoint" + $provided = $ConnParams[$endpointKey] + $useDev = ($ConnParams['UseDevelopmentStorage'] -eq 'true') + $account = $ConnParams['AccountName'] + + if ($provided) { + $u = [System.Uri]::new($provided) + return [PSCustomObject]@{ + Scheme = $u.Scheme + Host = $u.Host + Port = $u.Port + Path = $u.AbsolutePath.TrimEnd('/') + Mode = 'ProvidedEndpoint' + Account = $account + } + } + + if ($useDev) { + return [PSCustomObject]@{ + Scheme = 'http' + Host = '127.0.0.1' + Port = 10001 + Path = $null + Mode = 'Emulator' + Account = ($account ?? 'devstoreaccount1') + } + } + + $suffix = $ConnParams['EndpointSuffix'] + if (-not $suffix) { $suffix = 'core.windows.net' } + $scheme = $ConnParams['DefaultEndpointsProtocol'] + if (-not $scheme) { $scheme = 'https' } + return [PSCustomObject]@{ + Scheme = $scheme + Host = "$account.queue.$suffix" + Port = -1 + Path = $null + Mode = 'Standard' + Account = $account + } + } + + function Build-QueueUri { + param([pscustomobject]$BaseInfo, [string]$QueueName) + $ub = [System.UriBuilder]::new() + $ub.Scheme = $BaseInfo.Scheme + $ub.Host = $BaseInfo.Host + if ($BaseInfo.Port -and $BaseInfo.Port -ne -1) { $ub.Port = [int]$BaseInfo.Port } + switch ($BaseInfo.Mode) { + 'ProvidedEndpoint' { + $prefixPath = $BaseInfo.Path + if ([string]::IsNullOrEmpty($prefixPath)) { $ub.Path = "/$QueueName" } + else { $ub.Path = ("$prefixPath/$QueueName").Replace('//', '/') } + } + 'Emulator' { $ub.Path = "$($BaseInfo.Account)/$QueueName" } + default { $ub.Path = "/$QueueName" } + } + $ub.Uri.AbsoluteUri + } + } + + process { + $connParams = Parse-ConnString -Conn $ConnectionString + $baseInfo = Get-QueueBaseInfo -ConnParams $connParams + + # Determine server-side prefix optimization + $serverPrefix = $null + $pattern = $Name + if ([string]::IsNullOrEmpty($pattern)) { $pattern = '*' } + $canUsePrefix = $false + if ($pattern.EndsWith('*') -and $pattern.IndexOfAny([char[]]@('*', '?')) -eq ($pattern.Length - 1)) { + $serverPrefix = $pattern.Substring(0, $pattern.Length - 1) + $canUsePrefix = $true + } + + $listParams = @{ Service = 'queue'; Component = 'list'; ConnectionString = $ConnectionString } + if ($canUsePrefix -and $serverPrefix) { $listParams['QueryParams'] = @{ prefix = $serverPrefix } } + + $queues = New-CIPPAzStorageRequest @listParams + if (-not $queues) { return @() } + + # Normalize to array of names + $queueItems = @() + foreach ($q in $queues) { + if ($null -ne $q -and $q.PSObject.Properties['Name']) { $queueItems += $q.Name } + } + + # Client-side wildcard filtering when needed + if (-not $canUsePrefix) { + $queueItems = $queueItems | Where-Object { $_ -like $pattern } + } + + $results = @() + foreach ($qn in $queueItems) { + $uri = Build-QueueUri -BaseInfo $baseInfo -QueueName $qn + $count = $null + if (-not $NoCount) { + try { + $meta = New-CIPPAzStorageRequest -Service 'queue' -Component 'metadata' -Resource $qn -ConnectionString $ConnectionString -Method 'GET' + if ($meta -and $meta.PSObject.Properties['ApproximateMessagesCount']) { $count = $meta.ApproximateMessagesCount } + } catch { $count = $null } + } + $results += [PSCustomObject]@{ + Name = $qn + Uri = $uri + ApproximateMessageCount = $count + } + } + + # Optional banner for UX parity when displayed directly + if ($results.Count -gt 0 -and $baseInfo.Account) { + Write-Host "\n Storage Account Name: $($baseInfo.Account)\n" -ForegroundColor DarkGray + } + + $results + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Get-CippSamPermissions.ps1 b/Modules/CIPPCore/Public/GraphHelper/Get-CippSamPermissions.ps1 index 3018d7abf23d..2ab308fc22c5 100644 --- a/Modules/CIPPCore/Public/GraphHelper/Get-CippSamPermissions.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/Get-CippSamPermissions.ps1 @@ -25,8 +25,8 @@ function Get-CippSamPermissions { if (!$SavedOnly.IsPresent) { $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase - $SamManifestFile = Get-Item (Join-Path $ModuleBase 'Public\SAMManifest.json') - $AdditionalPermissions = Get-Item (Join-Path $ModuleBase 'Public\AdditionalPermissions.json') + $SamManifestFile = Get-Item (Join-Path $ModuleBase 'lib\data\SAMManifest.json') + $AdditionalPermissions = Get-Item (Join-Path $ModuleBase 'lib\data\AdditionalPermissions.json') $ServicePrincipalList = New-GraphGetRequest -Uri 'https://graph.microsoft.com/beta/servicePrincipals?$top=999&$select=id,appId,displayName' -tenantid $env:TenantID -NoAuthCheck $true $SAMManifest = Get-Content -Path $SamManifestFile.FullName | ConvertFrom-Json diff --git a/Modules/CIPPCore/Public/GraphHelper/Get-Tenants.ps1 b/Modules/CIPPCore/Public/GraphHelper/Get-Tenants.ps1 index bd0272213d0f..a568c38099f2 100644 --- a/Modules/CIPPCore/Public/GraphHelper/Get-Tenants.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/Get-Tenants.ps1 @@ -276,8 +276,8 @@ function Get-Tenants { } # Limit tenant list to allowed tenants if set in script scope from New-CippCoreRequest - if ($script:AllowedTenants) { - $IncludedTenantsCache = $IncludedTenantsCache | Where-Object { $script:AllowedTenants -contains $_.customerId } + if ($script:CippAllowedTenantsStorage -and $script:CippAllowedTenantsStorage.Value) { + $IncludedTenantsCache = $IncludedTenantsCache | Where-Object { $script:CippAllowedTenantsStorage.Value -contains $_.customerId } } return $IncludedTenantsCache | Where-Object { ($null -ne $_.defaultDomainName -and ($_.defaultDomainName -notmatch 'Domain Error' -or $IncludeAll.IsPresent)) } | Where-Object $IncludedTenantFilter | Sort-Object -Property displayName diff --git a/Modules/CIPPCore/Public/GraphHelper/New-CIPPAzRestRequest.ps1 b/Modules/CIPPCore/Public/GraphHelper/New-CIPPAzRestRequest.ps1 new file mode 100644 index 000000000000..248a94ee56ef --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/New-CIPPAzRestRequest.ps1 @@ -0,0 +1,333 @@ +function New-CIPPAzRestRequest { + <# + .SYNOPSIS + Create and send a REST request to Azure APIs using Managed Identity authentication + .DESCRIPTION + Wraps Invoke-RestMethod with automatic Azure Managed Identity token authentication. + Automatically adds the Authorization header using Get-CIPPAzIdentityToken. + Supports all Invoke-RestMethod parameters. + .PARAMETER Uri + The URI of the Azure REST API endpoint + .PARAMETER Method + The HTTP method (GET, POST, PUT, PATCH, DELETE, etc.). Defaults to GET. + .PARAMETER ResourceUrl + The Azure resource URL to get a token for. Defaults to 'https://management.azure.com/' for Azure Resource Manager. + Use 'https://vault.azure.net' for Key Vault, 'https://api.loganalytics.io' for Log Analytics, etc. + .PARAMETER AccessToken + Optional: A pre-acquired OAuth2 bearer token to use for Authorization. When provided, Managed Identity acquisition is skipped and this token is used as-is. + .PARAMETER Body + The request body (can be string, hashtable, or PSCustomObject) + .PARAMETER Headers + Additional headers to include in the request. Authorization header is automatically added. + .PARAMETER ContentType + The content type of the request body. Defaults to 'application/json' if Body is provided and ContentType is not specified. + .PARAMETER SkipHttpErrorCheck + Skip checking HTTP error status codes + .PARAMETER ResponseHeadersVariable + Variable name to store response headers + .PARAMETER StatusCodeVariable + Variable name to store HTTP status code + .PARAMETER MaximumRetryCount + Maximum number of retry attempts + .PARAMETER RetryIntervalSec + Interval between retries in seconds + .PARAMETER TimeoutSec + Request timeout in seconds + .PARAMETER UseBasicParsing + Use basic parsing (for older PowerShell versions) + .PARAMETER WebSession + Web session object for maintaining cookies/state + .PARAMETER MaxRetries + Maximum number of retry attempts for transient failures. Defaults to 3. + .EXAMPLE + New-CIPPAzRestRequest -Uri 'https://management.azure.com/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{name}?api-version=2020-06-01' + Gets Azure Resource Manager resource using managed identity + .EXAMPLE + New-CIPPAzRestRequest -Uri 'https://management.azure.com/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2/list?api-version=2020-06-01' -Method POST + POST request to Azure Resource Manager API + .EXAMPLE + New-CIPPAzRestRequest -Uri 'https://{vault}.vault.azure.net/secrets/{secret}?api-version=7.4' -ResourceUrl 'https://vault.azure.net' + Gets a Key Vault secret using managed identity + .EXAMPLE + New-CIPPAzRestRequest -Uri 'https://management.azure.com/...' -Method PUT -Body @{ property = 'value' } -ContentType 'application/json' + PUT request with JSON body + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $true, Position = 0)] + [Alias('Url')] + [uri]$Uri, + + [Parameter(Mandatory = $false)] + [ValidateSet('GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE')] + [string]$Method = 'GET', + + [Parameter(Mandatory = $false)] + [string]$ResourceUrl = 'https://management.azure.com/', + + [Parameter(Mandatory = $false)] + [string]$AccessToken, + + [Parameter(Mandatory = $false)] + [object]$Body, + + [Parameter(Mandatory = $false)] + [hashtable]$Headers = @{}, + + [Parameter(Mandatory = $false)] + [string]$ContentType = 'application/json', + + [Parameter(Mandatory = $false)] + [switch]$SkipHttpErrorCheck, + + [Parameter(Mandatory = $false)] + [string]$ResponseHeadersVariable, + + [Parameter(Mandatory = $false)] + [string]$StatusCodeVariable, + + [Parameter(Mandatory = $false)] + [int]$MaximumRetryCount, + + [Parameter(Mandatory = $false)] + [int]$RetryIntervalSec, + + [Parameter(Mandatory = $false)] + [int]$TimeoutSec, + + [Parameter(Mandatory = $false)] + [switch]$UseBasicParsing, + + [Parameter(Mandatory = $false)] + [Microsoft.PowerShell.Commands.WebRequestSession]$WebSession, + + [Parameter(Mandatory = $false)] + [int]$MaxRetries = 3 + ) + + # Resolve bearer token: prefer manually-supplied AccessToken, otherwise fetch via Managed Identity + $Token = $null + if ($AccessToken) { + $Token = $AccessToken + } else { + try { + $Token = Get-CIPPAzIdentityToken -ResourceUrl $ResourceUrl + } catch { + $errorMessage = "Failed to get Azure Managed Identity token: $($_.Exception.Message)" + Write-Error -Message $errorMessage -ErrorAction $ErrorActionPreference + return + } + } + + # Build headers - add Authorization, merge with user-provided headers + $RequestHeaders = @{ + 'Authorization' = "Bearer $Token" + } + + # Merge user-provided headers (user headers take precedence) + foreach ($key in $Headers.Keys) { + $RequestHeaders[$key] = $Headers[$key] + } + + # Handle Content-Type + if ($Body -and -not $ContentType) { + $ContentType = 'application/json' + } + + # Convert Body to JSON if it's an object and ContentType is JSON + $RequestBody = $Body + if ($Body -and $ContentType -eq 'application/json' -and $Body -isnot [string]) { + try { + $RequestBody = $Body | ConvertTo-Json -Depth 10 -Compress + } catch { + Write-Warning "Failed to convert Body to JSON: $($_.Exception.Message). Sending as-is." + $RequestBody = $Body + } + } + + # Build Invoke-RestMethod parameters + $RestMethodParams = @{ + Uri = $Uri + Method = $Method + Headers = $RequestHeaders + ErrorAction = $ErrorActionPreference + } + + if ($Body) { + $RestMethodParams['Body'] = $RequestBody + } + + if ($ContentType) { + $RestMethodParams['ContentType'] = $ContentType + } + + if ($SkipHttpErrorCheck) { + $RestMethodParams['SkipHttpErrorCheck'] = $true + } + + if ($ResponseHeadersVariable) { + $RestMethodParams['ResponseHeadersVariable'] = $ResponseHeadersVariable + } + + if ($StatusCodeVariable) { + $RestMethodParams['StatusCodeVariable'] = $StatusCodeVariable + } + + if ($MaximumRetryCount) { + $RestMethodParams['MaximumRetryCount'] = $MaximumRetryCount + } + + if ($RetryIntervalSec) { + $RestMethodParams['RetryIntervalSec'] = $RetryIntervalSec + } + + if ($TimeoutSec) { + $RestMethodParams['TimeoutSec'] = $TimeoutSec + } + + if ($UseBasicParsing) { + $RestMethodParams['UseBasicParsing'] = $true + } + + if ($WebSession) { + $RestMethodParams['WebSession'] = $WebSession + } + + # Invoke the REST method with retry logic + $RetryCount = 0 + $RequestSuccessful = $false + $Message = $null + $MessageObj = $null + + Write-Information "$($Method.ToUpper()) [ $Uri ] | attempt: $($RetryCount + 1) of $MaxRetries" + + do { + try { + $Response = Invoke-RestMethod @RestMethodParams + $RequestSuccessful = $true + + # For compatibility with Invoke-AzRestMethod behavior, return object with Content property if response is a string + # Otherwise return the parsed object directly + if ($Response -is [string]) { + return [PSCustomObject]@{ + Content = $Response + } + } + + return $Response + } catch { + $ShouldRetry = $false + $WaitTime = 0 + + # Extract error message from JSON response if available + try { + if ($_.ErrorDetails.Message) { + $MessageObj = $_.ErrorDetails.Message | ConvertFrom-Json -ErrorAction SilentlyContinue + if ($MessageObj.error) { + $MessageObj | Add-Member -NotePropertyName 'url' -NotePropertyValue $Uri -Force + $Message = if ($MessageObj.error.message) { + Get-NormalizedError -message $MessageObj.error.message + } elseif ($MessageObj.error.code) { + $MessageObj.error.code + } else { + $_.Exception.Message + } + } else { + $Message = Get-NormalizedError -message $_.ErrorDetails.Message + } + } else { + $Message = $_.Exception.Message + } + } catch { + $Message = $_.Exception.Message + } + + # If we couldn't extract a message, use the exception message + if ([string]::IsNullOrEmpty($Message)) { + $Message = $_.Exception.Message + $MessageObj = @{ + error = @{ + code = $_.Exception.GetType().FullName + message = $Message + url = $Uri + } + } + } + + # Check for 429 Too Many Requests (rate limiting) + if ($_.Exception.Response -and $_.Exception.Response.StatusCode -eq 429) { + $RetryAfterHeader = $_.Exception.Response.Headers['Retry-After'] + if ($RetryAfterHeader) { + $WaitTime = [int]$RetryAfterHeader + Write-Warning "Rate limited (429). Waiting $WaitTime seconds before retry. Attempt $($RetryCount + 1) of $MaxRetries" + $ShouldRetry = $true + } elseif ($RetryCount -lt $MaxRetries) { + # Exponential backoff if no Retry-After header + $WaitTime = [Math]::Min([Math]::Pow(2, $RetryCount), 60) # Cap at 60 seconds + Write-Warning "Rate limited (429) without Retry-After header. Waiting $WaitTime seconds before retry. Attempt $($RetryCount + 1) of $MaxRetries" + $ShouldRetry = $true + } + } + # Check for 503 Service Unavailable or temporary errors + elseif ($_.Exception.Response -and $_.Exception.Response.StatusCode -eq 503) { + if ($RetryCount -lt $MaxRetries) { + $WaitTime = Get-Random -Minimum 1.1 -Maximum 3.1 # Random sleep between 1-3 seconds + Write-Warning "Service unavailable (503). Waiting $WaitTime seconds before retry. Attempt $($RetryCount + 1) of $MaxRetries" + $ShouldRetry = $true + } + } + # Check for "Resource temporarily unavailable" or other transient errors + elseif ($Message -like '*Resource temporarily unavailable*' -or $Message -like '*temporarily*' -or $Message -like '*timeout*') { + if ($RetryCount -lt $MaxRetries) { + $WaitTime = Get-Random -Minimum 1.1 -Maximum 3.1 # Random sleep between 1-3 seconds + Write-Warning "Transient error detected. Waiting $WaitTime seconds before retry. Attempt $($RetryCount + 1) of $MaxRetries" + $ShouldRetry = $true + } + } + # Check for 500/502/504 server errors (retryable) + elseif ($_.Exception.Response -and $_.Exception.Response.StatusCode -in @(500, 502, 504)) { + if ($RetryCount -lt $MaxRetries) { + $WaitTime = Get-Random -Minimum 1.1 -Maximum 3.1 # Random sleep between 1-3 seconds + Write-Warning "Server error ($($_.Exception.Response.StatusCode)). Waiting $WaitTime seconds before retry. Attempt $($RetryCount + 1) of $MaxRetries" + $ShouldRetry = $true + } + } + + # Retry if conditions are met + if ($ShouldRetry -and $RetryCount -lt $MaxRetries) { + $RetryCount++ + if ($WaitTime -gt 0) { + Start-Sleep -Seconds $WaitTime + } + Write-Information "$($Method.ToUpper()) [ $Uri ] | attempt: $($RetryCount + 1) of $MaxRetries" + } else { + # Final failure - build detailed error message + $errorMessage = "Azure REST API call failed: $Message" + if ($_.Exception.Response) { + $errorMessage += " (Status: $($_.Exception.Response.StatusCode))" + try { + $reader = New-Object System.IO.StreamReader($_.Exception.Response.GetResponseStream()) + $responseBody = $reader.ReadToEnd() + $reader.Close() + if ($responseBody) { + $errorMessage += "`nResponse: $responseBody" + } + } catch { + # Ignore errors reading response stream + } + } + $errorMessage += "`nURI: $Uri" + + Write-Error -Message $errorMessage -ErrorAction $ErrorActionPreference + return + } + } + } while (-not $RequestSuccessful -and $RetryCount -le $MaxRetries) + + # Should never reach here, but just in case + if (-not $RequestSuccessful) { + $errorMessage = "Azure REST API call failed after $MaxRetries attempts: $Message`nURI: $Uri" + Write-Error -Message $errorMessage -ErrorAction $ErrorActionPreference + return + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/New-CIPPAzStorageRequest.ps1 b/Modules/CIPPCore/Public/GraphHelper/New-CIPPAzStorageRequest.ps1 new file mode 100644 index 000000000000..f97fe0ad77b5 --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/New-CIPPAzStorageRequest.ps1 @@ -0,0 +1,868 @@ +function New-CIPPAzStorageRequest { + <# + .SYNOPSIS + Create and send a REST request to Azure Storage APIs using Shared Key authorization + .DESCRIPTION + Wraps Invoke-RestMethod with automatic Azure Storage Shared Key authentication. + Parses AzureWebJobsStorage connection string and generates authorization headers. + Supports Blob, Queue, and Table storage services. + .PARAMETER Service + The Azure Storage service (blob, queue, table, file) + .PARAMETER Resource + The resource path (e.g., 'tables', 'myqueue/messages') + .PARAMETER QueryParams + Optional hashtable of query string parameters + .PARAMETER Method + The HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD, etc.). Defaults to GET. + .PARAMETER Body + The request body (can be string, hashtable, or PSCustomObject) + .PARAMETER Headers + Additional headers to include in the request. Authorization header is automatically added. + .PARAMETER ContentType + The content type of the request body + .PARAMETER ConnectionString + Azure Storage connection string. Defaults to $env:AzureWebJobsStorage + .PARAMETER MaxRetries + Maximum number of retry attempts for transient failures. Defaults to 3. + .EXAMPLE + New-CIPPStorageRequest -Service 'table' -Resource 'tables' + Lists all tables in storage account (returns PSObjects) + .EXAMPLE + New-CIPPStorageRequest -Service 'queue' -Resource 'myqueue/messages' -Method DELETE + Clears messages from a queue + .EXAMPLE + New-CIPPStorageRequest -Service 'queue' -Component 'list' + Lists queues (returns PSObjects with Name and optional Metadata) + .EXAMPLE + New-CIPPStorageRequest -Service 'blob' -Component 'list' + Lists blob containers (returns PSObjects with Name and Properties) + .LINK + https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $true, Position = 0)] + [ValidateSet('blob', 'queue', 'table', 'file')] + [string]$Service, + + [Parameter(Mandatory = $false, Position = 1)] + [string]$Resource, + + [Parameter(Mandatory = $false, Position = 2)] + [string]$Component, + + [Parameter(Mandatory = $false)] + [hashtable]$QueryParams, + + [Parameter(Mandatory = $false)] + [ValidateSet('GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS')] + [string]$Method = 'GET', + + [Parameter(Mandatory = $false)] + [object]$Body, + + [Parameter(Mandatory = $false)] + [hashtable]$Headers = @{}, + + [Parameter(Mandatory = $false)] + [string]$ContentType, + + [Parameter(Mandatory = $false)] + [string]$ConnectionString = $env:AzureWebJobsStorage, + + [Parameter(Mandatory = $false)] + [int]$MaxRetries = 3 + ) + + # Helper: robustly convert XML string to XmlDocument (handles BOM/whitespace) + function Convert-XmlStringToDocument { + param( + [Parameter(Mandatory = $true)][string]$XmlText + ) + # Normalize: trim leading BOM and whitespace + $normalized = $XmlText + # Remove UTF-8 BOM if present + if ($normalized.Length -gt 0 -and [int][char]$normalized[0] -eq 65279) { + $normalized = $normalized.Substring(1) + } + $normalized = $normalized.Trim() + + $settings = [System.Xml.XmlReaderSettings]::new() + $settings.IgnoreWhitespace = $true + $settings.DtdProcessing = [System.Xml.DtdProcessing]::Ignore + $sr = [System.IO.StringReader]::new($normalized) + try { + $xr = [System.Xml.XmlReader]::Create($sr, $settings) + $doc = [System.Xml.XmlDocument]::new() + $doc.Load($xr) + $xr.Dispose() + $sr.Dispose() + return $doc + } catch { + try { if ($xr) { $xr.Dispose() } } catch {} + try { if ($sr) { $sr.Dispose() } } catch {} + throw $_ + } + } + + # Helper: compute Shared Key HMAC-SHA256 signature (Base64 over UTF-8 string) + function New-SharedKeySignature { + param( + [Parameter(Mandatory = $true)][string]$AccountKey, + [Parameter(Mandatory = $true)][string]$StringToSign + ) + try { + $KeyBytes = [Convert]::FromBase64String($AccountKey) + $Hmac = [System.Security.Cryptography.HMACSHA256]::new($KeyBytes) + $StringBytes = [System.Text.Encoding]::UTF8.GetBytes($StringToSign) + $SignatureBytes = $Hmac.ComputeHash($StringBytes) + $Hmac.Dispose() + return [Convert]::ToBase64String($SignatureBytes) + } catch { + throw $_ + } + } + + # Helper: canonicalize x-ms-* headers (lowercase names, sort ascending, collapse whitespace) + function Get-CanonicalizedXmsHeaders { + param( + [Parameter(Mandatory = $true)][hashtable]$Headers + ) + $CanonicalizedHeadersList = [System.Collections.Generic.List[string]]::new() + $XmsHeaders = $Headers.Keys | Where-Object { $_ -like 'x-ms-*' } | Sort-Object + foreach ($Header in $XmsHeaders) { + $HeaderName = $Header.ToLowerInvariant() + $HeaderValue = $Headers[$Header] -replace '\s+', ' ' + $CanonicalizedHeadersList.Add("${HeaderName}:${HeaderValue}") + } + return ($CanonicalizedHeadersList -join "`n") + } + + # Helper: canonicalize resource for Shared Key + function Get-CanonicalizedResourceSharedKey { + param( + [Parameter(Mandatory = $true)][string]$AccountName, + [Parameter(Mandatory = $true)][uri]$Uri, + [switch]$TableFormat + ) + $CanonicalizedResource = "/$AccountName" + $Uri.AbsolutePath + if ($TableFormat) { + if ($Uri.Query) { + try { + $parsed = [System.Web.HttpUtility]::ParseQueryString($Uri.Query) + $compVal = $parsed['comp'] + if ($compVal) { $CanonicalizedResource += "?comp=$compVal" } + } catch { } + } + return $CanonicalizedResource + } + if ($Uri.Query) { + $ParsedQueryParams = [System.Web.HttpUtility]::ParseQueryString($Uri.Query) + $CanonicalizedParams = [System.Collections.Generic.List[string]]::new() + foreach ($Key in ($ParsedQueryParams.AllKeys | Sort-Object)) { + $Value = $ParsedQueryParams[$Key] + $CanonicalizedParams.Add("$($Key.ToLowerInvariant()):$Value") + } + if ($CanonicalizedParams.Count -gt 0) { + $CanonicalizedResource += "`n" + ($CanonicalizedParams -join "`n") + } + } + return $CanonicalizedResource + } + + # Helper: build StringToSign for Blob/Queue/File + function Get-StringToSignBlobQueueFile { + param( + [Parameter(Mandatory = $true)][string]$Method, + [Parameter()][string]$ContentType, + [Parameter(Mandatory = $true)][hashtable]$Headers, + [Parameter()][string]$CanonicalizedHeaders, + [Parameter(Mandatory = $true)][string]$CanonicalizedResource + ) + $ContentLengthString = '' + if ($Headers.ContainsKey('Content-Length')) { + $cl = [string]$Headers['Content-Length'] + if ($cl -ne '0') { $ContentLengthString = $cl } + } + $parts = @( + $Method.ToUpperInvariant() + if ($Headers['Content-Encoding']) { $Headers['Content-Encoding'] } else { '' } + if ($Headers['Content-Language']) { $Headers['Content-Language'] } else { '' } + $ContentLengthString + '' + if ($ContentType) { $ContentType } else { '' } + '' + if ($Headers['If-Modified-Since']) { $Headers['If-Modified-Since'] } else { '' } + if ($Headers['If-Match']) { $Headers['If-Match'] } else { '' } + if ($Headers['If-None-Match']) { $Headers['If-None-Match'] } else { '' } + if ($Headers['If-Unmodified-Since']) { $Headers['If-Unmodified-Since'] } else { '' } + if ($Headers['Range']) { $Headers['Range'] } else { '' } + ) + $str = ($parts -join "`n") + if ($CanonicalizedHeaders) { $str += "`n" + $CanonicalizedHeaders } + $str += "`n" + $CanonicalizedResource + return $str + } + + # Helper: build StringToSign for Table + function Get-StringToSignTable { + param( + [Parameter(Mandatory = $true)][string]$Method, + [Parameter()][string]$ContentType, + [Parameter(Mandatory = $true)][string]$Date, + [Parameter(Mandatory = $true)][string]$CanonicalizedResource + ) + $contentTypeForSign = if ($ContentType) { $ContentType } else { '' } + return ($Method.ToUpperInvariant() + "`n" + '' + "`n" + $contentTypeForSign + "`n" + $Date + "`n" + $CanonicalizedResource) + } + + # Parse connection string + try { + # Initialize variables + $ProvidedEndpoint = $null + $ProvidedPath = $null + $EmulatorHost = $null + $EndpointSuffix = $null + $Protocol = $null + + Write-Verbose 'Parsing connection string' + $ConnectionParams = @{} + $ConnectionString -split ';' | ForEach-Object { + $Part = $_.Trim() + if ($Part -and $Part -match '^(.+?)=(.+)$') { + $ConnectionParams[$matches[1]] = $matches[2] + } + } + + Write-Verbose "Connection string parsed. Keys: $($ConnectionParams.Keys -join ', ')" + + # For development storage, use default account name if not provided + if ($ConnectionParams['UseDevelopmentStorage'] -eq 'true') { + $AccountName = $ConnectionParams['AccountName'] ?? 'devstoreaccount1' + $AccountKey = $ConnectionParams['AccountKey'] ?? 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==' + Write-Verbose 'Using development storage defaults' + } else { + $AccountName = $ConnectionParams['AccountName'] + $AccountKey = $ConnectionParams['AccountKey'] + } + + $AccountKeyMasked = if ($AccountKey) { '***' } else { 'NOT FOUND' } + + Write-Verbose "AccountName: $AccountName, AccountKey: $AccountKeyMasked" + + if (-not $AccountName) { + throw 'Connection string must contain AccountName' + } + + # For localhost (emulator), use default key if not provided + if (-not $AccountKey) { + if ($ConnectionParams[$EndpointKey] -and $ConnectionParams[$EndpointKey] -match '127\.0\.0\.1') { + $AccountKey = 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==' + Write-Verbose 'Using default emulator key for 127.0.0.1' + } else { + throw 'Connection string must contain AccountKey for non-emulator storage' + } + } + + # Check for service-specific endpoint (e.g., BlobEndpoint, QueueEndpoint, TableEndpoint) + $ServiceCapitalized = [char]::ToUpper($Service[0]) + $Service.Substring(1) + $EndpointKey = "${ServiceCapitalized}Endpoint" + $ProvidedEndpoint = $ConnectionParams[$EndpointKey] + + Write-Verbose "Looking for endpoint key: $EndpointKey" + + if ($ProvidedEndpoint) { + Write-Verbose "Found provided endpoint: $ProvidedEndpoint" + # Parse provided endpoint + $EndpointUri = [System.Uri]::new($ProvidedEndpoint) + $Protocol = $EndpointUri.Scheme + $EmulatorHost = "$($EndpointUri.Host)" + if ($EndpointUri.Port -ne -1) { + $EmulatorHost += ":$($EndpointUri.Port)" + } + # Path will be used for canonicalized resource + $ProvidedPath = $EndpointUri.AbsolutePath.TrimEnd('/') + Write-Verbose "Parsed endpoint - Protocol: $Protocol, Host: $EmulatorHost, Path: $ProvidedPath" + } + # Check for development storage emulator + elseif ($ConnectionParams['UseDevelopmentStorage'] -eq 'true') { + Write-Verbose 'Using development storage emulator' + $Protocol = 'http' + # Map service to emulator port + $ServicePorts = @{ + 'blob' = 10000 + 'queue' = 10001 + 'table' = 10002 + } + $EmulatorHost = "127.0.0.1:$($ServicePorts[$Service])" + Write-Verbose "Emulator host: $EmulatorHost" + } else { + Write-Verbose 'Using standard Azure Storage' + # Extract endpoint suffix and protocol + $EndpointSuffix = $ConnectionParams['EndpointSuffix'] + if (-not $EndpointSuffix) { + $EndpointSuffix = 'core.windows.net' + } + + $Protocol = $ConnectionParams['DefaultEndpointsProtocol'] + if (-not $Protocol) { + $Protocol = 'https' + } + Write-Verbose "Protocol: $Protocol, EndpointSuffix: $EndpointSuffix" + } + } catch { + Write-Error "Failed to parse connection string: $($_.Exception.Message)" + return + } + + # Build URI using UriBuilder + Write-Verbose "Building URI - Service: $Service, Resource: $Resource" + + # Treat Resource strictly as a path; only Component/QueryParams build queries + $ResourcePath = $Resource + $InlineQueryString = $null + if ($Component) { + $InlineQueryString = "comp=$Component" + Write-Verbose "Using component -> comp=$Component" + } + + $UriBuilder = [System.UriBuilder]::new() + $UriBuilder.Scheme = $Protocol + + if ($ProvidedEndpoint) { + # Use provided endpoint host - split host and port if present + if ($EmulatorHost -match '^(.+?):(\d+)$') { + $UriBuilder.Host = $matches[1] + $UriBuilder.Port = [int]$matches[2] + Write-Verbose "Set host with port - Host: $($matches[1]), Port: $($matches[2])" + } else { + $UriBuilder.Host = $EmulatorHost + } + # Build path from provided endpoint base + resource + $FullResourcePath = "$ProvidedPath/$ResourcePath".Replace('//', '/') + $UriBuilder.Path = $FullResourcePath + Write-Verbose "Using provided endpoint - Host: $EmulatorHost, Path: $FullResourcePath" + } elseif ($EmulatorHost) { + # Emulator without provided endpoint - split host and port if present + if ($EmulatorHost -match '^(.+?):(\d+)$') { + $UriBuilder.Host = $matches[1] + $UriBuilder.Port = [int]$matches[2] + Write-Verbose "Set host with port - Host: $($matches[1]), Port: $($matches[2])" + } else { + $UriBuilder.Host = $EmulatorHost + } + $UriBuilder.Path = "$AccountName/$ResourcePath" + Write-Verbose "Using emulator - Host: $EmulatorHost, Path: $AccountName/$ResourcePath" + } else { + # Standard Azure Storage + $UriBuilder.Host = "$AccountName.$Service.$EndpointSuffix" + $UriBuilder.Path = $ResourcePath + Write-Verbose "Using standard Azure Storage - Host: $AccountName.$Service.$EndpointSuffix, Path: $ResourcePath" + } + + # Build query string from both explicit QueryParams and inline query string + $QueryString = [System.Web.HttpUtility]::ParseQueryString('') + + # Add inline query string if present (from Component only) + if ($InlineQueryString) { + Write-Verbose "Adding inline query string: $InlineQueryString" + foreach ($Param in $InlineQueryString -split '&') { + $Key, $Value = $Param -split '=', 2 + $QueryString.Add([System.Web.HttpUtility]::UrlDecode($Key), [System.Web.HttpUtility]::UrlDecode($Value)) + } + } + + # Add explicit QueryParams + if ($QueryParams) { + Write-Verbose "Adding query parameters: $($QueryParams.Keys -join ', ')" + foreach ($Key in $QueryParams.Keys) { + $QueryString.Add($Key, $QueryParams[$Key]) + } + } + + # Ensure comp from Component is set even if QueryParams provided (QueryParams can override) + if ($Component -and -not $QueryString['comp']) { + $QueryString.Add('comp', $Component) + } + + if ($QueryString.Count -gt 0) { + $UriBuilder.Query = $QueryString.ToString() + Write-Verbose "Final query string: $($UriBuilder.Query)" + } + + $Uri = $UriBuilder.Uri + Write-Verbose "Final URI: $Uri" + + # Initialize request headers + $RequestHeaders = @{} + $currentDateRfc = [DateTime]::UtcNow.ToString('R', [System.Globalization.CultureInfo]::InvariantCulture) + # Default a recent stable service version if none supplied by caller (Blob/Queue/File) + $RequestHeaders['x-ms-version'] = '2023-11-03' + + # Add Table service specific headers + if ($Service -eq 'table') { + # Table service: align with Az (SharedKey). Table uses Date (never empty) and may also set x-ms-date to same value + $RequestHeaders['x-ms-date'] = $currentDateRfc + $RequestHeaders['Date'] = $currentDateRfc + $RequestHeaders['x-ms-version'] = '2017-07-29' + $RequestHeaders['Accept'] = 'application/json; odata=minimalmetadata' + $RequestHeaders['DataServiceVersion'] = '3.0;' + $RequestHeaders['MaxDataServiceVersion'] = '3.0;NetFx' + $RequestHeaders['Accept-Charset'] = 'utf-8' + } else { + # Blob/Queue/File use x-ms-date + $RequestHeaders['x-ms-date'] = $currentDateRfc + } + + # Build canonical headers and resource + $UtcNow = $currentDateRfc + + # Determine storage service headers already set; no unused version variable + + # Build canonicalized resource - format differs by service + if ($Service -eq 'table') { + # Table Service canonicalized resource + $CanonicalizedResource = Get-CanonicalizedResourceSharedKey -AccountName $AccountName -Uri $Uri -TableFormat + Write-Verbose "Table Service canonicalized resource: $CanonicalizedResource" + # Build string to sign for Table Service (SharedKey) + # Per docs, Table SharedKey DOES NOT include CanonicalizedHeaders. Date is never empty. + $StringToSign = Get-StringToSignTable -Method $Method -ContentType $ContentType -Date $RequestHeaders['Date'] -CanonicalizedResource $CanonicalizedResource + Write-Verbose 'Using SharedKey format (Table Service)' + + Write-Verbose "String to sign (escaped): $($StringToSign -replace "`n", '\n')" + Write-Verbose "String to sign length: $($StringToSign.Length)" + + # Generate signature + try { $Signature = New-SharedKeySignature -AccountKey $AccountKey -StringToSign $StringToSign; Write-Verbose "Generated signature: $Signature" } + catch { Write-Error "Failed to generate signature: $($_.Exception.Message)"; return } + + # Add authorization header + $RequestHeaders['Authorization'] = "SharedKey ${AccountName}:${Signature}" + Write-Verbose "Authorization header: SharedKey ${AccountName}:$($Signature.Substring(0, [Math]::Min(10, $Signature.Length)))..." + + # Headers for Table response already set (Accept minimalmetadata etc.) + + # Merge user-provided headers + foreach ($Key in $Headers.Keys) { + $RequestHeaders[$Key] = $Headers[$Key] + } + + # Build Invoke-RestMethod parameters for Table Service + $RestMethodParams = @{ + Uri = $Uri + Method = $Method + Headers = $RequestHeaders + ErrorAction = 'Stop' + } + + if ($Body) { + if ($Body -is [string]) { + $RestMethodParams['Body'] = $Body + } elseif ($Body -is [byte[]]) { + $RestMethodParams['Body'] = $Body + } else { + $RestMethodParams['Body'] = ($Body | ConvertTo-Json -Depth 10 -Compress) + } + } + + if ($ContentType) { + $RestMethodParams['ContentType'] = $ContentType + } + } else { + # Blob/Queue/File canonicalized resource + $CanonicalizedResource = Get-CanonicalizedResourceSharedKey -AccountName $AccountName -Uri $Uri + Write-Verbose "Blob/Queue/File canonicalized resource: $($CanonicalizedResource -replace "`n", ' | ')" + + # Do not force JSON Accept on blob/queue; service returns XML for list ops + if (-not $RequestHeaders.ContainsKey('Accept')) { + $RequestHeaders['Accept'] = 'application/xml' + } + + # Merge user-provided headers (these override defaults) + foreach ($Key in $Headers.Keys) { + $RequestHeaders[$Key] = $Headers[$Key] + } + + # Add Content-Length for PUT/POST/PATCH + $ContentLength = 0 + if ($Body) { + if ($Body -is [string]) { + $ContentLength = [System.Text.Encoding]::UTF8.GetByteCount($Body) + } elseif ($Body -is [byte[]]) { + $ContentLength = $Body.Length + } else { + $BodyJson = $Body | ConvertTo-Json -Depth 10 -Compress + $ContentLength = [System.Text.Encoding]::UTF8.GetByteCount($BodyJson) + } + } + + if ($Method -in @('PUT', 'POST', 'PATCH')) { + $RequestHeaders['Content-Length'] = $ContentLength.ToString() + } + + # Build canonicalized headers (x-ms-*) + $CanonicalizedHeaders = Get-CanonicalizedXmsHeaders -Headers $RequestHeaders + + Write-Verbose "CanonicalizedHeaders: $($CanonicalizedHeaders -replace "`n", '\n')" + + # Build string to sign for Blob/Queue/File + $StringToSign = Get-StringToSignBlobQueueFile -Method $Method -ContentType $ContentType -Headers $RequestHeaders -CanonicalizedHeaders $CanonicalizedHeaders -CanonicalizedResource $CanonicalizedResource + Write-Verbose 'Using SharedKey format (Blob/Queue/File)' + + Write-Verbose "String to sign (escaped): $($StringToSign -replace "`n", '\n')" + Write-Verbose "String to sign length: $($StringToSign.Length)" + + # Generate signature + try { $Signature = New-SharedKeySignature -AccountKey $AccountKey -StringToSign $StringToSign; Write-Verbose "Generated signature: $Signature" } + catch { Write-Error "Failed to generate signature: $($_.Exception.Message)"; return } + + # Add authorization header + $RequestHeaders['Authorization'] = "SharedKey ${AccountName}:${Signature}" + Write-Verbose "Authorization header: SharedKey ${AccountName}:$($Signature.Substring(0, [Math]::Min(10, $Signature.Length)))..." + + # Build Invoke-RestMethod parameters + $RestMethodParams = @{ + Uri = $Uri + Method = $Method + Headers = $RequestHeaders + ErrorAction = 'Stop' + } + + if ($Body) { + if ($Body -is [string]) { + $RestMethodParams['Body'] = $Body + } elseif ($Body -is [byte[]]) { + $RestMethodParams['Body'] = $Body + } else { + $RestMethodParams['Body'] = ($Body | ConvertTo-Json -Depth 10 -Compress) + } + } + + if ($ContentType) { + $RestMethodParams['ContentType'] = $ContentType + } + } + + # Invoke with retry logic + $RetryCount = 0 + $RequestSuccessful = $false + + Write-Information "$($Method.ToUpper()) [ $Uri ] | attempt: $($RetryCount + 1) of $MaxRetries" + + $TriedAltTableAuth = $false + $UseInvokeWebRequest = $false + if ($Service -eq 'queue' -and (($Component -eq 'metadata') -or ($Uri.Query -match 'comp=metadata'))) { + # Use Invoke-WebRequest to access response headers for queue metadata + $UseInvokeWebRequest = $true + } elseif ($Method -eq 'DELETE') { + # For other DELETE operations across services, prefer capturing headers/status + $UseInvokeWebRequest = $true + } + do { + try { + # For queue comp=metadata, capture headers-only and return a compact object + if ($UseInvokeWebRequest -and $Service -eq 'queue' -and (($Component -eq 'metadata') -or ($Uri.Query -match 'comp=metadata'))) { + Write-Verbose 'Processing queue metadata response headers' + $resp = Invoke-WebRequest @RestMethodParams + $RequestSuccessful = $true + $respHeaders = $null + if ($resp -and $resp.Headers) { $respHeaders = $resp.Headers } + $approx = $null + $reqUri = $null + try { if ($resp -and $resp.BaseResponse -and $resp.BaseResponse.ResponseUri) { $reqUri = $resp.BaseResponse.ResponseUri.AbsoluteUri } } catch { $reqUri = $null } + if ($respHeaders) { + $val = $null + if ($respHeaders.ContainsKey('x-ms-approximate-messages-count')) { + $val = $respHeaders['x-ms-approximate-messages-count'] + } else { + foreach ($key in $respHeaders.Keys) { if ($key -ieq 'x-ms-approximate-messages-count') { $val = $respHeaders[$key]; break } } + } + if ($null -ne $val) { + $approxStr = if ($val -is [array]) { if ($val.Length -gt 0) { $val[0] } else { $null } } else { $val } + if ($approxStr) { try { $approx = [int]$approxStr } catch { $approx = $null } } + } + } + $hdrHash = @{} + if ($respHeaders) { foreach ($key in $respHeaders.Keys) { $hdrHash[$key] = $respHeaders[$key] } } + return [PSCustomObject]@{ ApproximateMessagesCount = $approx; Headers = $hdrHash; Uri = $reqUri } + } + + # Queue clear messages: DELETE on //messages — return compact response + if ($UseInvokeWebRequest -and $Service -eq 'queue' -and $Method -eq 'DELETE' -and ($Uri.AbsolutePath.ToLower().EndsWith('/messages'))) { + Write-Verbose 'Processing queue clear messages response headers' + $resp = Invoke-WebRequest @RestMethodParams + $RequestSuccessful = $true + $status = $null + $reqUri = $null + $respHeaders = $null + try { if ($resp -and $resp.StatusCode) { $status = [int]$resp.StatusCode } } catch { } + try { if (-not $status -and $resp -and $resp.BaseResponse) { $status = [int]$resp.BaseResponse.StatusCode } } catch { } + try { if ($resp -and $resp.BaseResponse -and $resp.BaseResponse.ResponseUri) { $reqUri = $resp.BaseResponse.ResponseUri.AbsoluteUri } } catch { } + if ($resp -and $resp.Headers) { $respHeaders = $resp.Headers } + $hdrHash = @{} + if ($respHeaders) { foreach ($key in $respHeaders.Keys) { $hdrHash[$key] = $respHeaders[$key] } } + return [PSCustomObject]@{ StatusCode = $status; Headers = $hdrHash; Uri = $reqUri } + } + + # Generic DELETE compact response across services + if ($UseInvokeWebRequest -and $Method -eq 'DELETE') { + Write-Verbose 'Processing generic DELETE response headers' + $resp = Invoke-WebRequest @RestMethodParams + $RequestSuccessful = $true + $status = $null + $reqUri = $null + $respHeaders = $null + try { if ($resp -and $resp.StatusCode) { $status = [int]$resp.StatusCode } } catch { } + try { if (-not $status -and $resp -and $resp.BaseResponse) { $status = [int]$resp.BaseResponse.StatusCode } } catch { } + try { if ($resp -and $resp.BaseResponse -and $resp.BaseResponse.ResponseUri) { $reqUri = $resp.BaseResponse.ResponseUri.AbsoluteUri } } catch { } + if ($resp -and $resp.Headers) { $respHeaders = $resp.Headers } + $hdrHash = @{} + if ($respHeaders) { foreach ($key in $respHeaders.Keys) { $hdrHash[$key] = $respHeaders[$key] } } + return [PSCustomObject]@{ StatusCode = $status; Headers = $hdrHash; Uri = $reqUri } + } + + if ($UseInvokeWebRequest) { $Response = Invoke-WebRequest @RestMethodParams } + else { $Response = Invoke-RestMethod @RestMethodParams } + $RequestSuccessful = $true + + # Generic XML list parser: if response is XML string, parse into PSObjects + if ($Response -is [string]) { + $respText = $Response.Trim() + if ($respText.StartsWith('?restype=container via New-CIPPAzStorageRequest. + Returns a compact object with StatusCode, Headers, and Request Uri. + .PARAMETER Name + The name of the container to delete. + .PARAMETER ConnectionString + Azure Storage connection string. Defaults to $env:AzureWebJobsStorage. + .EXAMPLE + Remove-CIPPAzStorageContainer -Name 'cipp-largemessages' + #> + [CmdletBinding(SupportsShouldProcess)] + param( + [Parameter(Mandatory = $true, Position = 0)] + [ValidateNotNullOrEmpty()] + [string]$Name, + + [Parameter(Mandatory = $false)] + [string]$ConnectionString = $env:AzureWebJobsStorage + ) + + if ($PSCmdlet.ShouldProcess($Name, 'Remove blob container')) { + try { + $headers = @{ Accept = 'application/xml' } + $resp = New-CIPPAzStorageRequest -Service 'blob' -Resource $Name -QueryParams @{ restype = 'container' } -Method 'DELETE' -Headers $headers -ConnectionString $ConnectionString + if ($null -eq $resp) { return [PSCustomObject]@{ Name = $Name; StatusCode = 202; Headers = @{}; Uri = $null } } + $status = $null; $uri = $null; $hdrs = @{} + if ($resp.PSObject.Properties['StatusCode']) { $status = [int]$resp.StatusCode } + if ($resp.PSObject.Properties['Uri']) { $uri = $resp.Uri } + if ($resp.PSObject.Properties['Headers']) { $hdrs = $resp.Headers } + return [PSCustomObject]@{ Name = $Name; StatusCode = $status; Headers = $hdrs; Uri = $uri } + } catch { + throw $_ + } + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Update-CIPPAzFunctionAppSetting.ps1 b/Modules/CIPPCore/Public/GraphHelper/Update-CIPPAzFunctionAppSetting.ps1 new file mode 100644 index 000000000000..e39c07e9e6cc --- /dev/null +++ b/Modules/CIPPCore/Public/GraphHelper/Update-CIPPAzFunctionAppSetting.ps1 @@ -0,0 +1,86 @@ +function Update-CIPPAzFunctionAppSetting { + <# + .SYNOPSIS + Updates Azure Function App application settings via ARM REST using managed identity. + .PARAMETER Name + Function App name. + .PARAMETER ResourceGroupName + Resource group name. + .PARAMETER AppSetting + Hashtable of settings to set (key/value). Values should be strings. + .PARAMETER RemoveKeys + Optional array of setting keys to remove from the Function App configuration. Removals are applied after merging updates and before PUT. + .PARAMETER AccessToken + Optional bearer token to override Managed Identity. If provided, this token is used for Authorization. + .EXAMPLE + Update-CIPPAzFunctionAppSetting -Name myfunc -ResourceGroupName rg1 -AppSetting @{ WEBSITE_TIME_ZONE = 'UTC' } + .EXAMPLE + Update-CIPPAzFunctionAppSetting -Name myfunc -ResourceGroupName rg1 -AppSetting @{ WEBSITE_TIME_ZONE = 'UTC' } -RemoveKeys @('OLD_KEY','LEGACY_SETTING') + #> + [CmdletBinding(SupportsShouldProcess)] + param( + [Parameter(Mandatory = $true)] + [string]$Name, + + [Parameter(Mandatory = $true)] + [string]$ResourceGroupName, + + [Parameter(Mandatory = $true)] + [hashtable]$AppSetting, + + [Parameter(Mandatory = $false)] + [string[]]$RemoveKeys, + + [Parameter(Mandatory = $false)] + [string]$AccessToken + ) + + # Build ARM URIs + $subscriptionId = Get-CIPPAzFunctionAppSubId + $apiVersion = '2024-11-01' + $updateUri = "https://management.azure.com/subscriptions/$subscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Web/sites/$Name/config/appsettings?api-version=$apiVersion" + + # Fetch current settings to avoid overwriting unrelated keys + $current = $null + try { + # Prefer the dedicated getter to handle ARM quirks + $GetSettings = @{ + Name = $Name + ResourceGroupName = $ResourceGroupName + } + if ($AccessToken) { $GetSettings.AccessToken = $AccessToken } + $current = Get-CIPPAzFunctionAppSetting @GetSettings + } catch { $current = $null } + $currentProps = @{} + if ($current -and $current.properties) { + # Handle PSCustomObject properties (JSON deserialization result) + if ($current.properties -is [hashtable]) { + foreach ($ck in $current.properties.Keys) { $currentProps[$ck] = [string]$current.properties[$ck] } + } else { + # PSCustomObject - enumerate using PSObject.Properties + foreach ($prop in $current.properties.PSObject.Properties) { + $currentProps[$prop.Name] = [string]$prop.Value + } + } + } + + # Merge requested settings + foreach ($k in $AppSetting.Keys) { $currentProps[$k] = [string]$AppSetting[$k] } + + # Apply removals if specified + if ($RemoveKeys -and $RemoveKeys.Count -gt 0) { + foreach ($rk in $RemoveKeys) { + if ($currentProps.ContainsKey($rk)) { + [void]$currentProps.Remove($rk) + } + } + } + $body = @{ properties = $currentProps } + + if ($PSCmdlet.ShouldProcess($Name, 'Update Function App settings')) { + $restParams = @{ Uri = $updateUri; Method = 'PUT'; Body = $body; ContentType = 'application/json' } + if ($AccessToken) { $restParams.AccessToken = $AccessToken } + $resp = New-CIPPAzRestRequest @restParams + return $resp + } +} diff --git a/Modules/CIPPCore/Public/GraphHelper/Write-LogMessage.ps1 b/Modules/CIPPCore/Public/GraphHelper/Write-LogMessage.ps1 index 52127cc88471..8770aeca27b0 100644 --- a/Modules/CIPPCore/Public/GraphHelper/Write-LogMessage.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/Write-LogMessage.ps1 @@ -66,18 +66,18 @@ function Write-LogMessage { if ($tenantId) { $TableRow.Add('TenantID', [string]$tenantId) } - if ($script:StandardInfo) { - $TableRow.Standard = [string]$script:StandardInfo.Standard - $TableRow.StandardTemplateId = [string]$script:StandardInfo.StandardTemplateId - if ($script:StandardInfo.IntuneTemplateId) { - $TableRow.IntuneTemplateId = [string]$script:StandardInfo.IntuneTemplateId + if ($script:CippStandardInfoStorage -and $script:CippStandardInfoStorage.Value) { + $TableRow.Standard = [string]$script:CippStandardInfoStorage.Value.Standard + $TableRow.StandardTemplateId = [string]$script:CippStandardInfoStorage.Value.StandardTemplateId + if ($script:CippStandardInfoStorage.Value.IntuneTemplateId) { + $TableRow.IntuneTemplateId = [string]$script:CippStandardInfoStorage.Value.IntuneTemplateId } - if ($script:StandardInfo.ConditionalAccessTemplateId) { - $TableRow.ConditionalAccessTemplateId = [string]$script:StandardInfo.ConditionalAccessTemplateId + if ($script:CippStandardInfoStorage.Value.ConditionalAccessTemplateId) { + $TableRow.ConditionalAccessTemplateId = [string]$script:CippStandardInfoStorage.Value.ConditionalAccessTemplateId } } - if ($script:ScheduledTaskId) { - $TableRow.ScheduledTaskId = [string]$script:ScheduledTaskId + if ($script:CippScheduledTaskIdStorage -and $script:CippScheduledTaskIdStorage.Value) { + $TableRow.ScheduledTaskId = [string]$script:CippScheduledTaskIdStorage.Value } $Table.Entity = $TableRow diff --git a/Modules/CIPPCore/Public/New-CIPPBackup.ps1 b/Modules/CIPPCore/Public/New-CIPPBackup.ps1 index 7d64760ad5c4..728d53a608ba 100644 --- a/Modules/CIPPCore/Public/New-CIPPBackup.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPBackup.ps1 @@ -88,7 +88,9 @@ function New-CIPPBackup { } $Table = Get-CippTable -tablename 'ScheduledBackup' try { - $null = Add-CIPPAzDataTableEntity @Table -entity $entity -Force + measure-cipptask -TaskName 'ScheduledBackupStorage' -EventName 'CIPP.BackupCompleted' -Script { + $null = Add-CIPPAzDataTableEntity @Table -entity $entity -Force + } Write-LogMessage -headers $Headers -API $APINAME -message 'Created backup' -Sev 'Debug' $State = 'Backup finished successfully' } catch { diff --git a/Modules/CIPPCore/Public/New-CIPPBackupTask.ps1 b/Modules/CIPPCore/Public/New-CIPPBackupTask.ps1 index 1d824262d601..55f189947694 100644 --- a/Modules/CIPPCore/Public/New-CIPPBackupTask.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPBackupTask.ps1 @@ -7,151 +7,154 @@ function New-CIPPBackupTask { $BackupData = switch ($Task) { 'CippCustomVariables' { - Write-Host "Backing up Custom Variables for $TenantFilter" - $ReplaceTable = Get-CIPPTable -tablename 'CippReplacemap' - - # Get tenant-specific variables - $Tenant = Get-Tenants -TenantFilter $TenantFilter - $CustomerId = $Tenant.customerId - - $TenantVariables = Get-CIPPAzDataTableEntity @ReplaceTable -Filter "PartitionKey eq '$CustomerId'" - - # If backing up AllTenants, also get global variables - if ($TenantFilter -eq 'AllTenants') { - $GlobalVariables = Get-CIPPAzDataTableEntity @ReplaceTable -Filter "PartitionKey eq 'AllTenants'" - $AllVariables = @($TenantVariables) + @($GlobalVariables) - $AllVariables - } else { - $TenantVariables + Measure-CippTask -TaskName 'CustomVariables' -EventName 'CIPP.BackupCompleted' -Script { + $ReplaceTable = Get-CIPPTable -tablename 'CippReplacemap' + + # Get tenant-specific variables + $Tenant = Get-Tenants -TenantFilter $TenantFilter + $CustomerId = $Tenant.customerId + $TenantVariables = Get-CIPPAzDataTableEntity @ReplaceTable -Filter "PartitionKey eq '$CustomerId'" + + # If backing up AllTenants, also get global variables + if ($TenantFilter -eq 'AllTenants') { + $GlobalVariables = Get-CIPPAzDataTableEntity @ReplaceTable -Filter "PartitionKey eq 'AllTenants'" + $AllVariables = @($TenantVariables) + @($GlobalVariables) + $AllVariables + } else { + $TenantVariables + } } } 'users' { - Write-Host "Backup users for $TenantFilter" - $Users = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/users?$top=999' -tenantid $TenantFilter | Select-Object * -ExcludeProperty mail, provisionedPlans, onPrem*, *passwordProfile*, *serviceProvisioningErrors*, isLicenseReconciliationNeeded, isManagementRestricted, isResourceAccount, *date*, *external*, identities, deletedDateTime, isSipEnabled, assignedPlans, cloudRealtimeCommunicationInfo, deviceKeys, provisionedPlan, securityIdentifier - #remove the property if the value is $null - $Users | ForEach-Object { - $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { - $_.psobject.properties.Remove($_.Name) + Measure-CippTask -TaskName 'Users' -EventName 'CIPP.BackupCompleted' -Script { + New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/users?$top=999' -tenantid $TenantFilter | Select-Object * -ExcludeProperty mail, provisionedPlans, onPrem*, *passwordProfile*, *serviceProvisioningErrors*, isLicenseReconciliationNeeded, isManagementRestricted, isResourceAccount, *date*, *external*, identities, deletedDateTime, isSipEnabled, assignedPlans, cloudRealtimeCommunicationInfo, deviceKeys, provisionedPlan, securityIdentifier | ForEach-Object { + #remove the property if the value is $null + $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { + $_.psobject.properties.Remove($_.Name) + } + $_ } } - $Users } 'groups' { - Write-Host "Backup groups for $TenantFilter" - New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/groups?$top=999' -tenantid $TenantFilter + Measure-CippTask -TaskName 'Groups' -EventName 'CIPP.BackupCompleted' -Script { + New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/groups?$top=999' -tenantid $TenantFilter + } } 'ca' { - Write-Host "Backup Conditional Access Policies for $TenantFilter" - $Policies = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/conditionalAccess/policies?$top=999' -tenantid $TenantFilter -AsApp $true - Write-Host 'Creating templates for found Conditional Access Policies' - foreach ($policy in $policies) { - try { - New-CIPPCATemplate -TenantFilter $TenantFilter -JSON $policy - } catch { - "Failed to create a template of the Conditional Access Policy with ID: $($policy.id). Error: $($_.Exception.Message)" + Measure-CippTask -TaskName 'ConditionalAccess' -EventName 'CIPP.BackupCompleted' -Script { + $preloadedUsers = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users?`$top=999&`$select=displayName,id" -tenantid $TenantFilter + $preloadedGroups = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/groups?`$top=999&`$select=displayName,id" -tenantid $TenantFilter + $Policies = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/conditionalAccess/policies?$top=999' -tenantid $TenantFilter -AsApp $true + foreach ($policy in $policies) { + try { + New-CIPPCATemplate -TenantFilter $TenantFilter -JSON $policy -preloadedUsers $preloadedUsers -preloadedGroups $preloadedGroups + } catch { + "Failed to create a template of the Conditional Access Policy with ID: $($policy.id). Error: $($_.Exception.Message)" + } } } } 'intuneconfig' { - Write-Host "Backup Intune Configuration Policies for $TenantFilter" - $GraphURLS = @("https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName&`$expand=assignments&top=1000" - 'https://graph.microsoft.com/beta/deviceManagement/windowsDriverUpdateProfiles' - "https://graph.microsoft.com/beta/deviceManagement/groupPolicyConfigurations?`$expand=assignments&top=999" - "https://graph.microsoft.com/beta/deviceAppManagement/mobileAppConfigurations?`$expand=assignments&`$filter=microsoft.graph.androidManagedStoreAppConfiguration/appSupportsOemConfig%20eq%20true" - 'https://graph.microsoft.com/beta/deviceManagement/configurationPolicies' - 'https://graph.microsoft.com/beta/deviceManagement/windowsFeatureUpdateProfiles' - 'https://graph.microsoft.com/beta/deviceManagement/windowsQualityUpdatePolicies' - 'https://graph.microsoft.com/beta/deviceManagement/windowsQualityUpdateProfiles' - ) - - foreach ($url in $GraphURLS) { - try { - $Policies = New-GraphGetRequest -uri "$($url)" -tenantid $TenantFilter - $URLName = (($url).split('?') | Select-Object -First 1) -replace 'https://graph.microsoft.com/beta/deviceManagement/', '' - foreach ($Policy in $Policies) { - try { - New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName $URLName -ID $Policy.ID - } catch { - $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message - "Failed to create a template of the Intune Configuration Policy with ID: $($Policy.id). Error: $ErrorMessage" + Measure-CippTask -TaskName 'IntuneConfiguration' -EventName 'CIPP.BackupCompleted' -Script { + $GraphURLS = @("https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName&`$expand=assignments&top=1000" + 'https://graph.microsoft.com/beta/deviceManagement/windowsDriverUpdateProfiles' + "https://graph.microsoft.com/beta/deviceManagement/groupPolicyConfigurations?`$expand=assignments&top=999" + "https://graph.microsoft.com/beta/deviceAppManagement/mobileAppConfigurations?`$expand=assignments&`$filter=microsoft.graph.androidManagedStoreAppConfiguration/appSupportsOemConfig%20eq%20true" + 'https://graph.microsoft.com/beta/deviceManagement/configurationPolicies' + 'https://graph.microsoft.com/beta/deviceManagement/windowsFeatureUpdateProfiles' + 'https://graph.microsoft.com/beta/deviceManagement/windowsQualityUpdatePolicies' + 'https://graph.microsoft.com/beta/deviceManagement/windowsQualityUpdateProfiles' + ) + + foreach ($url in $GraphURLS) { + try { + $Policies = New-GraphGetRequest -uri "$($url)" -tenantid $TenantFilter + $URLName = (($url).split('?') | Select-Object -First 1) -replace 'https://graph.microsoft.com/beta/deviceManagement/', '' + foreach ($Policy in $Policies) { + try { + New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName $URLName -ID $Policy.ID + } catch { + $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message + "Failed to create a template of the Intune Configuration Policy with ID: $($Policy.id). Error: $ErrorMessage" + } } + } catch { + Write-Host "Failed to backup $url" } - } catch { - Write-Host "Failed to backup $url" } } } 'intunecompliance' { - Write-Host "Backup Intune Configuration Policies for $TenantFilter" - - New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies?$top=999' -tenantid $TenantFilter | ForEach-Object { - New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName 'deviceCompliancePolicies' -ID $_.ID + Measure-CippTask -TaskName 'IntuneCompliance' -EventName 'CIPP.BackupCompleted' -Script { + New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies?$top=999' -tenantid $TenantFilter | ForEach-Object { + New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName 'deviceCompliancePolicies' -ID $_.ID + } } } 'intuneprotection' { - Write-Host "Backup Intune Configuration Policies for $TenantFilter" - - New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceAppManagement/managedAppPolicies?$top=999' -tenantid $TenantFilter | ForEach-Object { - New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName 'managedAppPolicies' -ID $_.ID + Measure-CippTask -TaskName 'IntuneProtection' -EventName 'CIPP.BackupCompleted' -Script { + New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceAppManagement/managedAppPolicies?$top=999' -tenantid $TenantFilter | ForEach-Object { + New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName 'managedAppPolicies' -ID $_.ID + } } } 'antispam' { - Write-Host "Backup Anti-Spam Policies for $TenantFilter" - - $Policies = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-HostedContentFilterPolicy' | Select-Object * -ExcludeProperty *odata*, *data.type* - $Rules = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-HostedContentFilterRule' | Select-Object * -ExcludeProperty *odata*, *data.type* - - $Policies | ForEach-Object { - $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { - $_.psobject.properties.Remove($_.Name) + Measure-CippTask -TaskName 'AntiSpam' -EventName 'CIPP.BackupCompleted' -Script { + $Policies = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-HostedContentFilterPolicy' | Select-Object * -ExcludeProperty *odata*, *data.type* | ForEach-Object { + $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { + $_.psobject.properties.Remove($_.Name) + } + $_ } - } - $Rules | ForEach-Object { - $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { - $_.psobject.properties.Remove($_.Name) + $Rules = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-HostedContentFilterRule' | Select-Object * -ExcludeProperty *odata*, *data.type* | ForEach-Object { + $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { + $_.psobject.properties.Remove($_.Name) + } + $_ } - } - $JSON = @{ policies = $Policies; rules = $Rules } | ConvertTo-Json -Depth 10 - $JSON + @{ policies = $Policies; rules = $Rules } | ConvertTo-Json -Depth 10 + } } 'antiphishing' { - Write-Host "Backup Anti-Phishing Policies for $TenantFilter" - - $Policies = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-AntiPhishPolicy' | Select-Object * -ExcludeProperty *odata*, *data.type* - $Rules = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-AntiPhishRule' | Select-Object * -ExcludeProperty *odata*, *data.type* - - $Policies | ForEach-Object { - $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { - $_.psobject.properties.Remove($_.Name) + Measure-CippTask -TaskName 'AntiPhishing' -EventName 'CIPP.BackupCompleted' -Script { + $Policies = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-AntiPhishPolicy' | Select-Object * -ExcludeProperty *odata*, *data.type* | ForEach-Object { + $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { + $_.psobject.properties.Remove($_.Name) + } + $_ } - } - $Rules | ForEach-Object { - $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { - $_.psobject.properties.Remove($_.Name) + $Rules = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-AntiPhishRule' | Select-Object * -ExcludeProperty *odata*, *data.type* | ForEach-Object { + $_.psobject.properties | Where-Object { $null -eq $_.Value } | ForEach-Object { + $_.psobject.properties.Remove($_.Name) + } + $_ } - } - $JSON = @{ policies = $Policies; rules = $Rules } | ConvertTo-Json -Depth 10 - $JSON + @{ policies = $Policies; rules = $Rules } | ConvertTo-Json -Depth 10 + } } 'CippWebhookAlerts' { - Write-Host "Backup Webhook Alerts for $TenantFilter" - $WebhookTable = Get-CIPPTable -TableName 'WebhookRules' - Get-CIPPAzDataTableEntity @WebhookTable | Where-Object { $TenantFilter -in ($_.Tenants | ConvertFrom-Json).value } + Measure-CippTask -TaskName 'WebhookAlerts' -EventName 'CIPP.BackupCompleted' -Script { + $WebhookTable = Get-CIPPTable -TableName 'WebhookRules' + Get-CIPPAzDataTableEntity @WebhookTable | Where-Object { $TenantFilter -in ($_.Tenants | ConvertFrom-Json).value } + } } 'CippScriptedAlerts' { - Write-Host "Backup Scripted Alerts for $TenantFilter" - $ScheduledTasks = Get-CIPPTable -TableName 'ScheduledTasks' - Get-CIPPAzDataTableEntity @ScheduledTasks | Where-Object { $_.hidden -eq $true -and $_.command -like 'Get-CippAlert*' -and $TenantFilter -in $_.Tenant } + Measure-CippTask -TaskName 'ScriptedAlerts' -EventName 'CIPP.BackupCompleted' -Script { + $ScheduledTasks = Get-CIPPTable -TableName 'ScheduledTasks' + Get-CIPPAzDataTableEntity @ScheduledTasks | Where-Object { $_.hidden -eq $true -and $_.command -like 'Get-CippAlert*' -and $TenantFilter -in $_.Tenant } + } } } + return $BackupData } diff --git a/Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1 b/Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1 index ebca5a4e81b2..fda3af4a638f 100644 --- a/Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1 @@ -13,8 +13,6 @@ function New-CIPPCAPolicy { $Headers ) - $User = $Request.Headers - function Remove-EmptyArrays ($Object) { if ($Object -is [Array]) { foreach ($Item in $Object) { Remove-EmptyArrays $Item } @@ -45,14 +43,14 @@ function New-CIPPCAPolicy { $GroupIds = [System.Collections.Generic.List[string]]::new() $groupNames | ForEach-Object { if (Test-IsGuid $_) { - Write-LogMessage -Headers $User -API 'Create CA Policy' -message "Already GUID, no need to replace: $_" -Sev 'Debug' + Write-LogMessage -Headers $Headers -API 'Create CA Policy' -message "Already GUID, no need to replace: $_" -Sev 'Debug' $GroupIds.Add($_) # it's a GUID, so we keep it } else { $groupId = ($groups | Where-Object -Property displayName -EQ $_).id # it's a display name, so we get the group ID if ($groupId) { foreach ($gid in $groupId) { Write-Warning "Replaced group name $_ with ID $gid" - $null = Write-LogMessage -Headers $User -API 'Create CA Policy' -message "Replaced group name $_ with ID $gid" -Sev 'Debug' + $null = Write-LogMessage -Headers $Headers -API 'Create CA Policy' -message "Replaced group name $_ with ID $gid" -Sev 'Debug' $GroupIds.Add($gid) # add the ID to the list } } elseif ($CreateGroups) { @@ -141,6 +139,31 @@ function New-CIPPCAPolicy { } } + #if we have excluded or included applications, we need to remove any appIds that do not have a service principal in the tenant + + if (($JSONobj.conditions.applications.includeApplications -and $JSONobj.conditions.applications.includeApplications -notcontains 'All') -or ($JSONobj.conditions.applications.excludeApplications -and $JSONobj.conditions.applications.excludeApplications -notcontains 'All')) { + $AllServicePrincipals = New-GraphGETRequest -uri 'https://graph.microsoft.com/v1.0/servicePrincipals?$select=appId' -tenantid $TenantFilter -asApp $true + + if ($JSONobj.conditions.applications.excludeApplications -and $JSONobj.conditions.applications.excludeApplications -notcontains 'All') { + $ValidExclusions = [system.collections.generic.list[string]]::new() + foreach ($appId in $JSONobj.conditions.applications.excludeApplications) { + if ($AllServicePrincipals.appId -contains $appId) { + $ValidExclusions.Add($appId) + } + } + $JSONobj.conditions.applications.excludeApplications = $ValidExclusions + } + if ($JSONobj.conditions.applications.includeApplications -and $JSONobj.conditions.applications.includeApplications -notcontains 'All') { + $ValidInclusions = [system.collections.generic.list[string]]::new() + foreach ($appId in $JSONobj.conditions.applications.includeApplications) { + if ($AllServicePrincipals.appId -contains $appId) { + $ValidInclusions.Add($appId) + } + } + $JSONobj.conditions.applications.includeApplications = $ValidInclusions + } + } + #for each of the locations, check if they exist, if not create them. These are in $JSONobj.LocationInfo $LocationLookupTable = foreach ($locations in $JSONobj.LocationInfo) { if (!$locations) { continue } diff --git a/Modules/CIPPCore/Public/New-CIPPCATemplate.ps1 b/Modules/CIPPCore/Public/New-CIPPCATemplate.ps1 index 890fc1247bab..1d5c36f490b5 100644 --- a/Modules/CIPPCore/Public/New-CIPPCATemplate.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPCATemplate.ps1 @@ -4,14 +4,25 @@ function New-CIPPCATemplate { $TenantFilter, $JSON, $APIName = 'Add CIPP CA Template', - $Headers + $Headers, + $preloadedUsers, + $preloadedGroups ) $JSON = ([pscustomobject]$JSON) | ForEach-Object { $NonEmptyProperties = $_.psobject.Properties | Where-Object { $null -ne $_.Value } | Select-Object -ExpandProperty Name $_ | Select-Object -Property $NonEmptyProperties } - + if ($preloadedUsers) { + $users = $preloadedUsers + } else { + $users = (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users?`$top=999&`$select=displayName,id" -tenantid $TenantFilter) + } + if ($preloadedGroups) { + $groups = $preloadedGroups + } else { + $groups = (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/groups?`$top=999&`$select=displayName,id" -tenantid $TenantFilter) + } $includelocations = New-Object System.Collections.ArrayList $IncludeJSON = foreach ($Location in $JSON.conditions.locations.includeLocations) { $locationinfo = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/identity/conditionalAccess/namedLocations' -tenantid $TenantFilter | Where-Object -Property id -EQ $location | Select-Object * -ExcludeProperty id, *time* @@ -34,7 +45,7 @@ function New-CIPPCATemplate { $originalID = $_ if ($_ -in 'All', 'None', 'GuestOrExternalUsers') { return $_ } try { - (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users/$($_)" -tenantid $TenantFilter).displayName + ($users | Where-Object { $_.id -eq $_ }).displayName } catch { return $originalID } @@ -47,7 +58,7 @@ function New-CIPPCATemplate { $originalID = $_ try { - (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users/$($_)" -tenantid $TenantFilter).displayName + ($users | Where-Object { $_.id -eq $_ }).displayName } catch { return $originalID } @@ -64,7 +75,7 @@ function New-CIPPCATemplate { $originalID = $_ if ($_ -in 'All', 'None', 'GuestOrExternalUsers' -or -not (Test-IsGuid $_)) { return $_ } try { - (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/groups/$($_)" -tenantid $TenantFilter).displayName + ($groups | Where-Object { $_.id -eq $_ }).displayName } catch { return $originalID } @@ -76,7 +87,7 @@ function New-CIPPCATemplate { if ($_ -in 'All', 'None', 'GuestOrExternalUsers' -or -not (Test-IsGuid $_)) { return $_ } try { - (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/groups/$($_)" -tenantid $TenantFilter).displayName + ($groups | Where-Object { $_.id -eq $_ }).displayName } catch { return $originalID diff --git a/Modules/CIPPCore/Public/New-CIPPIntuneTemplate.ps1 b/Modules/CIPPCore/Public/New-CIPPIntuneTemplate.ps1 index 963b370668ef..8360058a0a29 100644 --- a/Modules/CIPPCore/Public/New-CIPPIntuneTemplate.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPIntuneTemplate.ps1 @@ -32,42 +32,48 @@ function New-CIPPIntuneTemplate { switch ($URLName) { 'deviceCompliancePolicies' { $Type = 'deviceCompliancePolicies' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)?`$expand=scheduledActionsForRule(`$expand=scheduledActionConfigurations)" -tenantid $tenantfilter + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)?`$expand=scheduledActionsForRule(`$expand=scheduledActionConfigurations)" -tenantid $TenantFilter $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } 'managedAppPolicies' { $Type = 'AppProtection' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceAppManagement/$($urlname)('$($ID)')" -tenantid $tenantfilter + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceAppManagement/$($urlname)('$($ID)')" -tenantid $TenantFilter + $DisplayName = $Template.displayName + $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress + } + 'mobileAppConfigurations' { + $Type = 'AppConfiguration' + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceAppManagement/$($urlname)('$($ID)')" -tenantid $TenantFilter $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } 'configurationPolicies' { $Type = 'Catalog' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')?`$expand=settings" -tenantid $tenantfilter | Select-Object name, description, settings, platforms, technologies, templateReference - $TemplateJson = $Template | ConvertTo-Json -Depth 100 + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')?`$expand=settings" -tenantid $TenantFilter | Select-Object name, description, settings, platforms, technologies, templateReference + $TemplateJson = $Template | ConvertTo-Json -Depth 100 -Compress $DisplayName = $Template.name } 'windowsDriverUpdateProfiles' { $Type = 'windowsDriverUpdateProfiles' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $tenantfilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $TenantFilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } 'deviceConfigurations' { $Type = 'Device' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $tenantfilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $TenantFilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } 'groupPolicyConfigurations' { $Type = 'Admin' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')" -tenantid $tenantfilter + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')" -tenantid $TenantFilter $DisplayName = $Template.displayName - $TemplateJsonItems = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')/definitionValues?`$expand=definition" -tenantid $tenantfilter + $TemplateJsonItems = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')/definitionValues?`$expand=definition" -tenantid $TenantFilter $TemplateJsonSource = foreach ($TemplateJsonItem in $TemplateJsonItems) { - $presentationValues = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')/definitionValues('$($TemplateJsonItem.id)')/presentationValues?`$expand=presentation" -tenantid $tenantfilter | ForEach-Object { + $presentationValues = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)('$($ID)')/definitionValues('$($TemplateJsonItem.id)')/presentationValues?`$expand=presentation" -tenantid $TenantFilter | ForEach-Object { $obj = $_ if ($obj.id) { $PresObj = @{ @@ -98,19 +104,19 @@ function New-CIPPIntuneTemplate { } 'windowsFeatureUpdateProfiles' { $Type = 'windowsFeatureUpdateProfiles' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $tenantfilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $TenantFilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } 'windowsQualityUpdatePolicies' { $Type = 'windowsQualityUpdatePolicies' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $tenantfilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $TenantFilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } 'windowsQualityUpdateProfiles' { $Type = 'windowsQualityUpdateProfiles' - $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $tenantfilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' + $Template = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/deviceManagement/$($urlname)/$($ID)" -tenantid $TenantFilter | Select-Object * -ExcludeProperty id, lastModifiedDateTime, '@odata.context', 'ScopeTagIds', 'supportsScopeTags', 'createdDateTime' $DisplayName = $Template.displayName $TemplateJson = ConvertTo-Json -InputObject $Template -Depth 100 -Compress } diff --git a/Modules/CIPPCore/Public/New-CIPPTemplateRun.ps1 b/Modules/CIPPCore/Public/New-CIPPTemplateRun.ps1 index eacab20fb018..db427630a4be 100644 --- a/Modules/CIPPCore/Public/New-CIPPTemplateRun.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPTemplateRun.ps1 @@ -10,7 +10,9 @@ function New-CIPPTemplateRun { $data = $_.JSON | ConvertFrom-Json -ErrorAction SilentlyContinue -Depth 100 $data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.RowKey -Force -ErrorAction Stop $data | Add-Member -NotePropertyName 'PartitionKey' -NotePropertyValue $_.PartitionKey -Force -ErrorAction Stop - $data | Add-Member -NotePropertyName 'SHA' -NotePropertyValue $_.SHA -Force -ErrorAction Stop + $data | Add-Member -NotePropertyName 'SHA' -NotePropertyValue $_.SHA -Force -ErrorAction SilentlyContinue + $data | Add-Member -NotePropertyName 'Package' -NotePropertyValue $_.Package -Force -ErrorAction SilentlyContinue + $data | Add-Member -NotePropertyName 'Source' -NotePropertyValue $_.Source -Force -ErrorAction SilentlyContinue $data } catch { return @@ -79,34 +81,67 @@ function New-CIPPTemplateRun { return "Failed to get data from community repo $($TemplateSettings.templateRepo.value). Error: $($_.Exception.Message)" } } else { - foreach ($Task in $Tasks) { - Write-Information "Working on task $Task" + # Tenant template library + $Results = foreach ($Task in $Tasks) { switch ($Task) { 'ca' { Write-Information "Template Conditional Access Policies for $TenantFilter" - $Policies = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/conditionalAccess/policies?$top=999' -tenantid $TenantFilter + # Preload users/groups for CA templates + Write-Information "Preloading information for Conditional Access templates for $TenantFilter" + $Requests = @( + @{ + id = 'preloadedUsers' + url = 'users?$top=999&$select=displayName,id' + method = 'GET' + } + @{ + id = 'preloadedGroups' + url = 'groups?$top=999&$select=displayName,id' + method = 'GET' + } + @{ + id = 'conditionalAccessPolicies' + url = 'conditionalAccess/policies?$top=999' + method = 'GET' + } + ) + $BulkResults = New-GraphBulkRequest -Requests @($Requests) -tenantid $TenantFilter -asapp $true + $preloadedUsers = ($BulkResults | Where-Object { $_.id -eq 'preloadedUsers' }).body.value + $preloadedGroups = ($BulkResults | Where-Object { $_.id -eq 'preloadedGroups' }).body.value + $policies = ($BulkResults | Where-Object { $_.id -eq 'conditionalAccessPolicies' }).body.value + Write-Information 'Creating templates for found Conditional Access Policies' foreach ($policy in $policies) { try { - $Template = New-CIPPCATemplate -TenantFilter $TenantFilter -JSON $policy + $Hash = Get-StringHash -String ($policy | ConvertTo-Json -Depth 100 -Compress) + $ExistingPolicy = $ExistingTemplates | Where-Object { $_.PartitionKey -eq 'CATemplate' -and $_.displayName -eq $policy.displayName } | Select-Object -First 1 + if ($ExistingPolicy -and $ExistingPolicy.SHA -eq $Hash) { + "CA Policy $($policy.displayName) found, SHA matches, skipping template creation" + continue + } + $Template = New-CIPPCATemplate -TenantFilter $TenantFilter -JSON $policy -preloadedUsers $preloadedUsers -preloadedGroups $preloadedGroups #check existing templates, if the displayName is the same, overwrite it. - $ExistingPolicy = $ExistingTemplates | Where-Object { $_.displayName -eq $policy.displayName } | Select-Object -First 1 + if ($ExistingPolicy -and $ExistingPolicy.PartitionKey -eq 'CATemplate') { - "Policy $($policy.displayName) found, updating template" + "CA Policy $($policy.displayName) found, updating template" Add-CIPPAzDataTableEntity @Table -Entity @{ JSON = "$Template" RowKey = $ExistingPolicy.GUID PartitionKey = 'CATemplate' GUID = $ExistingPolicy.GUID + SHA = $Hash + Source = $ExistingPolicy.Source } -Force } else { - "Policy $($policy.displayName) not found in existing templates, creating new template" + "CA Policy $($policy.displayName) not found in existing templates, creating new template" $GUID = (New-Guid).GUID Add-CIPPAzDataTableEntity @Table -Entity @{ JSON = "$Template" RowKey = "$GUID" PartitionKey = 'CATemplate' GUID = "$GUID" + SHA = $Hash + Source = $TenantFilter } } @@ -117,24 +152,48 @@ function New-CIPPTemplateRun { } 'intuneconfig' { Write-Information "Backup Intune Configuration Policies for $TenantFilter" - $GraphURLS = @("https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName&`$expand=assignments&top=1000" - 'https://graph.microsoft.com/beta/deviceManagement/windowsDriverUpdateProfiles' - "https://graph.microsoft.com/beta/deviceManagement/groupPolicyConfigurations?`$expand=assignments&top=999" - "https://graph.microsoft.com/beta/deviceAppManagement/mobileAppConfigurations?`$expand=assignments&`$filter=microsoft.graph.androidManagedStoreAppConfiguration/appSupportsOemConfig%20eq%20true" - 'https://graph.microsoft.com/beta/deviceManagement/configurationPolicies' - 'https://graph.microsoft.com/beta/deviceManagement/windowsFeatureUpdateProfiles' - 'https://graph.microsoft.com/beta/deviceManagement/windowsQualityUpdatePolicies' - 'https://graph.microsoft.com/beta/deviceManagement/windowsQualityUpdateProfiles' + $GraphURLS = @( + "deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName&`$expand=assignments&top=1000" + 'deviceManagement/windowsDriverUpdateProfiles' + "deviceManagement/groupPolicyConfigurations?`$expand=assignments&top=999" + "deviceAppManagement/mobileAppConfigurations?`$expand=assignments&`$filter=microsoft.graph.androidManagedStoreAppConfiguration/appSupportsOemConfig%20eq%20true" + 'deviceManagement/configurationPolicies' + 'deviceManagement/windowsFeatureUpdateProfiles' + 'deviceManagement/windowsQualityUpdatePolicies' + 'deviceManagement/windowsQualityUpdateProfiles' ) - $Policies = foreach ($url in $GraphURLS) { - try { - $Policies = New-GraphGetRequest -uri "$($url)" -tenantid $TenantFilter - $URLName = (($url).split('?') | Select-Object -First 1) -replace 'https://graph.microsoft.com/beta/deviceManagement/', '' + $Requests = [System.Collections.Generic.List[PSCustomObject]]::new() + foreach ($url in $GraphURLS) { + $URLName = (($url).split('?') | Select-Object -First 1) -replace 'deviceManagement/', '' -replace 'deviceAppManagement/', '' + $Requests.Add([PSCustomObject]@{ + id = $URLName + url = $url + method = 'GET' + }) + } + $BulkResults = New-GraphBulkRequest -Requests @($Requests) -tenantid $TenantFilter + foreach ($Result in $BulkResults) { + Write-Information "Processing Intune Configuration Policies for $($Result.id) - Status Code: $($Result.status)" + if ($Result.status -eq 200) { + $URLName = $Result.id + $Policies = $Result.body.value + Write-Information "Found $($Policies.Count) policies for $($Result.id)" foreach ($Policy in $Policies) { try { + $Hash = Get-StringHash -String ($Policy | ConvertTo-Json -Depth 100 -Compress) + $DisplayName = $Policy.displayName ?? $Policy.name + + $ExistingPolicy = $ExistingTemplates | Where-Object { $_.PartitionKey -eq 'IntuneTemplate' -and $_.displayName -eq $DisplayName } | Select-Object -First 1 + + Write-Information "Processing Intune Configuration Policy $($DisplayName) - $($ExistingPolicy ? 'Existing template found' : 'No existing template found')" + + if ($ExistingPolicy -and $ExistingPolicy.SHA -eq $Hash) { + "Intune Configuration Policy $($Policy.displayName) found, SHA matches, skipping template creation" + continue + } + $Template = New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName $URLName -ID $Policy.ID - $ExistingPolicy = $ExistingTemplates | Where-Object { $_.displayName -eq $Template.DisplayName } | Select-Object -First 1 if ($ExistingPolicy -and $ExistingPolicy.PartitionKey -eq 'IntuneTemplate') { "Policy $($Template.DisplayName) found, updating template" $object = [PSCustomObject]@{ @@ -149,9 +208,13 @@ function New-CIPPTemplateRun { JSON = "$object" RowKey = $ExistingPolicy.GUID PartitionKey = 'IntuneTemplate' + Package = $ExistingPolicy.Package + GUID = $ExistingPolicy.GUID + SHA = $Hash + Source = $ExistingPolicy.Source } -Force } else { - "Policy $($Template.DisplayName) not found in existing templates, creating new template" + "Intune Configuration Policy $($Template.DisplayName) not found in existing templates, creating new template" $GUID = (New-Guid).GUID $object = [PSCustomObject]@{ Displayname = $Template.DisplayName @@ -165,6 +228,9 @@ function New-CIPPTemplateRun { JSON = "$object" RowKey = "$GUID" PartitionKey = 'IntuneTemplate' + GUID = "$GUID" + SHA = $Hash + Source = $TenantFilter } -Force } } catch { @@ -172,18 +238,24 @@ function New-CIPPTemplateRun { "Failed to create a template of the Intune Configuration Policy with ID: $($Policy.id). Error: $ErrorMessage" } } - } catch { - Write-Information "Failed to backup $url" + } else { + Write-Information "Failed to get $($Result.id) policies - Status Code: $($Result.status) - Message: $($Result.body.error.message)" } } } 'intunecompliance' { - Write-Information "Backup Intune Compliance Policies for $TenantFilter" + Write-Information "Create Intune Compliance Policy Templates for $TenantFilter" New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicies?$top=999' -tenantid $TenantFilter | ForEach-Object { + $Hash = Get-StringHash -String (ConvertTo-Json -Depth 100 -Compress -InputObject $_) + $ExistingPolicy = $ExistingTemplates | Where-Object { $_.displayName -eq $_.DisplayName } | Select-Object -First 1 + if ($ExistingPolicy -and $ExistingPolicy.SHA -eq $Hash) { + "Intune Compliance Policy $($_.DisplayName) found, SHA matches, skipping template creation" + continue + } + $Template = New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName 'deviceCompliancePolicies' -ID $_.ID - $ExistingPolicy = $ExistingTemplates | Where-Object { $_.displayName -eq $Template.DisplayName } | Select-Object -First 1 if ($ExistingPolicy -and $ExistingPolicy.PartitionKey -eq 'IntuneTemplate') { - "Policy $($Template.DisplayName) found, updating template" + "Intune Compliance Policy $($Template.DisplayName) found, updating template" $object = [PSCustomObject]@{ Displayname = $Template.DisplayName Description = $Template.Description @@ -196,9 +268,13 @@ function New-CIPPTemplateRun { JSON = "$object" RowKey = $ExistingPolicy.GUID PartitionKey = 'IntuneTemplate' + Package = $ExistingPolicy.Package + GUID = $ExistingPolicy.GUID + SHA = $Hash + Source = $ExistingPolicy.Source } -Force } else { - "Policy $($Template.DisplayName) not found in existing templates, creating new template" + "Intune Compliance Policy $($Template.DisplayName) not found in existing templates, creating new template" $GUID = (New-Guid).GUID $object = [PSCustomObject]@{ Displayname = $Template.DisplayName @@ -212,19 +288,27 @@ function New-CIPPTemplateRun { JSON = "$object" RowKey = "$GUID" PartitionKey = 'IntuneTemplate' + SHA = $Hash + GUID = "$GUID" + Source = $TenantFilter } -Force } - } } 'intuneprotection' { - Write-Information "Backup Intune Protection Policies for $TenantFilter" + Write-Information "Create Intune Protection Policy Templates for $TenantFilter" New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceAppManagement/managedAppPolicies?$top=999' -tenantid $TenantFilter | ForEach-Object { + $Hash = Get-StringHash -String (ConvertTo-Json -Depth 100 -Compress -InputObject $_) + $ExistingPolicy = $ExistingTemplates | Where-Object { $_.displayName -eq $_.DisplayName } | Select-Object -First 1 + if ($ExistingPolicy -and $ExistingPolicy.SHA -eq $Hash) { + "Intune Protection Policy $($_.DisplayName) found, SHA matches, skipping template creation" + continue + } + $Template = New-CIPPIntuneTemplate -TenantFilter $TenantFilter -URLName 'managedAppPolicies' -ID $_.ID - $ExistingPolicy = $ExistingTemplates | Where-Object { $_.displayName -eq $Template.DisplayName } | Select-Object -First 1 if ($ExistingPolicy -and $ExistingPolicy.PartitionKey -eq 'IntuneTemplate') { - "Policy $($Template.DisplayName) found, updating template" + "Intune Protection Policy $($Template.DisplayName) found, updating template" $object = [PSCustomObject]@{ Displayname = $Template.DisplayName Description = $Template.Description @@ -237,9 +321,13 @@ function New-CIPPTemplateRun { JSON = "$object" RowKey = $ExistingPolicy.GUID PartitionKey = 'IntuneTemplate' + Package = $ExistingPolicy.Package + SHA = $Hash + GUID = $ExistingPolicy.GUID + Source = $ExistingPolicy.Source } -Force } else { - "Policy $($Template.DisplayName) not found in existing templates, creating new template" + "Intune Protection Policy $($Template.DisplayName) not found in existing templates, creating new template" $GUID = (New-Guid).GUID $object = [PSCustomObject]@{ Displayname = $Template.DisplayName @@ -253,14 +341,15 @@ function New-CIPPTemplateRun { JSON = "$object" RowKey = "$GUID" PartitionKey = 'IntuneTemplate' + SHA = $Hash + GUID = "$GUID" + Source = $TenantFilter } -Force } } } - } } } - return $BackupData + return $Results } - diff --git a/Modules/CIPPCore/Public/Remove-CIPPLicense.ps1 b/Modules/CIPPCore/Public/Remove-CIPPLicense.ps1 index b2d8d447e9d1..3b18b54b0678 100644 --- a/Modules/CIPPCore/Public/Remove-CIPPLicense.ps1 +++ b/Modules/CIPPCore/Public/Remove-CIPPLicense.ps1 @@ -33,7 +33,8 @@ function Remove-CIPPLicense { return "Scheduled license removal for $username" } else { try { - $ConvertTable = Import-Csv ConversionTable.csv + $ModuleBase = Get-Module -Name CIPPCore | Select-Object -ExpandProperty ModuleBase + $ConvertTable = Import-Csv (Join-Path $ModuleBase 'lib\data\ConversionTable.csv') $User = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users/$($userid)" -tenantid $tenantFilter $GroupMemberships = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users/$($userid)/memberOf/microsoft.graph.group?`$select=id,displayName,assignedLicenses" -tenantid $tenantFilter $LicenseGroups = $GroupMemberships | Where-Object { ($_.assignedLicenses | Measure-Object).Count -gt 0 } diff --git a/Modules/CIPPCore/Public/SAMManifest/Update-CippSamPermissions.ps1 b/Modules/CIPPCore/Public/SAMManifest/Update-CippSamPermissions.ps1 new file mode 100644 index 000000000000..c63ff4872094 --- /dev/null +++ b/Modules/CIPPCore/Public/SAMManifest/Update-CippSamPermissions.ps1 @@ -0,0 +1,79 @@ +function Update-CippSamPermissions { + <# + .SYNOPSIS + Updates CIPP-SAM app permissions by merging missing permissions. + .DESCRIPTION + Retrieves current SAM permissions, merges any missing permissions, and updates the AppPermissions table. + .PARAMETER UpdatedBy + The user or system that is performing the update. Defaults to 'CIPP-API'. + .OUTPUTS + String indicating the result of the operation. + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false)] + [string]$UpdatedBy = 'CIPP-API' + ) + + try { + $CurrentPermissions = Get-CippSamPermissions + + if (($CurrentPermissions.MissingPermissions | Measure-Object).Count -eq 0) { + return 'No permissions to update' + } + + Write-Information 'Missing permissions found' + $MissingPermissions = $CurrentPermissions.MissingPermissions + $Permissions = $CurrentPermissions.Permissions + + $AppIds = @($Permissions.PSObject.Properties.Name + $MissingPermissions.PSObject.Properties.Name) + $NewPermissions = @{} + + foreach ($AppId in $AppIds) { + if (!$AppId) { continue } + $ApplicationPermissions = [system.collections.generic.list[object]]::new() + $DelegatedPermissions = [system.collections.generic.list[object]]::new() + + foreach ($Permission in $Permissions.$AppId.applicationPermissions) { + $ApplicationPermissions.Add($Permission) + } + if (($MissingPermissions.$AppId.applicationPermissions | Measure-Object).Count -gt 0) { + foreach ($MissingPermission in $MissingPermissions.$AppId.applicationPermissions) { + Write-Host "Adding missing permission: $MissingPermission" + $ApplicationPermissions.Add($MissingPermission) + } + } + + foreach ($Permission in $Permissions.$AppId.delegatedPermissions) { + $DelegatedPermissions.Add($Permission) + } + if (($MissingPermissions.$AppId.delegatedPermissions | Measure-Object).Count -gt 0) { + foreach ($MissingPermission in $MissingPermissions.$AppId.delegatedPermissions) { + Write-Host "Adding missing permission: $MissingPermission" + $DelegatedPermissions.Add($MissingPermission) + } + } + + $NewPermissions.$AppId = @{ + applicationPermissions = @($ApplicationPermissions | Sort-Object -Property label) + delegatedPermissions = @($DelegatedPermissions | Sort-Object -Property label) + } + } + + $Entity = @{ + 'PartitionKey' = 'CIPP-SAM' + 'RowKey' = 'CIPP-SAM' + 'Permissions' = [string]([PSCustomObject]$NewPermissions | ConvertTo-Json -Depth 10 -Compress) + 'UpdatedBy' = $UpdatedBy + } + + $Table = Get-CIPPTable -TableName 'AppPermissions' + $null = Add-CIPPAzDataTableEntity @Table -Entity $Entity -Force + + Write-LogMessage -API 'UpdateCippSamPermissions' -message 'CIPP-SAM Permissions Updated' -Sev 'Info' -LogData $NewPermissions + + return 'Permissions Updated' + } catch { + throw "Failed to update permissions: $($_.Exception.Message)" + } +} diff --git a/Modules/CIPPCore/Public/Send-CIPPAlert.ps1 b/Modules/CIPPCore/Public/Send-CIPPAlert.ps1 index 3eee2aff1ed1..3451827a67d3 100644 --- a/Modules/CIPPCore/Public/Send-CIPPAlert.ps1 +++ b/Modules/CIPPCore/Public/Send-CIPPAlert.ps1 @@ -100,6 +100,18 @@ function Send-CIPPAlert { if ($Type -eq 'webhook') { Write-Information 'Trying to send webhook' + + $ExtensionTable = Get-CIPPTable -TableName Extensionsconfig + $Configuration = ((Get-CIPPAzDataTableEntity @ExtensionTable).config | ConvertFrom-Json) + + if ($Configuration.CFZTNA.WebhookEnabled -eq $true -and $Configuration.CFZTNA.Enabled -eq $true) { + $CFAPIKey = Get-ExtensionAPIKey -Extension 'CFZTNA' + $Headers = @{'CF-Access-Client-Id' = $Configuration.CFZTNA.ClientId; 'CF-Access-Client-Secret' = "$CFAPIKey" } + Write-Information 'CF-Access-Client-Id and CF-Access-Client-Secret headers added to webhook API request' + } else { + $Headers = $null + } + $JSONBody = Get-CIPPTextReplacement -TenantFilter $TenantFilter -Text $JSONContent -EscapeForJson try { if (![string]::IsNullOrWhiteSpace($Config.webhook) -or ![string]::IsNullOrWhiteSpace($AltWebhook)) { @@ -124,7 +136,16 @@ function Send-CIPPAlert { Invoke-RestMethod -Uri $webhook -Method POST -ContentType 'Application/json' -Body $JSONBody } default { - Invoke-RestMethod -Uri $webhook -Method POST -ContentType 'Application/json' -Body $JSONContent + $RestMethod = @{ + Uri = $webhook + Method = 'POST' + ContentType = 'application/json' + Body = $JSONContent + } + if ($Headers) { + $RestMethod['Headers'] = $Headers + } + Invoke-RestMethod @RestMethod } } } @@ -137,6 +158,7 @@ function Send-CIPPAlert { $ErrorMessage = Get-CippException -Exception $_ Write-Information "Could not send alerts to webhook: $($ErrorMessage.NormalizedError)" Write-LogMessage -API 'Webhook Alerts' -message "Could not send alerts to webhook: $($ErrorMessage.NormalizedError)" -tenant $TenantFilter -sev error -LogData $ErrorMessage + return "Could not send alerts to webhook: $($ErrorMessage.NormalizedError)" } } diff --git a/Modules/CIPPCore/Public/Set-CIPPAssignedApplication.ps1 b/Modules/CIPPCore/Public/Set-CIPPAssignedApplication.ps1 index 862ca7e91d5c..17b9201199e3 100644 --- a/Modules/CIPPCore/Public/Set-CIPPAssignedApplication.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPAssignedApplication.ps1 @@ -29,6 +29,9 @@ function Set-CIPPAssignedApplication { 'macOsVpp' { $assignmentSettings.useDeviceLicensing = $true } + 'iosVpp' { + $assignmentSettings.useDeviceLicensing = $true + } default { # No additional settings } diff --git a/Modules/CIPPCore/Public/Set-CIPPAssignedPolicy.ps1 b/Modules/CIPPCore/Public/Set-CIPPAssignedPolicy.ps1 index afe026749296..72fedbbeace3 100644 --- a/Modules/CIPPCore/Public/Set-CIPPAssignedPolicy.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPAssignedPolicy.ps1 @@ -10,7 +10,10 @@ function Set-CIPPAssignedPolicy { $APIName = 'Assign Policy', $Headers, $AssignmentFilterName, - $AssignmentFilterType = 'include' + $AssignmentFilterType = 'include', + $GroupIds, + $GroupNames, + $AssignmentMode = 'replace' ) Write-Host "Assigning policy $PolicyId ($PlatformType/$Type) to $GroupName" @@ -22,7 +25,7 @@ function Set-CIPPAssignedPolicy { Write-Host "Looking up assignment filter by name: $AssignmentFilterName" $AllFilters = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/deviceManagement/assignmentFilters' -tenantid $TenantFilter $MatchingFilter = $AllFilters | Where-Object { $_.displayName -like $AssignmentFilterName } | Select-Object -First 1 - + if ($MatchingFilter) { $ResolvedFilterId = $MatchingFilter.id Write-Host "Found assignment filter: $($MatchingFilter.displayName) with ID: $ResolvedFilterId" @@ -33,7 +36,7 @@ function Set-CIPPAssignedPolicy { } } - $assignmentsList = New-Object System.Collections.Generic.List[System.Object] + $assignmentsList = [System.Collections.Generic.List[object]]::new() switch ($GroupName) { 'allLicensedUsers' { $assignmentsList.Add( @@ -70,23 +73,30 @@ function Set-CIPPAssignedPolicy { ) } default { - $GroupNames = $GroupName.Split(',').Trim() - $GroupIds = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/groups?$select=id,displayName&$top=999' -tenantid $TenantFilter | - ForEach-Object { - foreach ($SingleName in $GroupNames) { - if ($_.displayName -like $SingleName) { - $_.id + # Use GroupIds if provided, otherwise resolve by name + $resolvedGroupIds = @() + if ($GroupIds -and @($GroupIds).Count -gt 0) { + $resolvedGroupIds = @($GroupIds) + Write-Host "Using provided GroupIds: $($resolvedGroupIds -join ', ')" + } elseif ($GroupName) { + $GroupNames = $GroupName.Split(',').Trim() + $resolvedGroupIds = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/groups?$select=id,displayName&$top=999' -tenantid $TenantFilter | + ForEach-Object { + foreach ($SingleName in $GroupNames) { + if ($_.displayName -like $SingleName) { + $_.id + } } } - } - - if (-not $GroupIds -or $GroupIds.Count -eq 0) { + } + + if (-not $resolvedGroupIds -or $resolvedGroupIds.Count -eq 0) { $ErrorMessage = "No groups found matching the specified name(s): $GroupName. Policy not assigned." Write-LogMessage -headers $Headers -API $APIName -message $ErrorMessage -Sev 'Warning' -tenant $TenantFilter - return $ErrorMessage + throw $ErrorMessage } - - foreach ($gid in $GroupIds) { + + foreach ($gid in $resolvedGroupIds) { $assignmentsList.Add( @{ target = @{ @@ -134,26 +144,93 @@ function Set-CIPPAssignedPolicy { } } - $assignmentsObject = [PSCustomObject]@{ - assignments = $assignmentsList + # If we're appending, we need to get existing assignments + $ExistingAssignments = @() + if ($AssignmentMode -eq 'append') { + try { + $uri = "https://graph.microsoft.com/beta/$($PlatformType)/$Type('$($PolicyId)')/assignments" + $ExistingAssignments = New-GraphGetRequest -uri $uri -tenantid $TenantFilter + Write-Host "Found $($ExistingAssignments.Count) existing assignments for policy $PolicyId" + } catch { + Write-Warning "Unable to retrieve existing assignments for $PolicyId. Proceeding with new assignments only. Error: $($_.Exception.Message)" + $ExistingAssignments = @() + } + } + + # Deduplicate current assignments so the new ones override existing ones + if ($ExistingAssignments -and $ExistingAssignments.Count -gt 0) { + $ExistingAssignments = $ExistingAssignments | ForEach-Object { + $ExistingAssignment = $_ + switch ($ExistingAssignment.target.'@odata.type') { + '#microsoft.graph.groupAssignmentTarget' { + if ($ExistingAssignment.target.groupId -notin $assignmentsList.target.groupId) { + $ExistingAssignment + } + } + '#microsoft.graph.exclusionGroupAssignmentTarget' { + if ($ExistingAssignment.target.groupId -notin $assignmentsList.target.groupId) { + $ExistingAssignment + } + } + default { + if ($ExistingAssignment.target.'@odata.type' -notin $assignmentsList.target.'@odata.type') { + $ExistingAssignment + } + } + } + } + } + + # Build final assignments list + $FinalAssignments = [System.Collections.Generic.List[object]]::new() + if ($AssignmentMode -eq 'append' -and $ExistingAssignments) { + foreach ($existing in $ExistingAssignments) { + $FinalAssignments.Add(@{ + target = $existing.target + }) + } + } + + foreach ($newAssignment in $assignmentsList) { + $FinalAssignments.Add($newAssignment) } - $AssignJSON = $assignmentsObject | ConvertTo-Json -Depth 10 -Compress + # Determine the assignment property name based on type + $AssignmentPropertyName = switch ($Type) { + 'deviceHealthScripts' { 'deviceHealthScriptAssignments' } + 'deviceManagementScripts' { 'deviceManagementScriptAssignments' } + 'deviceShellScripts' { 'deviceManagementScriptAssignments' } + default { 'assignments' } + } + + $assignmentsObject = @{ $AssignmentPropertyName = @($FinalAssignments) } + + $AssignJSON = ConvertTo-Json -InputObject $assignmentsObject -Depth 10 -Compress if ($PSCmdlet.ShouldProcess($GroupName, "Assigning policy $PolicyId")) { $uri = "https://graph.microsoft.com/beta/$($PlatformType)/$Type('$($PolicyId)')/assign" $null = New-GraphPOSTRequest -uri $uri -tenantid $TenantFilter -type POST -body $AssignJSON + + # Build a friendly display name for the assigned groups + $AssignedGroupsDisplay = if ($GroupNames -and @($GroupNames).Count -gt 0) { + ($GroupNames -join ', ') + } elseif ($GroupName) { + $GroupName + } else { + 'specified groups' + } + if ($ExcludeGroup) { - Write-LogMessage -headers $Headers -API $APIName -message "Assigned group '$GroupName' and excluded group '$ExcludeGroup' on Policy $PolicyId" -Sev 'Info' -tenant $TenantFilter - return "Successfully assigned group '$GroupName' and excluded group '$ExcludeGroup' on Policy $PolicyId" + Write-LogMessage -headers $Headers -API $APIName -message "Assigned group '$AssignedGroupsDisplay' and excluded group '$ExcludeGroup' on Policy $PolicyId" -Sev 'Info' -tenant $TenantFilter + return "Successfully assigned group '$AssignedGroupsDisplay' and excluded group '$ExcludeGroup' on Policy $PolicyId" } else { - Write-LogMessage -headers $Headers -API $APIName -message "Assigned group '$GroupName' on Policy $PolicyId" -Sev 'Info' -tenant $TenantFilter - return "Successfully assigned group '$GroupName' on Policy $PolicyId" + Write-LogMessage -headers $Headers -API $APIName -message "Assigned group '$AssignedGroupsDisplay' on Policy $PolicyId" -Sev 'Info' -tenant $TenantFilter + return "Successfully assigned group '$AssignedGroupsDisplay' on Policy $PolicyId" } } } catch { - $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message - Write-LogMessage -headers $Headers -API $APIName -message "Failed to assign $GroupName to Policy $PolicyId, using Platform $PlatformType and $Type. The error is:$ErrorMessage" -Sev 'Error' -tenant $TenantFilter -LogData $ErrorMessage + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -headers $Headers -API $APIName -message "Failed to assign $GroupName to Policy $PolicyId, using Platform $PlatformType and $Type. The error is:$($ErrorMessage.NormalizedError)" -Sev 'Error' -tenant $TenantFilter -LogData $ErrorMessage return "Failed to assign $GroupName to Policy $PolicyId. Error: $ErrorMessage" } } diff --git a/Modules/CIPPCore/Public/Set-CIPPIntunePolicy.ps1 b/Modules/CIPPCore/Public/Set-CIPPIntunePolicy.ps1 index e465e7552887..b0518e1d5d5a 100644 --- a/Modules/CIPPCore/Public/Set-CIPPIntunePolicy.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPIntunePolicy.ps1 @@ -8,14 +8,13 @@ function Set-CIPPIntunePolicy { $AssignTo, $ExcludeGroup, $Headers, - $APINAME, - $tenantFilter, + $APIName = 'Set-CIPPIntunePolicy', + $TenantFilter, $AssignmentFilterName, $AssignmentFilterType = 'include' ) - $APINAME = 'Set-CIPPIntunePolicy' - $RawJSON = Get-CIPPTextReplacement -TenantFilter $tenantFilter -Text $RawJSON + $RawJSON = Get-CIPPTextReplacement -TenantFilter $TenantFilter -Text $RawJSON try { switch ($TemplateType) { @@ -23,64 +22,87 @@ function Set-CIPPIntunePolicy { $PlatformType = 'deviceAppManagement' $TemplateType = ($RawJSON | ConvertFrom-Json).'@odata.type' -replace '#microsoft.graph.', '' $PolicyFile = $RawJSON | ConvertFrom-Json - $Null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'description' -Value $description -Force - $null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'displayName' -Value $displayname -Force + $Null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'description' -Value $Description -Force + $null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'displayName' -Value $DisplayName -Force $PolicyFile = $PolicyFile | Select-Object * -ExcludeProperty 'apps' $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 20 $TemplateTypeURL = if ($TemplateType -eq 'windowsInformationProtectionPolicy') { 'windowsInformationProtectionPolicies' } else { "$($TemplateType)s" } - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter - if ($displayname -in $CheckExististing.displayName) { + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter + if ($DisplayName -in $CheckExististing.displayName) { $PostType = 'edited' - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + } + } + 'AppConfiguration' { + $PlatformType = 'deviceAppManagement' + $TemplateTypeURL = 'mobileAppConfigurations' + $PolicyFile = $RawJSON | ConvertFrom-Json + $Null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'description' -Value $Description -Force + $null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'displayName' -Value $DisplayName -Force + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter + if ($DisplayName -in $CheckExististing.displayName) { + $PostType = 'edited' + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName + $PolicyFile = $PolicyFile | Select-Object * -ExcludeProperty id, createdDateTime, lastModifiedDateTime, version, '@odata.context', targetedMobileApps + $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 20 -Compress + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Updated policy $($DisplayName) to template defaults" -Sev 'info' + $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName + } else { + $PostType = 'added' + $PolicyFile = $PolicyFile | Select-Object * -ExcludeProperty id, createdDateTime, lastModifiedDateTime, version, '@odata.context' + $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 20 -Compress + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } 'deviceCompliancePolicies' { $PlatformType = 'deviceManagement' $TemplateTypeURL = 'deviceCompliancePolicies' - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter $JSON = $RawJSON | ConvertFrom-Json | Select-Object * -ExcludeProperty id, createdDateTime, lastModifiedDateTime, version, 'scheduledActionsForRule@odata.context', '@odata.context' $JSON.scheduledActionsForRule = @($JSON.scheduledActionsForRule | Select-Object * -ExcludeProperty 'scheduledActionConfigurations@odata.context') - if ($displayname -in $CheckExististing.displayName) { + if ($DisplayName -in $CheckExististing.displayName) { $RawJSON = ConvertTo-Json -InputObject ($JSON | Select-Object * -ExcludeProperty 'scheduledActionsForRule') -Depth 20 -Compress $PostType = 'edited' - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Updated policy $($DisplayName) to template defaults" -Sev 'info' + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Updated policy $($DisplayName) to template defaults" -Sev 'info' $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName } else { $RawJSON = ConvertTo-Json -InputObject $JSON -Depth 20 -Compress $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } 'Admin' { $PlatformType = 'deviceManagement' $TemplateTypeURL = 'groupPolicyConfigurations' - $CreateBody = '{"description":"' + $description + '","displayName":"' + $displayname + '","roleScopeTagIds":["0"]}' - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter - if ($displayname -in $CheckExististing.displayName) { - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname - $ExistingData = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($ExistingID.id)')/definitionValues" -tenantid $tenantFilter + $CreateBody = '{"description":"' + $Description + '","displayName":"' + $DisplayName + '","roleScopeTagIds":["0"]}' + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter + if ($DisplayName -in $CheckExististing.displayName) { + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName + $ExistingData = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($ExistingID.id)')/definitionValues" -tenantid $TenantFilter $DeleteJson = $RawJSON | ConvertFrom-Json -Depth 10 $DeleteJson | Add-Member -MemberType NoteProperty -Name 'deletedIds' -Value @($ExistingData.id) -Force $DeleteJson | Add-Member -MemberType NoteProperty -Name 'added' -Value @() -Force $DeleteJson = ConvertTo-Json -Depth 10 -InputObject $DeleteJson - $DeleteRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($ExistingID.id)')/updateDefinitionValues" -tenantid $tenantFilter -type POST -body $DeleteJson - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($ExistingID.id)')/updateDefinitionValues" -tenantid $tenantFilter -type POST -body $RawJSON + $DeleteRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($ExistingID.id)')/updateDefinitionValues" -tenantid $TenantFilter -type POST -body $DeleteJson + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($ExistingID.id)')/updateDefinitionValues" -tenantid $TenantFilter -type POST -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Updated policy $($Displayname) to template defaults" -Sev 'info' + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Updated policy $($DisplayName) to template defaults" -Sev 'info' $PostType = 'edited' } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $CreateBody - $UpdateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($CreateRequest.id)')/updateDefinitionValues" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($Displayname) to template defaults" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $CreateBody + $UpdateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL('$($CreateRequest.id)')/updateDefinitionValues" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) to template defaults" -Sev 'info' } } @@ -88,9 +110,9 @@ function Set-CIPPIntunePolicy { $PlatformType = 'deviceManagement' $TemplateTypeURL = 'deviceConfigurations' $PolicyFile = $RawJSON | ConvertFrom-Json - $Null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'description' -Value "$description" -Force - $null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'displayName' -Value $displayname -Force - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter + $Null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'description' -Value "$Description" -Force + $null = $PolicyFile | Add-Member -MemberType NoteProperty -Name 'displayName' -Value $DisplayName -Force + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName | Select-Object -Last 1 $PolicyFile = $policyFile | Select-Object * -ExcludeProperty 'featureUpdatesWillBeRolledBack', 'qualityUpdatesWillBeRolledBack', 'qualityUpdatesPauseStartDate', 'featureUpdatesPauseStartDate' $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 100 -Compress @@ -99,11 +121,11 @@ function Set-CIPPIntunePolicy { Write-Host "Raw JSON is $RawJSON" $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Updated policy $($DisplayName) to template defaults" -Sev 'info' + Write-LogMessage -headers $Headers -API $APIName -tenant $($tenantFilter) -message "Updated policy $($DisplayName) to template defaults" -Sev 'info' } else { $PostType = 'added' $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + Write-LogMessage -headers $Headers -API $APIName -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } @@ -120,7 +142,7 @@ function Set-CIPPIntunePolicy { if ($AvailableSettings) { Write-Information "Available settings for template $($Template.templateReference.templateId): $($AvailableSettings.Count)" - $FilteredSettings = [system.collections.generic.list[psobject]]::new() + $FilteredSettings = [System.Collections.Generic.List[psobject]]::new() foreach ($setting in $Template.settings) { if ($setting.settingInstance.settingInstanceTemplateReference.settingInstanceTemplateId -in $AvailableSettings.settingInstanceTemplate.settingInstanceTemplateId) { $AvailableSetting = $AvailableSettings | Where-Object { $_.settingInstanceTemplate.settingInstanceTemplateId -eq $setting.settingInstance.settingInstanceTemplateReference.settingInstanceTemplateId } @@ -145,18 +167,18 @@ function Set-CIPPIntunePolicy { } } - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter if ($DisplayName -in $CheckExististing.name) { $PolicyFile = $RawJSON | ConvertFrom-Json | Select-Object * -ExcludeProperty Platform, PolicyType, CreationSource $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 100 -Compress $ExistingID = $CheckExististing | Where-Object -Property Name -EQ $DisplayName - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PUT -body $RawJSON + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PUT -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property Name -EQ $DisplayName $PostType = 'edited' } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } 'windowsDriverUpdateProfiles' { @@ -164,19 +186,19 @@ function Set-CIPPIntunePolicy { $TemplateTypeURL = 'windowsDriverUpdateProfiles' $File = ($RawJSON | ConvertFrom-Json) $DisplayName = $File.displayName ?? $File.Name - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter if ($DisplayName -in $CheckExististing.displayName) { $PostType = 'edited' $PolicyFile = $RawJSON | ConvertFrom-Json | Select-Object * -ExcludeProperty inventorySyncStatus, newUpdates, deviceReporting, approvalType $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 100 -Compress - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName Write-Host 'We are editing' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } 'windowsFeatureUpdateProfiles' { @@ -189,15 +211,15 @@ function Set-CIPPIntunePolicy { $PostType = 'edited' $PolicyFile = $RawJSON | ConvertFrom-Json | Select-Object * -ExcludeProperty deployableContentDisplayName, endOfSupportDate, installLatestWindows10OnWindows11IneligibleDevice $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 100 -Compress - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName Write-Host 'We are editing' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } 'windowsQualityUpdatePolicies' { @@ -205,19 +227,19 @@ function Set-CIPPIntunePolicy { $TemplateTypeURL = 'windowsQualityUpdatePolicies' $File = ($RawJSON | ConvertFrom-Json) $DisplayName = $File.displayName ?? $File.Name - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter if ($DisplayName -in $CheckExististing.displayName) { $PostType = 'edited' $PolicyFile = $RawJSON | ConvertFrom-Json | Select-Object * $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 100 -Compress - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName Write-Host 'We are editing' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } 'windowsQualityUpdateProfiles' { @@ -225,34 +247,34 @@ function Set-CIPPIntunePolicy { $TemplateTypeURL = 'windowsQualityUpdateProfiles' $File = ($RawJSON | ConvertFrom-Json) $DisplayName = $File.displayName ?? $File.Name - $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter + $CheckExististing = New-GraphGETRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter if ($DisplayName -in $CheckExististing.displayName) { $PostType = 'edited' $PolicyFile = $RawJSON | ConvertFrom-Json | Select-Object * -ExcludeProperty releaseDateDisplayName, deployableContentDisplayName $RawJSON = ConvertTo-Json -InputObject $PolicyFile -Depth 100 -Compress - $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $displayname + $ExistingID = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName Write-Host 'We are editing' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $tenantFilter -type PATCH -body $RawJSON + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL/$($ExistingID.Id)" -tenantid $TenantFilter -type PATCH -body $RawJSON $CreateRequest = $CheckExististing | Where-Object -Property displayName -EQ $DisplayName } else { $PostType = 'added' - $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $tenantFilter -type POST -body $RawJSON - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' + $CreateRequest = New-GraphPOSTRequest -uri "https://graph.microsoft.com/beta/$PlatformType/$TemplateTypeURL" -tenantid $TenantFilter -type POST -body $RawJSON + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Added policy $($DisplayName) via template" -Sev 'info' } } } - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "$($PostType) policy $($Displayname)" -Sev 'Info' + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "$($PostType) policy $($DisplayName)" -Sev 'Info' if ($AssignTo) { - Write-Host "Assigning policy to $($AssignTo) with ID $($CreateRequest.id) and type $TemplateTypeURL for tenant $tenantFilter" + Write-Host "Assigning policy to $($AssignTo) with ID $($CreateRequest.id) and type $TemplateTypeURL for tenant $TenantFilter" Write-Host "ID is $($CreateRequest.id)" $AssignParams = @{ - GroupName = $AssignTo - PolicyId = $CreateRequest.id - PlatformType = $PlatformType - Type = $TemplateTypeURL - TenantFilter = $tenantFilter - ExcludeGroup = $ExcludeGroup + GroupName = $AssignTo + PolicyId = $CreateRequest.id + PlatformType = $PlatformType + Type = $TemplateTypeURL + TenantFilter = $tenantFilter + ExcludeGroup = $ExcludeGroup } if ($AssignmentFilterName) { @@ -262,10 +284,10 @@ function Set-CIPPIntunePolicy { Set-CIPPAssignedPolicy @AssignParams } - return "Successfully $($PostType) policy for $($tenantFilter) with display name $($Displayname)" + return "Successfully $($PostType) policy for $($TenantFilter) with display name $($DisplayName)" } catch { $ErrorMessage = Get-CippException -Exception $_ - Write-LogMessage -headers $Headers -API $APINAME -tenant $($tenantFilter) -message "Failed $($PostType) policy $($Displayname). Error: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage - throw "Failed to add or set policy for $($tenantFilter) with display name $($Displayname): $($ErrorMessage.NormalizedError)" + Write-LogMessage -headers $Headers -API $APIName -tenant $($TenantFilter) -message "Failed $($PostType) policy $($DisplayName). Error: $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage + throw "Failed to add or set policy for $($TenantFilter) with display name $($DisplayName): $($ErrorMessage.NormalizedError)" } } diff --git a/Modules/CIPPCore/Public/Set-CIPPStandardsCompareField.ps1 b/Modules/CIPPCore/Public/Set-CIPPStandardsCompareField.ps1 index 67c71db59ec2..5bf3b8635f6e 100644 --- a/Modules/CIPPCore/Public/Set-CIPPStandardsCompareField.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPStandardsCompareField.ps1 @@ -3,40 +3,89 @@ function Set-CIPPStandardsCompareField { param ( $FieldName, $FieldValue, - $TenantFilter + $TenantFilter, + [Parameter()] + [array]$BulkFields ) $Table = Get-CippTable -tablename 'CippStandardsReports' $TenantName = Get-Tenants -TenantFilter $TenantFilter - if ($FieldValue -is [System.Boolean]) { - $FieldValue = [bool]$FieldValue - } elseif ($FieldValue -is [string]) { - $FieldValue = [string]$FieldValue - } else { - $FieldValue = ConvertTo-Json -Compress -InputObject @($FieldValue) -Depth 10 | Out-String - $FieldValue = [string]$FieldValue + # Helper function to normalize field values + function ConvertTo-NormalizedFieldValue { + param($Value) + if ($Value -is [System.Boolean]) { + return [bool]$Value + } elseif ($Value -is [string]) { + return [string]$Value + } else { + $JsonValue = ConvertTo-Json -Compress -InputObject @($Value) -Depth 10 | Out-String + return [string]$JsonValue + } } - $Existing = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq '$($TenantName.defaultDomainName)' and RowKey eq '$($FieldName)'" + # Handle bulk operations + if ($BulkFields) { + # Get all existing entities for this tenant in one query + $ExistingEntities = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq '$($TenantName.defaultDomainName)'" + $ExistingHash = @{} + foreach ($Entity in $ExistingEntities) { + $ExistingHash[$Entity.RowKey] = $Entity + } - if ($PSCmdlet.ShouldProcess('CIPP Standards Compare', "Set field '$FieldName' to '$FieldValue' for tenant '$($TenantName.defaultDomainName)'")) { - try { - if ($Existing) { - $Existing.Value = $FieldValue - $Existing | Add-Member -NotePropertyName TemplateId -NotePropertyValue $script:StandardInfo.StandardTemplateId -Force - Add-CIPPAzDataTableEntity @Table -Entity $Existing -Force + # Build array of entities to insert/update + $EntitiesToProcess = [System.Collections.Generic.List[object]]::new() + + foreach ($Field in $BulkFields) { + $NormalizedValue = ConvertTo-NormalizedFieldValue -Value $Field.FieldValue + + if ($ExistingHash.ContainsKey($Field.FieldName)) { + $Entity = $ExistingHash[$Field.FieldName] + $Entity.Value = $NormalizedValue + $Entity | Add-Member -NotePropertyName TemplateId -NotePropertyValue ([string]$script:CippStandardInfoStorage.Value.StandardTemplateId) -Force } else { - $Result = [PSCustomObject]@{ + $Entity = [PSCustomObject]@{ PartitionKey = [string]$TenantName.defaultDomainName - RowKey = [string]$FieldName - Value = $FieldValue - TemplateId = $script:StandardInfo.StandardTemplateId + RowKey = [string]$Field.FieldName + Value = $NormalizedValue + TemplateId = [string]$script:CippStandardInfoStorage.Value.StandardTemplateId + } + } + $EntitiesToProcess.Add($Entity) + } + + if ($PSCmdlet.ShouldProcess('CIPP Standards Compare', "Set $($EntitiesToProcess.Count) fields for tenant '$($TenantName.defaultDomainName)'")) { + try { + # Single bulk insert/update operation + Add-CIPPAzDataTableEntity @Table -Entity $EntitiesToProcess -Force + Write-Information "Bulk added $($EntitiesToProcess.Count) fields to StandardCompare for $($TenantName.defaultDomainName)" + } catch { + Write-Warning "Failed to bulk add fields to StandardCompare for $($TenantName.defaultDomainName) - $($_.Exception.Message)" + } + } + } else { + # Original single field logic + $NormalizedValue = ConvertTo-NormalizedFieldValue -Value $FieldValue + $Existing = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq '$($TenantName.defaultDomainName)' and RowKey eq '$($FieldName)'" + + if ($PSCmdlet.ShouldProcess('CIPP Standards Compare', "Set field '$FieldName' to '$NormalizedValue' for tenant '$($TenantName.defaultDomainName)'")) { + try { + if ($Existing) { + $Existing.Value = $NormalizedValue + $Existing | Add-Member -NotePropertyName TemplateId -NotePropertyValue ([string]$script:CippStandardInfoStorage.Value.StandardTemplateId) -Force + Add-CIPPAzDataTableEntity @Table -Entity $Existing -Force + } else { + $Result = [PSCustomObject]@{ + PartitionKey = [string]$TenantName.defaultDomainName + RowKey = [string]$FieldName + Value = $NormalizedValue + TemplateId = [string]$script:CippStandardInfoStorage.Value.StandardTemplateId + } + Add-CIPPAzDataTableEntity @Table -Entity $Result -Force } - Add-CIPPAzDataTableEntity @Table -Entity $Result -Force + Write-Information "Adding $FieldName to StandardCompare for $($TenantName.defaultDomainName). content is $NormalizedValue" + } catch { + Write-Warning "Failed to add $FieldName to StandardCompare for $($TenantName.defaultDomainName). content is $NormalizedValue - $($_.Exception.Message)" } - Write-Information "Adding $FieldName to StandardCompare for $Tenant. content is $FieldValue" - } catch { - Write-Warning "Failed to add $FieldName to StandardCompare for $Tenant. content is $FieldValue - $($_.Exception.Message)" } } } diff --git a/Modules/CIPPCore/Public/Set-CIPPUserJITAdmin.ps1 b/Modules/CIPPCore/Public/Set-CIPPUserJITAdmin.ps1 index 06114c720f41..bf5d054d1ee0 100644 --- a/Modules/CIPPCore/Public/Set-CIPPUserJITAdmin.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPUserJITAdmin.ps1 @@ -24,6 +24,9 @@ function Set-CIPPUserJITAdmin { .PARAMETER Reason Reason for JIT admin assignment. Defaults to 'No reason provided' as due to backwards compatibility this is not a mandatory field. + .PARAMETER Headers + Headers to include in logging + .EXAMPLE Set-CIPPUserJITAdmin -TenantFilter 'contoso.onmicrosoft.com' -Headers@{UserPrincipalName = 'jit@contoso.onmicrosoft.com'} -Roles @('62e90394-69f5-4237-9190-012177145e10') -Action 'AddRoles' -Expiration (Get-Date).AddDays(1) -Reason 'Emergency access' @@ -32,19 +35,17 @@ function Set-CIPPUserJITAdmin { param( [Parameter(Mandatory = $true)] [string]$TenantFilter, - [Parameter(Mandatory = $true)] [hashtable]$User, - [string[]]$Roles, - [Parameter(Mandatory = $true)] [ValidateSet('Create', 'AddRoles', 'RemoveRoles', 'DeleteUser', 'DisableUser')] [string]$Action, - [datetime]$Expiration, - - [string]$Reason = 'No reason provided' + [datetime]$StartDate, + [string]$Reason = 'No reason provided', + $Headers, + [string]$APIName = 'Set-CIPPUserJITAdmin' ) if ($PSCmdlet.ShouldProcess("User: $($User.UserPrincipalName)", "Action: $Action")) { @@ -72,7 +73,9 @@ function Set-CIPPUserJITAdmin { $Schema.id = @{ jitAdminEnabled = $false jitAdminExpiration = $Expiration.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') + jitAdminStartDate = if ($StartDate) { $StartDate.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') } else { $null } jitAdminReason = $Reason + jitAdminCreatedBy = if ($Headers) { ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Headers.'x-ms-client-principal')) | ConvertFrom-Json).userDetails } else { 'Unknown' } } } $Json = ConvertTo-Json -Depth 5 -InputObject $Body @@ -83,6 +86,16 @@ function Set-CIPPUserJITAdmin { if ($PasswordLink) { $Password = $PasswordLink } + $LogData = @{ + UserPrincipalName = $User.UserPrincipalName + Action = 'Create' + Reason = $Reason + StartDate = if ($StartDate) { $StartDate.ToString('o') } else { (Get-Date).ToString('o') } + Expiration = $Expiration.ToString('o') + ExpirationUTC = $Expiration.ToUniversalTime().ToString('o') + CreatedBy = if ($Headers) { ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Headers.'x-ms-client-principal')) | ConvertFrom-Json).userDetails } else { 'Unknown' } + } + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message "Created JIT Admin user: $($User.UserPrincipalName). Reason: $Reason" -Sev 'Info' -LogData $LogData [PSCustomObject]@{ id = $NewUser.id userPrincipalName = $NewUser.userPrincipalName @@ -115,7 +128,21 @@ function Set-CIPPUserJITAdmin { } catch {} } - Set-CIPPUserJITAdminProperties -TenantFilter $TenantFilter -UserId $UserObj.id -Enabled -Expiration $Expiration -Reason $Reason | Out-Null + Set-CIPPUserJITAdminProperties -TenantFilter $TenantFilter -UserId $UserObj.id -Enabled -Expiration $Expiration -StartDate $StartDate -Reason $Reason -CreatedBy (if ($Headers) { ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Headers.'x-ms-client-principal')) | ConvertFrom-Json).userDetails } else { 'Unknown' }) | Out-Null + $Message = "Added admin roles to user $($UserObj.displayName) ($($UserObj.userPrincipalName)). Reason: $Reason" + $LogData = @{ + UserPrincipalName = $UserObj.userPrincipalName + UserId = $UserObj.id + DisplayName = $UserObj.displayName + Action = 'AddRoles' + Roles = $Roles + Reason = $Reason + StartDate = if ($StartDate) { $StartDate.ToString('o') } else { (Get-Date).ToString('o') } + Expiration = $Expiration.ToString('o') + ExpirationUTC = $Expiration.ToUniversalTime().ToString('o') + CreatedBy = if ($Headers) { ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Headers.'x-ms-client-principal')) | ConvertFrom-Json).userDetails } else { 'Unknown' } + } + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message $Message -Sev 'Info' -LogData $LogData return "Added admin roles to user $($UserObj.displayName) ($($UserObj.userPrincipalName))" } 'RemoveRoles' { @@ -125,15 +152,20 @@ function Set-CIPPUserJITAdmin { } catch {} } Set-CIPPUserJITAdminProperties -TenantFilter $TenantFilter -UserId $UserObj.id -Clear | Out-Null + $Message = "Removed admin roles from user $($UserObj.displayName) ($($UserObj.userPrincipalName))" + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message $Message -Sev 'Info' return "Removed admin roles from user $($UserObj.displayName)" } 'DeleteUser' { try { - $null = New-GraphPOSTRequest -type DELETE -uri "https://graph.microsoft.com/beta/users/$($UserObj.id)" -tenantid $TenantFilter - return "Deleted user $($UserObj.displayName) ($($UserObj.userPrincipalName)) with id $($UserObj.id)" + $null = New-GraphPOSTRequest -type DELETE -uri "https://graph.microsoft.com/beta/users/$($UserObj.userPrincipalName)" -tenantid $TenantFilter + $Message = "Deleted user $($UserObj.displayName) ($($UserObj.userPrincipalName)) with id $($UserObj.id)" + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message $Message -Sev 'Info' + return $Message } catch { $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message - return "Error deleting user $($UserObj.displayName) ($($UserObj.userPrincipalName)): $ErrorMessage" + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message "Error deleting user $($UserObj.displayName) ($($UserObj.userPrincipalName)): $ErrorMessage" -Sev 'Error' + throw "Error deleting user $($UserObj.displayName) ($($UserObj.userPrincipalName)): $ErrorMessage" } } 'DisableUser' { @@ -147,11 +179,13 @@ function Set-CIPPUserJITAdmin { Write-Information "https://graph.microsoft.com/beta/users/$($User.UserPrincipalName)" $null = New-GraphPOSTRequest -type PATCH -uri "https://graph.microsoft.com/beta/users/$($User.UserPrincipalName)" -tenantid $TenantFilter -body $Json Set-CIPPUserJITAdminProperties -TenantFilter $TenantFilter -UserId $User.UserPrincipalName -Clear | Out-Null - return "Disabled user $($UserObj.displayName) ($($UserObj.userPrincipalName))" + $Message = "Disabled user $($UserObj.displayName) ($($UserObj.userPrincipalName))" + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message $Message -Sev 'Info' + return $Message } catch { $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message - return "Error disabling user $($UserObj.displayName) ($($UserObj.userPrincipalName)): $ErrorMessage" - + Write-LogMessage -Headers $Headers -API $APIName -tenant $TenantFilter -message "Error disabling user $($UserObj.displayName) ($($UserObj.userPrincipalName)): $ErrorMessage" -Sev 'Error' + throw "Error disabling user $($UserObj.displayName) ($($UserObj.userPrincipalName)): $ErrorMessage" } } } diff --git a/Modules/CIPPCore/Public/Set-CIPPUserJITAdminProperties.ps1 b/Modules/CIPPCore/Public/Set-CIPPUserJITAdminProperties.ps1 index 481fef740b42..07eb7402ed7a 100644 --- a/Modules/CIPPCore/Public/Set-CIPPUserJITAdminProperties.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPUserJITAdminProperties.ps1 @@ -5,8 +5,10 @@ function Set-CIPPUserJITAdminProperties { [string]$UserId, [switch]$Enabled, $Expiration, + $StartDate, [switch]$Clear, - [string]$Reason + [string]$Reason, + [string]$CreatedBy ) try { $Schema = Get-CIPPSchemaExtensions | Where-Object { $_.id -match '_cippUser' } | Select-Object -First 1 @@ -15,7 +17,9 @@ function Set-CIPPUserJITAdminProperties { "$($Schema.id)" = @{ jitAdminEnabled = $null jitAdminExpiration = $null + jitAdminStartDate = $null jitAdminReason = $null + jitAdminCreatedBy = $null } } } else { @@ -23,7 +27,9 @@ function Set-CIPPUserJITAdminProperties { "$($Schema.id)" = @{ jitAdminEnabled = $Enabled.IsPresent jitAdminExpiration = $Expiration.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') + jitAdminStartDate = if ($StartDate) { $StartDate.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') } else { $null } jitAdminReason = $Reason + jitAdminCreatedBy = $CreatedBy } } } diff --git a/Modules/CIPPCore/Public/Set-CippKeyVaultSecret.ps1 b/Modules/CIPPCore/Public/Set-CippKeyVaultSecret.ps1 new file mode 100644 index 000000000000..aeaadf430655 --- /dev/null +++ b/Modules/CIPPCore/Public/Set-CippKeyVaultSecret.ps1 @@ -0,0 +1,77 @@ +function Set-CippKeyVaultSecret { + <# + .SYNOPSIS + Sets a secret in Azure Key Vault using REST API (no Az.KeyVault module required) + + .DESCRIPTION + Lightweight replacement for Set-AzKeyVaultSecret that uses REST API directly. + Significantly faster as it doesn't require loading the Az.KeyVault module. + + .PARAMETER VaultName + Name of the Key Vault. If not provided, derives from WEBSITE_DEPLOYMENT_ID environment variable. + + .PARAMETER Name + Name of the secret to set. + + .PARAMETER SecretValue + The secret value as a SecureString. + + .EXAMPLE + $secret = ConvertTo-SecureString -String 'mypassword' -AsPlainText -Force + Set-CippKeyVaultSecret -Name 'MySecret' -SecretValue $secret + + .EXAMPLE + Set-CippKeyVaultSecret -VaultName 'mykeyvault' -Name 'RefreshToken' -SecretValue $secureToken + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false)] + [string]$VaultName, + + [Parameter(Mandatory = $true)] + [string]$Name, + + [Parameter(Mandatory = $true)] + [securestring]$SecretValue + ) + + try { + # Derive vault name if not provided + if (-not $VaultName) { + if ($env:WEBSITE_DEPLOYMENT_ID) { + $VaultName = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] + } else { + throw "VaultName not provided and WEBSITE_DEPLOYMENT_ID environment variable not set" + } + } + + # Get access token for Key Vault + $token = Get-CIPPAzIdentityToken -ResourceUrl "https://vault.azure.net" + + # Convert SecureString to plain text + $plainText = [System.Net.NetworkCredential]::new('', $SecretValue).Password + + # Prepare request body + $body = @{ value = $plainText } | ConvertTo-Json + + # Call Key Vault REST API + $uri = "https://$VaultName.vault.azure.net/secrets/$Name`?api-version=7.4" + $response = Invoke-RestMethod -Uri $uri -Headers @{ + Authorization = "Bearer $token" + 'Content-Type' = 'application/json' + } -Method Put -Body $body -ErrorAction Stop + + # Return object similar to Set-AzKeyVaultSecret for compatibility + return @{ + Name = $Name + VaultName = $VaultName + Id = $response.id + Enabled = $response.attributes.enabled + Created = $response.attributes.created + Updated = $response.attributes.updated + } + } catch { + Write-Error "Failed to set secret '$Name' in vault '$VaultName': $($_.Exception.Message)" + throw + } +} diff --git a/Modules/CIPPCore/Public/Standards/Get-CIPPStandards.ps1 b/Modules/CIPPCore/Public/Standards/Get-CIPPStandards.ps1 index 1abed41229f2..6b631e8c96fd 100644 --- a/Modules/CIPPCore/Public/Standards/Get-CIPPStandards.ps1 +++ b/Modules/CIPPCore/Public/Standards/Get-CIPPStandards.ps1 @@ -3,6 +3,9 @@ function Get-CIPPStandards { [Parameter(Mandatory = $false)] [string]$TenantFilter = 'allTenants', + [Parameter(Mandatory = $false)] + [switch]$LicenseChecks = $false, + [Parameter(Mandatory = $false)] [switch]$ListAllTenants, @@ -20,16 +23,16 @@ function Get-CIPPStandards { $Table = Get-CippTable -tablename 'templates' $Filter = "PartitionKey eq 'StandardsTemplateV2'" $Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Sort-Object TimeStamp).JSON | - ForEach-Object { - try { - # Fix old "Action" => "action" - $JSON = $_ -replace '"Action":', '"action":' -replace '"permissionlevel":', '"permissionLevel":' - ConvertFrom-Json -InputObject $JSON -ErrorAction SilentlyContinue - } catch {} - } | - Where-Object { - $_.GUID -like $TemplateId -and $_.runManually -eq $runManually - } + ForEach-Object { + try { + # Fix old "Action" => "action" + $JSON = $_ -replace '"Action":', '"action":' -replace '"permissionlevel":', '"permissionLevel":' + ConvertFrom-Json -InputObject $JSON -ErrorAction SilentlyContinue + } catch {} + } | + Where-Object { + $_.GUID -like $TemplateId -and $_.runManually -eq $runManually + } # 1.5. Expand templates that contain TemplateList-Tags into multiple standards $ExpandedTemplates = foreach ($Template in $Templates) { @@ -240,12 +243,17 @@ function Get-CIPPStandards { } } - # Separate AllTenants vs TenantSpecific templates + # Separate templates into three tiers: AllTenants (lowest precedence), Group (middle), Tenant-Specific (highest) $AllTenantTemplatesSet = $ApplicableTemplates | Where-Object { $_.tenantFilter.value -contains 'AllTenants' } + $GroupTemplatesSet = $ApplicableTemplates | Where-Object { + ($_.tenantFilter.value -notcontains 'AllTenants') -and + ($_.tenantFilter | Where-Object { $_.type -eq 'Group' }) + } $TenantSpecificTemplatesSet = $ApplicableTemplates | Where-Object { - $_.tenantFilter.value -notcontains 'AllTenants' + ($_.tenantFilter.value -notcontains 'AllTenants') -and + -not ($_.tenantFilter | Where-Object { $_.type -eq 'Group' }) } # Build merged standards keyed by (StandardName, TemplateList.value) @@ -320,8 +328,8 @@ function Get-CIPPStandards { } } - # Process TenantSpecific templates, merging with AllTenants base - foreach ($Template in $TenantSpecificTemplatesSet) { + # Process Group templates, merging with AllTenants base + foreach ($Template in $GroupTemplatesSet) { $Standards = $Template.standards foreach ($StandardName in $Standards.PSObject.Properties.Name) { @@ -355,7 +363,7 @@ function Get-CIPPStandards { $Key = "$StandardName|$TemplateKey" if ($ComputedStandards.ContainsKey($Key)) { - # Merge tenant-specific over AllTenants base + # Merge group-based over AllTenants base $MergedStandard = Merge-CippStandards -Existing $ComputedStandards[$Key] -New $CurrentStandard -StandardName $StandardName $ComputedStandards[$Key] = $MergedStandard } else { @@ -399,11 +407,88 @@ function Get-CIPPStandards { } } - # Emit one object per unique (StandardName, TemplateList.value) + # Process TenantSpecific templates, merging with Group and AllTenants base + foreach ($Template in $TenantSpecificTemplatesSet) { + $Standards = $Template.standards + + foreach ($StandardName in $Standards.PSObject.Properties.Name) { + $Value = $Standards.$StandardName + $IsArray = $Value -is [System.Collections.IEnumerable] -and -not ($Value -is [string]) + + if ($IsArray) { + foreach ($Item in $Value) { + $CurrentStandard = $Item.PSObject.Copy() + $CurrentStandard | Add-Member -NotePropertyName 'TemplateId' -NotePropertyValue $Template.GUID -Force + + # Add Remediate if autoRemediate is true + if ($CurrentStandard.autoRemediate -eq $true -and -not ($CurrentStandard.action.value -contains 'Remediate')) { + $CurrentStandard.action = @($CurrentStandard.action) + [pscustomobject]@{ + label = 'Remediate' + value = 'Remediate' + } + } + + # Add Report if Remediate present but Report missing + if ($CurrentStandard.action.value -contains 'Remediate' -and -not ($CurrentStandard.action.value -contains 'Report')) { + $CurrentStandard.action = @($CurrentStandard.action) + [pscustomobject]@{ + label = 'Report' + value = 'Report' + } + } + + $Actions = $CurrentStandard.action.value + if ($Actions -contains 'Remediate' -or $Actions -contains 'warn' -or $Actions -contains 'Report') { + $TemplateKey = if ($CurrentStandard.TemplateList.value) { $CurrentStandard.TemplateList.value } else { '' } + $Key = "$StandardName|$TemplateKey" + + if ($ComputedStandards.ContainsKey($Key)) { + # Merge tenant-specific over Group/AllTenants base + $MergedStandard = Merge-CippStandards -Existing $ComputedStandards[$Key] -New $CurrentStandard -StandardName $StandardName + $ComputedStandards[$Key] = $MergedStandard + } else { + $ComputedStandards[$Key] = $CurrentStandard + } + } + } + } else { + $CurrentStandard = $Value.PSObject.Copy() + $CurrentStandard | Add-Member -NotePropertyName 'TemplateId' -NotePropertyValue $Template.GUID -Force + + # Add Remediate if autoRemediate is true + if ($CurrentStandard.autoRemediate -eq $true -and -not ($CurrentStandard.action.value -contains 'Remediate')) { + $CurrentStandard.action = @($CurrentStandard.action) + [pscustomobject]@{ + label = 'Remediate' + value = 'Remediate' + } + } + + # Add Report if Remediate present but Report missing + if ($CurrentStandard.action.value -contains 'Remediate' -and -not ($CurrentStandard.action.value -contains 'Report')) { + $CurrentStandard.action = @($CurrentStandard.action) + [pscustomobject]@{ + label = 'Report' + value = 'Report' + } + } + + $Actions = $CurrentStandard.action.value + if ($Actions -contains 'Remediate' -or $Actions -contains 'warn' -or $Actions -contains 'Report') { + $TemplateKey = if ($CurrentStandard.TemplateList.value) { $CurrentStandard.TemplateList.value } else { '' } + $Key = "$StandardName|$TemplateKey" + + if ($ComputedStandards.ContainsKey($Key)) { + $MergedStandard = Merge-CippStandards -Existing $ComputedStandards[$Key] -New $CurrentStandard -StandardName $StandardName + $ComputedStandards[$Key] = $MergedStandard + } else { + $ComputedStandards[$Key] = $CurrentStandard + } + } + } + } + } + # License checks and policy timestamp filtering moved to Push-CIPPStandardsList activity foreach ($Key in $ComputedStandards.Keys) { $Standard = $ComputedStandards[$Key] $StandardName = $Key -replace '\|.*$', '' - # Preserve TemplateId before removing $PreservedTemplateId = $Standard.TemplateId $Standard.PSObject.Properties.Remove('TemplateId') | Out-Null @@ -420,4 +505,3 @@ function Get-CIPPStandards { } } } - diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAddDMARCToMOERA.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAddDMARCToMOERA.ps1 index cd576e64222e..1b7e98d18c06 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAddDMARCToMOERA.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAddDMARCToMOERA.ps1 @@ -51,7 +51,10 @@ function Invoke-CIPPStandardAddDMARCToMOERA { $CurrentInfo = $Domains | ForEach-Object { # Get current DNS records that matches _dmarc hostname and TXT type - $CurrentRecords = New-GraphGetRequest -scope 'https://admin.microsoft.com/.default' -TenantID $Tenant -Uri "https://admin.microsoft.com/admin/api/Domains/Records?domainName=$($_.Name)" | Select-Object -ExpandProperty DnsRecords | Where-Object { $_.HostName -eq $RecordModel.HostName -and $_.Type -eq $RecordModel.Type } + $RecordsResponse = New-GraphGetRequest -scope 'https://admin.microsoft.com/.default' -TenantID $Tenant -Uri "https://admin.microsoft.com/admin/api/Domains/Records?domainName=$($_.Name)" + $AllRecords = $RecordsResponse | Select-Object -ExpandProperty DnsRecords + $CurrentRecords = $AllRecords | Where-Object { $_.HostName -eq '_dmarc' -and $_.Type -eq 'TXT' } + Write-Information "Found $($CurrentRecords.count) DMARC records for domain $($_.Name)" if ($CurrentRecords.count -eq 0) { #record not found, return a model with Match set to false @@ -87,8 +90,8 @@ function Invoke-CIPPStandardAddDMARCToMOERA { } } } - # Check if match is true and there is only one DMARC record for the domain - $StateIsCorrect = $false -notin $CurrentInfo.Match -and $CurrentInfo.Count -eq 1 + # Check if match is true and there is only one DMARC record for each domain + $StateIsCorrect = $false -notin $CurrentInfo.Match -and $CurrentInfo.Count -eq $Domains.Count } catch { $ErrorMessage = Get-CippException -Exception $_ if ($_.Exception.Message -like '*403*') { @@ -107,13 +110,29 @@ function Invoke-CIPPStandardAddDMARCToMOERA { # Loop through each domain and set the DMARC record, existing misconfigured records and duplicates will be deleted foreach ($Domain in ($CurrentInfo | Sort-Object -Property DomainName -Unique)) { try { - foreach ($Record in ($CurrentInfo | Where-Object -Property DomainName -EQ $Domain.DomainName)) { + $DomainRecords = @($CurrentInfo | Where-Object -Property DomainName -EQ $Domain.DomainName) + $HasMatchingRecord = $false + + # First, delete any non-matching records + foreach ($Record in $DomainRecords) { if ($Record.CurrentRecord) { - New-GraphPOSTRequest -tenantid $tenant -scope 'https://admin.microsoft.com/.default' -Uri "https://admin.microsoft.com/admin/api/Domains/Record?domainName=$($Domain.DomainName)" -Body ($Record.CurrentRecord | ConvertTo-Json -Compress) -AddedHeaders @{'x-http-method-override' = 'Delete' } - Write-LogMessage -API 'Standards' -tenant $tenant -message "Deleted incorrect DMARC record for domain $($Domain.DomainName)" -sev Info + if ($Record.Match -eq $false) { + # Delete incorrect record + New-GraphPOSTRequest -tenantid $tenant -scope 'https://admin.microsoft.com/.default' -Uri "https://admin.microsoft.com/admin/api/Domains/Record?domainName=$($Domain.DomainName)" -Body ($Record.CurrentRecord | ConvertTo-Json -Compress) -AddedHeaders @{'x-http-method-override' = 'Delete' } + Write-LogMessage -API 'Standards' -tenant $tenant -message "Deleted incorrect DMARC record for domain $($Domain.DomainName)" -sev Info + } else { + # Record already matches, no need to add + $HasMatchingRecord = $true + } } + } + + # Only add the record if we don't already have a matching one + if (-not $HasMatchingRecord) { New-GraphPOSTRequest -tenantid $tenant -scope 'https://admin.microsoft.com/.default' -type 'PUT' -Uri "https://admin.microsoft.com/admin/api/Domains/Record?domainName=$($Domain.DomainName)" -Body (@{RecordModel = $RecordModel } | ConvertTo-Json -Compress) Write-LogMessage -API 'Standards' -tenant $tenant -message "Set DMARC record for domain $($Domain.DomainName)" -sev Info + } else { + Write-LogMessage -API 'Standards' -tenant $tenant -message "DMARC record already correctly set for domain $($Domain.DomainName)" -sev Info } } catch { $ErrorMessage = Get-CippException -Exception $_ diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAntiPhishPolicy.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAntiPhishPolicy.ps1 index 2192e715ee90..34a1fa83cdd9 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAntiPhishPolicy.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAntiPhishPolicy.ps1 @@ -23,6 +23,7 @@ function Invoke-CIPPStandardAntiPhishPolicy { "CIS M365 5.0 (2.1.7)" "NIST CSF 2.0 (DE.CM-09)" ADDEDCOMPONENT + {"type":"textField","name":"standards.AntiPhishPolicy.name","label":"Policy Name","required":true,"defaultValue":"CIPP Default Anti-Phishing Policy"} {"type":"number","label":"Phishing email threshold. (Default 1)","name":"standards.AntiPhishPolicy.PhishThresholdLevel","defaultValue":1} {"type":"switch","label":"Show first contact safety tip","name":"standards.AntiPhishPolicy.EnableFirstContactSafetyTips","defaultValue":true} {"type":"switch","label":"Show user impersonation safety tip","name":"standards.AntiPhishPolicy.EnableSimilarUsersSafetyTips","defaultValue":true} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAutoArchive.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAutoArchive.ps1 new file mode 100644 index 000000000000..c11d2f661262 --- /dev/null +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAutoArchive.ps1 @@ -0,0 +1,96 @@ +function Invoke-CIPPStandardAutoArchive { + <# + .FUNCTIONALITY + Internal + .COMPONENT + (APIName) AutoArchive + .SYNOPSIS + (Label) Configure Auto-Archiving Threshold + .DESCRIPTION + (Helptext) Configures the auto-archiving threshold percentage for the tenant. When a mailbox exceeds this threshold, the oldest items are automatically moved to the archive mailbox. Archive must be enabled manually or via the CIPP standard 'Enable Online Archive for all users'. More information can be found in [Microsoft's documentation.](https://learn.microsoft.com/en-us/exchange/security-and-compliance/messaging-records-management/auto-archiving) + (DocsDescription) Configures the auto-archiving threshold at the organization level. Auto-archiving automatically moves the oldest items from a user's primary mailbox to their archive mailbox when mailbox usage exceeds the configured threshold percentage. This prevents mail flow disruptions caused by full mailboxes. Valid range is 80-100, where 100 disables auto-archiving for the tenant. More information can be found in [Microsoft's documentation.](https://learn.microsoft.com/en-us/exchange/security-and-compliance/messaging-records-management/auto-archiving) + .NOTES + CAT + Exchange Standards + TAG + EXECUTIVETEXT + Configures automatic archiving of mailbox items when storage approaches capacity, preventing email delivery failures due to full mailboxes. This proactive storage management ensures business continuity and reduces helpdesk tickets related to mailbox quota issues. + ADDEDCOMPONENT + {"type":"number","name":"standards.AutoArchive.AutoArchivingThresholdPercentage","label":"Auto-Archiving Threshold Percentage (80-100, default 96, 100 disables)","defaultValue":96} + IMPACT + Low Impact + ADDEDDATE + 2025-12-11 + POWERSHELLEQUIVALENT + Set-OrganizationConfig -AutoArchivingThresholdPercentage 80-100 + RECOMMENDEDBY + UPDATECOMMENTBLOCK + Run the Tools\Update-StandardsComments.ps1 script to update this comment block + .LINK + https://docs.cipp.app/user-documentation/tenant/standards/list-standards + #> + + param($Tenant, $Settings) + $TestResult = Test-CIPPStandardLicense -StandardName 'AutoArchive' -TenantFilter $Tenant -RequiredCapabilities @('EXCHANGE_S_STANDARD', 'EXCHANGE_S_ENTERPRISE', 'EXCHANGE_S_STANDARD_GOV', 'EXCHANGE_S_ENTERPRISE_GOV', 'EXCHANGE_LITE') + + if ($TestResult -eq $false) { + Write-Host "We're exiting as the correct license is not present for this standard." + return $true + } + + # Get the threshold value from settings + $DesiredThreshold = [int]($Settings.AutoArchivingThresholdPercentage) + + # Validate the threshold is within valid range + if ($DesiredThreshold -lt 80 -or $DesiredThreshold -gt 100) { + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Invalid AutoArchivingThresholdPercentage value: $DesiredThreshold. Must be between 80 and 100." -Sev Error + return + } + + try { + $CurrentState = (New-ExoRequest -tenantid $Tenant -cmdlet 'Get-OrganizationConfig' -Select 'AutoArchivingThresholdPercentage').AutoArchivingThresholdPercentage + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Could not get the AutoArchive state for $Tenant. Error: $($ErrorMessage.NormalizedError)" -Sev Error -LogData $ErrorMessage + return + } + + $CorrectState = $CurrentState -eq $DesiredThreshold + + if ($Settings.remediate -eq $true) { + Write-Host 'Time to remediate' + + if ($CorrectState) { + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Auto-archiving threshold is already set to $CurrentState%." -Sev Info + } else { + try { + $null = New-ExoRequest -tenantid $Tenant -cmdlet 'Set-OrganizationConfig' -cmdParams @{ AutoArchivingThresholdPercentage = $DesiredThreshold } + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Auto-archiving threshold has been set to $DesiredThreshold%." -Sev Info + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Failed to set auto-archiving threshold. Error: $($ErrorMessage.NormalizedError)" -Sev Error -LogData $ErrorMessage + } + } + } + + if ($Settings.alert -eq $true) { + + if ($CorrectState) { + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Auto-archiving threshold is correctly set to $CurrentState%." -Sev Info + } else { + Write-StandardsAlert -message "Auto-archiving threshold is set to $CurrentState% but should be $DesiredThreshold%." -object @{ CurrentThreshold = $CurrentState; DesiredThreshold = $DesiredThreshold } -tenant $Tenant -standardName 'AutoArchive' -standardId $Settings.standardId + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Auto-archiving threshold is set to $CurrentState% but should be $DesiredThreshold%." -Sev Info + } + } + + if ($Settings.report -eq $true) { + Add-CIPPBPAField -FieldName 'AutoArchive' -FieldValue $CorrectState -StoreAs bool -Tenant $Tenant + + if ($CorrectState) { + $FieldValue = $true + } else { + $FieldValue = @{ CurrentThreshold = $CurrentState; DesiredThreshold = $DesiredThreshold } + } + Set-CIPPStandardsCompareField -FieldName 'standards.AutoArchive' -FieldValue $FieldValue -Tenant $Tenant + } +} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardBitLockerKeysForOwnedDevice.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardBitLockerKeysForOwnedDevice.ps1 index 1588392ebbca..e063f6a05f9e 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardBitLockerKeysForOwnedDevice.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardBitLockerKeysForOwnedDevice.ps1 @@ -1,31 +1,29 @@ -function Invoke-CIPPStandardBitLockerKeysForOwnedDevice { +function Invoke-CIPPStandardBitLockerKeysForOwnedDevice { <# .FUNCTIONALITY Internal .COMPONENT (APIName) BitLockerKeysForOwnedDevice .SYNOPSIS - (Label) Restrict users from recovering BitLocker keys for owned devices + (Label) Control BitLocker key recovery for owned devices .DESCRIPTION - (Helptext) Controls whether standard users can recover BitLocker keys for devices they own via Microsoft 365 portals. - (DocsDescription) Updates the default user role setting that governs access to BitLocker recovery keys for owned devices. This allows administrators to either permit self-service recovery or require helpdesk involvement through Microsoft Entra authorization policies. + (Helptext) Controls whether standard users can recover BitLocker keys for devices they own. + (DocsDescription) Updates the Microsoft Entra authorization policy that controls whether standard users can read BitLocker recovery keys for devices they own. Choose to restrict access for tighter security or allow self-service recovery when operational needs require it. .NOTES CAT Entra (AAD) Standards TAG - "NIST CSF 2.0 (PR.AA-05)" EXECUTIVETEXT - Ensures administrators retain control over BitLocker recovery secrets when required, while still allowing flexibility to enable self-service recovery when business needs demand it. + Gives administrators centralized control over BitLocker recovery secrets—restrict access to ensure IT-assisted recovery flows, or allow self-service when rapid device unlocks are a priority. ADDEDCOMPONENT {"type":"autoComplete","multiple":false,"creatable":false,"label":"Select state","name":"standards.BitLockerKeysForOwnedDevice.state","options":[{"label":"Restrict","value":"restrict"},{"label":"Allow","value":"allow"}]} IMPACT - Medium Impact + Low Impact ADDEDDATE 2025-10-12 POWERSHELLEQUIVALENT Update-MgBetaPolicyAuthorizationPolicy RECOMMENDEDBY - "CIPP" UPDATECOMMENTBLOCK Run the Tools\Update-StandardsComments.ps1 script to update this comment block .LINK diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardConditionalAccessTemplate.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardConditionalAccessTemplate.ps1 index aefd4251b824..151b30a27999 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardConditionalAccessTemplate.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardConditionalAccessTemplate.ps1 @@ -23,9 +23,10 @@ function Invoke-CIPPStandardConditionalAccessTemplate { EXECUTIVETEXT Deploys standardized conditional access policies that automatically enforce security requirements based on user location, device compliance, and risk factors. These templates ensure consistent security controls across the organization while enabling secure access to business resources. ADDEDCOMPONENT - {"type":"autoComplete","name":"TemplateList","multiple":false,"label":"Select Conditional Access Template","api":{"url":"/api/ListCATemplates","labelField":"displayName","valueField":"GUID","queryKey":"ListCATemplates"}} + {"type":"autoComplete","name":"TemplateList","multiple":false,"label":"Select Conditional Access Template","api":{"url":"/api/ListCATemplates","labelField":"displayName","valueField":"GUID","queryKey":"ListCATemplates","showRefresh":true,"templateView":{"title":"Conditional Access Policy"}}} {"name":"state","label":"What state should we deploy this template in?","type":"radio","options":[{"value":"donotchange","label":"Do not change state"},{"value":"Enabled","label":"Set to enabled"},{"value":"Disabled","label":"Set to disabled"},{"value":"enabledForReportingButNotEnforced","label":"Set to report only"}]} {"type":"switch","name":"DisableSD","label":"Disable Security Defaults when deploying policy"} + {"type":"switch","name":"CreateGroups","label":"Create groups if they do not exist"} UPDATECOMMENTBLOCK Run the Tools\Update-StandardsComments.ps1 script to update this comment block .LINK diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableMailboxAuditing.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableMailboxAuditing.ps1 index fc6e8be67ce1..7f5edd9b41c6 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableMailboxAuditing.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableMailboxAuditing.ps1 @@ -49,8 +49,7 @@ function Invoke-CIPPStandardEnableMailboxAuditing { try { $AuditState = (New-ExoRequest -tenantid $Tenant -cmdlet 'Get-OrganizationConfig').AuditDisabled - } - catch { + } catch { $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Could not get the EnableMailboxAuditing state for $Tenant. Error: $ErrorMessage" -Sev Error return @@ -71,25 +70,30 @@ function Invoke-CIPPStandardEnableMailboxAuditing { $LogMessage = 'Tenant level mailbox audit already enabled. ' } - # Check for mailbox audit on all mailboxes. Enable for all that it's not enabled for - $Mailboxes = New-ExoRequest -tenantid $Tenant -cmdlet 'Get-Mailbox' -cmdParams @{filter = "auditenabled -eq 'False'" } -useSystemMailbox $true -Select 'AuditEnabled,UserPrincipalName' - $Request = $mailboxes | ForEach-Object { - @{ - CmdletInput = @{ - CmdletName = 'Set-Mailbox' - Parameters = @{Identity = $_.UserPrincipalName; AuditEnabled = $true } - } - } - } + # Commented out because MS recommends NOT doing this anymore. From docs: https://learn.microsoft.com/en-us/purview/audit-mailboxes#verify-mailbox-auditing-on-by-default-is-turned-on + # When you turn on mailbox auditing on by default for the organization, the AuditEnabled property for affected mailboxes doesn't change from False to True. In other words, mailbox auditing on by default ignores the AuditEnabled property on mailboxes. + # Auditing is automatically turned on when you create a new mailbox. You don't need to manually enable mailbox auditing for new users. + # You don't need to manage the mailbox actions that are audited. A predefined set of mailbox actions are audited by default for each sign-in type (Admin, Delegate, and Owner). + # When Microsoft releases a new mailbox action, the action might be added automatically to the list of mailbox actions that are audited by default (subject to the user having the appropriate license). This result means you don't need to add new actions on mailboxes as they're released. + # You have a consistent mailbox auditing policy across your organization because you're auditing the same actions for all mailboxes. + #$Mailboxes = New-ExoRequest -tenantid $Tenant -cmdlet 'Get-Mailbox' -cmdParams @{filter = "auditenabled -eq 'False'" } -useSystemMailbox $true -Select 'AuditEnabled,UserPrincipalName' + #$Request = $mailboxes | ForEach-Object { + # @{ + # CmdletInput = @{ + # CmdletName = 'Set-Mailbox' + # Parameters = @{Identity = $_.UserPrincipalName; AuditEnabled = $true } + # } + #} + #} - $BatchResults = New-ExoBulkRequest -tenantid $tenant -cmdletArray @($Request) - $BatchResults | ForEach-Object { - if ($_.error) { - $ErrorMessage = Get-NormalizedError -Message $_.error - Write-Host "Failed to enable user level mailbox audit for $($_.target). Error: $ErrorMessage" - Write-LogMessage -API 'Standards' -tenant $Tenant -message "Failed to enable user level mailbox audit for $($_.target). Error: $ErrorMessage" -sev Error - } - } + #$BatchResults = New-ExoBulkRequest -tenantid $tenant -cmdletArray @($Request) + #$BatchResults | ForEach-Object { + # if ($_.error) { + # $ErrorMessage = Get-NormalizedError -Message $_.error + # Write-Host "Failed to enable user level mailbox audit for $($_.target). Error: $ErrorMessage" + # Write-LogMessage -API 'Standards' -tenant $Tenant -message "Failed to enable user level mailbox audit for $($_.target). Error: $ErrorMessage" -sev Error + # } + #} # Disable audit bypass for all mailboxes that have it enabled diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1 index 9e71c3a79077..4ba8ebbc353d 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1 @@ -23,11 +23,13 @@ function Invoke-CIPPStandardIntuneTemplate { EXECUTIVETEXT Deploys standardized device management configurations across all corporate devices, ensuring consistent security policies, application settings, and compliance requirements. This template-based approach streamlines device management while maintaining uniform security standards across the organization. ADDEDCOMPONENT - {"type":"autoComplete","multiple":false,"creatable":false,"required":false,"name":"TemplateList","label":"Select Intune Template","api":{"queryKey":"ListIntuneTemplates-autcomplete","url":"/api/ListIntuneTemplates","labelField":"Displayname","valueField":"GUID"}} + {"type":"autoComplete","multiple":false,"creatable":false,"required":false,"name":"TemplateList","label":"Select Intune Template","api":{"queryKey":"ListIntuneTemplates-autcomplete","url":"/api/ListIntuneTemplates","labelField":"Displayname","valueField":"GUID","showRefresh":true,"templateView":{"title":"Intune Template","property":"RAWJson","type":"intune"}}} {"type":"autoComplete","multiple":false,"required":false,"creatable":false,"name":"TemplateList-Tags","label":"Or select a package of Intune Templates","api":{"queryKey":"ListIntuneTemplates-tag-autcomplete","url":"/api/ListIntuneTemplates?mode=Tag","labelField":"label","valueField":"value","addedField":{"templates":"templates"}}} {"name":"AssignTo","label":"Who should this template be assigned to?","type":"radio","options":[{"label":"Do not assign","value":"On"},{"label":"Assign to all users","value":"allLicensedUsers"},{"label":"Assign to all devices","value":"AllDevices"},{"label":"Assign to all users and devices","value":"AllDevicesAndUsers"},{"label":"Assign to Custom Group","value":"customGroup"}]} {"type":"textField","required":false,"name":"customGroup","label":"Enter the custom group name if you selected 'Assign to Custom Group'. Wildcards are allowed."} {"name":"excludeGroup","label":"Exclude Groups","type":"textField","required":false,"helpText":"Enter the group name(s) to exclude from the assignment. Wildcards are allowed. Multiple group names are comma-seperated."} + {"type":"textField","required":false,"name":"assignmentFilter","label":"Assignment Filter Name (Optional)","helpText":"Enter the assignment filter name to apply to this policy assignment. Wildcards are allowed."} + {"name":"assignmentFilterType","label":"Assignment Filter Mode (Optional)","type":"radio","required":false,"helpText":"Choose whether to include or exclude devices matching the filter. Only applies if you specified a filter name above. Defaults to Include if not specified.","options":[{"label":"Include - Assign to devices matching the filter","value":"include"},{"label":"Exclude - Assign to devices NOT matching the filter","value":"exclude"}]} UPDATECOMMENTBLOCK Run the Tools\Update-StandardsComments.ps1 script to update this comment block .LINK diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMDMEnrollmentDuringRegistration.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMDMEnrollmentDuringRegistration.ps1 new file mode 100644 index 000000000000..c1ee03aecaa5 --- /dev/null +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMDMEnrollmentDuringRegistration.ps1 @@ -0,0 +1,90 @@ +function Invoke-CIPPStandardMDMEnrollmentDuringRegistration { + <# + .FUNCTIONALITY + Internal + .COMPONENT + (APIName) MDMEnrollmentDuringRegistration + .SYNOPSIS + (Label) Configure MDM enrollment when adding work or school account + .DESCRIPTION + (Helptext) Controls the "Allow my organization to manage my device" prompt when adding a work or school account on Windows. This setting determines whether automatic MDM enrollment occurs during account registration. + (DocsDescription) Controls whether Windows shows the "Allow my organization to manage my device" prompt when users add a work or school account. When set to disabled, this setting prevents automatic MDM enrollment during the account registration flow, separating account registration from device enrollment. This is useful for environments where you want to allow users to add work accounts without triggering MDM enrollment. + .NOTES + CAT + Intune Standards + TAG + EXECUTIVETEXT + Controls automatic device management enrollment during work account setup. When disabled, users can add work accounts to their Windows devices without the prompt asking to allow organizational device management, preventing unintended MDM enrollments on personal or BYOD devices. + ADDEDCOMPONENT + {"type":"switch","name":"standards.MDMEnrollmentDuringRegistration.disableEnrollment","label":"Disable MDM enrollment during registration"} + IMPACT + Medium Impact + ADDEDDATE + 2025-12-15 + POWERSHELLEQUIVALENT + Graph API PATCH to mobileDeviceManagementPolicies + RECOMMENDEDBY + UPDATECOMMENTBLOCK + Run the Tools\Update-StandardsComments.ps1 script to update this comment block + .LINK + https://docs.cipp.app/user-documentation/tenant/standards/list-standards + #> + + param($Tenant, $Settings) + $TestResult = Test-CIPPStandardLicense -StandardName 'MDMEnrollmentDuringRegistration' -TenantFilter $Tenant -RequiredCapabilities @('INTUNE_A', 'MDM_Services', 'EMS', 'SCCM', 'MICROSOFTINTUNEPLAN1') + + if ($TestResult -eq $false) { + Write-Host "We're exiting as the correct license is not present for this standard." + return $true + } + + try { + $CurrentInfo = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/0000000a-0000-0000-c000-000000000000' -tenantid $Tenant + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -API 'Standards' -Tenant $Tenant -Message "Could not get MDM enrollment during registration state for $Tenant. Error: $($ErrorMessage.NormalizedError)" -Sev Error -LogData $ErrorMessage + return + } + + # Get the current state - if the property doesn't exist, treat as false (default behavior) + $CurrentState = [bool]$CurrentInfo.isMdmEnrollmentDuringRegistrationDisabled + $DesiredState = [bool]$Settings.disableEnrollment + $StateIsCorrect = $CurrentState -eq $DesiredState + $stateText = $DesiredState ? 'disabled' : 'enabled' + + if ($Settings.remediate -eq $true) { + if ($StateIsCorrect -eq $true) { + Write-LogMessage -API 'Standards' -tenant $Tenant -message "MDM enrollment during registration is already $stateText" -sev Info + } else { + $GraphParam = @{ + tenantid = $Tenant + Uri = 'https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/0000000a-0000-0000-c000-000000000000' + type = 'PATCH' + Body = (@{'isMdmEnrollmentDuringRegistrationDisabled' = $DesiredState } | ConvertTo-Json) + } + + try { + New-GraphPostRequest @GraphParam + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Successfully $stateText MDM enrollment during registration" -sev Info + } catch { + $ErrorMessage = Get-CippException -Exception $_ + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Failed to configure MDM enrollment during registration. Error: $($ErrorMessage.NormalizedError)" -sev Error -LogData $ErrorMessage + } + } + } + + if ($Settings.alert -eq $true) { + if ($StateIsCorrect -eq $true) { + Write-LogMessage -API 'Standards' -tenant $tenant -message "MDM enrollment during registration is $stateText as configured" -sev Info + } else { + Write-StandardsAlert -message "MDM enrollment during registration is not $stateText" -object @{isMdmEnrollmentDuringRegistrationDisabled = $CurrentState; desiredState = $DesiredState } -tenant $tenant -standardName 'MDMEnrollmentDuringRegistration' -standardId $Settings.standardId + Write-LogMessage -API 'Standards' -tenant $tenant -message "MDM enrollment during registration is not $stateText" -sev Info + } + } + + if ($Settings.report -eq $true) { + $FieldValue = $StateIsCorrect ? $true : @{isMdmEnrollmentDuringRegistrationDisabled = $CurrentState; desiredState = $DesiredState } + Set-CIPPStandardsCompareField -FieldName 'standards.MDMEnrollmentDuringRegistration' -FieldValue $FieldValue -TenantFilter $Tenant + Add-CIPPBPAField -FieldName 'MDMEnrollmentDuringRegistration' -FieldValue $StateIsCorrect -StoreAs bool -Tenant $tenant + } +} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMalwareFilterPolicy.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMalwareFilterPolicy.ps1 index 97f7b4b32ed9..22c3f53fde45 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMalwareFilterPolicy.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMalwareFilterPolicy.ps1 @@ -20,6 +20,7 @@ function Invoke-CIPPStandardMalwareFilterPolicy { "mdo_zapmalware" "NIST CSF 2.0 (DE.CM-09)" ADDEDCOMPONENT + {"type":"textField","name":"standards.MalwareFilterPolicy.name","label":"Policy Name","required":true,"defaultValue":"CIPP Default Malware Policy"} {"type":"select","multiple":false,"label":"FileTypeAction","name":"standards.MalwareFilterPolicy.FileTypeAction","options":[{"label":"Reject","value":"Reject"},{"label":"Quarantine the message","value":"Quarantine"}]} {"type":"textField","name":"standards.MalwareFilterPolicy.OptionalFileTypes","required":false,"label":"Optional File Types, Comma separated"} {"type":"select","multiple":false,"creatable":true,"label":"QuarantineTag","name":"standards.MalwareFilterPolicy.QuarantineTag","options":[{"label":"AdminOnlyAccessPolicy","value":"AdminOnlyAccessPolicy"},{"label":"DefaultFullAccessPolicy","value":"DefaultFullAccessPolicy"},{"label":"DefaultFullAccessWithNotificationPolicy","value":"DefaultFullAccessWithNotificationPolicy"}]} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeAttachmentPolicy.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeAttachmentPolicy.ps1 index c2633efe5104..6acbaaeca1c6 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeAttachmentPolicy.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeAttachmentPolicy.ps1 @@ -19,6 +19,7 @@ function Invoke-CIPPStandardSafeAttachmentPolicy { "mdo_safeattachmentpolicy" "NIST CSF 2.0 (DE.CM-09)" ADDEDCOMPONENT + {"type":"textField","name":"standards.SafeAttachmentPolicy.name","label":"Policy Name","required":true,"defaultValue":"CIPP Default Safe Attachment Policy"} {"type":"select","multiple":false,"label":"Safe Attachment Action","name":"standards.SafeAttachmentPolicy.SafeAttachmentAction","options":[{"label":"Allow","value":"Allow"},{"label":"Block","value":"Block"},{"label":"DynamicDelivery","value":"DynamicDelivery"}]} {"type":"select","multiple":false,"creatable":true,"label":"QuarantineTag","name":"standards.SafeAttachmentPolicy.QuarantineTag","options":[{"label":"AdminOnlyAccessPolicy","value":"AdminOnlyAccessPolicy"},{"label":"DefaultFullAccessPolicy","value":"DefaultFullAccessPolicy"},{"label":"DefaultFullAccessWithNotificationPolicy","value":"DefaultFullAccessWithNotificationPolicy"}]} {"type":"switch","label":"Redirect","name":"standards.SafeAttachmentPolicy.Redirect"} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeLinksPolicy.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeLinksPolicy.ps1 index ed5925224aa6..1927d31de13d 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeLinksPolicy.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeLinksPolicy.ps1 @@ -18,6 +18,7 @@ function Invoke-CIPPStandardSafeLinksPolicy { "mdo_safelinksforOfficeApps" "NIST CSF 2.0 (DE.CM-09)" ADDEDCOMPONENT + {"type":"textField","name":"standards.SafeLinksPolicy.name","label":"Policy Name","required":true,"defaultValue":"CIPP Default SafeLinks Policy"} {"type":"switch","label":"AllowClickThrough","name":"standards.SafeLinksPolicy.AllowClickThrough"} {"type":"switch","label":"DisableUrlRewrite","name":"standards.SafeLinksPolicy.DisableUrlRewrite"} {"type":"switch","label":"EnableOrganizationBranding","name":"standards.SafeLinksPolicy.EnableOrganizationBranding"} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSecureScoreRemediation.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSecureScoreRemediation.ps1 index 6f3305393b22..59d994b42f30 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSecureScoreRemediation.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSecureScoreRemediation.ps1 @@ -8,26 +8,23 @@ function Invoke-CIPPStandardSecureScoreRemediation { (Label) Update Secure Score Control Profiles .DESCRIPTION (Helptext) Allows bulk updating of Secure Score control profiles across tenants. Select controls and assign them to different states: Default, Ignored, Third-Party, or Reviewed. - (DocsDescription) Enables automated or template-based updates to Microsoft Secure Score recommendations. This is particularly useful for MSPs managing multiple tenants, allowing you to mark controls as "Third-party" (e.g., when using Mimecast, IronScales, or other third-party security tools) or set them to other states in bulk. This ensures Secure Scores accurately reflect each tenant's true security posture without repetitive manual updates. + (DocsDescription) Allows bulk updating of Secure Score control profiles across tenants. Select controls and assign them to different states: Default, Ignored, Third-Party, or Reviewed. .NOTES CAT Global Standards TAG "lowimpact" - EXECUTIVETEXT - Automates the management of Secure Score control profiles by allowing bulk updates across tenants. This ensures accurate representation of security posture when using third-party security tools or when certain controls need to be marked as resolved or ignored, significantly reducing manual administrative overhead for MSPs managing multiple clients. ADDEDCOMPONENT - {"type":"autoComplete","multiple":true,"creatable":true,"name":"standards.SecureScoreRemediation.Default","label":"Controls to set to Default"} - {"type":"autoComplete","multiple":true,"creatable":true,"name":"standards.SecureScoreRemediation.Ignored","label":"Controls to set to Ignored"} - {"type":"autoComplete","multiple":true,"creatable":true,"name":"standards.SecureScoreRemediation.ThirdParty","label":"Controls to set to Third-Party"} - {"type":"autoComplete","multiple":true,"creatable":true,"name":"standards.SecureScoreRemediation.Reviewed","label":"Controls to set to Reviewed"} + {"type":"autoComplete","multiple":true,"creatable":true,"required":false,"name":"standards.SecureScoreRemediation.Default","label":"Controls to set to Default","api":{"url":"/secureScore.json","labelField":"title","valueField":"id"}} + {"type":"autoComplete","multiple":true,"creatable":true,"required":false,"name":"standards.SecureScoreRemediation.Ignored","label":"Controls to set to Ignored","api":{"url":"/secureScore.json","labelField":"title","valueField":"id"}} + {"type":"autoComplete","multiple":true,"creatable":true,"required":false,"name":"standards.SecureScoreRemediation.ThirdParty","label":"Controls to set to Third-Party","api":{"url":"/secureScore.json","labelField":"title","valueField":"id"}} + {"type":"autoComplete","multiple":true,"required":false,"creatable":true,"name":"standards.SecureScoreRemediation.Reviewed","label":"Controls to set to Reviewed","api":{"url":"/secureScore.json","labelField":"title","valueField":"id"}} IMPACT Low Impact ADDEDDATE 2025-11-19 POWERSHELLEQUIVALENT New-GraphPostRequest to /beta/security/secureScoreControlProfiles/{id} - RECOMMENDEDBY UPDATECOMMENTBLOCK Run the Tools\Update-StandardsComments.ps1 script to update this comment block .LINK diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1 index d85d0621f121..68322ddf5b2a 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1 @@ -14,6 +14,7 @@ function Invoke-CIPPStandardSpamFilterPolicy { Defender Standards TAG ADDEDCOMPONENT + {"type":"textField","name":"standards.SpamFilterPolicy.name","label":"Policy Name","required":true,"defaultValue":"CIPP Default Spam Filter Policy"} {"type":"number","label":"Bulk email threshold (Default 7)","name":"standards.SpamFilterPolicy.BulkThreshold","defaultValue":7} {"type":"autoComplete","required":true,"multiple":false,"creatable":false,"label":"Spam Action","name":"standards.SpamFilterPolicy.SpamAction","options":[{"label":"Quarantine the message","value":"Quarantine"},{"label":"Move message to Junk Email folder","value":"MoveToJmf"}]} {"type":"autoComplete","required":true,"multiple":false,"creatable":true,"label":"Spam Quarantine Tag","name":"standards.SpamFilterPolicy.SpamQuarantineTag","options":[{"label":"AdminOnlyAccessPolicy","value":"AdminOnlyAccessPolicy"},{"label":"DefaultFullAccessPolicy","value":"DefaultFullAccessPolicy"},{"label":"DefaultFullAccessWithNotificationPolicy","value":"DefaultFullAccessWithNotificationPolicy"}]} diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsExternalChatWithAnyone.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsExternalChatWithAnyone.ps1 index 4f7b921b154f..c6e38220857a 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsExternalChatWithAnyone.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsExternalChatWithAnyone.ps1 @@ -1,28 +1,28 @@ -function Invoke-CIPPStandardTeamsExternalChatWithAnyone { +function Invoke-CIPPStandardTeamsExternalChatWithAnyone { <# .FUNCTIONALITY Internal .COMPONENT (APIName) TeamsExternalChatWithAnyone .SYNOPSIS - (Label) Control Teams "Chat with anyone" feature + (Label) Set Teams chat with anyone setting .DESCRIPTION - (Helptext) Manages whether users can initiate Microsoft Teams chats with any email address, inviting non-Teams users as guests via email. - (DocsDescription) Manages the UseB2BInvitesToAddExternalUsers setting on the global Teams messaging policy. When enabled, users can start chats with any email address and external recipients receive an invitation to join as guests. Disabling the setting prevents external email-based chats from being created, keeping conversations restricted to approved collaborators. + (Helptext) Controls whether users can start Teams chats with any email address, inviting external recipients as guests via email. + (DocsDescription) Manages the Teams messaging policy setting UseB2BInvitesToAddExternalUsers. When enabled, users can start chats with any email address and recipients receive an invitation to join the chat as guests. Disabling the setting prevents these external email chats from being created, keeping conversations limited to internal users and approved guests. .NOTES CAT Teams Standards TAG EXECUTIVETEXT - Controls whether employees can start Microsoft Teams chats with anyone using just their email address. Turning this off keeps chat conversations restricted to internal users and pre-approved guests, reducing the risk of data exposure through unexpected external invitations. + Allows organizations to decide if employees can launch Microsoft Teams chats with anyone on the internet using just an email address. Disabling the feature keeps conversations inside trusted boundaries and helps prevent accidental data exposure through unexpected external invitations. ADDEDCOMPONENT - {"type":"switch","name":"standards.TeamsExternalChatWithAnyone.UseB2BInvitesToAddExternalUsers","label":"Allow chatting with anyone via email","defaultValue":false} + {"type":"radio","name":"standards.TeamsExternalChatWithAnyone.UseB2BInvitesToAddExternalUsers","label":"Allow chatting with anyone via email","options":[{"label":"Enabled","value":"true"},{"label":"Disabled","value":"false"}],"defaultValue":"Disabled"} IMPACT - Medium Impact + Low Impact ADDEDDATE 2025-11-03 POWERSHELLEQUIVALENT - Set-CsTeamsMessagingPolicy -Identity Global -UseB2BInvitesToAddExternalUsers $false + Set-CsTeamsMessagingPolicy -Identity Global -UseB2BInvitesToAddExternalUsers \$false/\$true RECOMMENDEDBY "CIPP" UPDATECOMMENTBLOCK diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsGlobalMeetingPolicy.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsGlobalMeetingPolicy.ps1 index 9b9f753e7e16..8d8a2255f866 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsGlobalMeetingPolicy.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardTeamsGlobalMeetingPolicy.ps1 @@ -21,18 +21,18 @@ function Invoke-CIPPStandardTeamsGlobalMeetingPolicy { "CIS M365 5.0 (8.5.6)" EXECUTIVETEXT Establishes security-focused default settings for Teams meetings, controlling who can join meetings, present content, and participate in chats. These policies balance collaboration needs with security requirements, ensuring meetings remain productive while protecting against unauthorized access and disruption. - ADDEDCOMPONENT - {"type":"autoComplete","required":true,"multiple":false,"creatable":false,"name":"standards.TeamsGlobalMeetingPolicy.DesignatedPresenterRoleMode","label":"Default value of the `Who can present?`","options":[{"label":"EveryoneUserOverride","value":"EveryoneUserOverride"},{"label":"EveryoneInCompanyUserOverride","value":"EveryoneInCompanyUserOverride"},{"label":"EveryoneInSameAndFederatedCompanyUserOverride","value":"EveryoneInSameAndFederatedCompanyUserOverride"},{"label":"OrganizerOnlyUserOverride","value":"OrganizerOnlyUserOverride"}]} - {"type":"switch","name":"standards.TeamsGlobalMeetingPolicy.AllowAnonymousUsersToJoinMeeting","label":"Allow anonymous users to join meeting"} - {"type":"autoComplete","required":false,"multiple":false,"creatable":false,"name":"standards.TeamsGlobalMeetingPolicy.AutoAdmittedUsers","label":"Who can bypass the lobby?","helperText":"If left blank, People in my org remains enforced.","options":[{"label":"Everyone","value":"Everyone"},{"label":"People in my org","value":"EveryoneInCompanyExcludingGuests"},{"label":"People in or federated orgs","value":"EveryoneInSameAndFederatedCompany"},{"label":"People invited","value":"InvitedUsers"},{"label":"Only me","value":"OrganizerOnly"}]} - {"type":"autoComplete","required":true,"multiple":false,"creatable":false,"name":"standards.TeamsGlobalMeetingPolicy.MeetingChatEnabledType","label":"Meeting chat policy","options":[{"label":"On for everyone","value":"Enabled"},{"label":"On for everyone but anonymous users","value":"EnabledExceptAnonymous"},{"label":"Off for everyone","value":"Disabled"}]} - {"type":"switch","name":"standards.TeamsGlobalMeetingPolicy.AllowExternalParticipantGiveRequestControl","label":"External participants can give or request control"} + ADDEDCOMPONENT + {"type":"autoComplete","required":true,"multiple":false,"creatable":false,"name":"standards.TeamsGlobalMeetingPolicy.DesignatedPresenterRoleMode","label":"Default value of the `Who can present?`","options":[{"label":"Everyone","value":"EveryoneUserOverride"},{"label":"People in my organization","value":"EveryoneInCompanyUserOverride"},{"label":"People in my organization and trusted organizations","value":"EveryoneInSameAndFederatedCompanyUserOverride"},{"label":"Only organizer","value":"OrganizerOnlyUserOverride"}]} + {"type":"switch","name":"standards.TeamsGlobalMeetingPolicy.AllowAnonymousUsersToJoinMeeting","label":"Allow anonymous users to join meeting"} + {"type":"autoComplete","required":false,"multiple":false,"creatable":false,"name":"standards.TeamsGlobalMeetingPolicy.AutoAdmittedUsers","label":"Who can bypass the lobby?","helperText":"If left blank, the current value will not be changed.","options":[{"label":"Only organizers and co-organizers","value":"OrganizerOnly"},{"label":"People in organization excluding guests","value":"EveryoneInCompanyExcludingGuests"},{"label":"People who were invited","value":"InvitedUsers"}]} + {"type":"autoComplete","required":true,"multiple":false,"creatable":false,"name":"standards.TeamsGlobalMeetingPolicy.MeetingChatEnabledType","label":"Meeting chat policy","options":[{"label":"On for everyone","value":"Enabled"},{"label":"On for everyone but anonymous users","value":"EnabledExceptAnonymous"},{"label":"Off for everyone","value":"Disabled"}]} + {"type":"switch","name":"standards.TeamsGlobalMeetingPolicy.AllowExternalParticipantGiveRequestControl","label":"External participants can give or request control"} IMPACT Low Impact ADDEDDATE 2024-11-12 - POWERSHELLEQUIVALENT - Set-CsTeamsMeetingPolicy -AllowAnonymousUsersToJoinMeeting $false -AllowAnonymousUsersToStartMeeting $false -AutoAdmittedUsers $AutoAdmittedUsers -AllowPSTNUsersToBypassLobby $false -MeetingChatEnabledType EnabledExceptAnonymous -DesignatedPresenterRoleMode $DesignatedPresenterRoleMode -AllowExternalParticipantGiveRequestControl $false + POWERSHELLEQUIVALENT + Set-CsTeamsMeetingPolicy -AllowAnonymousUsersToJoinMeeting \$false -AllowAnonymousUsersToStartMeeting \$false -AutoAdmittedUsers \$AutoAdmittedUsers -AllowPSTNUsersToBypassLobby \$false -MeetingChatEnabledType EnabledExceptAnonymous -DesignatedPresenterRoleMode \$DesignatedPresenterRoleMode -AllowExternalParticipantGiveRequestControl \$false RECOMMENDEDBY "CIS" UPDATECOMMENTBLOCK diff --git a/Modules/CIPPCore/Public/TenantGroups/Get-TenantGroups.ps1 b/Modules/CIPPCore/Public/TenantGroups/Get-TenantGroups.ps1 index 069a48f6aa63..5ac9ecb20621 100644 --- a/Modules/CIPPCore/Public/TenantGroups/Get-TenantGroups.ps1 +++ b/Modules/CIPPCore/Public/TenantGroups/Get-TenantGroups.ps1 @@ -1,13 +1,30 @@ +if (-not $script:TenantGroupsCache) { + $script:TenantGroupsCache = @{ + Groups = $null + Members = $null + LastRefresh = $null + MembersByGroup = $null # Dictionary: GroupId -> members array + } +} + +# Result cache: keyed by "GroupId|TenantFilter|Dynamic" +if (-not $script:TenantGroupsResultCache) { + $script:TenantGroupsResultCache = @{} +} + function Get-TenantGroups { <# .SYNOPSIS Get tenant groups .DESCRIPTION - Get tenant groups from Azure Table Storage + Get tenant groups from Azure Table Storage with performance optimizations + using script-scoped caches and in-memory indexing .PARAMETER GroupId The group id to filter on .PARAMETER TenantFilter The tenant filter to apply to get the groups for a specific tenant + .PARAMETER Dynamic + Filter to only dynamic groups #> [CmdletBinding()] param( @@ -15,17 +32,48 @@ function Get-TenantGroups { [string]$TenantFilter, [switch]$Dynamic ) + $CacheKey = "$GroupId|$TenantFilter|$($Dynamic.IsPresent)" - $GroupTable = Get-CippTable -tablename 'TenantGroups' - $MembersTable = Get-CippTable -tablename 'TenantGroupMembers' + if ($script:TenantGroupsResultCache.ContainsKey($CacheKey)) { + Write-Verbose "Returning cached result for: $CacheKey" + return $script:TenantGroupsResultCache[$CacheKey] + } # Early exit if specific GroupId requested but not allowed - if ($GroupId -and $script:AllowedGroups) { - if ($script:AllowedGroups -notcontains $GroupId) { + if ($GroupId -and $script:CippAllowedGroupsStorage -and $script:CippAllowedGroupsStorage.Value) { + if ($script:CippAllowedGroupsStorage.Value -notcontains $GroupId) { return @() } } + # Load table data into cache if not already loaded + if (-not $script:TenantGroupsCache.Groups -or -not $script:TenantGroupsCache.Members) { + Write-Verbose 'Loading TenantGroups and TenantGroupMembers tables into cache' + + $GroupTable = Get-CippTable -tablename 'TenantGroups' + $MembersTable = Get-CippTable -tablename 'TenantGroupMembers' + + $GroupTable.Filter = "PartitionKey eq 'TenantGroup'" + + # Load all groups and members once + $script:TenantGroupsCache.Groups = @(Get-CIPPAzDataTableEntity @GroupTable) + $script:TenantGroupsCache.Members = @(Get-CIPPAzDataTableEntity @MembersTable) + $script:TenantGroupsCache.LastRefresh = Get-Date + + # Build MembersByGroup index: GroupId -> array of member objects + $script:TenantGroupsCache.MembersByGroup = @{} + foreach ($Member in $script:TenantGroupsCache.Members) { + $GId = $Member.GroupId + if (-not $script:TenantGroupsCache.MembersByGroup.ContainsKey($GId)) { + $script:TenantGroupsCache.MembersByGroup[$GId] = [System.Collections.Generic.List[object]]::new() + } + $script:TenantGroupsCache.MembersByGroup[$GId].Add($Member) + } + + Write-Verbose "Cache loaded: $($script:TenantGroupsCache.Groups.Count) groups, $($script:TenantGroupsCache.Members.Count) members" + } + + # Get tenants (already cached and fast per requirements) if ($TenantFilter -and $TenantFilter -ne 'allTenants') { $TenantParams = @{ TenantFilter = $TenantFilter @@ -38,51 +86,74 @@ function Get-TenantGroups { } $Tenants = Get-Tenants @TenantParams + $TenantByCustomerId = @{} + foreach ($Tenant in $Tenants) { + $TenantByCustomerId[$Tenant.customerId] = $Tenant + } + + $Groups = $script:TenantGroupsCache.Groups + if ($Dynamic.IsPresent) { - $GroupTable.Filter = "PartitionKey eq 'TenantGroup' and GroupType eq 'dynamic'" - } else { - $GroupTable.Filter = "PartitionKey eq 'TenantGroup'" + $Groups = $Groups | Where-Object { $_.GroupType -eq 'dynamic' } } if ($GroupId) { - $Groups = Get-CIPPAzDataTableEntity @GroupTable -Filter "RowKey eq '$GroupId'" - $AllMembers = Get-CIPPAzDataTableEntity @MembersTable -Filter "GroupId eq '$GroupId'" - } else { - $Groups = Get-CIPPAzDataTableEntity @GroupTable - $AllMembers = Get-CIPPAzDataTableEntity @MembersTable + $Groups = $Groups | Where-Object { $_.RowKey -eq $GroupId } + } - # Filter to allowed groups if restrictions apply - if ($script:AllowedGroups) { - $Groups = $Groups | Where-Object { $script:AllowedGroups -contains $_.RowKey } - } + if ($script:CippAllowedGroupsStorage -and $script:CippAllowedGroupsStorage.Value) { + $Groups = $Groups | Where-Object { $script:CippAllowedGroupsStorage.Value -contains $_.RowKey } } - if (!$Groups) { + if (!$Groups -or $Groups.Count -eq 0) { + $script:TenantGroupsResultCache[$CacheKey] = @() return @() } + # Process results based on TenantFilter if ($TenantFilter -and $TenantFilter -ne 'allTenants') { + # Return simplified group list for specific tenant $Results = [System.Collections.Generic.List[PSCustomObject]]::new() - $Memberships = $AllMembers | Where-Object { $_.customerId -eq $Tenants.customerId } - foreach ($Group in $Memberships) { - $Group = $Groups | Where-Object { $_.RowKey -eq $Group.GroupId } - if ($Group) { - $Results.Add([PSCustomObject]@{ - Id = $Group.RowKey - Name = $Group.Name - Description = $Group.Description - }) + $TargetCustomerId = $Tenants.customerId + + foreach ($Group in $Groups) { + $GroupMembers = $script:TenantGroupsCache.MembersByGroup[$Group.RowKey] + + if ($GroupMembers) { + # Check if this group has the target tenant as a member + $HasTenant = $false + foreach ($Member in $GroupMembers) { + if ($Member.customerId -eq $TargetCustomerId) { + $HasTenant = $true + break + } + } + + if ($HasTenant) { + $Results.Add([PSCustomObject]@{ + Id = $Group.RowKey + Name = $Group.Name + Description = $Group.Description + }) + } } } - return $Results | Sort-Object Name + + $FinalResults = $Results | Sort-Object Name + $script:TenantGroupsResultCache[$CacheKey] = $FinalResults + return $FinalResults } else { + # Return full group details with members $Results = [System.Collections.Generic.List[PSCustomObject]]::new() + foreach ($Group in $Groups) { - $Members = $AllMembers | Where-Object { $_.GroupId -eq $Group.RowKey } + $GroupMembers = $script:TenantGroupsCache.MembersByGroup[$Group.RowKey] $MembersList = [System.Collections.Generic.List[hashtable]]::new() - if ($Members) { - foreach ($Member in $Members) { - $Tenant = $Tenants | Where-Object { $Member.customerId -eq $_.customerId } + + if ($GroupMembers) { + foreach ($Member in $GroupMembers) { + # Use indexed lookup instead of Where-Object + $Tenant = $TenantByCustomerId[$Member.customerId] if ($Tenant) { $MembersList.Add(@{ customerId = $Tenant.customerId @@ -95,6 +166,7 @@ function Get-TenantGroups { } else { $SortedMembers = @() } + $Results.Add([PSCustomObject]@{ Id = $Group.RowKey Name = $Group.Name @@ -105,6 +177,9 @@ function Get-TenantGroups { Members = @($SortedMembers) }) } - return $Results | Sort-Object Name + + $FinalResults = $Results | Sort-Object Name + $script:TenantGroupsResultCache[$CacheKey] = $FinalResults + return $FinalResults } } diff --git a/Modules/CIPPCore/Public/Test-CIPPAccessPermissions.ps1 b/Modules/CIPPCore/Public/Test-CIPPAccessPermissions.ps1 index f3cee2080ca4..e95cdb074f8d 100644 --- a/Modules/CIPPCore/Public/Test-CIPPAccessPermissions.ps1 +++ b/Modules/CIPPCore/Public/Test-CIPPAccessPermissions.ps1 @@ -33,13 +33,8 @@ function Test-CIPPAccessPermissions { } if ($env:MSI_SECRET) { try { - Disable-AzContextAutosave -Scope Process | Out-Null - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $null = Set-AzContext -SubscriptionId $SubscriptionId - $KV = $env:WEBSITE_DEPLOYMENT_ID - $KeyVaultRefresh = Get-AzKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -AsPlainText + $KeyVaultRefresh = Get-CippKeyVaultSecret -VaultName $kv -Name 'RefreshToken' -AsPlainText if ($env:RefreshToken -ne $KeyVaultRefresh) { $Success = $false $ErrorMessages.Add('Your refresh token does not match key vault, wait 30 minutes for the function app to update.') | Out-Null diff --git a/Modules/CIPPCore/Public/Test-CIPPAccessTenant.ps1 b/Modules/CIPPCore/Public/Test-CIPPAccessTenant.ps1 index 561568426189..4ca993cbc631 100644 --- a/Modules/CIPPCore/Public/Test-CIPPAccessTenant.ps1 +++ b/Modules/CIPPCore/Public/Test-CIPPAccessTenant.ps1 @@ -114,8 +114,8 @@ function Test-CIPPAccessTenant { Write-Information "Found $($RoleDefinitions.Count) Exchange role definitions" $BasePath = Get-Module -Name 'CIPPCore' | Select-Object -ExpandProperty ModuleBase - $AllOrgManagementRoles = Get-Content -Path "$BasePath\Public\OrganizationManagementRoles.json" -ErrorAction Stop | ConvertFrom-Json - Write-Information "Loaded all Organization Management roles from $BasePath\Public\OrganizationManagementRoles.json" + $AllOrgManagementRoles = Get-Content -Path "$BasePath\lib\data\OrganizationManagementRoles.json" -ErrorAction Stop | ConvertFrom-Json + Write-Information "Loaded all Organization Management roles from $BasePath\lib\data\OrganizationManagementRoles.json" $AvailableRoles = $RoleDefinitions | Where-Object -Property displayName -In $AllOrgManagementRoles | Select-Object -Property displayName, id, description Write-Information "Found $($AvailableRoles.Count) available Organization Management roles in Exchange" diff --git a/Modules/CIPPCore/Public/Tools/Enable-CippConsoleLogging.ps1 b/Modules/CIPPCore/Public/Tools/Enable-CippConsoleLogging.ps1 new file mode 100644 index 000000000000..1809e164d87b --- /dev/null +++ b/Modules/CIPPCore/Public/Tools/Enable-CippConsoleLogging.ps1 @@ -0,0 +1,178 @@ +# Define log level enum at script scope +enum CippConsoleLogLevel { + Debug = 0 + Verbose = 1 + Information = 2 + Warning = 3 + Error = 4 +} + +function Enable-CippConsoleLogging { + <# + .SYNOPSIS + Enable console output logging to Application Insights + .DESCRIPTION + Overrides Write-Information, Write-Warning, Write-Error, Write-Verbose, and Write-Debug + functions to send telemetry to Application Insights while maintaining normal console output + .FUNCTIONALITY + Internal + .EXAMPLE + Enable-CippConsoleLogging + + # Now all Write-* calls will be logged to Application Insights + Write-Information "This will be logged" + Write-Warning "This warning will be logged" + #> + [CmdletBinding()] + param() + + # Initialize AsyncLocal storage for InvocationId (thread-safe) + if (-not $script:CippInvocationIdStorage) { + $script:CippInvocationIdStorage = [System.Threading.AsyncLocal[string]]::new() + } + + # Set minimum log level from environment variable (default: Information) + $validLevels = @('Debug', 'Verbose', 'Information', 'Warning', 'Error') + $configuredLevel = $env:CIPP_CONSOLE_LOG_LEVEL + $global:CippConsoleLogMinLevel = if ($configuredLevel -and $configuredLevel -in $validLevels) { + $configuredLevel + } else { + 'Information' + } + + if ($env:CIPP_CONSOLE_LOG_LEVEL -eq 'Debug') { + $global:DebugPreference = 'Continue' + } + + # Override Write-Information + function global:Write-Information { + [CmdletBinding()] + param( + [Parameter(Position = 0, ValueFromPipeline)] + [object]$MessageData, + [string[]]$Tags + ) + + # Only process and call original if MessageData is provided + if ($PSBoundParameters.ContainsKey('MessageData') -and $MessageData) { + # Send to telemetry + if (-not [string]::IsNullOrWhiteSpace(($MessageData | Out-String).Trim())) { + # If tag is supplied, include it in the log message + $LogMessage = if ($Tags -and $Tags.Count -gt 0) { + '[{0}] {1}' -f ($Tags -join ','), ($MessageData | Out-String).Trim() + } else { + ($MessageData | Out-String).Trim() + } + Send-CippConsoleLog -Message $LogMessage -Level 'Information' + } + + # Call original function + Microsoft.PowerShell.Utility\Write-Information @PSBoundParameters + } + } + + # Override Write-Warning + function global:Write-Warning { + [CmdletBinding()] + param( + [Parameter(Mandatory, Position = 0, ValueFromPipeline)] + [string]$Message + ) + + # Send to telemetry + if ($Message -and -not [string]::IsNullOrWhiteSpace($Message)) { + Send-CippConsoleLog -Message $Message -Level 'Warning' + } + + # Call original function + Microsoft.PowerShell.Utility\Write-Warning @PSBoundParameters + } + + # Override Write-Error + function global:Write-Error { + [CmdletBinding()] + param( + [Parameter(Position = 0, ValueFromPipeline)] + [object]$Message, + [object]$Exception, + [object]$ErrorRecord, + [string]$ErrorId, + [System.Management.Automation.ErrorCategory]$Category, + [object]$TargetObject, + [string]$RecommendedAction, + [string]$CategoryActivity, + [string]$CategoryReason, + [string]$CategoryTargetName, + [string]$CategoryTargetType + ) + + # Send to telemetry + $errorMessage = if ($Message) { ($Message | Out-String).Trim() } + elseif ($Exception) { $Exception.Message } + elseif ($ErrorRecord) { $ErrorRecord.Exception.Message } + else { 'Unknown error' } + + if ($errorMessage -and -not [string]::IsNullOrWhiteSpace($errorMessage)) { + Send-CippConsoleLog -Message $errorMessage -Level 'Error' + } + + # Call original function + Microsoft.PowerShell.Utility\Write-Error @PSBoundParameters + } + + # Override Write-Verbose + function global:Write-Verbose { + [CmdletBinding()] + param( + [Parameter(Mandatory, Position = 0, ValueFromPipeline)] + [string]$Message + ) + + # Send to telemetry + if ($Message -and -not [string]::IsNullOrWhiteSpace($Message)) { + Send-CippConsoleLog -Message $Message -Level 'Verbose' + } + + # Call original function + Microsoft.PowerShell.Utility\Write-Verbose @PSBoundParameters + } + + # Override Write-Debug + function global:Write-Debug { + [CmdletBinding()] + param( + [Parameter(Mandatory, Position = 0, ValueFromPipeline)] + [string]$Message + ) + + # Send to telemetry + if ($Message -and -not [string]::IsNullOrWhiteSpace($Message)) { + Send-CippConsoleLog -Message $Message -Level 'Debug' + } + + # Call original function + Microsoft.PowerShell.Utility\Write-Debug @PSBoundParameters + } + + # Override Write-Host + function global:Write-Host { + [CmdletBinding()] + param( + [Parameter(Position = 0, ValueFromPipeline)] + [object]$Object, + [switch]$NoNewline, + [object]$Separator, + [System.ConsoleColor]$ForegroundColor, + [System.ConsoleColor]$BackgroundColor + ) + + # Send to telemetry + $message = if ($Object) { ($Object | Out-String).Trim() } else { '' } + if ($message -and -not [string]::IsNullOrWhiteSpace($message)) { + Send-CippConsoleLog -Message $message -Level 'Information' + } + + # Call original function + Microsoft.PowerShell.Utility\Write-Host @PSBoundParameters + } +} diff --git a/Modules/CIPPCore/Public/Tools/Import-CommunityTemplate.ps1 b/Modules/CIPPCore/Public/Tools/Import-CommunityTemplate.ps1 index 627544703640..6479c9bdec71 100644 --- a/Modules/CIPPCore/Public/Tools/Import-CommunityTemplate.ps1 +++ b/Modules/CIPPCore/Public/Tools/Import-CommunityTemplate.ps1 @@ -42,12 +42,6 @@ function Import-CommunityTemplate { $excludedTenants = $ExistingJSON.excludedTenants $NewJSON.tenantFilter = $tenantFilter $NewJSON.excludedTenants = $excludedTenants - - # Extract package tag from existing template - $PackageTag = $Existing.Package - if ($PackageTag) { - $Template | Add-Member -MemberType NoteProperty -Name Package -Value $PackageTag -Force - } } } @@ -169,6 +163,11 @@ function Import-CommunityTemplate { GUID = $ID RowKey = $ID } + + if ($Existing -and $Existing.Package) { + $entity.Package = $Existing.Package + } + Add-CIPPAzDataTableEntity @Table -Entity $entity -Force } diff --git a/Modules/CIPPCore/Public/Tools/Measure-CippTask.ps1 b/Modules/CIPPCore/Public/Tools/Measure-CippTask.ps1 new file mode 100644 index 000000000000..34a73e947351 --- /dev/null +++ b/Modules/CIPPCore/Public/Tools/Measure-CippTask.ps1 @@ -0,0 +1,109 @@ +function Measure-CippTask { + <# + .SYNOPSIS + Measure and track CIPP task execution with Application Insights telemetry + .DESCRIPTION + Wraps task execution in a timer, sends custom event to Application Insights with duration and metadata + .PARAMETER TaskName + The name of the task being executed (e.g., "New-CIPPTemplateRun") + .PARAMETER Script + The scriptblock to execute and measure + .PARAMETER Metadata + Optional hashtable of metadata to include in telemetry (e.g., Command, Tenant, TaskInfo) + .PARAMETER EventName + Optional custom event name (default: "CIPP.TaskCompleted") + .FUNCTIONALITY + Internal + .EXAMPLE + Measure-CippTask -TaskName "ApplyTemplate" -Script { + # Task logic here + } -Metadata @{ + Command = "New-CIPPTemplateRun" + Tenant = "contoso.onmicrosoft.com" + } + .EXAMPLE + Measure-CippTask -TaskName "DisableGuests" -EventName "CIPP.StandardCompleted" -Script { + # Standard logic here + } -Metadata @{ + Standard = "DisableGuests" + Tenant = "contoso.onmicrosoft.com" + } + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $true)] + [string]$TaskName, + + [Parameter(Mandatory = $true)] + [scriptblock]$Script, + + [Parameter(Mandatory = $false)] + [hashtable]$Metadata, + + [Parameter(Mandatory = $false)] + [string]$EventName = 'CIPP.TaskCompleted' + ) + + # Initialize tracking variables + $sw = [System.Diagnostics.Stopwatch]::StartNew() + $result = $null + $errorOccurred = $false + $errorMessage = $null + + try { + # Execute the actual task (use dot-sourcing to preserve parent scope variables) + $result = . $Script + } catch { + $errorOccurred = $true + $errorMessage = $_.Exception.Message + # Re-throw to preserve original error behavior + throw + } finally { + # Stop the timer + $sw.Stop() + $durationMs = [int]$sw.Elapsed.TotalMilliseconds + + # Send telemetry if TelemetryClient is available + if ($global:TelemetryClient) { + try { + # Build properties dictionary for customDimensions + $props = New-Object 'System.Collections.Generic.Dictionary[string,string]' + $props['TaskName'] = $TaskName + $props['Success'] = (-not $errorOccurred).ToString() + $props['RawPropsAsJson'] = ($Metadata | ConvertTo-Json -Compress) + if ($errorOccurred) { + $props['ErrorMessage'] = $errorMessage + } + + # Add all metadata to properties + if ($Metadata) { + foreach ($key in $Metadata.Keys) { + $value = $Metadata[$key] + # Convert value to string, handling nulls + if ($null -ne $value) { + $props[$key] = [string]$value + } else { + $props[$key] = '' + } + } + } + + # Metrics dictionary for customMeasurements + $metrics = New-Object 'System.Collections.Generic.Dictionary[string,double]' + $metrics['DurationMs'] = [double]$durationMs + + # Send custom event to Application Insights + $global:TelemetryClient.TrackEvent($EventName, $props, $metrics) + $global:TelemetryClient.Flush() + + Write-Verbose "Telemetry sent for task '$TaskName' to event '$EventName' (${durationMs}ms)" + } catch { + Write-Warning "Failed to send telemetry for task '${TaskName}': $($_.Exception.Message)" + } + } else { + Write-Verbose "TelemetryClient not initialized, skipping telemetry for task '$TaskName'" + } + } + + return $result +} diff --git a/Modules/CIPPCore/Public/Tools/Send-CippConsoleLog.ps1 b/Modules/CIPPCore/Public/Tools/Send-CippConsoleLog.ps1 new file mode 100644 index 000000000000..1b00294b8409 --- /dev/null +++ b/Modules/CIPPCore/Public/Tools/Send-CippConsoleLog.ps1 @@ -0,0 +1,56 @@ +function Send-CippConsoleLog { + <# + .SYNOPSIS + Send console log message to Application Insights + .DESCRIPTION + Helper function to send console output to Application Insights telemetry + .PARAMETER Message + The message to log + .PARAMETER Level + The log level (Debug, Verbose, Information, Warning, Error) + .FUNCTIONALITY + Internal + #> + [CmdletBinding()] + param( + [Parameter(Mandatory = $true)] + [string]$Message, + + [Parameter(Mandatory = $true)] + [ValidateSet('Debug', 'Verbose', 'Information', 'Warning', 'Error')] + [string]$Level + ) + + if ($global:TelemetryClient) { + try { + # Map level names to numeric values for comparison + $levelMap = @{ + 'Debug' = 0 + 'Verbose' = 1 + 'Information' = 2 + 'Warning' = 3 + 'Error' = 4 + } + + $currentLevelValue = $levelMap[$Level] + $minLevelValue = $levelMap[$global:CippConsoleLogMinLevel] + + # Check if this level should be logged + if ($null -ne $minLevelValue -and $currentLevelValue -ge $minLevelValue) { + $props = New-Object 'System.Collections.Generic.Dictionary[string,string]' + $props['Message'] = $Message + $props['Level'] = $Level + $props['Timestamp'] = (Get-Date).ToString('o') + + # Add InvocationId if available (from AsyncLocal storage) + if ($script:CippInvocationIdStorage -and $script:CippInvocationIdStorage.Value) { + $props['InvocationId'] = $script:CippInvocationIdStorage.Value + } + + $global:TelemetryClient.TrackEvent('CIPP.ConsoleLog', $props, $null) + } + } catch { + # Silently fail to avoid infinite loops + } + } +} diff --git a/Modules/CIPPCore/Public/Webhooks/Invoke-CIPPPartnerWebhookProcessing.ps1 b/Modules/CIPPCore/Public/Webhooks/Invoke-CIPPPartnerWebhookProcessing.ps1 index 076f30aeeaa0..528d0bdf0735 100644 --- a/Modules/CIPPCore/Public/Webhooks/Invoke-CIPPPartnerWebhookProcessing.ps1 +++ b/Modules/CIPPCore/Public/Webhooks/Invoke-CIPPPartnerWebhookProcessing.ps1 @@ -9,7 +9,7 @@ function Invoke-CippPartnerWebhookProcessing { $AuditLog = New-GraphGetRequest -uri $Data.AuditUri -tenantid $env:TenantID -NoAuthCheck $true -scope 'https://api.partnercenter.microsoft.com/.default' } - Switch ($Data.EventName) { + switch ($Data.EventName) { 'test-created' { Write-LogMessage -API 'Webhooks' -message 'Partner Center webhook test received' -Sev 'Info' } @@ -62,16 +62,23 @@ function Invoke-CippPartnerWebhookProcessing { # Check for partner webhook onboarding settings $ConfigTable = Get-CIPPTable -TableName Config $WebhookConfig = Get-CIPPAzDataTableEntity @ConfigTable -Filter "RowKey eq 'PartnerWebhookOnboarding'" - if ($WebhookConfig.StandardsExcludeAllTenants -eq $true) { - $OnboardItem.StandardsExcludeAllTenants = $true - } - # Add onboarding entry to the table - $OnboardTable = Get-CIPPTable -TableName 'TenantOnboarding' - Add-CIPPAzDataTableEntity @OnboardTable -Entity $TenantOnboarding -Force -ErrorAction Stop + # Only proceed if automated onboarding is enabled + if ($WebhookConfig.Enabled -eq $true) { + if ($WebhookConfig.StandardsExcludeAllTenants -eq $true) { + $OnboardItem.StandardsExcludeAllTenants = $true + } + + # Add onboarding entry to the table + $OnboardTable = Get-CIPPTable -TableName 'TenantOnboarding' + Add-CIPPAzDataTableEntity @OnboardTable -Entity $TenantOnboarding -Force -ErrorAction Stop - # Start onboarding - Push-ExecOnboardTenantQueue -Item $OnboardItem + # Start onboarding + Push-ExecOnboardTenantQueue -Item $OnboardItem + Write-LogMessage -API 'Webhooks' -message "Automated onboarding started for relationship $Id" -Sev 'Info' + } else { + Write-LogMessage -API 'Webhooks' -message "Automated onboarding is disabled. GDAP relationship $Id approved but not onboarded automatically." -Sev 'Info' + } } else { if ($AuditLog) { Write-LogMessage -API 'Webhooks' -message "Partner Center $($Data.EventName) audit log webhook received" -LogData $AuditObj -Sev 'Alert' diff --git a/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 b/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 index 5596a3a0acfa..82677b90ddbe 100644 --- a/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 +++ b/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 @@ -126,49 +126,98 @@ function Test-CIPPAuditLogRules { $TrustedIPTable = Get-CIPPTable -TableName 'trustedIps' $ConfigTable = Get-CIPPTable -TableName 'WebhookRules' $ConfigEntries = Get-CIPPAzDataTableEntity @ConfigTable - $Configuration = $ConfigEntries | Where-Object { ($_.Tenants -match $TenantFilter -or $_.Tenants -match 'AllTenants') } | ForEach-Object { - [pscustomobject]@{ - Tenants = ($_.Tenants | ConvertFrom-Json) - Excluded = ($_.excludedTenants | ConvertFrom-Json -ErrorAction SilentlyContinue) - Conditions = $_.Conditions - Actions = $_.Actions - LogType = $_.Type + $Configuration = foreach ($ConfigEntry in $ConfigEntries) { + if ([string]::IsNullOrEmpty($ConfigEntry.Tenants)) { + continue } - } - - # Collect bulk data for users/groups/devices/applications - $Requests = @( - @{ - id = 'users' - url = '/users?$select=id,displayName,userPrincipalName,accountEnabled&$top=999' - method = 'GET' - } - @{ - id = 'groups' - url = '/groups?$select=id,displayName,mailEnabled,securityEnabled&$top=999' - method = 'GET' + $Tenants = $ConfigEntry.Tenants | ConvertFrom-Json -ErrorAction SilentlyContinue + if ($null -eq $Tenants) { + continue } - @{ - id = 'devices' - url = '/devices?$select=id,displayName,deviceId&$top=999' - method = 'GET' - } - @{ - id = 'servicePrincipals' - url = '/servicePrincipals?$select=id,displayName&$top=999' - method = 'GET' + # Expand tenant groups to get actual tenant list + $ExpandedTenants = Expand-CIPPTenantGroups -TenantFilter $Tenants + # Check if the TenantFilter matches any tenant in the expanded list or AllTenants + if ($ExpandedTenants.value -contains $TenantFilter -or $ExpandedTenants.value -contains 'AllTenants') { + [pscustomobject]@{ + Tenants = $Tenants + Excluded = ($ConfigEntry.excludedTenants | ConvertFrom-Json -ErrorAction SilentlyContinue) + Conditions = $ConfigEntry.Conditions + Actions = $ConfigEntry.Actions + LogType = $ConfigEntry.Type + } } - ) - $Response = New-GraphBulkRequest -TenantId $TenantFilter -Requests $Requests + } + + $Table = Get-CIPPTable -tablename 'cacheauditloglookups' + $1dayago = (Get-Date).AddDays(-1).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') + $Lookups = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq '$TenantFilter' and Timestamp gt datetime'$1dayago'" + if (!$Lookups) { + # Collect bulk data for users/groups/devices/applications + $Requests = @( + @{ + id = 'users' + url = '/users?$select=id,displayName,userPrincipalName,accountEnabled&$top=999' + method = 'GET' + } + @{ + id = 'groups' + url = '/groups?$select=id,displayName,mailEnabled,securityEnabled&$top=999' + method = 'GET' + } + @{ + id = 'devices' + url = '/devices?$select=id,displayName,deviceId&$top=999' + method = 'GET' + } + @{ + id = 'servicePrincipals' + url = '/servicePrincipals?$select=id,displayName&$top=999' + method = 'GET' + } + ) + $Response = New-GraphBulkRequest -TenantId $TenantFilter -Requests $Requests + $Users = ($Response | Where-Object { $_.id -eq 'users' }).body.value + $Groups = ($Response | Where-Object { $_.id -eq 'groups' }).body.value ?? @() + $Devices = ($Response | Where-Object { $_.id -eq 'devices' }).body.value ?? @() + $ServicePrincipals = ($Response | Where-Object { $_.id -eq 'servicePrincipals' }).body.value + # Cache the lookups for 1 day + $Entities = @( + @{ + PartitionKey = $TenantFilter + RowKey = 'users' + Data = [string]($Users | ConvertTo-Json -Compress) + } + @{ + PartitionKey = $TenantFilter + RowKey = 'groups' + Data = [string]($Groups | ConvertTo-Json -Compress) + } + @{ + PartitionKey = $TenantFilter + RowKey = 'devices' + Data = [string]($Devices | ConvertTo-Json -Compress) + } + @{ + PartitionKey = $TenantFilter + RowKey = 'servicePrincipals' + Data = [string]($ServicePrincipals | ConvertTo-Json -Compress) + } + ) + # Save the cached lookups + Add-CIPPAzDataTableEntity @Table -Entity $Entities -Force + Write-Information "Cached directory lookups for tenant $TenantFilter" + } else { + # Use cached lookups + $Users = ($Lookups | Where-Object { $_.RowKey -eq 'users' }).Data | ConvertFrom-Json + $Groups = (($Lookups | Where-Object { $_.RowKey -eq 'groups' }).Data | ConvertFrom-Json) ?? @() + $Devices = (($Lookups | Where-Object { $_.RowKey -eq 'devices' }).Data | ConvertFrom-Json) ?? @() + $ServicePrincipals = ($Lookups | Where-Object { $_.RowKey -eq 'servicePrincipals' }).Data | ConvertFrom-Json + Write-Information "Using cached directory lookups for tenant $TenantFilter" + } # partner users $PartnerUsers = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users?`$select=id,displayName,userPrincipalName,accountEnabled&`$top=999" -AsApp $true -NoAuthCheck $true - $Users = ($Response | Where-Object { $_.id -eq 'users' }).body.value - $Groups = ($Response | Where-Object { $_.id -eq 'groups' }).body.value ?? @() - $Devices = ($Response | Where-Object { $_.id -eq 'devices' }).body.value ?? @() - $ServicePrincipals = ($Response | Where-Object { $_.id -eq 'servicePrincipals' }).body.value - Write-Warning '## Audit Log Configuration ##' Write-Information ($Configuration | ConvertTo-Json -Depth 10) @@ -192,8 +241,8 @@ function Test-CIPPAuditLogRules { $LocationTable = Get-CIPPTable -TableName 'knownlocationdbv2' $ProcessedData = foreach ($AuditRecord in $SearchResults) { $RecordStartTime = Get-Date - Write-Information "Processing RowKey $($AuditRecord.id)" - $RootProperties = $AuditRecord | Select-Object * -ExcludeProperty auditData + Write-Information "Processing RowKey $($AuditRecord.id) - $($TenantFilter)." + $RootProperties = $AuditRecord $Data = $AuditRecord.auditData | Select-Object *, CIPPAction, CIPPClause, CIPPGeoLocation, CIPPBadRepIP, CIPPHostedIP, CIPPIPDetected, CIPPLocationInfo, CIPPExtendedProperties, CIPPDeviceProperties, CIPPParameters, CIPPModifiedProperties, AuditRecord -ErrorAction SilentlyContinue try { # Attempt to locate GUIDs in $Data and match them with their corresponding user, group, device, or service principal recursively by checking each key/value once located lets store these mapped values in a CIPP$KeyName property diff --git a/Modules/CIPPCore/build.psd1 b/Modules/CIPPCore/build.psd1 new file mode 100644 index 000000000000..793b0a6ba53b --- /dev/null +++ b/Modules/CIPPCore/build.psd1 @@ -0,0 +1,11 @@ +@{ + Path = 'CIPPCore.psd1' + OutputDirectory = '../../Output' + VersionedOutputDirectory = $false + CopyPaths = @( + 'lib' + ) + Encoding = 'UTF8' + Prefix = $null + Suffix = $null +} diff --git a/Modules/CIPPCore/Public/AdditionalPermissions.json b/Modules/CIPPCore/lib/data/AdditionalPermissions.json similarity index 100% rename from Modules/CIPPCore/Public/AdditionalPermissions.json rename to Modules/CIPPCore/lib/data/AdditionalPermissions.json diff --git a/Modules/CIPPCore/Public/ConversionTable.csv b/Modules/CIPPCore/lib/data/ConversionTable.csv similarity index 100% rename from Modules/CIPPCore/Public/ConversionTable.csv rename to Modules/CIPPCore/lib/data/ConversionTable.csv diff --git a/Modules/CIPPCore/Public/OrganizationManagementRoles.json b/Modules/CIPPCore/lib/data/OrganizationManagementRoles.json similarity index 100% rename from Modules/CIPPCore/Public/OrganizationManagementRoles.json rename to Modules/CIPPCore/lib/data/OrganizationManagementRoles.json diff --git a/Modules/CIPPCore/Public/PermissionsTranslator.json b/Modules/CIPPCore/lib/data/PermissionsTranslator.json similarity index 100% rename from Modules/CIPPCore/Public/PermissionsTranslator.json rename to Modules/CIPPCore/lib/data/PermissionsTranslator.json diff --git a/Modules/CIPPCore/Public/SAMManifest.json b/Modules/CIPPCore/lib/data/SAMManifest.json similarity index 98% rename from Modules/CIPPCore/Public/SAMManifest.json rename to Modules/CIPPCore/lib/data/SAMManifest.json index 9d9af97d45fb..534b0a29e5de 100644 --- a/Modules/CIPPCore/Public/SAMManifest.json +++ b/Modules/CIPPCore/lib/data/SAMManifest.json @@ -11,6 +11,15 @@ ] }, "requiredResourceAccess": [ + { + "resourceAppId": "c5393580-f805-4401-95e8-94b7a6ef2fc2", + "resourceAccess": [ + { + "id": "594c1fb6-4f81-4475-ae41-0c394909246c", + "type": "Scope" + } + ] + }, { "resourceAppId": "aeb86249-8ea3-49e2-900b-54cc8e308f85", "resourceAccess": [ diff --git a/Modules/CIPPCore/Public/blank.json b/Modules/CIPPCore/lib/data/blank.json similarity index 100% rename from Modules/CIPPCore/Public/blank.json rename to Modules/CIPPCore/lib/data/blank.json diff --git a/Modules/CippEntrypoints/CippEntrypoints.psm1 b/Modules/CippEntrypoints/CippEntrypoints.psm1 index 963614aa0aad..cda294332f1a 100644 --- a/Modules/CippEntrypoints/CippEntrypoints.psm1 +++ b/Modules/CippEntrypoints/CippEntrypoints.psm1 @@ -21,6 +21,7 @@ function Receive-CippHttpTrigger { if ($Request.Headers.'x-ms-coldstart' -eq 1) { Write-Information '** Function app cold start detected **' } + Write-Debug "CIPP_ACTION=$($Request.Params.CIPPEndpoint)" $ConfigTable = Get-CIPPTable -tablename Config $Config = Get-CIPPAzDataTableEntity @ConfigTable -Filter "PartitionKey eq 'OffloadFunctions' and RowKey eq 'OffloadFunctions'" @@ -171,7 +172,7 @@ function Receive-CippOrchestrationTrigger { Entrypoint #> param($Context) - + Write-Debug "CIPP_ACTION=$($Item.Command ?? $Item.FunctionName)" try { if (Test-Json -Json $Context.Input) { $OrchestratorInput = $Context.Input | ConvertFrom-Json @@ -180,6 +181,7 @@ function Receive-CippOrchestrationTrigger { } Write-Information "Orchestrator started $($OrchestratorInput.OrchestratorName)" Write-Warning "Receive-CippOrchestrationTrigger - $($OrchestratorInput.OrchestratorName)" + Set-DurableCustomStatus -CustomStatus $OrchestratorInput.OrchestratorName $DurableRetryOptions = @{ FirstRetryInterval = (New-TimeSpan -Seconds 5) MaxNumberOfAttempts = if ($OrchestratorInput.MaxAttempts) { $OrchestratorInput.MaxAttempts } else { 1 } @@ -195,6 +197,10 @@ function Receive-CippOrchestrationTrigger { $DurableMode = 'Sequence' $NoWait = $false } + 'NoScaling' { + $DurableMode = 'NoScaling' + $NoWait = $false + } default { $DurableMode = 'FanOut (Default)' $NoWait = $true @@ -203,36 +209,65 @@ function Receive-CippOrchestrationTrigger { Write-Information "Durable Mode: $DurableMode" $RetryOptions = New-DurableRetryOptions @DurableRetryOptions - - if ($Context.IsReplaying -ne $true -and $OrchestratorInput.SkipLog -ne $true) { - Write-LogMessage -API $OrchestratorInput.OrchestratorName -tenant $OrchestratorInput.TenantFilter -message "Started $($OrchestratorInput.OrchestratorName)" -sev info - } - if (!$OrchestratorInput.Batch -or ($OrchestratorInput.Batch | Measure-Object).Count -eq 0) { - $Batch = (Invoke-ActivityFunction -FunctionName 'CIPPActivityFunction' -Input $OrchestratorInput.QueueFunction -ErrorAction Stop) + $Batch = (Invoke-ActivityFunction -FunctionName 'CIPPActivityFunction' -Input $OrchestratorInput.QueueFunction -ErrorAction Stop) | Where-Object { $null -ne $_.FunctionName } } else { - $Batch = $OrchestratorInput.Batch + $Batch = $OrchestratorInput.Batch | Where-Object { $null -ne $_.FunctionName } } if (($Batch | Measure-Object).Count -gt 0) { Write-Information "Batch Count: $($Batch.Count)" - $Tasks = foreach ($Item in $Batch) { - $DurableActivity = @{ - FunctionName = 'CIPPActivityFunction' - Input = $Item - NoWait = $NoWait - RetryOptions = $RetryOptions - ErrorAction = 'Stop' + $Output = foreach ($Item in $Batch) { + if ($DurableMode -eq 'NoScaling') { + $Activity = @{ + FunctionName = 'CIPPActivityFunction' + Input = $Item + ErrorAction = 'Stop' + } + Invoke-ActivityFunction @Activity + } else { + $DurableActivity = @{ + FunctionName = 'CIPPActivityFunction' + Input = $Item + NoWait = $NoWait + RetryOptions = $RetryOptions + ErrorAction = 'Stop' + } + Invoke-DurableActivity @DurableActivity } - Invoke-DurableActivity @DurableActivity } - if ($NoWait -and $Tasks) { - $null = Wait-ActivityFunction -Task $Tasks + + if ($NoWait -and $Output) { + $Output = $Output | Where-Object { $_.GetType().Name -eq 'ActivityInvocationTask' } + if (($Output | Measure-Object).Count -gt 0) { + Write-Information "Waiting for ($($Output.Count)) activity functions to complete..." + $Results = foreach ($Task in $Output) { + try { + Wait-ActivityFunction -Task $Task + } catch {} + } + } else { + $Results = @() + } + } else { + $Results = $Output } } - if ($Context.IsReplaying -ne $true -and $OrchestratorInput.SkipLog -ne $true) { - Write-LogMessage -API $OrchestratorInput.OrchestratorName -tenant $tenant -message "Finished $($OrchestratorInput.OrchestratorName)" -sev Info + if ($Results -and $OrchestratorInput.PostExecution) { + Write-Information "Running post execution function $($OrchestratorInput.PostExecution.FunctionName)" + $PostExecParams = @{ + FunctionName = $OrchestratorInput.PostExecution.FunctionName + Parameters = $OrchestratorInput.PostExecution.Parameters + Results = @($Results) + } + if ($null -ne $PostExecParams.FunctionName) { + $null = Invoke-ActivityFunction -FunctionName CIPPActivityFunction -Input $PostExecParams + Write-Information "Post execution function $($OrchestratorInput.PostExecution.FunctionName) completed" + } else { + Write-Information 'No post execution function name provided' + Write-Information ($PostExecParams | ConvertTo-Json -Depth 10) + } } } catch { Write-Information "Orchestrator error $($_.Exception.Message) line $($_.InvocationInfo.ScriptLineNumber)" @@ -252,12 +287,21 @@ function Receive-CippActivityTrigger { Entrypoint #> param($Item) + Write-Debug "CIPP_ACTION=$($Item.Command ?? $Item.FunctionName)" Write-Warning "Hey Boo, the activity function is running. Here's some info: $($Item | ConvertTo-Json -Depth 10 -Compress)" try { - $Start = Get-Date $Output = $null Set-Location (Get-Item $PSScriptRoot).Parent.Parent.FullName - + $metric = @{ + Kind = 'CIPPCommandStart' + InvocationId = "$($ExecutionContext.InvocationId)" + Command = $Item.Command + Tenant = $Item.TenantFilter.defaultDomainName + TaskName = $Item.TaskName + JSONData = ($Item | ConvertTo-Json -Depth 10 -Compress) + } | ConvertTo-Json -Depth 10 -Compress + + Write-Information -MessageData $metric -Tag 'CIPPCommandStart' if ($Item.QueueId) { if ($Item.QueueName) { $QueueName = $Item.QueueName @@ -277,56 +321,86 @@ function Receive-CippActivityTrigger { if ($Item.FunctionName) { $FunctionName = 'Push-{0}' -f $Item.FunctionName + + # Prepare telemetry metadata + $taskName = if ($Item.Command) { $Item.Command } else { $FunctionName } + $metadata = @{ + Command = if ($Item.Command) { $Item.Command } else { $FunctionName } + FunctionName = $FunctionName + } + + # Add tenant information if available + if ($Item.TaskInfo) { + if ($Item.TaskInfo.Tenant) { + $metadata['Tenant'] = $Item.TaskInfo.Tenant + } + if ($Item.TaskInfo.Name) { + $metadata['JobName'] = $Item.TaskInfo.Name + } + if ($Item.TaskInfo.Recurrence) { + $metadata['Recurrence'] = $Item.TaskInfo.Recurrence + } + } + + # Add tenant from other common fields + if (-not $metadata['Tenant']) { + if ($Item.TenantFilter) { + $metadata['Tenant'] = $Item.TenantFilter + } elseif ($Item.Tenant) { + $metadata['Tenant'] = $Item.Tenant + } + } + + # Add queue information + if ($Item.QueueId) { + $metadata['QueueId'] = $Item.QueueId + } + if ($Item.QueueName) { + $metadata['QueueName'] = $Item.QueueName + } + try { - Write-Warning "Activity starting Function: $FunctionName." - $Output = Invoke-Command -ScriptBlock { & $FunctionName -Item $Item } - Write-Warning "Activity completed Function: $FunctionName." + Write-Verbose "Activity starting Function: $FunctionName." + Invoke-Command -ScriptBlock { & $FunctionName -Item $Item } + $Status = 'Completed' + + Write-Verbose "Activity completed Function: $FunctionName." if ($TaskStatus) { $QueueTask.Status = 'Completed' $null = Set-CippQueueTask @QueueTask } } catch { $ErrorMsg = $_.Exception.Message + $Status = 'Failed' if ($TaskStatus) { $QueueTask.Status = 'Failed' + $QueueTask.Message = $ErrorMsg $null = Set-CippQueueTask @QueueTask } } } else { $ErrorMsg = 'Function not provided' + $Status = 'Failed' if ($TaskStatus) { $QueueTask.Status = 'Failed' $null = Set-CippQueueTask @QueueTask } } - - $End = Get-Date - - try { - $Stats = @{ - FunctionType = 'Durable' - Entity = $Item - Start = $Start - End = $End - ErrorMsg = $ErrorMsg - } - Write-CippFunctionStats @Stats - } catch { - Write-Information "Error adding activity stats: $($_.Exception.Message)" - } } catch { - Write-Information "Error in Receive-CippActivityTrigger: $($_.Exception.Message)" + Write-Error "Error in Receive-CippActivityTrigger: $($_.Exception.Message)" + $Status = 'Failed' + $Output = $null if ($TaskStatus) { $QueueTask.Status = 'Failed' $null = Set-CippQueueTask @QueueTask } } - # Return the captured output if it exists and is not null, otherwise return $true + # Return the captured output if it exists and is not null if ($null -ne $Output -and $Output -ne '') { return $Output } else { - return $true + return "Activity function ended with status $($Status)." } } @@ -372,7 +446,41 @@ function Receive-CIPPTimerTrigger { $Parameters = $Function.Parameters | ConvertTo-Json | ConvertFrom-Json -AsHashtable } - $Results = Invoke-Command -ScriptBlock { & $Function.Command @Parameters } + # Prepare telemetry metadata + $metadata = @{ + Command = $Function.Command + Cron = $Function.Cron + FunctionId = $Function.Id + TriggerType = 'Timer' + } + + # Add parameters if available + if ($Parameters.Count -gt 0) { + $metadata['ParameterCount'] = $Parameters.Count + # Add specific known parameters + Write-Host "CIPP TIMER PARAMETERS: $($Parameters | ConvertTo-Json -Depth 10 -Compress)" + if ($Parameters.Tenant) { + $metadata['Tenant'] = $Parameters.Tenant + } + if ($Parameters.TenantFilter) { + $metadata['Tenant'] = $Parameters.TenantFilter + } + if ($Parameters.TenantFilter.value) { + $metadata['Tenant'] = $Parameters.TenantFilter.value + } + if ($Parameters.Tenant.value) { + $metadata['Tenant'] = $Parameters.Tenant.value + } + if ($Parameters.Tenant.defaultDomainName) { + $metadata['Tenant'] = $Parameters.Tenant.defaultDomainName + } + } + + # Wrap the timer function execution with telemetry + + Invoke-Command -ScriptBlock { & $Function.Command @Parameters } + + if ($Results -match '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$') { $FunctionStatus.OrchestratorId = $Results -join ',' $Status = 'Started' diff --git a/Modules/CippExtensions/CippExtensions.psm1 b/Modules/CippExtensions/CippExtensions.psm1 index ce47d5f7e719..633b97d8e97c 100644 --- a/Modules/CippExtensions/CippExtensions.psm1 +++ b/Modules/CippExtensions/CippExtensions.psm1 @@ -1,3 +1,5 @@ +# ModuleBuilder will concatenate all function files into this module +# This block is only used when running from source (not built) $Public = @(Get-ChildItem -Path (Join-Path $PSScriptRoot "Public\*.ps1") -Recurse -ErrorAction SilentlyContinue) $Private = @(Get-ChildItem -Path (Join-Path $PSScriptRoot "Private\*.ps1") -Recurse -ErrorAction SilentlyContinue) $Functions = $Public + $Private diff --git a/Modules/CippExtensions/Public/Extension Functions/Get-ExtensionAPIKey.ps1 b/Modules/CippExtensions/Public/Extension Functions/Get-ExtensionAPIKey.ps1 index b44dadbb2234..5d85b9d5c54b 100644 --- a/Modules/CippExtensions/Public/Extension Functions/Get-ExtensionAPIKey.ps1 +++ b/Modules/CippExtensions/Public/Extension Functions/Get-ExtensionAPIKey.ps1 @@ -21,16 +21,7 @@ function Get-ExtensionAPIKey { $APIKey = (Get-CIPPAzDataTableEntity @DevSecretsTable -Filter "PartitionKey eq '$Extension' and RowKey eq '$Extension'").APIKey } else { $keyvaultname = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $Context = Get-AzContext - if ($Context.Subscription) { - if ($Context.Subscription.Id -ne $SubscriptionId) { - Write-Information "Setting context to subscription $SubscriptionId" - $null = Set-AzContext -SubscriptionId $SubscriptionId - } - } - $APIKey = (Get-AzKeyVaultSecret -VaultName $keyvaultname -Name $Extension -AsPlainText) + $APIKey = (Get-CippKeyVaultSecret -VaultName $keyvaultname -Name $Extension -AsPlainText) } Set-Item -Path "env:$Var" -Value $APIKey -Force -ErrorAction SilentlyContinue } diff --git a/Modules/CippExtensions/Public/Extension Functions/Set-ExtensionAPIKey.ps1 b/Modules/CippExtensions/Public/Extension Functions/Set-ExtensionAPIKey.ps1 index eb4aca60cc4b..f8b0975bc963 100644 --- a/Modules/CippExtensions/Public/Extension Functions/Set-ExtensionAPIKey.ps1 +++ b/Modules/CippExtensions/Public/Extension Functions/Set-ExtensionAPIKey.ps1 @@ -24,16 +24,7 @@ function Set-ExtensionAPIKey { Add-CIPPAzDataTableEntity @DevSecretsTable -Entity $Secret -Force } else { $keyvaultname = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $Context = Get-AzContext - if ($Context.Subscription) { - if ($Context.Subscription.Id -ne $SubscriptionId) { - Write-Information "Setting context to subscription $SubscriptionId" - $null = Set-AzContext -SubscriptionId $SubscriptionId - } - } - $null = Set-AzKeyVaultSecret -VaultName $keyvaultname -Name $Extension -SecretValue (ConvertTo-SecureString -AsPlainText -Force -String $APIKey) + $null = Set-CippKeyVaultSecret -VaultName $keyvaultname -Name $Extension -SecretValue (ConvertTo-SecureString -AsPlainText -Force -String $APIKey) } Set-Item -Path "env:$Var" -Value $APIKey -Force -ErrorAction SilentlyContinue } diff --git a/Modules/CippExtensions/Public/Gradient/Get-GradientToken.ps1 b/Modules/CippExtensions/Public/Gradient/Get-GradientToken.ps1 index 5965ec745c10..fc9968070e66 100644 --- a/Modules/CippExtensions/Public/Gradient/Get-GradientToken.ps1 +++ b/Modules/CippExtensions/Public/Gradient/Get-GradientToken.ps1 @@ -3,11 +3,8 @@ function Get-GradientToken { $Configuration ) if ($Configuration.vendorKey) { - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $null = Set-AzContext -SubscriptionId $SubscriptionId $keyvaultname = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] - $partnerApiKey = (Get-AzKeyVaultSecret -VaultName $keyvaultname -Name 'Gradient' -AsPlainText) + $partnerApiKey = (Get-CippKeyVaultSecret -VaultName $keyvaultname -Name 'Gradient' -AsPlainText) $authorizationToken = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("$($configuration.vendorKey):$($partnerApiKey)")) $headers = [hashtable]@{ diff --git a/Modules/CippExtensions/Public/HIBP/Get-HIBPAuth.ps1 b/Modules/CippExtensions/Public/HIBP/Get-HIBPAuth.ps1 index 48c566363a67..365b387e09fc 100644 --- a/Modules/CippExtensions/Public/HIBP/Get-HIBPAuth.ps1 +++ b/Modules/CippExtensions/Public/HIBP/Get-HIBPAuth.ps1 @@ -9,23 +9,16 @@ function Get-HIBPAuth { $DevSecretsTable = Get-CIPPTable -tablename 'DevSecrets' $Secret = (Get-CIPPAzDataTableEntity @DevSecretsTable -Filter "PartitionKey eq 'HIBP' and RowKey eq 'HIBP'").APIKey } else { - $null = Connect-AzAccount -Identity - $SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 - $null = Set-AzContext -SubscriptionId $SubscriptionId - $VaultName = ($env:WEBSITE_DEPLOYMENT_ID -split '-')[0] try { - $Secret = Get-AzKeyVaultSecret -VaultName $VaultName -Name 'HIBP' -AsPlainText -ErrorAction Stop + $Secret = Get-CippKeyVaultSecret -VaultName $VaultName -Name 'HIBP' -AsPlainText -ErrorAction Stop } catch { $Secret = $null } if ([string]::IsNullOrEmpty($Secret) -and $env:CIPP_HOSTED -eq 'true') { $VaultName = 'hibp-kv' - if ($SubscriptionId -ne $env:CIPP_HOSTED_KV_SUB -and $env:CIPP_HOSTED_KV_SUB -match '^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$') { - $null = Set-AzContext -SubscriptionId $env:CIPP_HOSTED_KV_SUB - } - $Secret = Get-AzKeyVaultSecret -VaultName $VaultName -Name 'HIBP' -AsPlainText + $Secret = Get-CippKeyVaultSecret -VaultName $VaultName -Name 'HIBP' -AsPlainText } } Set-Item -Path "env:$Var" -Value $APIKey -Force -ErrorAction SilentlyContinue diff --git a/Modules/CippExtensions/Public/NinjaOne/Invoke-NinjaOneTenantSync.ps1 b/Modules/CippExtensions/Public/NinjaOne/Invoke-NinjaOneTenantSync.ps1 index eb22d29f08ee..c5f16239f905 100644 --- a/Modules/CippExtensions/Public/NinjaOne/Invoke-NinjaOneTenantSync.ps1 +++ b/Modules/CippExtensions/Public/NinjaOne/Invoke-NinjaOneTenantSync.ps1 @@ -1654,7 +1654,7 @@ function Invoke-NinjaOneTenantSync { $ParsedAdmins = [PSCustomObject]@{} $AdminUsers | Select-Object displayname, userPrincipalName -Unique | ForEach-Object { - $ParsedAdmins | Add-Member -NotePropertyName $_.displayname -NotePropertyValue $_.userPrincipalName + $ParsedAdmins | Add-Member -NotePropertyName $_.displayname -NotePropertyValue $_.userPrincipalName -Force } $TenantDetailsItems = [PSCustomObject]@{ @@ -1852,7 +1852,7 @@ function Invoke-NinjaOneTenantSync { $StandardsDefinitions = Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/KelvinTegelaar/CIPP/refs/heads/main/src/data/standards.json' $AppliedStandards = Get-CIPPStandards -TenantFilter $Customer.defaultDomainName $Templates = Get-CIPPTable 'templates' - $StandardTemplates = Get-CIPPAzDataTableEntity @Templates | Where-Object { $_.PartitionKey -eq 'StandardsTemplateV2' } + $StandardTemplates = Get-CIPPAzDataTableEntity @Templates -Filter "PartitionKey eq 'StandardsTemplateV2'" $ParsedStandards = foreach ($Standard in $AppliedStandards) { Write-Information "Processing Standard: $($Standard | ConvertTo-Json -Depth 10)" diff --git a/Modules/CippExtensions/Public/PwPush/Get-PwPushAccount.ps1 b/Modules/CippExtensions/Public/PwPush/Get-PwPushAccount.ps1 index f5e5198a1633..c0f429863035 100644 --- a/Modules/CippExtensions/Public/PwPush/Get-PwPushAccount.ps1 +++ b/Modules/CippExtensions/Public/PwPush/Get-PwPushAccount.ps1 @@ -1,7 +1,7 @@ function Get-PwPushAccount { $Table = Get-CIPPTable -TableName Extensionsconfig $Configuration = ((Get-CIPPAzDataTableEntity @Table).config | ConvertFrom-Json).PWPush - if ($Configuration.Enabled -eq $true -and $Configuration.PWPushPro -eq $true) { + if ($Configuration.Enabled -eq $true -and $Configuration.UseBearerAuth -eq $true) { Set-PwPushConfig -Configuration $Configuration Get-PushAccount } else { diff --git a/Modules/CippExtensions/Public/Sherweb/Test-SherwebMigrationAccounts.ps1 b/Modules/CippExtensions/Public/Sherweb/Test-SherwebMigrationAccounts.ps1 index 5a44c7b5cf4d..1fdc01e00176 100644 --- a/Modules/CippExtensions/Public/Sherweb/Test-SherwebMigrationAccounts.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Test-SherwebMigrationAccounts.ps1 @@ -8,7 +8,7 @@ function Test-SherwebMigrationAccounts { $ExtensionConfig = (Get-CIPPAzDataTableEntity @Table).config | ConvertFrom-Json $Config = $ExtensionConfig.Sherweb #First get a list of all subscribed skus for this tenant, that are in the transfer window. - $Licenses = (Get-CIPPLicenseOverview -TenantFilter $TenantFilter) | ForEach-Object { $_.terminfo = ($_.terminfo | ConvertFrom-Json -ErrorAction SilentlyContinue) ; $_ } | Where-Object { $_.terminfo -ne $null -and $_.terminfo.TransferWindow -le 7 } + $Licenses = (Get-CIPPLicenseOverview -TenantFilter $TenantFilter) | Where-Object { $null -ne $_.terminfo -and $_.terminfo.TransferWindow -le 7 } #now check if this exact count of licenses is available at Sherweb, if not, we need to migrate them. $SherwebLicenses = Get-SherwebCurrentSubscription -TenantFilter $TenantFilter diff --git a/Modules/CippExtensions/build.psd1 b/Modules/CippExtensions/build.psd1 new file mode 100644 index 000000000000..ca804a1fbdb1 --- /dev/null +++ b/Modules/CippExtensions/build.psd1 @@ -0,0 +1,11 @@ +@{ + Path = 'CippExtensions.psd1' + OutputDirectory = '../../Output' + VersionedOutputDirectory = $false + CopyPaths = @( + 'ConversionTable.csv' + ) + Encoding = 'UTF8' + Prefix = $null + Suffix = $null +} diff --git a/Shared/AppInsights/Microsoft.ApplicationInsights.dll b/Shared/AppInsights/Microsoft.ApplicationInsights.dll new file mode 100644 index 000000000000..0fc9839e335a Binary files /dev/null and b/Shared/AppInsights/Microsoft.ApplicationInsights.dll differ diff --git a/Tests/Alerts/Get-CIPPAlertGlobalAdminAllowList.Tests.ps1 b/Tests/Alerts/Get-CIPPAlertGlobalAdminAllowList.Tests.ps1 new file mode 100644 index 000000000000..7a8ae25cc590 --- /dev/null +++ b/Tests/Alerts/Get-CIPPAlertGlobalAdminAllowList.Tests.ps1 @@ -0,0 +1,106 @@ +# Pester tests for Get-CIPPAlertGlobalAdminAllowList +# Verifies prefix-based allow list handling and alert emission + +BeforeAll { + $RepoRoot = Split-Path -Parent (Split-Path -Parent (Split-Path -Parent $PSCommandPath)) + $AlertPath = Join-Path $RepoRoot 'Modules/CIPPCore/Public/Alerts/Get-CIPPAlertGlobalAdminAllowList.ps1' + + # Provide minimal stubs so Mock has commands to replace during tests + function New-GraphGetRequest { param($uri, $tenantid, $AsApp) } + function Write-AlertTrace { param($cmdletName, $tenantFilter, $data) } + function Write-AlertMessage { param($tenant, $message) } + function Get-NormalizedError { param($message) $message } + + . $AlertPath +} + +Describe 'Get-CIPPAlertGlobalAdminAllowList' { + BeforeEach { + $script:CapturedData = $null + $script:CapturedTenant = $null + $script:CapturedErrorMessage = $null + + Mock -CommandName New-GraphGetRequest -MockWith { + @( + [pscustomobject]@{ + '@odata.type' = '#microsoft.graph.user' + displayName = 'Allowed Admin' + userPrincipalName = 'breakglass@contoso.com' + id = 'id-allowed' + }, + [pscustomobject]@{ + '@odata.type' = '#microsoft.graph.user' + displayName = 'Unapproved Admin' + userPrincipalName = 'otheradmin@contoso.com' + id = 'id-unapproved' + } + ) + } + + Mock -CommandName Write-AlertTrace -MockWith { + param($cmdletName, $tenantFilter, $data) + $script:CapturedData = $data + $script:CapturedTenant = $tenantFilter + } + + Mock -CommandName Write-AlertMessage -MockWith { + param($tenant, $message) + $script:CapturedErrorMessage = $message + } + } + + It 'emits per-admin alerts when AlertEachAdmin is true' { + $allowInput = @{ ApprovedGlobalAdmins = 'breakglass'; AlertEachAdmin = $true } + + Get-CIPPAlertGlobalAdminAllowList -TenantFilter 'contoso.onmicrosoft.com' -InputValue $allowInput + + $CapturedData | Should -Not -BeNullOrEmpty + $CapturedData.UserPrincipalName | Should -Contain 'otheradmin@contoso.com' + $CapturedData.UserPrincipalName | Should -Not -Contain 'breakglass@contoso.com' + $CapturedTenant | Should -Be 'contoso.onmicrosoft.com' + } + + It 'emits single aggregated alert when AlertEachAdmin is false (default)' { + Get-CIPPAlertGlobalAdminAllowList -TenantFilter 'contoso.onmicrosoft.com' -InputValue 'breakglass' + + $CapturedData | Should -Not -BeNullOrEmpty + $CapturedData.Count | Should -Be 1 + $CapturedData[0].NonCompliantUsers | Should -Contain 'otheradmin@contoso.com' + $CapturedData[0].NonCompliantUsers | Should -Not -Contain 'breakglass@contoso.com' + } + + It 'emits single aggregated alert when AlertEachAdmin is explicitly false via input object' { + $allowInput = @{ ApprovedGlobalAdmins = 'breakglass'; AlertEachAdmin = $false } + + Get-CIPPAlertGlobalAdminAllowList -TenantFilter 'contoso.onmicrosoft.com' -InputValue $allowInput + + $CapturedData | Should -Not -BeNullOrEmpty + $CapturedData.Count | Should -Be 1 + $CapturedData[0].NonCompliantUsers | Should -Contain 'otheradmin@contoso.com' + $CapturedData[0].NonCompliantUsers | Should -Not -Contain 'breakglass@contoso.com' + } + + It 'suppresses alert when UPN prefix is approved (comma separated list)' { + $allowInput = @{ ApprovedGlobalAdmins = 'breakglass,otheradmin'; AlertEachAdmin = $true } + Get-CIPPAlertGlobalAdminAllowList -TenantFilter 'contoso.onmicrosoft.com' -InputValue $allowInput + + $CapturedData | Should -BeNullOrEmpty + } + + It 'accepts ApprovedGlobalAdmins property when provided as hashtable' { + $allowInput = @{ ApprovedGlobalAdmins = 'breakglass,otheradmin' } + Get-CIPPAlertGlobalAdminAllowList -TenantFilter 'contoso.onmicrosoft.com' -InputValue $allowInput + + $CapturedData | Should -BeNullOrEmpty + } + + It 'writes alert message when Graph call fails' { + Mock -CommandName New-GraphGetRequest -MockWith { throw 'Graph failure' } -Verifiable + + Get-CIPPAlertGlobalAdminAllowList -TenantFilter 'contoso.onmicrosoft.com' -InputValue 'breakglass' + + $CapturedData | Should -BeNullOrEmpty + $CapturedErrorMessage | Should -Match 'Failed to check approved Global Admins' + $CapturedErrorMessage | Should -Match 'Graph failure' + } +} diff --git a/Tools/Build-FunctionPermissions.ps1 b/Tools/Build-FunctionPermissions.ps1 new file mode 100644 index 000000000000..47a3b2e8de39 --- /dev/null +++ b/Tools/Build-FunctionPermissions.ps1 @@ -0,0 +1,87 @@ +param( + [string]$ModulePath = (Join-Path $PSScriptRoot '..' 'Modules' 'CIPPCore'), + [string]$OutputPath, + [string]$ModuleName +) + +$ErrorActionPreference = 'Stop' + +function Resolve-ModuleImportPath { + param( + [Parameter(Mandatory = $true)][string]$Root, + [Parameter(Mandatory = $true)][string]$Name + ) + + $psd1 = Join-Path $Root "$Name.psd1" + if (Test-Path $psd1) { return $psd1 } + + $psm1 = Join-Path $Root "$Name.psm1" + if (Test-Path $psm1) { return $psm1 } + + throw "Module files not found for '$Name' in '$Root'. Expected $Name.psd1 or $Name.psm1." +} + +function Get-HelpProperty { + param( + [Parameter(Mandatory = $true)]$HelpObject, + [Parameter(Mandatory = $true)][string]$PropertyName + ) + + $property = $HelpObject.PSObject.Properties[$PropertyName] + if ($property) { return $property.Value } + return '' +} + +# Resolve defaults +if (-not (Test-Path -Path $ModulePath)) { + throw "ModulePath '$ModulePath' not found. Provide -ModulePath to the module root." +} +$ModulePath = (Resolve-Path -Path $ModulePath).ProviderPath +if (-not $ModuleName) { $ModuleName = (Split-Path -Path $ModulePath -Leaf) } +if (-not $OutputPath) { + $defaultLibData = Join-Path $ModulePath 'lib' 'data' 'function-permissions.json' + $OutputPath = if (Test-Path (Split-Path -Parent $defaultLibData)) { $defaultLibData } else { Join-Path $ModulePath 'function-permissions.json' } +} + +# Ensure destination directory exists +$null = New-Item -ItemType Directory -Path (Split-Path -Parent $OutputPath) -Force + +# Import target module so Get-Help can read Role/Functionality metadata +$ModuleImportPath = Resolve-ModuleImportPath -Root $ModulePath -Name $ModuleName +$normalizedImportPath = [System.IO.Path]::GetFullPath($ModuleImportPath) +$loaded = Get-Module -Name $ModuleName | Where-Object { [System.IO.Path]::GetFullPath($_.Path) -eq $normalizedImportPath } +if (-not $loaded) { + Write-Host "Importing module '$ModuleName' from '$ModuleImportPath'" + Import-Module -Name $ModuleImportPath -Force -ErrorAction Stop +} else { + Write-Host "Module '$ModuleName' already loaded from '$ModuleImportPath'; reusing existing session copy." +} + +$commands = Get-Command -Module $ModuleName -CommandType Function +$permissions = [ordered]@{} + +foreach ($command in $commands | Sort-Object -Property Name | Select-Object -Unique) { + $help = Get-Help -Name $command.Name -ErrorAction SilentlyContinue + if ($help) { + $role = Get-HelpProperty -HelpObject $help -PropertyName 'Role' + $functionality = Get-HelpProperty -HelpObject $help -PropertyName 'Functionality' + } else { + $role = '' + $functionality = '' + } + + if ($role -or $functionality) { + $permissions[$command.Name] = @{ + Role = $role + Functionality = $functionality + } + } else { + Write-Host "Skipping $($command.Name): no Role or Functionality metadata found." + } +} + +# Depth 3 is sufficient for the flat hashtable of functions -> (Role, Functionality) +$json = $permissions | ConvertTo-Json -Depth 3 +Set-Content -Path $OutputPath -Value $json -Encoding UTF8 + +Write-Host "Wrote permissions for $($permissions.Count) functions to $OutputPath" diff --git a/cspell.json b/cspell.json index 976a619a4a33..28a883c89c5e 100644 --- a/cspell.json +++ b/cspell.json @@ -14,6 +14,7 @@ "CIPP-API", "CIPPCPV", "CIPPGDAP", + "CIPPURL", "Connectwise", "CPIM", "Datto", diff --git a/host.json b/host.json index d3491c33973c..e8c0cc6d4337 100644 --- a/host.json +++ b/host.json @@ -8,15 +8,22 @@ "version": "[4.26.0, 5.0.0)" }, "functionTimeout": "00:10:00", + + "logging": { + "console": { + "isEnabled": true, + "enableStructuredLogging": true + } + }, "extensions": { "durableTask": { - "maxConcurrentActivityFunctions": 5, - "maxConcurrentOrchestratorFunctions": 2, + "maxConcurrentActivityFunctions": 1, + "maxConcurrentOrchestratorFunctions": 5, "tracing": { "distributedTracingEnabled": false, "version": "None" }, - "defaultVersion": "8.7.2", + "defaultVersion": "8.8.0", "versionMatchStrategy": "Strict", "versionFailureStrategy": "Fail" } diff --git a/profile.ps1 b/profile.ps1 index 97c133727559..d26d55f264bd 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -1,49 +1,109 @@ Write-Information '#### CIPP-API Start ####' +$Timings = @{} +$TotalStopwatch = [System.Diagnostics.Stopwatch]::StartNew() +# Only load Application Insights SDK for telemetry if a connection string or instrumentation key is set +$hasAppInsights = $false +if ($env:APPLICATIONINSIGHTS_CONNECTION_STRING -or $env:APPINSIGHTS_INSTRUMENTATIONKEY) { + $hasAppInsights = $true +} +if ($hasAppInsights) { + Set-Location -Path $PSScriptRoot + $SwAppInsights = [System.Diagnostics.Stopwatch]::StartNew() + try { + $AppInsightsDllPath = Join-Path $PSScriptRoot 'Shared\AppInsights\Microsoft.ApplicationInsights.dll' + $null = [Reflection.Assembly]::LoadFile($AppInsightsDllPath) + Write-Debug 'Application Insights SDK loaded successfully' + } catch { + Write-Warning "Failed to load Application Insights SDK: $($_.Exception.Message)" + } + $SwAppInsights.Stop() + $Timings['AppInsightsSDK'] = $SwAppInsights.Elapsed.TotalMilliseconds +} + # Import modules -@('CIPPCore', 'CippExtensions', 'Az.KeyVault', 'Az.Accounts', 'AzBobbyTables') | ForEach-Object { +$SwModules = [System.Diagnostics.Stopwatch]::StartNew() +$ModulesPath = Join-Path $PSScriptRoot 'Modules' +$Modules = @('CIPPCore', 'CippExtensions', 'AzBobbyTables') +foreach ($Module in $Modules) { + $SwModule = [System.Diagnostics.Stopwatch]::StartNew() try { - $Module = $_ - Import-Module -Name $_ -ErrorAction Stop + Import-Module -Name (Join-Path $ModulesPath $Module) -ErrorAction Stop + $SwModule.Stop() + $Timings["Module_$Module"] = $SwModule.Elapsed.TotalMilliseconds } catch { + $SwModule.Stop() + $Timings["Module_$Module"] = $SwModule.Elapsed.TotalMilliseconds Write-LogMessage -message "Failed to import module - $Module" -LogData (Get-CippException -Exception $_) -Sev 'debug' - $_.Exception.Message + Write-Error $_.Exception.Message + } +} +$SwModules.Stop() +$Timings['AllModules'] = $SwModules.Elapsed.TotalMilliseconds + +# Initialize global TelemetryClient only if Application Insights is configured +$SwTelemetry = [System.Diagnostics.Stopwatch]::StartNew() +if ($hasAppInsights -and -not $global:TelemetryClient) { + try { + $connectionString = $env:APPLICATIONINSIGHTS_CONNECTION_STRING + if ($connectionString) { + # Use connection string (preferred method) + $config = [Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration]::CreateDefault() + $config.ConnectionString = $connectionString + $global:TelemetryClient = [Microsoft.ApplicationInsights.TelemetryClient]::new($config) + Enable-CippConsoleLogging + Write-Debug 'TelemetryClient initialized with connection string' + } elseif ($env:APPINSIGHTS_INSTRUMENTATIONKEY) { + # Fall back to instrumentation key + $global:TelemetryClient = [Microsoft.ApplicationInsights.TelemetryClient]::new() + $global:TelemetryClient.InstrumentationKey = $env:APPINSIGHTS_INSTRUMENTATIONKEY + Enable-CippConsoleLogging + Write-Debug 'TelemetryClient initialized with instrumentation key' + } + } catch { + Write-Warning "Failed to initialize TelemetryClient: $($_.Exception.Message)" } + $SwTelemetry.Stop() + $Timings['TelemetryClient'] = $SwTelemetry.Elapsed.TotalMilliseconds } +$SwDurableSDK = [System.Diagnostics.Stopwatch]::StartNew() if ($env:ExternalDurablePowerShellSDK -eq $true) { try { Import-Module AzureFunctions.PowerShell.Durable.SDK -ErrorAction Stop - Write-Information 'External Durable SDK enabled' + Write-Debug 'External Durable SDK enabled' } catch { Write-LogMessage -message 'Failed to import module - AzureFunctions.PowerShell.Durable.SDK' -LogData (Get-CippException -Exception $_) -Sev 'debug' $_.Exception.Message } } +$SwDurableSDK.Stop() +$Timings['DurableSDK'] = $SwDurableSDK.Elapsed.TotalMilliseconds -try { - Disable-AzContextAutosave -Scope Process | Out-Null -} catch {} - +$SwAuth = [System.Diagnostics.Stopwatch]::StartNew() try { if (!$env:SetFromProfile) { - Write-Information "We're reloading from KV" + Write-Debug "We're reloading from KV" $Auth = Get-CIPPAuthentication } } catch { Write-LogMessage -message 'Could not retrieve keys from Keyvault' -LogData (Get-CippException -Exception $_) -Sev 'debug' } +$SwAuth.Stop() +$Timings['Authentication'] = $SwAuth.Elapsed.TotalMilliseconds -Set-Location -Path $PSScriptRoot -$CurrentVersion = (Get-Content .\version_latest.txt).trim() +$SwVersion = [System.Diagnostics.Stopwatch]::StartNew() +$CurrentVersion = (Get-Content -Path (Join-Path $PSScriptRoot 'version_latest.txt') -Raw).Trim() $Table = Get-CippTable -tablename 'Version' Write-Information "Function App: $($env:WEBSITE_SITE_NAME) | API Version: $CurrentVersion | PS Version: $($PSVersionTable.PSVersion)" +$global:CippVersion = $CurrentVersion + $LastStartup = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq 'Version' and RowKey eq '$($env:WEBSITE_SITE_NAME)'" if (!$LastStartup -or $CurrentVersion -ne $LastStartup.Version) { Write-Information "Version has changed from $($LastStartup.Version ?? 'None') to $CurrentVersion" if ($LastStartup) { $LastStartup.Version = $CurrentVersion - $LastStartup | Add-Member -MemberType NoteProperty -Name 'PSVersion' -Value $PSVersionTable.PSVersion.ToString() -Force + Add-Member -InputObject $LastStartup -MemberType NoteProperty -Name 'PSVersion' -Value $PSVersionTable.PSVersion.ToString() -Force } else { $LastStartup = [PSCustomObject]@{ PartitionKey = 'Version' @@ -61,9 +121,17 @@ if (!$LastStartup -or $CurrentVersion -ne $LastStartup.Version) { $ReleaseTable = Get-CippTable -tablename 'cacheGitHubReleaseNotes' Remove-AzDataTableEntity @ReleaseTable -Entity @{ PartitionKey = 'GitHubReleaseNotes'; RowKey = 'GitHubReleaseNotes' } -ErrorAction SilentlyContinue - Write-Host 'Cleared GitHub release notes cache to force refresh on version update.' + Write-Debug 'Cleared GitHub release notes cache to force refresh on version update.' } -# Uncomment the next line to enable legacy AzureRm alias in Azure PowerShell. -# Enable-AzureRmAlias +$SwVersion.Stop() +$Timings['VersionCheck'] = $SwVersion.Elapsed.TotalMilliseconds -# You can also define functions or aliases that can be referenced in any of your PowerShell functions. +$TotalStopwatch.Stop() +$Timings['Total'] = $TotalStopwatch.Elapsed.TotalMilliseconds + +# Output timing summary as compressed JSON +$TimingsRounded = [ordered]@{} +foreach ($Key in ($Timings.Keys | Sort-Object)) { + $TimingsRounded[$Key] = [math]::Round($Timings[$Key], 2) +} +Write-Debug "#### Profile Load Timings #### $($TimingsRounded | ConvertTo-Json -Compress)" diff --git a/requirements.psd1 b/requirements.psd1 index 63032898f263..3364b5ae1eef 100644 --- a/requirements.psd1 +++ b/requirements.psd1 @@ -1,10 +1,6 @@ # This file enables modules to be automatically managed by the Functions service. # See https://aka.ms/functionsmanageddependency for additional information. # -@{ - # For latest supported version, go to 'https://www.powershellgallery.com/packages/Az'. - # To use the Az module in your function app, please uncomment the line below. - 'Az.accounts' = '2.*' - 'Az.Keyvault' = '3.*' - 'AzBobbyTables' = '2.*' -} +# CIPP bundles all modules locally in the Modules folder and imports them explicitly. +# managedDependency is disabled in host.json - this file is intentionally empty. +@{} diff --git a/test-alignment-profile.ps1 b/test-alignment-profile.ps1 new file mode 100644 index 000000000000..5ca11bf50fd3 --- /dev/null +++ b/test-alignment-profile.ps1 @@ -0,0 +1,30 @@ +# Test script for Get-CIPPTenantAlignment with profiling +# This will verify the function returns data in the same format + +# Import the module +Import-Module "$PSScriptRoot\Modules\CIPPCore" -Force + +# Test with a single tenant +$TestTenant = 'm365x72497814.onmicrosoft.com' # Replace with a valid test tenant + +Write-Host "Testing Get-CIPPTenantAlignment with profiling..." -ForegroundColor Cyan +Write-Host "Tenant: $TestTenant" -ForegroundColor Yellow + +try { + $Result = Get-CIPPTenantAlignment -TenantFilter $TestTenant + + Write-Host "`nResult Count: $($Result.Count)" -ForegroundColor Green + + if ($Result) { + Write-Host "`nFirst Result Properties:" -ForegroundColor Green + $Result[0] | Get-Member -MemberType Properties | Select-Object Name, Definition + + Write-Host "`nFirst Result Data:" -ForegroundColor Green + $Result[0] | ConvertTo-Json -Depth 2 + } else { + Write-Host "No results returned" -ForegroundColor Yellow + } +} catch { + Write-Host "Error: $_" -ForegroundColor Red + Write-Host $_.ScriptStackTrace -ForegroundColor Red +} diff --git a/version_latest.txt b/version_latest.txt index dba07fcdeb4b..3b6825376add 100644 --- a/version_latest.txt +++ b/version_latest.txt @@ -1 +1 @@ -8.7.2 +8.8.0