diff --git a/generated/Astro/Astro.Autorest/Az.Astro.csproj b/generated/Astro/Astro.Autorest/Az.Astro.csproj
deleted file mode 100644
index 08e8b7ac4db1..000000000000
--- a/generated/Astro/Astro.Autorest/Az.Astro.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- Astro
- Astro
- Astro.Autorest
- Microsoft.Azure.PowerShell.Cmdlets.Astro
-
-
-
-
-
diff --git a/generated/Astro/Astro.Autorest/Az.Astro.format.ps1xml b/generated/Astro/Astro.Autorest/Az.Astro.format.ps1xml
deleted file mode 100644
index 8ed04a397f5a..000000000000
--- a/generated/Astro/Astro.Autorest/Az.Astro.format.ps1xml
+++ /dev/null
@@ -1,819 +0,0 @@
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.AstroIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.AstroIdentity#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- OrganizationName
-
-
- ResourceGroupName
-
-
- SubscriptionId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.ErrorDetail
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.ErrorDetail#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- Message
-
-
- Target
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseDataOrganizationProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseDataOrganizationProperties#Multiple
-
-
-
-
-
-
-
-
-
-
-
- ProvisioningState
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseDataPartnerOrganizationProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseDataPartnerOrganizationProperties#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- OrganizationId
-
-
- OrganizationName
-
-
- WorkspaceId
-
-
- WorkspaceName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseDataPartnerOrganizationPropertiesUpdate
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseDataPartnerOrganizationPropertiesUpdate#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- OrganizationId
-
-
- OrganizationName
-
-
- WorkspaceId
-
-
- WorkspaceName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseMarketplaceDetails
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseMarketplaceDetails#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SubscriptionId
-
-
- SubscriptionStatus
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseOfferDetails
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseOfferDetails#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- OfferId
-
-
- PlanId
-
-
- PlanName
-
-
- PublisherId
-
-
- TermId
-
-
- TermUnit
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseSingleSignOnProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseSingleSignOnProperties#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EnterpriseAppId
-
-
- ProvisioningState
-
-
- SingleSignOnState
-
-
- SingleSignOnUrl
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseUserDetails
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseUserDetails#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EmailAddress
-
-
- FirstName
-
-
- LastName
-
-
- PhoneNumber
-
-
- Upn
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseUserDetailsUpdate
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.LiftrBaseUserDetailsUpdate#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EmailAddress
-
-
- FirstName
-
-
- LastName
-
-
- PhoneNumber
-
-
- Upn
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.ManagedServiceIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.ManagedServiceIdentity#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PrincipalId
-
-
- TenantId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.Operation
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.Operation#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ActionType
-
-
- IsDataAction
-
-
- Name
-
-
- Origin
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OperationDisplay
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OperationDisplay#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description
-
-
- Operation
-
-
- Provider
-
-
- Resource
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OperationListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OperationListResult#Multiple
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OrganizationResource
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OrganizationResource#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Location
-
-
- Name
-
-
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
-
-
- SystemDataLastModifiedAt
-
-
- SystemDataLastModifiedBy
-
-
- SystemDataLastModifiedByType
-
-
- ResourceGroupName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OrganizationResourceListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OrganizationResourceListResult#Multiple
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OrganizationResourceUpdateTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.OrganizationResourceUpdateTags#Multiple
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.Resource
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.Resource#Multiple
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.SystemData
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.SystemData#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CreatedAt
-
-
- CreatedBy
-
-
- CreatedByType
-
-
- LastModifiedAt
-
-
- LastModifiedBy
-
-
- LastModifiedByType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.TrackedResource
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.TrackedResource#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
-
-
- SystemDataLastModifiedAt
-
-
- SystemDataLastModifiedBy
-
-
- SystemDataLastModifiedByType
-
-
- Location
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.TrackedResourceTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.TrackedResourceTags#Multiple
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.UserAssignedIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.UserAssignedIdentity#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ClientId
-
-
- PrincipalId
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/generated/Astro/Astro.Autorest/Az.Astro.psd1 b/generated/Astro/Astro.Autorest/Az.Astro.psd1
deleted file mode 100644
index 2c9893412147..000000000000
--- a/generated/Astro/Astro.Autorest/Az.Astro.psd1
+++ /dev/null
@@ -1,23 +0,0 @@
-@{
- GUID = 'f1fb5c84-9232-478e-85f9-f1355cc0774d'
- RootModule = './Az.Astro.psm1'
- ModuleVersion = '0.1.0'
- CompatiblePSEditions = 'Core', 'Desktop'
- Author = 'Microsoft Corporation'
- CompanyName = 'Microsoft Corporation'
- Copyright = 'Microsoft Corporation. All rights reserved.'
- Description = 'Microsoft Azure PowerShell: Astro cmdlets'
- PowerShellVersion = '5.1'
- DotNetFrameworkVersion = '4.7.2'
- RequiredAssemblies = './bin/Az.Astro.private.dll'
- FormatsToProcess = './Az.Astro.format.ps1xml'
- FunctionsToExport = 'Get-AzAstroOrganization', 'New-AzAstroOrganization', 'Remove-AzAstroOrganization', 'Update-AzAstroOrganization'
- PrivateData = @{
- PSData = @{
- Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Astro'
- LicenseUri = 'https://aka.ms/azps-license'
- ProjectUri = 'https://github.com/Azure/azure-powershell'
- ReleaseNotes = ''
- }
- }
-}
diff --git a/generated/Astro/Astro.Autorest/Az.Astro.psm1 b/generated/Astro/Astro.Autorest/Az.Astro.psm1
deleted file mode 100644
index 720b85bf9268..000000000000
--- a/generated/Astro/Astro.Autorest/Az.Astro.psm1
+++ /dev/null
@@ -1,119 +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.Astro.private.dll')
-
- # Get the private module's instance
- $instance = [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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
diff --git a/generated/Astro/Astro.Autorest/check-dependencies.ps1 b/generated/Astro/Astro.Autorest/check-dependencies.ps1
deleted file mode 100644
index 90ca9867ae40..000000000000
--- a/generated/Astro/Astro.Autorest/check-dependencies.ps1
+++ /dev/null
@@ -1,65 +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.
-# ----------------------------------------------------------------------------------
-param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
-$ErrorActionPreference = 'Stop'
-
-if(-not $NotIsolated) {
- Write-Host -ForegroundColor Green 'Creating isolated process...'
- $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
- return
-}
-
-function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
- if($predicate) {
- $module = Get-Module -ListAvailable -Name $moduleName
- if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
- $null = New-Item -ItemType Directory -Force -Path $path
- Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
- if ($requiredVersion) {
- Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
- }elseif($versionMinimum) {
- Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
- } else {
- Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
- }
- }
- }
-}
-
-$ProgressPreference = 'SilentlyContinue'
-$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
-
-$localModulesPath = Join-Path $PSScriptRoot 'generated\modules'
-if(Test-Path -Path $localModulesPath) {
- $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
-}
-
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
-DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
-
-$tools = Join-Path $PSScriptRoot 'tools'
-$resourceDir = Join-Path $tools 'Resources'
-$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
-
-if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
- Write-Host -ForegroundColor Green "Building local Resource module used for test..."
- Set-Location $resourceDir
- $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
- $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
- Set-Location $HOME/.PSSharedModules/Resources
- $null = .\build-module.ps1
- Set-Location $PSScriptRoot
-}
diff --git a/generated/Astro/Astro.Autorest/exports/Get-AzAstroOrganization.ps1 b/generated/Astro/Astro.Autorest/exports/Get-AzAstroOrganization.ps1
deleted file mode 100644
index 1da251c57b50..000000000000
--- a/generated/Astro/Astro.Autorest/exports/Get-AzAstroOrganization.ps1
+++ /dev/null
@@ -1,215 +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
-Get a OrganizationResource
-.Description
-Get a OrganizationResource
-.Example
-Get-AzAstroOrganization -ResourceGroupName astro-user -Name UT.1.test
-.Example
-Get-AzAstroOrganization -ResourceGroupName test-group
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource
-.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
- [OrganizationName ]: Name of the Organizations resource
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/get-azastroorganization
-#>
-function Get-AzAstroOrganization {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List1', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Parameter(ParameterSetName='List1')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.private\Get-AzAstroOrganization_Get';
- GetViaIdentity = 'Az.Astro.private\Get-AzAstroOrganization_GetViaIdentity';
- List = 'Az.Astro.private\Get-AzAstroOrganization_List';
- List1 = 'Az.Astro.private\Get-AzAstroOrganization_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.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/Astro/Astro.Autorest/exports/New-AzAstroOrganization.ps1 b/generated/Astro/Astro.Autorest/exports/New-AzAstroOrganization.ps1
deleted file mode 100644
index dfc4c3ea1ada..000000000000
--- a/generated/Astro/Astro.Autorest/exports/New-AzAstroOrganization.ps1
+++ /dev/null
@@ -1,371 +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
-Create a OrganizationResource
-.Description
-Create a OrganizationResource
-.Example
-New-AzAstroOrganization -Name UT.7.test -ResourceGroupName astro-user -Location eastus -MarketplaceSubscriptionId 11111111-2222-3333-4444-123456789101 -OfferDetailOfferId astro -OfferDetailPlanId astro-paygo -OfferDetailPublisherId astronomer1 -OfferDetailPlanName 'Monthly Pay-As-You-Go' -OfferDetailTermId abcdefghijkl -OfferDetailTermUnit Monthly -UserEmailAddress example@microsoft.com -UserFirstName user -UserLastName test -UserUpn example@microsoft.com -PartnerOrganizationPropertyWorkspaceName aaa -PartnerOrganizationPropertyOrganizationName bbb -SingleSignOnPropertyAadDomain MicrosoftCustomerLed.onmicrosoft.com
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/new-azastroorganization
-#>
-function New-AzAstroOrganization {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Azure subscription id for the the marketplace offer is purchased from
- ${MarketplaceSubscriptionId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Offer Id for the marketplace offer
- ${OfferDetailOfferId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Id for the marketplace offer
- ${OfferDetailPlanId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Publisher Id for the marketplace offer
- ${OfferDetailPublisherId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Email address of the user
- ${UserEmailAddress},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # First name of the user
- ${UserFirstName},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Last name of the user
- ${UserLastName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # Decides if enable a system assigned identity for the resource.
- ${EnableSystemAssignedIdentity},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.PSArgumentCompleterAttribute("PendingFulfillmentStart", "Subscribed", "Suspended", "Unsubscribed")]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Marketplace subscription status
- ${MarketplaceSubscriptionStatus},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Name for the marketplace offer
- ${OfferDetailPlanName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Display Name for the marketplace offer
- ${OfferDetailTermId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Display Name for the marketplace offer
- ${OfferDetailTermUnit},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization Id in partner's system
- ${PartnerOrganizationPropertyOrganizationId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization name in partner's system
- ${PartnerOrganizationPropertyOrganizationName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace Id in partner's system
- ${PartnerOrganizationPropertyWorkspaceId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace name in partner's system
- ${PartnerOrganizationPropertyWorkspaceName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # List of AAD domains fetched from Microsoft Graph for user.
- ${SingleSignOnPropertyAadDomain},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # AAD enterprise application Id used to setup SSO
- ${SingleSignOnPropertyEnterpriseAppId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.PSArgumentCompleterAttribute("Initial", "Enable", "Disable")]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # State of the Single Sign On for the organization
- ${SingleSignOnPropertySingleSignOnState},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # URL for SSO to be used by the partner to redirect the user to their system
- ${SingleSignOnPropertySingleSignOnUrl},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # The array of user assigned identities associated with the resource.
- # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
- ${UserAssignedIdentity},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's phone number
- ${UserPhoneNumber},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's principal name
- ${UserUpn},
-
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Create operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Json string supplied to the Create operation
- ${JsonString},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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 = @{
- CreateExpanded = 'Az.Astro.custom\New-AzAstroOrganization';
- CreateViaJsonFilePath = 'Az.Astro.custom\New-AzAstroOrganization';
- CreateViaJsonString = 'Az.Astro.custom\New-AzAstroOrganization';
- }
- if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/Astro/Astro.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Astro/Astro.Autorest/exports/ProxyCmdletDefinitions.ps1
deleted file mode 100644
index 0ddb095b270f..000000000000
--- a/generated/Astro/Astro.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ /dev/null
@@ -1,1124 +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
-Get a OrganizationResource
-.Description
-Get a OrganizationResource
-.Example
-Get-AzAstroOrganization -ResourceGroupName astro-user -Name UT.1.test
-.Example
-Get-AzAstroOrganization -ResourceGroupName test-group
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource
-.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
- [OrganizationName ]: Name of the Organizations resource
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/get-azastroorganization
-#>
-function Get-AzAstroOrganization {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List1', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Parameter(ParameterSetName='List1')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.private\Get-AzAstroOrganization_Get';
- GetViaIdentity = 'Az.Astro.private\Get-AzAstroOrganization_GetViaIdentity';
- List = 'Az.Astro.private\Get-AzAstroOrganization_List';
- List1 = 'Az.Astro.private\Get-AzAstroOrganization_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.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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
-Delete a OrganizationResource
-.Description
-Delete a OrganizationResource
-.Example
-Remove-AzAstroOrganization -Name UT.1.test -ResourceGroupName astro-user
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity
-.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
- [Id ]: Resource identity path
- [OrganizationName ]: Name of the Organizations resource
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/remove-azastroorganization
-#>
-function Remove-AzAstroOrganization {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Delete')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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 = @{
- Delete = 'Az.Astro.private\Remove-AzAstroOrganization_Delete';
- DeleteViaIdentity = 'Az.Astro.private\Remove-AzAstroOrganization_DeleteViaIdentity';
- }
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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
-Create a OrganizationResource
-.Description
-Create a OrganizationResource
-.Example
-New-AzAstroOrganization -Name UT.7.test -ResourceGroupName astro-user -Location eastus -MarketplaceSubscriptionId 11111111-2222-3333-4444-123456789101 -OfferDetailOfferId astro -OfferDetailPlanId astro-paygo -OfferDetailPublisherId astronomer1 -OfferDetailPlanName 'Monthly Pay-As-You-Go' -OfferDetailTermId abcdefghijkl -OfferDetailTermUnit Monthly -UserEmailAddress example@microsoft.com -UserFirstName user -UserLastName test -UserUpn example@microsoft.com -PartnerOrganizationPropertyWorkspaceName aaa -PartnerOrganizationPropertyOrganizationName bbb -SingleSignOnPropertyAadDomain MicrosoftCustomerLed.onmicrosoft.com
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/new-azastroorganization
-#>
-function New-AzAstroOrganization {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Azure subscription id for the the marketplace offer is purchased from
- ${MarketplaceSubscriptionId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Offer Id for the marketplace offer
- ${OfferDetailOfferId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Id for the marketplace offer
- ${OfferDetailPlanId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Publisher Id for the marketplace offer
- ${OfferDetailPublisherId},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Email address of the user
- ${UserEmailAddress},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # First name of the user
- ${UserFirstName},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Last name of the user
- ${UserLastName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # Decides if enable a system assigned identity for the resource.
- ${EnableSystemAssignedIdentity},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.PSArgumentCompleterAttribute("PendingFulfillmentStart", "Subscribed", "Suspended", "Unsubscribed")]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Marketplace subscription status
- ${MarketplaceSubscriptionStatus},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Name for the marketplace offer
- ${OfferDetailPlanName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Display Name for the marketplace offer
- ${OfferDetailTermId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Plan Display Name for the marketplace offer
- ${OfferDetailTermUnit},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization Id in partner's system
- ${PartnerOrganizationPropertyOrganizationId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization name in partner's system
- ${PartnerOrganizationPropertyOrganizationName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace Id in partner's system
- ${PartnerOrganizationPropertyWorkspaceId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace name in partner's system
- ${PartnerOrganizationPropertyWorkspaceName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # List of AAD domains fetched from Microsoft Graph for user.
- ${SingleSignOnPropertyAadDomain},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # AAD enterprise application Id used to setup SSO
- ${SingleSignOnPropertyEnterpriseAppId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.PSArgumentCompleterAttribute("Initial", "Enable", "Disable")]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # State of the Single Sign On for the organization
- ${SingleSignOnPropertySingleSignOnState},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # URL for SSO to be used by the partner to redirect the user to their system
- ${SingleSignOnPropertySingleSignOnUrl},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # The array of user assigned identities associated with the resource.
- # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
- ${UserAssignedIdentity},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's phone number
- ${UserPhoneNumber},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's principal name
- ${UserUpn},
-
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Create operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Json string supplied to the Create operation
- ${JsonString},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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 = @{
- CreateExpanded = 'Az.Astro.custom\New-AzAstroOrganization';
- CreateViaJsonFilePath = 'Az.Astro.custom\New-AzAstroOrganization';
- CreateViaJsonString = 'Az.Astro.custom\New-AzAstroOrganization';
- }
- if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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
-Update a OrganizationResource
-.Description
-Update a OrganizationResource
-.Example
-Update-AzAstroOrganization -Name UT.7.test -ResourceGroupName astro-user -UserUpn example@microsoft.com -PartnerOrganizationPropertyOrganizationId cccccccc -PartnerOrganizationPropertyWorkspaceId dddddddd -PartnerOrganizationPropertyWorkspaceName eeeeeee -PartnerOrganizationPropertyOrganizationName kkkkkkkkkkkk -SingleSignOnPropertyEnterpriseAppId llllllll -SingleSignOnPropertyAadDomain MicrosoftCustomerLed.onmicrosoft.com
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource
-.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
- [OrganizationName ]: Name of the Organizations resource
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/update-azastroorganization
-#>
-function Update-AzAstroOrganization {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaJsonString')]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.Nullable[System.Boolean]]
- # Decides if enable a system assigned identity for the resource.
- ${EnableSystemAssignedIdentity},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization Id in partner's system
- ${PartnerOrganizationPropertyOrganizationId},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization name in partner's system
- ${PartnerOrganizationPropertyOrganizationName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace Id in partner's system
- ${PartnerOrganizationPropertyWorkspaceId},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace name in partner's system
- ${PartnerOrganizationPropertyWorkspaceName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # List of AAD domains fetched from Microsoft Graph for user.
- ${SingleSignOnPropertyAadDomain},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # AAD enterprise application Id used to setup SSO
- ${SingleSignOnPropertyEnterpriseAppId},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.PSArgumentCompleterAttribute("Initial", "Enable", "Disable")]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # State of the Single Sign On for the organization
- ${SingleSignOnPropertySingleSignOnState},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # URL for SSO to be used by the partner to redirect the user to their system
- ${SingleSignOnPropertySingleSignOnUrl},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResourceUpdateTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # The array of user assigned identities associated with the resource.
- # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
- ${UserAssignedIdentity},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Email address of the user
- ${UserEmailAddress},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # First name of the user
- ${UserFirstName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Last name of the user
- ${UserLastName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's phone number
- ${UserPhoneNumber},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's principal name
- ${UserUpn},
-
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Json string supplied to the Update operation
- ${JsonString},
-
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Update operation
- ${JsonFilePath},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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 = @{
- UpdateExpanded = 'Az.Astro.custom\Update-AzAstroOrganization';
- UpdateViaJsonString = 'Az.Astro.custom\Update-AzAstroOrganization';
- UpdateViaJsonFilePath = 'Az.Astro.custom\Update-AzAstroOrganization';
- UpdateViaIdentityExpanded = 'Az.Astro.custom\Update-AzAstroOrganization';
- }
- if (('UpdateExpanded', 'UpdateViaJsonString', 'UpdateViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/Astro/Astro.Autorest/exports/README.md b/generated/Astro/Astro.Autorest/exports/README.md
deleted file mode 100644
index f891d78078fa..000000000000
--- a/generated/Astro/Astro.Autorest/exports/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Exports
-This directory contains the cmdlets *exported by* `Az.Astro`. No other cmdlets in this repository are directly exported. What that means is the `Az.Astro` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
-
-## Info
-- Modifiable: no
-- Generated: all
-- Committed: no
-- Packaged: yes
-
-## Details
-The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.Astro.private.dll`) and from the `..\custom\Az.Astro.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder.
-
-## Purpose
-We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles.
-
-## Structure
-The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile.
-
-## Usage
-When `./Az.Astro.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message.
\ No newline at end of file
diff --git a/generated/Astro/Astro.Autorest/exports/Remove-AzAstroOrganization.ps1 b/generated/Astro/Astro.Autorest/exports/Remove-AzAstroOrganization.ps1
deleted file mode 100644
index eec0d2923b6d..000000000000
--- a/generated/Astro/Astro.Autorest/exports/Remove-AzAstroOrganization.ps1
+++ /dev/null
@@ -1,226 +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
-Delete a OrganizationResource
-.Description
-Delete a OrganizationResource
-.Example
-Remove-AzAstroOrganization -Name UT.1.test -ResourceGroupName astro-user
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity
-.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
- [Id ]: Resource identity path
- [OrganizationName ]: Name of the Organizations resource
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/remove-azastroorganization
-#>
-function Remove-AzAstroOrganization {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Delete')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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 = @{
- Delete = 'Az.Astro.private\Remove-AzAstroOrganization_Delete';
- DeleteViaIdentity = 'Az.Astro.private\Remove-AzAstroOrganization_DeleteViaIdentity';
- }
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/Astro/Astro.Autorest/exports/Update-AzAstroOrganization.ps1 b/generated/Astro/Astro.Autorest/exports/Update-AzAstroOrganization.ps1
deleted file mode 100644
index 49d8f271033f..000000000000
--- a/generated/Astro/Astro.Autorest/exports/Update-AzAstroOrganization.ps1
+++ /dev/null
@@ -1,357 +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
-Update a OrganizationResource
-.Description
-Update a OrganizationResource
-.Example
-Update-AzAstroOrganization -Name UT.7.test -ResourceGroupName astro-user -UserUpn example@microsoft.com -PartnerOrganizationPropertyOrganizationId cccccccc -PartnerOrganizationPropertyWorkspaceId dddddddd -PartnerOrganizationPropertyWorkspaceName eeeeeee -PartnerOrganizationPropertyOrganizationName kkkkkkkkkkkk -SingleSignOnPropertyEnterpriseAppId llllllll -SingleSignOnPropertyAadDomain MicrosoftCustomerLed.onmicrosoft.com
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource
-.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
- [OrganizationName ]: Name of the Organizations resource
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
-.Link
-https://learn.microsoft.com/powershell/module/az.astro/update-azastroorganization
-#>
-function Update-AzAstroOrganization {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResource])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Alias('OrganizationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # Name of the Organizations resource
- ${Name},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaJsonString')]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IAstroIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.Nullable[System.Boolean]]
- # Decides if enable a system assigned identity for the resource.
- ${EnableSystemAssignedIdentity},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization Id in partner's system
- ${PartnerOrganizationPropertyOrganizationId},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Organization name in partner's system
- ${PartnerOrganizationPropertyOrganizationName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace Id in partner's system
- ${PartnerOrganizationPropertyWorkspaceId},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Workspace name in partner's system
- ${PartnerOrganizationPropertyWorkspaceName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # List of AAD domains fetched from Microsoft Graph for user.
- ${SingleSignOnPropertyAadDomain},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # AAD enterprise application Id used to setup SSO
- ${SingleSignOnPropertyEnterpriseAppId},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.PSArgumentCompleterAttribute("Initial", "Enable", "Disable")]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # State of the Single Sign On for the organization
- ${SingleSignOnPropertySingleSignOnState},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # URL for SSO to be used by the partner to redirect the user to their system
- ${SingleSignOnPropertySingleSignOnUrl},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Astro.Models.IOrganizationResourceUpdateTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String[]]
- # The array of user assigned identities associated with the resource.
- # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
- ${UserAssignedIdentity},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Email address of the user
- ${UserEmailAddress},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # First name of the user
- ${UserFirstName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Last name of the user
- ${UserLastName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's phone number
- ${UserPhoneNumber},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # User's principal name
- ${UserUpn},
-
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Json string supplied to the Update operation
- ${JsonString},
-
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Update operation
- ${JsonFilePath},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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 = @{
- UpdateExpanded = 'Az.Astro.custom\Update-AzAstroOrganization';
- UpdateViaJsonString = 'Az.Astro.custom\Update-AzAstroOrganization';
- UpdateViaJsonFilePath = 'Az.Astro.custom\Update-AzAstroOrganization';
- UpdateViaIdentityExpanded = 'Az.Astro.custom\Update-AzAstroOrganization';
- }
- if (('UpdateExpanded', 'UpdateViaJsonString', 'UpdateViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.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.Astro.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.Astro.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.Astro.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/Astro/Astro.Autorest/generate-info.json b/generated/Astro/Astro.Autorest/generate-info.json
deleted file mode 100644
index 2460fd810e2a..000000000000
--- a/generated/Astro/Astro.Autorest/generate-info.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "generate_Id": "ddc76b89-85d1-4209-beb1-ab105aaf29b5"
-}
diff --git a/generated/Astro/Astro.Autorest/generated/Module.cs b/generated/Astro/Astro.Autorest/generated/Module.cs
deleted file mode 100644
index 0d8181f50b34..000000000000
--- a/generated/Astro/Astro.Autorest/generated/Module.cs
+++ /dev/null
@@ -1,202 +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.Astro
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.Astro.Runtime.Extensions;
- using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>;
- using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>;
- using GetParameterDelegate = global::System.Func;
- using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
- using ArgumentCompleterDelegate = global::System.Func;
- using GetTelemetryIdDelegate = global::System.Func;
- using TelemetryDelegate = global::System.Action;
- using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
- using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>;
- using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>;
- using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>;
- using SanitizerDelegate = global::System.Action