diff --git a/src/ContainerInstance/Az.ContainerInstance.psd1 b/src/ContainerInstance/Az.ContainerInstance.psd1 index d84b657f16fd..5dd15a38c24e 100644 --- a/src/ContainerInstance/Az.ContainerInstance.psd1 +++ b/src/ContainerInstance/Az.ContainerInstance.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 3/6/2023 +# Generated on: 8/10/2023 # @{ @@ -125,8 +125,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added ''priority'' property to Container Group properties -* Added ''Confidential'' sku type to Container Group Skus' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/ContainerInstance/Az.ContainerInstance.psm1 b/src/ContainerInstance/Az.ContainerInstance.psm1 index 512fc12aebb9..508ebc647204 100644 --- a/src/ContainerInstance/Az.ContainerInstance.psm1 +++ b/src/ContainerInstance/Az.ContainerInstance.psm1 @@ -33,7 +33,7 @@ } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + 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 } diff --git a/src/ContainerInstance/ContainerInstance.sln b/src/ContainerInstance/ContainerInstance.sln index 8341005d31f5..4f01e4e6676b 100644 --- a/src/ContainerInstance/ContainerInstance.sln +++ b/src/ContainerInstance/ContainerInstance.sln @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{1A1084E7-5A00-4FA6-B18F-4BFCA38BE254}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{ECF1F067-4F78-4602-8B5B-0921A62735FD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{61EA7453-63B5-4411-9574-6E1E981C70C4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{480C952C-5C5E-4F37-9D00-7AE941D096DC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{7D43B483-6FA9-497F-9FFC-B4D73EF8BA50}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{620242F8-B561-4AD7-AB19-31E2C6DC3E05}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{EF3A983C-7304-447B-A5F8-1D787D0138D2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{3D78805B-070E-47CF-8A42-B8889F3DC2F4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{980F0E51-E2F1-4466-808C-74F560823737}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{D8759E0E-E6AC-418F-819A-8519CA166BA6}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ContainerInstance", "Az.ContainerInstance.csproj", "{D42492AA-1029-4F54-92B1-603AEF0205E0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ContainerInstance", "Az.ContainerInstance.csproj", "{9E349674-A1EC-47B2-975B-3C7934918FAE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1A1084E7-5A00-4FA6-B18F-4BFCA38BE254}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1A1084E7-5A00-4FA6-B18F-4BFCA38BE254}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1A1084E7-5A00-4FA6-B18F-4BFCA38BE254}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1A1084E7-5A00-4FA6-B18F-4BFCA38BE254}.Release|Any CPU.Build.0 = Release|Any CPU - {61EA7453-63B5-4411-9574-6E1E981C70C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {61EA7453-63B5-4411-9574-6E1E981C70C4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {61EA7453-63B5-4411-9574-6E1E981C70C4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {61EA7453-63B5-4411-9574-6E1E981C70C4}.Release|Any CPU.Build.0 = Release|Any CPU - {7D43B483-6FA9-497F-9FFC-B4D73EF8BA50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7D43B483-6FA9-497F-9FFC-B4D73EF8BA50}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7D43B483-6FA9-497F-9FFC-B4D73EF8BA50}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7D43B483-6FA9-497F-9FFC-B4D73EF8BA50}.Release|Any CPU.Build.0 = Release|Any CPU - {EF3A983C-7304-447B-A5F8-1D787D0138D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EF3A983C-7304-447B-A5F8-1D787D0138D2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EF3A983C-7304-447B-A5F8-1D787D0138D2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EF3A983C-7304-447B-A5F8-1D787D0138D2}.Release|Any CPU.Build.0 = Release|Any CPU - {3D78805B-070E-47CF-8A42-B8889F3DC2F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3D78805B-070E-47CF-8A42-B8889F3DC2F4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3D78805B-070E-47CF-8A42-B8889F3DC2F4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3D78805B-070E-47CF-8A42-B8889F3DC2F4}.Release|Any CPU.Build.0 = Release|Any CPU - {D8759E0E-E6AC-418F-819A-8519CA166BA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D8759E0E-E6AC-418F-819A-8519CA166BA6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D8759E0E-E6AC-418F-819A-8519CA166BA6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D8759E0E-E6AC-418F-819A-8519CA166BA6}.Release|Any CPU.Build.0 = Release|Any CPU - {D42492AA-1029-4F54-92B1-603AEF0205E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D42492AA-1029-4F54-92B1-603AEF0205E0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D42492AA-1029-4F54-92B1-603AEF0205E0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D42492AA-1029-4F54-92B1-603AEF0205E0}.Release|Any CPU.Build.0 = Release|Any CPU + {ECF1F067-4F78-4602-8B5B-0921A62735FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECF1F067-4F78-4602-8B5B-0921A62735FD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECF1F067-4F78-4602-8B5B-0921A62735FD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECF1F067-4F78-4602-8B5B-0921A62735FD}.Release|Any CPU.Build.0 = Release|Any CPU + {480C952C-5C5E-4F37-9D00-7AE941D096DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {480C952C-5C5E-4F37-9D00-7AE941D096DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {480C952C-5C5E-4F37-9D00-7AE941D096DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {480C952C-5C5E-4F37-9D00-7AE941D096DC}.Release|Any CPU.Build.0 = Release|Any CPU + {620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Debug|Any CPU.Build.0 = Debug|Any CPU + {620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Release|Any CPU.ActiveCfg = Release|Any CPU + {620242F8-B561-4AD7-AB19-31E2C6DC3E05}.Release|Any CPU.Build.0 = Release|Any CPU + {2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2CFACAA8-39B5-4D51-BDA6-1B4532D1C7C0}.Release|Any CPU.Build.0 = Release|Any CPU + {980F0E51-E2F1-4466-808C-74F560823737}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {980F0E51-E2F1-4466-808C-74F560823737}.Debug|Any CPU.Build.0 = Debug|Any CPU + {980F0E51-E2F1-4466-808C-74F560823737}.Release|Any CPU.ActiveCfg = Release|Any CPU + {980F0E51-E2F1-4466-808C-74F560823737}.Release|Any CPU.Build.0 = Release|Any CPU + {57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {57E72256-3DCC-4BF8-B1CB-2713DB8BABD6}.Release|Any CPU.Build.0 = Release|Any CPU + {9E349674-A1EC-47B2-975B-3C7934918FAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E349674-A1EC-47B2-975B-3C7934918FAE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E349674-A1EC-47B2-975B-3C7934918FAE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E349674-A1EC-47B2-975B-3C7934918FAE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/ContainerInstance/build-module.ps1 b/src/ContainerInstance/build-module.ps1 index e6aabf6ff612..801251bd4116 100644 --- a/src/ContainerInstance/build-module.ps1 +++ b/src/ContainerInstance/build-module.ps1 @@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' $modelCmdlets = @() +$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets' +if (Test-Path $modelCmdletFolder) { + $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder +} if ($modelCmdlets.Count -gt 0) { . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') CreateModelCmdlet($modelCmdlets) diff --git a/src/ContainerInstance/create-model-cmdlets.ps1 b/src/ContainerInstance/create-model-cmdlets.ps1 index f16334de47b4..df1a6e02e595 100644 --- a/src/ContainerInstance/create-model-cmdlets.ps1 +++ b/src/ContainerInstance/create-model-cmdlets.ps1 @@ -23,9 +23,13 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'ContainerInstance' $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir + if (''.length -gt 0) { + $ModuleName = '' + } else { + $ModuleName = 'Az.ContainerInstance' + } $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs $Content = '' @@ -64,10 +68,10 @@ function CreateModelCmdlet { $ObjectType = $Model $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" # remove duplicated module name - if ($ObjectType.StartsWith($ModuleName)) { + if ($ObjectType.StartsWith('ContainerInstance')) { $ModulePrefix = '' } else { - $ModulePrefix = $ModuleName + $ModulePrefix = 'ContainerInstance' } $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir @@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}. .Outputs ${ObjectTypeWithNamespace} .Link -https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object #> function New-Az${ModulePrefix}${ObjectType}Object { [OutputType('${ObjectTypeWithNamespace}')] diff --git a/src/ContainerInstance/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs b/src/ContainerInstance/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs index 6aebe8b82b04..4a2a6cbedc25 100644 --- a/src/ContainerInstance/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs +++ b/src/ContainerInstance/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs @@ -71,13 +71,15 @@ private Task PullResponse() if (!string.IsNullOrEmpty(result) && PassThru.ToBool()) { WriteObject(result.TrimEnd()); } - }, this._cancellationTokenSource.Token); + }, this._cancellationTokenSource.Token).Unwrap(); } private Task PushCommand() { return Task.Factory.StartNew(async () => { + if (Console.IsInputRedirected) return; + StringBuilder input = new StringBuilder(); // Loop until input is entered. while (socket.State == WebSocketState.Open && !this._cancellationTokenSource.Token.IsCancellationRequested) @@ -95,7 +97,7 @@ private Task PushCommand() System.Threading.Thread.Sleep(250); } - }, this._cancellationTokenSource.Token); + }, this._cancellationTokenSource.Token).Unwrap(); } } diff --git a/src/ContainerInstance/custom/README.md b/src/ContainerInstance/custom/README.md index b7466e9ad610..8641cb7ae5c0 100644 --- a/src/ContainerInstance/custom/README.md +++ b/src/ContainerInstance/custom/README.md @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.DescriptionAttribute` - - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. - `Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ContainerInstance`. - `Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.InternalExportAttribute` diff --git a/src/ContainerInstance/exports/Add-AzContainerInstanceOutput.ps1 b/src/ContainerInstance/exports/Add-AzContainerInstanceOutput.ps1 index 9b116ece011c..56c650aba779 100644 --- a/src/ContainerInstance/exports/Add-AzContainerInstanceOutput.ps1 +++ b/src/ContainerInstance/exports/Add-AzContainerInstanceOutput.ps1 @@ -65,7 +65,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -117,7 +118,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Get-AzContainerGroup.ps1 b/src/ContainerInstance/exports/Get-AzContainerGroup.ps1 index 29c5ee7cd8a9..176992a82cb0 100644 --- a/src/ContainerInstance/exports/Get-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/Get-AzContainerGroup.ps1 @@ -91,7 +91,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Get-AzContainerInstanceCachedImage.ps1 b/src/ContainerInstance/exports/Get-AzContainerInstanceCachedImage.ps1 index c53594974d3a..0214875352e9 100644 --- a/src/ContainerInstance/exports/Get-AzContainerInstanceCachedImage.ps1 +++ b/src/ContainerInstance/exports/Get-AzContainerInstanceCachedImage.ps1 @@ -50,7 +50,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -102,7 +103,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Get-AzContainerInstanceCapability.ps1 b/src/ContainerInstance/exports/Get-AzContainerInstanceCapability.ps1 index 145315d6ad49..ce973b5fd0f3 100644 --- a/src/ContainerInstance/exports/Get-AzContainerInstanceCapability.ps1 +++ b/src/ContainerInstance/exports/Get-AzContainerInstanceCapability.ps1 @@ -50,7 +50,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -102,7 +103,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 b/src/ContainerInstance/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 index c613d9ce22dd..abe97df776f7 100644 --- a/src/ContainerInstance/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 +++ b/src/ContainerInstance/exports/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.ps1 @@ -82,7 +82,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -134,7 +135,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Get-AzContainerInstanceLog.ps1 b/src/ContainerInstance/exports/Get-AzContainerInstanceLog.ps1 index 899b6d51100c..1b6542e1b273 100644 --- a/src/ContainerInstance/exports/Get-AzContainerInstanceLog.ps1 +++ b/src/ContainerInstance/exports/Get-AzContainerInstanceLog.ps1 @@ -78,7 +78,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -130,7 +131,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Get-AzContainerInstanceUsage.ps1 b/src/ContainerInstance/exports/Get-AzContainerInstanceUsage.ps1 index b5e8ad581e61..d05a36686d60 100644 --- a/src/ContainerInstance/exports/Get-AzContainerInstanceUsage.ps1 +++ b/src/ContainerInstance/exports/Get-AzContainerInstanceUsage.ps1 @@ -50,7 +50,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -102,7 +103,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Invoke-AzContainerInstanceCommand.ps1 b/src/ContainerInstance/exports/Invoke-AzContainerInstanceCommand.ps1 index 0faf5940dd80..2c2db9ff93cc 100644 --- a/src/ContainerInstance/exports/Invoke-AzContainerInstanceCommand.ps1 +++ b/src/ContainerInstance/exports/Invoke-AzContainerInstanceCommand.ps1 @@ -141,7 +141,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerGroup.ps1 b/src/ContainerInstance/exports/New-AzContainerGroup.ps1 index 5084b680e152..a0930d7de56b 100644 --- a/src/ContainerInstance/exports/New-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerGroup.ps1 @@ -442,7 +442,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 b/src/ContainerInstance/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 index 6049268cc0a3..4a98f0a64f24 100644 --- a/src/ContainerInstance/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerGroupImageRegistryCredentialObject.ps1 @@ -65,7 +65,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerGroupPortObject.ps1 b/src/ContainerInstance/exports/New-AzContainerGroupPortObject.ps1 index bedd20e7f2cd..4d3a9659f2a9 100644 --- a/src/ContainerInstance/exports/New-AzContainerGroupPortObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerGroupPortObject.ps1 @@ -54,7 +54,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerGroupVolumeObject.ps1 b/src/ContainerInstance/exports/New-AzContainerGroupVolumeObject.ps1 index a023d83a4826..2b4218c2f190 100644 --- a/src/ContainerInstance/exports/New-AzContainerGroupVolumeObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerGroupVolumeObject.ps1 @@ -118,7 +118,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 b/src/ContainerInstance/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 index 53e5f82bfe2f..3c8119463121 100644 --- a/src/ContainerInstance/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerInstanceEnvironmentVariableObject.ps1 @@ -61,7 +61,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerInstanceHttpHeaderObject.ps1 b/src/ContainerInstance/exports/New-AzContainerInstanceHttpHeaderObject.ps1 index 5c6a95329adb..f359628c7229 100644 --- a/src/ContainerInstance/exports/New-AzContainerInstanceHttpHeaderObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerInstanceHttpHeaderObject.ps1 @@ -53,7 +53,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerInstanceInitDefinitionObject.ps1 b/src/ContainerInstance/exports/New-AzContainerInstanceInitDefinitionObject.ps1 index c72f2c8838a6..eb191e027a5e 100644 --- a/src/ContainerInstance/exports/New-AzContainerInstanceInitDefinitionObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerInstanceInitDefinitionObject.ps1 @@ -87,7 +87,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerInstanceObject.ps1 b/src/ContainerInstance/exports/New-AzContainerInstanceObject.ps1 index 60770ffa11b5..335a26225a3e 100644 --- a/src/ContainerInstance/exports/New-AzContainerInstanceObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerInstanceObject.ps1 @@ -285,7 +285,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerInstancePortObject.ps1 b/src/ContainerInstance/exports/New-AzContainerInstancePortObject.ps1 index b27b0d989b28..aa2b072a5316 100644 --- a/src/ContainerInstance/exports/New-AzContainerInstancePortObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerInstancePortObject.ps1 @@ -54,7 +54,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/New-AzContainerInstanceVolumeMountObject.ps1 b/src/ContainerInstance/exports/New-AzContainerInstanceVolumeMountObject.ps1 index 398fc7ac8cae..3d868f1c3134 100644 --- a/src/ContainerInstance/exports/New-AzContainerInstanceVolumeMountObject.ps1 +++ b/src/ContainerInstance/exports/New-AzContainerInstanceVolumeMountObject.ps1 @@ -60,7 +60,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/ProxyCmdletDefinitions.ps1 b/src/ContainerInstance/exports/ProxyCmdletDefinitions.ps1 index 221eac30e131..6a2b63847db9 100644 --- a/src/ContainerInstance/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ContainerInstance/exports/ProxyCmdletDefinitions.ps1 @@ -65,7 +65,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -117,7 +118,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -262,7 +263,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -314,7 +316,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -421,7 +423,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -473,7 +476,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -577,7 +580,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -629,7 +633,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -765,7 +769,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -817,7 +822,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -950,7 +955,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1002,7 +1008,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1106,7 +1112,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1158,7 +1165,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1296,7 +1303,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1366,7 +1374,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1443,7 +1451,7 @@ The operation does not delete other resources provided by the user. Delete container group virtual network association links. The operation does not delete other resources provided by the user. .Example -Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroup testRg -SubnetName testSubnetName -VirtualNetworkName testVnetName +Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroupName testRg -SubnetName testSubnetName -VirtualNetworkName testVnetName .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity @@ -1508,7 +1516,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1578,7 +1587,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1717,7 +1726,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1787,7 +1797,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1926,7 +1936,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1996,7 +2007,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2135,7 +2146,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2193,7 +2205,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2352,7 +2364,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2404,7 +2417,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2600,7 +2613,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3102,7 +3115,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3224,7 +3237,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3329,7 +3342,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3498,7 +3511,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3610,7 +3623,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3714,7 +3727,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3852,7 +3865,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4188,7 +4201,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4293,7 +4306,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4404,7 +4417,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/README.md b/src/ContainerInstance/exports/README.md index 4e0f6bf62016..b76fd36871fb 100644 --- a/src/ContainerInstance/exports/README.md +++ b/src/ContainerInstance/exports/README.md @@ -1,5 +1,5 @@ # Exports -This directory contains the cmdlets *exported by* `Az.ContainerInstance`. No other cmdlets in this repository are directly exported. What that means is the `Az.ContainerInstance` module will run [Export-ModuleMember](https://docs.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. +This directory contains the cmdlets *exported by* `Az.ContainerInstance`. No other cmdlets in this repository are directly exported. What that means is the `Az.ContainerInstance` 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 diff --git a/src/ContainerInstance/exports/Remove-AzContainerGroup.ps1 b/src/ContainerInstance/exports/Remove-AzContainerGroup.ps1 index c2e7d6e12df7..a96c246b3676 100644 --- a/src/ContainerInstance/exports/Remove-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/Remove-AzContainerGroup.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -154,7 +155,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 b/src/ContainerInstance/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 index 24723b419cad..17c32640c51b 100644 --- a/src/ContainerInstance/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 +++ b/src/ContainerInstance/exports/Remove-AzContainerInstanceSubnetServiceAssociationLink.ps1 @@ -22,7 +22,7 @@ The operation does not delete other resources provided by the user. Delete container group virtual network association links. The operation does not delete other resources provided by the user. .Example -Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroup testRg -SubnetName testSubnetName -VirtualNetworkName testVnetName +Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroupName testRg -SubnetName testSubnetName -VirtualNetworkName testVnetName .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity @@ -87,7 +87,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -157,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Restart-AzContainerGroup.ps1 b/src/ContainerInstance/exports/Restart-AzContainerGroup.ps1 index 25129c5241de..0d235967b2d5 100644 --- a/src/ContainerInstance/exports/Restart-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/Restart-AzContainerGroup.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -154,7 +155,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Start-AzContainerGroup.ps1 b/src/ContainerInstance/exports/Start-AzContainerGroup.ps1 index 2372b5659126..098475709956 100644 --- a/src/ContainerInstance/exports/Start-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/Start-AzContainerGroup.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -154,7 +155,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Stop-AzContainerGroup.ps1 b/src/ContainerInstance/exports/Stop-AzContainerGroup.ps1 index bbb3276fae2b..6ac4d495514c 100644 --- a/src/ContainerInstance/exports/Stop-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/Stop-AzContainerGroup.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -142,7 +143,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/exports/Update-AzContainerGroup.ps1 b/src/ContainerInstance/exports/Update-AzContainerGroup.ps1 index e86dfc18643c..6c838c5d1016 100644 --- a/src/ContainerInstance/exports/Update-AzContainerGroup.ps1 +++ b/src/ContainerInstance/exports/Update-AzContainerGroup.ps1 @@ -104,7 +104,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -156,7 +157,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ContainerInstance/generate-info.json b/src/ContainerInstance/generate-info.json index f3805a4e0202..203899d6aa44 100644 --- a/src/ContainerInstance/generate-info.json +++ b/src/ContainerInstance/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "12cbd66750c4dfe302e9eca42b1fc727f8c02700", + "swagger_commit": "c992976478b8ab8c3ea2b4abaeac9b0aacee55fe", "node": "v14.15.5", "autorest": "`-- (empty)", - "autorest_core": "3.9.4", + "autorest_core": "3.9.7", "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.498" + "autorest_powershell": "3.0.505" } diff --git a/src/ContainerInstance/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs b/src/ContainerInstance/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs index e5ffac9a69dd..dc678592c2a5 100644 --- a/src/ContainerInstance/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs +++ b/src/ContainerInstance/generated/cmdlets/AddAzContainerInstanceOutput_Attach.cs @@ -44,9 +44,10 @@ public partial class AddAzContainerInstanceOutput_Attach : global::System.Manage public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_Get.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_Get.cs index 440147d0a10d..3fd5c8c3ef25 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_Get.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_Get.cs @@ -46,9 +46,10 @@ public partial class GetAzContainerGroup_Get : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs index 06676abbf401..ba6d79ec88ef 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_GetViaIdentity.cs @@ -46,9 +46,10 @@ public partial class GetAzContainerGroup_GetViaIdentity : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List.cs index fd685e076f61..5520572233bc 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List.cs @@ -51,9 +51,10 @@ public partial class GetAzContainerGroup_List : global::System.Management.Automa public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List1.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List1.cs index feb57873fc83..2454f2c3eb0b 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List1.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerGroup_List1.cs @@ -52,9 +52,10 @@ public partial class GetAzContainerGroup_List1 : global::System.Management.Autom public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs index 264906e56817..4c5a36777a92 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCachedImage_List.cs @@ -50,9 +50,10 @@ public partial class GetAzContainerInstanceCachedImage_List : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCapability_List.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCapability_List.cs index 06d6b8666409..b2f3a3df95a5 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCapability_List.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceCapability_List.cs @@ -48,9 +48,10 @@ public partial class GetAzContainerInstanceCapability_List : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs index 648117a55665..c4015d3fb9b2 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_Get.cs @@ -60,9 +60,10 @@ public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependen public string ContainerGroupName { get => this._containerGroupName; set => this._containerGroupName = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs index fb37201eded7..0149e327e95d 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint_GetViaIdentity.cs @@ -46,9 +46,10 @@ public partial class GetAzContainerInstanceContainerGroupOutboundNetworkDependen public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceLog_List.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceLog_List.cs index 856a9aac139a..997f07f09a5c 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceLog_List.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceLog_List.cs @@ -72,9 +72,10 @@ public partial class GetAzContainerInstanceLog_List : global::System.Management. public string ContainerName { get => this._containerName; set => this._containerName = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceOperation_List.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceOperation_List.cs index 97f18441b6e4..6d7beda5447e 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceOperation_List.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceOperation_List.cs @@ -49,9 +49,10 @@ public partial class GetAzContainerInstanceOperation_List : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceUsage_List.cs b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceUsage_List.cs index 8053084aef64..e4fce570440b 100644 --- a/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceUsage_List.cs +++ b/src/ContainerInstance/generated/cmdlets/GetAzContainerInstanceUsage_List.cs @@ -42,9 +42,10 @@ public partial class GetAzContainerInstanceUsage_List : global::System.Managemen public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs b/src/ContainerInstance/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs index 323151aeb5eb..df738d7a7cd1 100644 --- a/src/ContainerInstance/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs +++ b/src/ContainerInstance/generated/cmdlets/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs @@ -87,9 +87,10 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global:: public string ContainerName { get => this._containerName; set => this._containerName = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs b/src/ContainerInstance/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs index fc15ce37f811..f3dc0cfd6d41 100644 --- a/src/ContainerInstance/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs +++ b/src/ContainerInstance/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs @@ -74,9 +74,10 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainer[] Container { get => _containerGroupBody.Container ?? null /* arrayOf */; set => _containerGroupBody.Container = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_Delete.cs b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_Delete.cs index 8ad7ce66928b..25c525f6527b 100644 --- a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_Delete.cs +++ b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_Delete.cs @@ -50,9 +50,10 @@ public partial class RemoveAzContainerGroup_Delete : global::System.Management.A public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs index a4ad92453be1..83a3b1d5999b 100644 --- a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerGroup_DeleteViaIdentity.cs @@ -50,9 +50,10 @@ public partial class RemoveAzContainerGroup_DeleteViaIdentity : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs index 412068ad80ed..67e0caa4ed03 100644 --- a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs +++ b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_Delete.cs @@ -50,9 +50,10 @@ public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delet public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs index f0a2c4059d3a..4c740e9f636e 100644 --- a/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/RemoveAzContainerInstanceSubnetServiceAssociationLink_DeleteViaIdentity.cs @@ -50,9 +50,10 @@ public partial class RemoveAzContainerInstanceSubnetServiceAssociationLink_Delet public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_Restart.cs b/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_Restart.cs index d097eba9362f..6114733618c2 100644 --- a/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_Restart.cs +++ b/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_Restart.cs @@ -49,9 +49,10 @@ public partial class RestartAzContainerGroup_Restart : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs index 1e525e8b1c7c..96dbce9f73e8 100644 --- a/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/RestartAzContainerGroup_RestartViaIdentity.cs @@ -49,9 +49,10 @@ public partial class RestartAzContainerGroup_RestartViaIdentity : global::System public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_Start.cs b/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_Start.cs index d598dd0e999e..09511de53b5f 100644 --- a/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_Start.cs +++ b/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_Start.cs @@ -49,9 +49,10 @@ public partial class StartAzContainerGroup_Start : global::System.Management.Aut public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs index 4a0b6d1ca0eb..f35d1defbcc9 100644 --- a/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/StartAzContainerGroup_StartViaIdentity.cs @@ -49,9 +49,10 @@ public partial class StartAzContainerGroup_StartViaIdentity : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_Stop.cs b/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_Stop.cs index 1bdd14d3215c..d4b85a044f94 100644 --- a/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_Stop.cs +++ b/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_Stop.cs @@ -44,9 +44,10 @@ public partial class StopAzContainerGroup_Stop : global::System.Management.Autom public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs b/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs index 19067ab51571..1b7795206f4a 100644 --- a/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs +++ b/src/ContainerInstance/generated/cmdlets/StopAzContainerGroup_StopViaIdentity.cs @@ -44,9 +44,10 @@ public partial class StopAzContainerGroup_StopViaIdentity : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs b/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs index a9aa0ff44fd4..099ffb83a557 100644 --- a/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs +++ b/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateExpanded.cs @@ -45,9 +45,10 @@ public partial class UpdateAzContainerGroup_UpdateExpanded : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs b/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs index 1ed139b57118..ae07caa772d8 100644 --- a/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs +++ b/src/ContainerInstance/generated/cmdlets/UpdateAzContainerGroup_UpdateViaIdentityExpanded.cs @@ -45,9 +45,10 @@ public partial class UpdateAzContainerGroup_UpdateViaIdentityExpanded : global:: public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ContainerInstance Client => Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ParameterCategory.Azure)] diff --git a/src/ContainerInstance/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/ContainerInstance/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index eb1aca5bb83a..4e9338827255 100644 --- a/src/ContainerInstance/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/ContainerInstance/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -199,7 +199,7 @@ private string GetTelemetry() { return $@" {Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() {Indent}{Indent}}} {Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId {Indent}{Indent}if ($preTelemetryId -eq '') {{ diff --git a/src/ContainerInstance/generated/runtime/MessageAttribute.cs b/src/ContainerInstance/generated/runtime/MessageAttribute.cs index 3e474fd27ab7..e51d539ff396 100644 --- a/src/ContainerInstance/generated/runtime/MessageAttribute.cs +++ b/src/ContainerInstance/generated/runtime/MessageAttribute.cs @@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } - public bool DeprecateByVersionSet { get; } = false; + public string DeprecateByAzVersion { get; } //The date on which the change comes in effect public DateTime ChangeInEfectByDate { get; } @@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute //New way fo calling the cmdlet public string NewWay { get; set; } - public GenericBreakingChangeAttribute(string message) - { - _message = message; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) { _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; } - public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) { _message = message; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; + this.DeprecateByAzVersion = deprecateByAzVersion; if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) { @@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput) writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); } - if (DeprecateByVersionSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); - } + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute public string ReplacementCmdletName { get; set; } - public CmdletBreakingChangeAttribute() : - base(string.Empty) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { } - public CmdletBreakingChangeAttribute(string deprecateByVersione) : - base(string.Empty, deprecateByVersione) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { } @@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage() public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute { public string[] ChangedParameterSet { set; get; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : - base(string.Empty) - { - ChangedParameterSet = changedParameterSet; - } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : - base(string.Empty, deprecateByVersione) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { ChangedParameterSet = changedParameterSet; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { ChangedParameterSet = changedParameterSet; } @@ -219,20 +202,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute public String NewParameterType { get; set; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : - base(string.Empty) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.NameOfParameterChanging = nameOfParameterChanging; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.NameOfParameterChanging = nameOfParameterChanging; } @@ -298,20 +275,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute public string[] NewOutputProperties { get; set; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : - base(string.Empty) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } diff --git a/src/ContainerInstance/generated/runtime/MessageAttributeHelper.cs b/src/ContainerInstance/generated/runtime/MessageAttributeHelper.cs index 234c9bd15a53..564ae92da383 100644 --- a/src/ContainerInstance/generated/runtime/MessageAttributeHelper.cs +++ b/src/ContainerInstance/generated/runtime/MessageAttributeHelper.cs @@ -23,6 +23,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime using System.Threading.Tasks; public class MessageAttributeHelper { + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; @@ -52,7 +53,10 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv //Do not process the attributes at runtime... The env variable to override the warning messages is set return; } - + if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) + { + psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); + } List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); Action appendBreakingChangeInfo = (string s) => sb.Append(s); diff --git a/src/ContainerInstance/generated/runtime/Properties/Resources.Designer.cs b/src/ContainerInstance/generated/runtime/Properties/Resources.Designer.cs index 15054bc2c43a..fcacd07025bf 100644 --- a/src/ContainerInstance/generated/runtime/Properties/Resources.Designer.cs +++ b/src/ContainerInstance/generated/runtime/Properties/Resources.Designer.cs @@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage } /// - /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' /// ///. /// @@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion } } + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to ```powershell ///# Old @@ -5630,4 +5643,4 @@ public static string YesHint } } } -} +} \ No newline at end of file diff --git a/src/ContainerInstance/generated/runtime/Properties/Resources.resx b/src/ContainerInstance/generated/runtime/Properties/Resources.resx index 598cd53e958a..613700a3a418 100644 --- a/src/ContainerInstance/generated/runtime/Properties/Resources.resx +++ b/src/ContainerInstance/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from the version : '{0}' +- The change is expected to take effect from version : '{0}' ```powershell @@ -1738,4 +1738,7 @@ Note : Go to {0} for steps to suppress this breaking change warning, and other i This cmdlet is in preview. The functionality may not be available in the selected subscription. + + - The change is expected to take effect from Az version : '{0}' + \ No newline at end of file diff --git a/src/ContainerInstance/help/Add-AzContainerInstanceOutput.md b/src/ContainerInstance/help/Add-AzContainerInstanceOutput.md index 1967ff3c87cb..3c5c7b2ff314 100644 --- a/src/ContainerInstance/help/Add-AzContainerInstanceOutput.md +++ b/src/ContainerInstance/help/Add-AzContainerInstanceOutput.md @@ -40,7 +40,8 @@ Please send `Password` as an Authorization header value when connecting to the ` ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Get-AzContainerGroup.md b/src/ContainerInstance/help/Get-AzContainerGroup.md index eaebc815dc5b..5155b60effa9 100644 --- a/src/ContainerInstance/help/Get-AzContainerGroup.md +++ b/src/ContainerInstance/help/Get-AzContainerGroup.md @@ -144,7 +144,8 @@ The command gets the updated container group by piping. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md b/src/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md index 06171dc2fb50..3d0931b6fe78 100644 --- a/src/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md +++ b/src/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md @@ -41,7 +41,8 @@ This command gets the list of cached images for the current subscription in the ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Get-AzContainerInstanceCapability.md b/src/ContainerInstance/help/Get-AzContainerInstanceCapability.md index d50868b1a982..e3dd9cf2cfc9 100644 --- a/src/ContainerInstance/help/Get-AzContainerInstanceCapability.md +++ b/src/ContainerInstance/help/Get-AzContainerInstanceCapability.md @@ -45,7 +45,8 @@ This command gets the list of CPU/memory/GPU capabilities of the region `eastus` ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md b/src/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md index 03de7fcfa494..7822f1a2d59a 100644 --- a/src/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md +++ b/src/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md @@ -61,7 +61,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Get-AzContainerInstanceLog.md b/src/ContainerInstance/help/Get-AzContainerInstanceLog.md index 8038ceb82b35..b4c398f9bbc2 100644 --- a/src/ContainerInstance/help/Get-AzContainerInstanceLog.md +++ b/src/ContainerInstance/help/Get-AzContainerInstanceLog.md @@ -86,7 +86,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Get-AzContainerInstanceUsage.md b/src/ContainerInstance/help/Get-AzContainerInstanceUsage.md index 61eeca8a8950..e60a007eee8a 100644 --- a/src/ContainerInstance/help/Get-AzContainerInstanceUsage.md +++ b/src/ContainerInstance/help/Get-AzContainerInstanceUsage.md @@ -44,7 +44,8 @@ Get the usage for the current subscription in the region `eastus`. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Remove-AzContainerGroup.md b/src/ContainerInstance/help/Remove-AzContainerGroup.md index 448c501babf9..1f66c5a759f0 100644 --- a/src/ContainerInstance/help/Remove-AzContainerGroup.md +++ b/src/ContainerInstance/help/Remove-AzContainerGroup.md @@ -75,7 +75,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md b/src/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md index 8fe2975ac923..540eb4411014 100644 --- a/src/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md +++ b/src/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md @@ -57,7 +57,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Restart-AzContainerGroup.md b/src/ContainerInstance/help/Restart-AzContainerGroup.md index fa9bc5a446ae..12a0c622ce28 100644 --- a/src/ContainerInstance/help/Restart-AzContainerGroup.md +++ b/src/ContainerInstance/help/Restart-AzContainerGroup.md @@ -63,7 +63,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Start-AzContainerGroup.md b/src/ContainerInstance/help/Start-AzContainerGroup.md index a817cc5a09d5..0aa28aea3e1f 100644 --- a/src/ContainerInstance/help/Start-AzContainerGroup.md +++ b/src/ContainerInstance/help/Start-AzContainerGroup.md @@ -63,7 +63,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Stop-AzContainerGroup.md b/src/ContainerInstance/help/Stop-AzContainerGroup.md index 1c2dfcfcd833..d75cbb99ecd6 100644 --- a/src/ContainerInstance/help/Stop-AzContainerGroup.md +++ b/src/ContainerInstance/help/Stop-AzContainerGroup.md @@ -49,7 +49,8 @@ This command stops all containers in a container group by piping. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/help/Update-AzContainerGroup.md b/src/ContainerInstance/help/Update-AzContainerGroup.md index dce0a34ac714..7c17d1c089e9 100644 --- a/src/ContainerInstance/help/Update-AzContainerGroup.md +++ b/src/ContainerInstance/help/Update-AzContainerGroup.md @@ -63,7 +63,8 @@ This command updates a container group using pipeing. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/ContainerInstance/how-to.md b/src/ContainerInstance/how-to.md index 8724e80de644..222856e60133 100644 --- a/src/ContainerInstance/how-to.md +++ b/src/ContainerInstance/how-to.md @@ -14,7 +14,7 @@ To generate documentation, the process is now integrated into the `build-module. To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. ## Packing `Az.ContainerInstance` -To pack `Az.ContainerInstance` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +To pack `Az.ContainerInstance` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details There are multiple scripts created for performing different actions for developing `Az.ContainerInstance`. diff --git a/src/ContainerInstance/internal/Get-AzContainerInstanceOperation.ps1 b/src/ContainerInstance/internal/Get-AzContainerInstanceOperation.ps1 index 85ffef48d50e..9297b20d25ba 100644 --- a/src/ContainerInstance/internal/Get-AzContainerInstanceOperation.ps1 +++ b/src/ContainerInstance/internal/Get-AzContainerInstanceOperation.ps1 @@ -38,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ContainerInstance/internal/Invoke-AzContainerInstanceCommand.ps1 b/src/ContainerInstance/internal/Invoke-AzContainerInstanceCommand.ps1 index dc8c7153db7d..6db415ab0483 100644 --- a/src/ContainerInstance/internal/Invoke-AzContainerInstanceCommand.ps1 +++ b/src/ContainerInstance/internal/Invoke-AzContainerInstanceCommand.ps1 @@ -82,7 +82,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/ContainerInstance/internal/New-AzContainerGroup.ps1 b/src/ContainerInstance/internal/New-AzContainerGroup.ps1 index 501bd82c930b..67fb15f33aac 100644 --- a/src/ContainerInstance/internal/New-AzContainerGroup.ps1 +++ b/src/ContainerInstance/internal/New-AzContainerGroup.ps1 @@ -417,7 +417,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/ContainerInstance/internal/ProxyCmdletDefinitions.ps1 b/src/ContainerInstance/internal/ProxyCmdletDefinitions.ps1 index 89109592d648..e90f7dc46acd 100644 --- a/src/ContainerInstance/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ContainerInstance/internal/ProxyCmdletDefinitions.ps1 @@ -38,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -191,7 +192,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -695,7 +697,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/ContainerInstance/internal/README.md b/src/ContainerInstance/internal/README.md index fef7cb2848ff..56e6c876b380 100644 --- a/src/ContainerInstance/internal/README.md +++ b/src/ContainerInstance/internal/README.md @@ -8,7 +8,7 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that - Packaged: yes ## Details -The `Az.ContainerInstance.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.ContainerInstance`. Instead, this sub-module is imported by the `..\custom\Az.ContainerInstance.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.ContainerInstance.internal\Get-Example` would call an internal cmdlet named `Get-Example`. +The `Az.ContainerInstance.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.ContainerInstance`. Instead, this sub-module is imported by the `..\custom\Az.ContainerInstance.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.ContainerInstance.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.ContainerInstance`.