From b66c5bcfa2006578f4f76c8eccc9213752cd4650 Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Thu, 20 Nov 2025 02:50:54 +0000
Subject: [PATCH] [skip ci] Archive aac3a0300263a5c371e5a4ab15388d46e6da2ef5
---
.../Az.DisconnectedOperations.csproj | 11 +
.../Az.DisconnectedOperations.format.ps1xml | 965 +++
.../Az.DisconnectedOperations.psd1 | 23 +
.../Az.DisconnectedOperations.psm1 | 119 +
.../Properties/AssemblyInfo.cs | 29 +
.../check-dependencies.ps1 | 65 +
.../Get-AzDisconnectedOperationsArtifact.ps1 | 296 +
...connectedOperationsArtifactDownloadUri.ps1 | 211 +
...nnectedOperationsDisconnectedOperation.ps1 | 236 +
...isconnectedOperationDeploymentManifest.ps1 | 199 +
.../Get-AzDisconnectedOperationsImage.ps1 | 281 +
...DisconnectedOperationsImageDownloadUri.ps1 | 205 +
...nnectedOperationsDisconnectedOperation.ps1 | 249 +
.../exports/ProxyCmdletDefinitions.ps1 | 2086 ++++++
.../exports/README.md | 20 +
...nnectedOperationsDisconnectedOperation.ps1 | 246 +
...nnectedOperationsDisconnectedOperation.ps1 | 283 +
.../generate-info.json | 3 +
.../generated/Module.cs | 200 +
.../api/DisconnectedOperationsService.cs | 4751 ++++++++++++++
.../generated/api/Models/Any.PowerShell.cs | 154 +
.../generated/api/Models/Any.TypeConverter.cs | 144 +
.../generated/api/Models/Any.cs | 32 +
.../generated/api/Models/Any.json.cs | 104 +
.../api/Models/Artifact.PowerShell.cs | 282 +
.../api/Models/Artifact.TypeConverter.cs | 144 +
.../generated/api/Models/Artifact.cs | 245 +
.../generated/api/Models/Artifact.json.cs | 108 +
.../ArtifactDownloadResult.PowerShell.cs | 210 +
.../ArtifactDownloadResult.TypeConverter.cs | 145 +
.../api/Models/ArtifactDownloadResult.cs | 195 +
.../api/Models/ArtifactDownloadResult.json.cs | 139 +
.../Models/ArtifactListResult.PowerShell.cs | 170 +
.../ArtifactListResult.TypeConverter.cs | 145 +
.../api/Models/ArtifactListResult.cs | 72 +
.../api/Models/ArtifactListResult.json.cs | 116 +
.../Models/ArtifactProperties.PowerShell.cs | 194 +
.../ArtifactProperties.TypeConverter.cs | 145 +
.../api/Models/ArtifactProperties.cs | 149 +
.../api/Models/ArtifactProperties.json.cs | 129 +
.../DisconnectedOperation.PowerShell.cs | 314 +
.../DisconnectedOperation.TypeConverter.cs | 145 +
.../api/Models/DisconnectedOperation.cs | 290 +
.../api/Models/DisconnectedOperation.json.cs | 108 +
...dOperationDeploymentManifest.PowerShell.cs | 215 +
...erationDeploymentManifest.TypeConverter.cs | 149 +
...DisconnectedOperationDeploymentManifest.cs | 195 +
...nnectedOperationDeploymentManifest.json.cs | 141 +
...connectedOperationListResult.PowerShell.cs | 172 +
...nectedOperationListResult.TypeConverter.cs | 146 +
.../Models/DisconnectedOperationListResult.cs | 72 +
.../DisconnectedOperationListResult.json.cs | 116 +
...connectedOperationProperties.PowerShell.cs | 212 +
...nectedOperationProperties.TypeConverter.cs | 146 +
.../Models/DisconnectedOperationProperties.cs | 192 +
.../DisconnectedOperationProperties.json.cs | 136 +
.../DisconnectedOperationUpdate.PowerShell.cs | 196 +
...sconnectedOperationUpdate.TypeConverter.cs | 145 +
.../api/Models/DisconnectedOperationUpdate.cs | 119 +
.../DisconnectedOperationUpdate.json.cs | 108 +
...tedOperationUpdateProperties.PowerShell.cs | 183 +
...OperationUpdateProperties.TypeConverter.cs | 148 +
.../DisconnectedOperationUpdateProperties.cs | 96 +
...connectedOperationUpdateProperties.json.cs | 117 +
...connectedOperationUpdateTags.PowerShell.cs | 160 +
...nectedOperationUpdateTags.TypeConverter.cs | 146 +
.../Models/DisconnectedOperationUpdateTags.cs | 33 +
...connectedOperationUpdateTags.dictionary.cs | 73 +
.../DisconnectedOperationUpdateTags.json.cs | 107 +
...sconnectedOperationsIdentity.PowerShell.cs | 202 +
...nnectedOperationsIdentity.TypeConverter.cs | 156 +
.../Models/DisconnectedOperationsIdentity.cs | 149 +
.../DisconnectedOperationsIdentity.json.cs | 115 +
.../Models/ErrorAdditionalInfo.PowerShell.cs | 170 +
.../ErrorAdditionalInfo.TypeConverter.cs | 145 +
.../api/Models/ErrorAdditionalInfo.cs | 78 +
.../api/Models/ErrorAdditionalInfo.json.cs | 114 +
.../api/Models/ErrorDetail.PowerShell.cs | 194 +
.../api/Models/ErrorDetail.TypeConverter.cs | 145 +
.../generated/api/Models/ErrorDetail.cs | 147 +
.../generated/api/Models/ErrorDetail.json.cs | 145 +
.../api/Models/ErrorResponse.PowerShell.cs | 204 +
.../api/Models/ErrorResponse.TypeConverter.cs | 145 +
.../generated/api/Models/ErrorResponse.cs | 146 +
.../api/Models/ErrorResponse.json.cs | 108 +
.../generated/api/Models/Image.PowerShell.cs | 298 +
.../api/Models/Image.TypeConverter.cs | 144 +
.../generated/api/Models/Image.cs | 287 +
.../generated/api/Models/Image.json.cs | 108 +
.../Models/ImageDownloadResult.PowerShell.cs | 234 +
.../ImageDownloadResult.TypeConverter.cs | 145 +
.../api/Models/ImageDownloadResult.cs | 266 +
.../api/Models/ImageDownloadResult.json.cs | 162 +
.../api/Models/ImageListResult.PowerShell.cs | 170 +
.../Models/ImageListResult.TypeConverter.cs | 145 +
.../generated/api/Models/ImageListResult.cs | 72 +
.../api/Models/ImageListResult.json.cs | 116 +
.../api/Models/ImageProperties.PowerShell.cs | 210 +
.../Models/ImageProperties.TypeConverter.cs | 145 +
.../generated/api/Models/ImageProperties.cs | 197 +
.../api/Models/ImageProperties.json.cs | 147 +
.../api/Models/ProxyResource.PowerShell.cs | 236 +
.../api/Models/ProxyResource.TypeConverter.cs | 145 +
.../generated/api/Models/ProxyResource.cs | 129 +
.../api/Models/ProxyResource.json.cs | 108 +
.../api/Models/Resource.PowerShell.cs | 236 +
.../api/Models/Resource.TypeConverter.cs | 144 +
.../generated/api/Models/Resource.cs | 255 +
.../generated/api/Models/Resource.json.cs | 126 +
.../api/Models/SystemData.PowerShell.cs | 202 +
.../api/Models/SystemData.TypeConverter.cs | 144 +
.../generated/api/Models/SystemData.cs | 156 +
.../generated/api/Models/SystemData.json.cs | 116 +
.../api/Models/TrackedResource.PowerShell.cs | 252 +
.../Models/TrackedResource.TypeConverter.cs | 145 +
.../generated/api/Models/TrackedResource.cs | 169 +
.../api/Models/TrackedResource.json.cs | 115 +
.../Models/TrackedResourceTags.PowerShell.cs | 158 +
.../TrackedResourceTags.TypeConverter.cs | 145 +
.../api/Models/TrackedResourceTags.cs | 33 +
.../Models/TrackedResourceTags.dictionary.cs | 73 +
.../api/Models/TrackedResourceTags.json.cs | 107 +
...ectedOperationsArtifactDownloadUri_List.cs | 536 ++
...GetAzDisconnectedOperationsArtifact_Get.cs | 533 ++
...nectedOperationsArtifact_GetViaIdentity.cs | 491 ++
...act_GetViaIdentityDisconnectedOperation.cs | 513 ++
...dOperationsArtifact_GetViaIdentityImage.cs | 502 ++
...etAzDisconnectedOperationsArtifact_List.cs | 546 ++
...nnectedOperationDeploymentManifest_List.cs | 509 ++
...ctedOperationsDisconnectedOperation_Get.cs | 505 ++
...onsDisconnectedOperation_GetViaIdentity.cs | 484 ++
...tedOperationsDisconnectedOperation_List.cs | 518 ++
...edOperationsDisconnectedOperation_List1.cs | 504 ++
...onnectedOperationsImageDownloadUri_List.cs | 522 ++
.../GetAzDisconnectedOperationsImage_Get.cs | 519 ++
...connectedOperationsImage_GetViaIdentity.cs | 487 ++
...age_GetViaIdentityDisconnectedOperation.cs | 499 ++
.../GetAzDisconnectedOperationsImage_List.cs | 574 ++
...onsDisconnectedOperation_CreateExpanded.cs | 598 ++
...onnectedOperation_CreateViaJsonFilePath.cs | 576 ++
...sconnectedOperation_CreateViaJsonString.cs | 574 ++
...dOperationsDisconnectedOperation_Delete.cs | 596 ++
...DisconnectedOperation_DeleteViaIdentity.cs | 575 ++
...onsDisconnectedOperation_UpdateExpanded.cs | 556 ++
...ctedOperation_UpdateViaIdentityExpanded.cs | 537 ++
...onnectedOperation_UpdateViaJsonFilePath.cs | 522 ++
...sconnectedOperation_UpdateViaJsonString.cs | 520 ++
.../generated/runtime/AsyncCommandRuntime.cs | 832 +++
.../generated/runtime/AsyncJob.cs | 270 +
.../runtime/AsyncOperationResponse.cs | 176 +
.../Attributes/ExternalDocsAttribute.cs | 30 +
.../PSArgumentCompleterAttribute.cs | 52 +
.../BuildTime/Cmdlets/ExportCmdletSurface.cs | 113 +
.../BuildTime/Cmdlets/ExportExampleStub.cs | 74 +
.../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 103 +
.../BuildTime/Cmdlets/ExportHelpMarkdown.cs | 56 +
.../BuildTime/Cmdlets/ExportModelSurface.cs | 117 +
.../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 180 +
.../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 193 +
.../BuildTime/Cmdlets/ExportTestStub.cs | 197 +
.../BuildTime/Cmdlets/GetCommonParameter.cs | 52 +
.../BuildTime/Cmdlets/GetModuleGuid.cs | 31 +
.../BuildTime/Cmdlets/GetScriptCmdlet.cs | 54 +
.../runtime/BuildTime/CollectionExtensions.cs | 20 +
.../runtime/BuildTime/MarkdownRenderer.cs | 122 +
.../runtime/BuildTime/Models/PsFormatTypes.cs | 138 +
.../BuildTime/Models/PsHelpMarkdownOutputs.cs | 199 +
.../runtime/BuildTime/Models/PsHelpTypes.cs | 211 +
.../BuildTime/Models/PsMarkdownTypes.cs | 329 +
.../BuildTime/Models/PsProxyOutputs.cs | 681 ++
.../runtime/BuildTime/Models/PsProxyTypes.cs | 549 ++
.../runtime/BuildTime/PsAttributes.cs | 136 +
.../runtime/BuildTime/PsExtensions.cs | 176 +
.../generated/runtime/BuildTime/PsHelpers.cs | 105 +
.../runtime/BuildTime/StringExtensions.cs | 24 +
.../runtime/BuildTime/XmlExtensions.cs | 28 +
.../generated/runtime/CmdInfoHandler.cs | 40 +
.../generated/runtime/Context.cs | 33 +
.../Conversions/ConversionException.cs | 17 +
.../runtime/Conversions/IJsonConverter.cs | 13 +
.../Conversions/Instances/BinaryConverter.cs | 24 +
.../Conversions/Instances/BooleanConverter.cs | 13 +
.../Instances/DateTimeConverter.cs | 18 +
.../Instances/DateTimeOffsetConverter.cs | 15 +
.../Conversions/Instances/DecimalConverter.cs | 16 +
.../Conversions/Instances/DoubleConverter.cs | 13 +
.../Conversions/Instances/EnumConverter.cs | 30 +
.../Conversions/Instances/GuidConverter.cs | 15 +
.../Instances/HashSet'1Converter.cs | 27 +
.../Conversions/Instances/Int16Converter.cs | 13 +
.../Conversions/Instances/Int32Converter.cs | 13 +
.../Conversions/Instances/Int64Converter.cs | 13 +
.../Instances/JsonArrayConverter.cs | 13 +
.../Instances/JsonObjectConverter.cs | 13 +
.../Conversions/Instances/SingleConverter.cs | 13 +
.../Conversions/Instances/StringConverter.cs | 13 +
.../Instances/TimeSpanConverter.cs | 15 +
.../Conversions/Instances/UInt16Converter.cs | 13 +
.../Conversions/Instances/UInt32Converter.cs | 13 +
.../Conversions/Instances/UInt64Converter.cs | 13 +
.../Conversions/Instances/UriConverter.cs | 15 +
.../runtime/Conversions/JsonConverter.cs | 21 +
.../Conversions/JsonConverterAttribute.cs | 18 +
.../Conversions/JsonConverterFactory.cs | 91 +
.../Conversions/StringLikeConverter.cs | 45 +
.../Customizations/IJsonSerializable.cs | 263 +
.../runtime/Customizations/JsonArray.cs | 13 +
.../runtime/Customizations/JsonBoolean.cs | 16 +
.../runtime/Customizations/JsonNode.cs | 21 +
.../runtime/Customizations/JsonNumber.cs | 78 +
.../runtime/Customizations/JsonObject.cs | 183 +
.../runtime/Customizations/JsonString.cs | 34 +
.../runtime/Customizations/XNodeArray.cs | 44 +
.../generated/runtime/Debugging.cs | 28 +
.../generated/runtime/DictionaryExtensions.cs | 33 +
.../generated/runtime/EventData.cs | 78 +
.../generated/runtime/EventDataExtensions.cs | 94 +
.../generated/runtime/EventListener.cs | 247 +
.../generated/runtime/Events.cs | 27 +
.../generated/runtime/EventsExtensions.cs | 27 +
.../generated/runtime/Extensions.cs | 117 +
.../Extensions/StringBuilderExtensions.cs | 23 +
.../Helpers/Extensions/TypeExtensions.cs | 61 +
.../generated/runtime/Helpers/Seperator.cs | 11 +
.../generated/runtime/Helpers/TypeDetails.cs | 116 +
.../generated/runtime/Helpers/XHelper.cs | 75 +
.../generated/runtime/HttpPipeline.cs | 88 +
.../generated/runtime/HttpPipelineMocking.ps1 | 110 +
.../generated/runtime/IAssociativeArray.cs | 24 +
.../generated/runtime/IHeaderSerializable.cs | 14 +
.../generated/runtime/ISendAsync.cs | 413 ++
.../generated/runtime/InfoAttribute.cs | 38 +
.../generated/runtime/InputHandler.cs | 22 +
.../generated/runtime/Iso/IsoDate.cs | 214 +
.../generated/runtime/JsonType.cs | 18 +
.../generated/runtime/MessageAttribute.cs | 353 +
.../runtime/MessageAttributeHelper.cs | 184 +
.../generated/runtime/Method.cs | 19 +
.../generated/runtime/Models/JsonMember.cs | 83 +
.../generated/runtime/Models/JsonModel.cs | 89 +
.../runtime/Models/JsonModelCache.cs | 19 +
.../runtime/Nodes/Collections/JsonArray.cs | 65 +
.../Nodes/Collections/XImmutableArray.cs | 62 +
.../runtime/Nodes/Collections/XList.cs | 64 +
.../runtime/Nodes/Collections/XNodeArray.cs | 73 +
.../runtime/Nodes/Collections/XSet.cs | 60 +
.../generated/runtime/Nodes/JsonBoolean.cs | 42 +
.../generated/runtime/Nodes/JsonDate.cs | 173 +
.../generated/runtime/Nodes/JsonNode.cs | 250 +
.../generated/runtime/Nodes/JsonNumber.cs | 109 +
.../generated/runtime/Nodes/JsonObject.cs | 172 +
.../generated/runtime/Nodes/JsonString.cs | 42 +
.../generated/runtime/Nodes/XBinary.cs | 40 +
.../generated/runtime/Nodes/XNull.cs | 15 +
.../Parser/Exceptions/ParseException.cs | 24 +
.../generated/runtime/Parser/JsonParser.cs | 180 +
.../generated/runtime/Parser/JsonToken.cs | 66 +
.../generated/runtime/Parser/JsonTokenizer.cs | 177 +
.../generated/runtime/Parser/Location.cs | 43 +
.../runtime/Parser/Readers/SourceReader.cs | 130 +
.../generated/runtime/Parser/TokenReader.cs | 39 +
.../generated/runtime/PipelineMocking.cs | 262 +
.../runtime/Properties/Resources.Designer.cs | 5655 +++++++++++++++++
.../runtime/Properties/Resources.resx | 1747 +++++
.../generated/runtime/Response.cs | 27 +
.../runtime/Serialization/JsonSerializer.cs | 350 +
.../Serialization/PropertyTransformation.cs | 21 +
.../Serialization/SerializationOptions.cs | 65 +
.../generated/runtime/SerializationMode.cs | 18 +
.../runtime/TypeConverterExtensions.cs | 261 +
.../runtime/UndeclaredResponseException.cs | 112 +
.../generated/runtime/Writers/JsonWriter.cs | 223 +
.../generated/runtime/delegates.cs | 23 +
.../Az.DisconnectedOperations.internal.psm1 | 38 +
.../internal/README.md | 14 +
.../resources/README.md | 11 +
.../test-module.ps1 | 98 +
277 files changed, 59464 insertions(+)
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.csproj
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.format.ps1xml
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psd1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psm1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/Properties/AssemblyInfo.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/check-dependencies.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifact.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifactDownloadUri.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperation.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImage.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImageDownloadUri.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/New-AzDisconnectedOperationsDisconnectedOperation.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/ProxyCmdletDefinitions.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/README.md
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Remove-AzDisconnectedOperationsDisconnectedOperation.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Update-AzDisconnectedOperationsDisconnectedOperation.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generate-info.json
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/Module.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/DisconnectedOperationsService.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Any.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Any.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Any.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Any.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Artifact.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Artifact.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Artifact.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Artifact.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactDownloadResult.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactDownloadResult.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactDownloadResult.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactDownloadResult.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactListResult.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactListResult.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactListResult.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactListResult.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactProperties.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactProperties.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactProperties.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ArtifactProperties.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperation.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperation.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperation.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperation.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationDeploymentManifest.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationDeploymentManifest.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationDeploymentManifest.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationDeploymentManifest.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationListResult.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationListResult.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationListResult.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationListResult.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationProperties.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationProperties.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationProperties.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationProperties.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdate.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdate.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdate.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdate.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateProperties.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateProperties.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateProperties.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateProperties.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateTags.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateTags.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateTags.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateTags.dictionary.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationUpdateTags.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationsIdentity.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationsIdentity.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationsIdentity.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/DisconnectedOperationsIdentity.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorDetail.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorDetail.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorResponse.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ErrorResponse.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Image.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Image.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Image.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Image.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageDownloadResult.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageDownloadResult.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageDownloadResult.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageDownloadResult.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageListResult.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageListResult.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageListResult.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageListResult.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageProperties.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageProperties.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageProperties.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ImageProperties.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ProxyResource.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ProxyResource.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ProxyResource.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/ProxyResource.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Resource.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Resource.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Resource.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/Resource.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/SystemData.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/SystemData.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/SystemData.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/SystemData.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResource.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResource.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResource.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResource.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResourceTags.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/api/Models/TrackedResourceTags.json.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsArtifactDownloadUri_List.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsArtifact_Get.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsArtifact_GetViaIdentity.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsArtifact_GetViaIdentityDisconnectedOperation.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsArtifact_GetViaIdentityImage.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsArtifact_List.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsDisconnectedOperationDeploymentManifest_List.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsDisconnectedOperation_Get.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsDisconnectedOperation_GetViaIdentity.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsDisconnectedOperation_List.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsDisconnectedOperation_List1.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsImageDownloadUri_List.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsImage_Get.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsImage_GetViaIdentity.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsImage_GetViaIdentityDisconnectedOperation.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/GetAzDisconnectedOperationsImage_List.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/NewAzDisconnectedOperationsDisconnectedOperation_CreateExpanded.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/NewAzDisconnectedOperationsDisconnectedOperation_CreateViaJsonFilePath.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/NewAzDisconnectedOperationsDisconnectedOperation_CreateViaJsonString.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/RemoveAzDisconnectedOperationsDisconnectedOperation_Delete.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/RemoveAzDisconnectedOperationsDisconnectedOperation_DeleteViaIdentity.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/UpdateAzDisconnectedOperationsDisconnectedOperation_UpdateExpanded.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/UpdateAzDisconnectedOperationsDisconnectedOperation_UpdateViaIdentityExpanded.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/UpdateAzDisconnectedOperationsDisconnectedOperation_UpdateViaJsonFilePath.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/cmdlets/UpdateAzDisconnectedOperationsDisconnectedOperation_UpdateViaJsonString.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/AsyncCommandRuntime.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/AsyncJob.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/AsyncOperationResponse.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/PsAttributes.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/PsExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/PsHelpers.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/StringExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/BuildTime/XmlExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/CmdInfoHandler.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Context.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/ConversionException.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/IJsonConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/JsonConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Conversions/StringLikeConverter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/IJsonSerializable.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/JsonArray.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/JsonBoolean.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/JsonNode.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/JsonNumber.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/JsonObject.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/JsonString.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Customizations/XNodeArray.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Debugging.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/DictionaryExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/EventData.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/EventDataExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/EventListener.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Events.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/EventsExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Extensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Helpers/Seperator.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Helpers/TypeDetails.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Helpers/XHelper.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/HttpPipeline.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/HttpPipelineMocking.ps1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/IAssociativeArray.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/IHeaderSerializable.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/ISendAsync.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/InfoAttribute.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/InputHandler.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Iso/IsoDate.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/JsonType.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/MessageAttribute.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/MessageAttributeHelper.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Method.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Models/JsonMember.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Models/JsonModel.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Models/JsonModelCache.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/Collections/XList.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/Collections/XSet.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/JsonBoolean.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/JsonDate.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/JsonNode.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/JsonNumber.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/JsonObject.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/JsonString.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/XBinary.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Nodes/XNull.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/JsonParser.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/JsonToken.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/JsonTokenizer.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/Location.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/Readers/SourceReader.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Parser/TokenReader.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/PipelineMocking.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Properties/Resources.Designer.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Properties/Resources.resx
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Response.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Serialization/JsonSerializer.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Serialization/PropertyTransformation.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Serialization/SerializationOptions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/SerializationMode.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/TypeConverterExtensions.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/UndeclaredResponseException.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/Writers/JsonWriter.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/runtime/delegates.cs
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/internal/Az.DisconnectedOperations.internal.psm1
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/internal/README.md
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/resources/README.md
create mode 100644 generated/DisconnectedOperations/DisconnectedOperations.Autorest/test-module.ps1
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.csproj b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.csproj
new file mode 100644
index 000000000000..bdfcc0bc614f
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.csproj
@@ -0,0 +1,11 @@
+
+
+ DisconnectedOperations
+ DisconnectedOperations
+ DisconnectedOperations.Autorest
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations
+
+
+
+
+
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.format.ps1xml b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.format.ps1xml
new file mode 100644
index 000000000000..dd221fc2a07a
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.format.ps1xml
@@ -0,0 +1,965 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.Artifact
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.Artifact#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ArtifactDownloadResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ArtifactDownloadResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ArtifactOrder
+
+
+ Description
+
+
+ DownloadLink
+
+
+ LinkExpiry
+
+
+ ProvisioningState
+
+
+ Size
+
+
+ Title
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ArtifactListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ArtifactListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ArtifactProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ArtifactProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ArtifactOrder
+
+
+ Description
+
+
+ ProvisioningState
+
+
+ Size
+
+
+ Title
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperation
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperation#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationDeploymentManifest
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationDeploymentManifest#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BillingModel
+
+
+ Cloud
+
+
+ ConnectionIntent
+
+
+ Location
+
+
+ ResourceId
+
+
+ ResourceName
+
+
+ StampId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BillingModel
+
+
+ ConnectionIntent
+
+
+ ConnectionStatus
+
+
+ DeviceVersion
+
+
+ ProvisioningState
+
+
+ RegistrationStatus
+
+
+ StampId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationsIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationsIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ArtifactName
+
+
+ ImageName
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ConnectionIntent
+
+
+ DeviceVersion
+
+
+ RegistrationStatus
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationUpdateTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.DisconnectedOperationUpdateTags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ErrorDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ErrorDetail#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.Image
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.Image#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ImageDownloadResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ImageDownloadResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DownloadLink
+
+
+ LinkExpiry
+
+
+ ProvisioningState
+
+
+ ReleaseDate
+
+
+ ReleaseDisplayName
+
+
+ ReleaseNote
+
+
+ ReleaseType
+
+
+ ReleaseVersion
+
+
+ TransactionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ImageListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ImageListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ImageProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ImageProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+ ReleaseDate
+
+
+ ReleaseDisplayName
+
+
+ ReleaseNote
+
+
+ ReleaseType
+
+
+ ReleaseVersion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ProxyResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ProxyResource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.Resource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.SystemData#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.TrackedResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.TrackedResource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.TrackedResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.TrackedResourceTags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psd1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psd1
new file mode 100644
index 000000000000..36f557f80650
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psd1
@@ -0,0 +1,23 @@
+@{
+ GUID = '39527e8c-901e-4f93-9349-a8b5f7dc1e27'
+ RootModule = './Az.DisconnectedOperations.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: DisconnectedOperations cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.DisconnectedOperations.private.dll'
+ FormatsToProcess = './Az.DisconnectedOperations.format.ps1xml'
+ FunctionsToExport = 'Get-AzDisconnectedOperationsArtifact', 'Get-AzDisconnectedOperationsArtifactDownloadUri', 'Get-AzDisconnectedOperationsDisconnectedOperation', 'Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest', 'Get-AzDisconnectedOperationsImage', 'Get-AzDisconnectedOperationsImageDownloadUri', 'New-AzDisconnectedOperationsDisconnectedOperation', 'Remove-AzDisconnectedOperationsDisconnectedOperation', 'Update-AzDisconnectedOperationsDisconnectedOperation'
+ PrivateData = @{
+ PSData = @{
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DisconnectedOperations'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psm1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psm1
new file mode 100644
index 000000000000..63a4ab0b76a9
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Az.DisconnectedOperations.psm1
@@ -0,0 +1,119 @@
+# region Generated
+ # ----------------------------------------------------------------------------------
+ # Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+ # ----------------------------------------------------------------------------------
+ # Load required Az.Accounts module
+ $accountsName = 'Az.Accounts'
+ $accountsModule = Get-Module -Name $accountsName
+ if(-not $accountsModule) {
+ $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules'
+ if(Test-Path -Path $localAccountsPath) {
+ $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
+ if($localAccounts) {
+ $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
+ }
+ }
+ if(-not $accountsModule) {
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
+ if($hasAdequateVersion) {
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
+ }
+ }
+ }
+
+ if(-not $accountsModule) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ }
+ Write-Information "Loaded Module '$($accountsModule.Name)'"
+
+ # Load the private module dll
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.DisconnectedOperations.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Module]::Instance
+
+ # Ask for the shared functionality table
+ $VTable = Register-AzModule
+
+ # Tweaks the pipeline on module load
+ $instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
+
+ # Delegate to sanitize the output object
+ $instance.SanitizeOutput = $VTable.SanitizerHandler
+
+ # Delegate to get the telemetry info
+ $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
+
+ # Tweaks the pipeline per call
+ $instance.OnNewRequest = $VTable.OnNewRequest
+
+ # Gets shared parameter values
+ $instance.GetParameterValue = $VTable.GetParameterValue
+
+ # Allows shared module to listen to events from this module
+ $instance.EventListener = $VTable.EventListener
+
+ # Gets shared argument completers
+ $instance.ArgumentCompleter = $VTable.ArgumentCompleter
+
+ # The name of the currently selected Azure profile
+ $instance.ProfileName = $VTable.ProfileName
+
+ # Load the custom module
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.DisconnectedOperations.custom.psm1'
+ if(Test-Path $customModulePath) {
+ $null = Import-Module -Name $customModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export proxy cmdlet scripts
+ $exportsPath = Join-Path $PSScriptRoot './exports'
+ $directories = Get-ChildItem -Directory -Path $exportsPath
+ $profileDirectory = $null
+ if($instance.ProfileName) {
+ if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
+ $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
+ } else {
+ # Don't export anything if the profile doesn't exist for the module
+ $exportsPath = $null
+ Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
+ }
+ } elseif(($directories | Measure-Object).Count -gt 0) {
+ # Load the last folder if no profile is selected
+ $profileDirectory = $directories | Select-Object -Last 1
+ }
+
+ if($profileDirectory) {
+ Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
+ $exportsPath = $profileDirectory.FullName
+ }
+
+ if($exportsPath) {
+ Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
+ Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
+ }
+
+ # Finalize initialization of this module
+ $instance.Init();
+ Write-Information "Loaded Module '$($instance.Name)'"
+# endregion
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Properties/AssemblyInfo.cs b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..4eec872b9925
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/Properties/AssemblyInfo.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the Apache License, Version 2.0 (the ""License"");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an ""AS IS"" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+// is regenerated.
+
+using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DisconnectedOperationsService")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/check-dependencies.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/check-dependencies.ps1
new file mode 100644
index 000000000000..90ca9867ae40
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/check-dependencies.ps1
@@ -0,0 +1,65 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+$ErrorActionPreference = 'Stop'
+
+if(-not $NotIsolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
+ return
+}
+
+function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
+ if($predicate) {
+ $module = Get-Module -ListAvailable -Name $moduleName
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
+ $null = New-Item -ItemType Directory -Force -Path $path
+ Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
+ if ($requiredVersion) {
+ Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
+ }elseif($versionMinimum) {
+ Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
+ } else {
+ Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
+ }
+ }
+ }
+}
+
+$ProgressPreference = 'SilentlyContinue'
+$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
+
+$localModulesPath = Join-Path $PSScriptRoot 'generated\modules'
+if(Test-Path -Path $localModulesPath) {
+ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
+}
+
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
+DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
+
+$tools = Join-Path $PSScriptRoot 'tools'
+$resourceDir = Join-Path $tools 'Resources'
+$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
+
+if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
+ Write-Host -ForegroundColor Green "Building local Resource module used for test..."
+ Set-Location $resourceDir
+ $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
+ $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
+ Set-Location $HOME/.PSSharedModules/Resources
+ $null = .\build-module.ps1
+ Set-Location $PSScriptRoot
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifact.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifact.ps1
new file mode 100644
index 000000000000..639630573f33
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifact.ps1
@@ -0,0 +1,296 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get the resource
+.Description
+Get the resource
+.Example
+Get-AzDisconnectedOperationsArtifact -ImageName "default" -Name "disconnected-operation-name" -ResourceGroupName "my-resource-group"
+.Example
+Get-AzDisconnectedOperationsArtifact -ArtifactName "my-artifact" -ImageName "default" -Name "disconnected-operation-name" -ResourceGroupName "my-resource-group"
+.Example
+$disconnectedOperationsArtifact = @{
+ "ArtifactName" = "my-artifact";
+ "ImageName" = "default";
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsArtifact -InputObject $disconnectedOperationsArtifact
+.Example
+$disconnectedOperationsImage = @{
+ "ImageName" = "default";
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsArtifact -ArtifactName "my-artifact" -ImageInputObject $disconnectedOperationsImage
+.Example
+$disconnectedOperations = @{
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsArtifact -ArtifactName "my-artifact" -ImageName "default" -DisconnectedOperationInputObject $disconnectedOperations
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifact
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DISCONNECTEDOPERATIONINPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+IMAGEINPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsartifact
+#>
+function Get-AzDisconnectedOperationsArtifact {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifact])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityImage', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Artifact
+ ${ArtifactName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${DisconnectedOperationInputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityImage', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${ImageInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_Get';
+ GetViaIdentity = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_GetViaIdentity';
+ GetViaIdentityDisconnectedOperation = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_GetViaIdentityDisconnectedOperation';
+ GetViaIdentityImage = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_GetViaIdentityImage';
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifactDownloadUri.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifactDownloadUri.ps1
new file mode 100644
index 000000000000..84922989d290
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsArtifactDownloadUri.ps1
@@ -0,0 +1,211 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get artifact download link.
+.Description
+Get artifact download link.
+.Example
+Get-AzDisconnectedOperationsArtifactDownloadUri -ArtifactName "my-artifact" -ImageName "default" -Name "disconnected-operation-name" -ResourceGroupName "my-resource-group"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifactDownloadResult
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsartifactdownloaduri
+#>
+function Get-AzDisconnectedOperationsArtifactDownloadUri {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifactDownloadResult])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Artifact
+ ${ArtifactName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifactDownloadUri_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperation.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperation.ps1
new file mode 100644
index 000000000000..1665f0a2c2ec
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperation.ps1
@@ -0,0 +1,236 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get a DisconnectedOperation
+.Description
+Get a DisconnectedOperation
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperation
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+$disconnectedOperation = @{
+ "ResourceGroupName" = "ResourceGroup-1";
+ "DisconnectedOperationName" = "Resource-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsDisconnectedOperation -InputObject $disconnectedOperation
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperation -ResourceGroupName "ResourceGroup-1"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsdisconnectedoperation
+#>
+function Get-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_Get';
+ GetViaIdentity = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_GetViaIdentity';
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_List';
+ List1 = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest.ps1
new file mode 100644
index 000000000000..1fbb1a9cc3de
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest.ps1
@@ -0,0 +1,199 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get deployment manifest.
+.Description
+Get deployment manifest.
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationDeploymentManifest
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsdisconnectedoperationdeploymentmanifest
+#>
+function Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationDeploymentManifest])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImage.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImage.ps1
new file mode 100644
index 000000000000..692ffc063602
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImage.ps1
@@ -0,0 +1,281 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get the resource.
+.Description
+Get the resource.
+.Example
+Get-AzDisconnectedOperationsImage -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+Get-AzDisconnectedOperationsImage -ImageName "release-v2509" -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+$disconnectedOperationsImage = @{
+ "ImageName" = "default";
+ "Name" = "Resource-1";
+ "ResourceGroupName" = "ResourceGroup-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsImage -InputObject $disconnectedOperationsImage
+.Example
+$disconnectedOperations = @{
+ "Name" = "Resource-1";
+ "ResourceGroupName" = "ResourceGroup-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsImage -ImageName "default" -DisconnectedOperationInputObject $disconnectedOperations
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImage
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DISCONNECTEDOPERATIONINPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsimage
+#>
+function Get-AzDisconnectedOperationsImage {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImage])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${DisconnectedOperationInputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Query')]
+ [System.String]
+ # Filter the result list using the given expression.
+ ${Filter},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Query')]
+ [System.Int32]
+ # The number of result items to skip.
+ ${Skip},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Query')]
+ [System.Int32]
+ # The number of result items to return.
+ ${Top},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_Get';
+ GetViaIdentity = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_GetViaIdentity';
+ GetViaIdentityDisconnectedOperation = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_GetViaIdentityDisconnectedOperation';
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImageDownloadUri.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImageDownloadUri.ps1
new file mode 100644
index 000000000000..109493603e9e
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Get-AzDisconnectedOperationsImageDownloadUri.ps1
@@ -0,0 +1,205 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get the URI to download the image.
+.Description
+Get the URI to download the image.
+.Example
+Get-AzDisconnectedOperationsImageDownloadUri -ImageName "release-v2509" -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImageDownloadResult
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsimagedownloaduri
+#>
+function Get-AzDisconnectedOperationsImageDownloadUri {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImageDownloadResult])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImageDownloadUri_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/New-AzDisconnectedOperationsDisconnectedOperation.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/New-AzDisconnectedOperationsDisconnectedOperation.ps1
new file mode 100644
index 000000000000..d7abac29cb4b
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/New-AzDisconnectedOperationsDisconnectedOperation.ps1
@@ -0,0 +1,249 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a DisconnectedOperation
+.Description
+Create a DisconnectedOperation
+.Example
+New-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -Location "westus3" -ConnectionIntent "Disconnected" -Tag @{}
+.Example
+New-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonFilePath "path/to/jsonFiles/CreateDisconnectedOperations.json"
+.Example
+New-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonString '{"properties":{"connectionIntent":"Disconnected","billingModel":"Capacity"},"tags":{},"location":"westus3"}'
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/new-azdisconnectedoperationsdisconnectedoperation
+#>
+function New-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.PSArgumentCompleterAttribute("Connected", "Disconnected")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The connection intent
+ ${ConnectionIntent},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.DisconnectedOperations.private\New-AzDisconnectedOperationsDisconnectedOperation_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.DisconnectedOperations.private\New-AzDisconnectedOperationsDisconnectedOperation_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.DisconnectedOperations.private\New-AzDisconnectedOperationsDisconnectedOperation_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/ProxyCmdletDefinitions.ps1
new file mode 100644
index 000000000000..42310d37e3f7
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -0,0 +1,2086 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Get artifact download link.
+.Description
+Get artifact download link.
+.Example
+Get-AzDisconnectedOperationsArtifactDownloadUri -ArtifactName "my-artifact" -ImageName "default" -Name "disconnected-operation-name" -ResourceGroupName "my-resource-group"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifactDownloadResult
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsartifactdownloaduri
+#>
+function Get-AzDisconnectedOperationsArtifactDownloadUri {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifactDownloadResult])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Artifact
+ ${ArtifactName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifactDownloadUri_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Get the resource
+.Description
+Get the resource
+.Example
+Get-AzDisconnectedOperationsArtifact -ImageName "default" -Name "disconnected-operation-name" -ResourceGroupName "my-resource-group"
+.Example
+Get-AzDisconnectedOperationsArtifact -ArtifactName "my-artifact" -ImageName "default" -Name "disconnected-operation-name" -ResourceGroupName "my-resource-group"
+.Example
+$disconnectedOperationsArtifact = @{
+ "ArtifactName" = "my-artifact";
+ "ImageName" = "default";
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsArtifact -InputObject $disconnectedOperationsArtifact
+.Example
+$disconnectedOperationsImage = @{
+ "ImageName" = "default";
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsArtifact -ArtifactName "my-artifact" -ImageInputObject $disconnectedOperationsImage
+.Example
+$disconnectedOperations = @{
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsArtifact -ArtifactName "my-artifact" -ImageName "default" -DisconnectedOperationInputObject $disconnectedOperations
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifact
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DISCONNECTEDOPERATIONINPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+IMAGEINPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsartifact
+#>
+function Get-AzDisconnectedOperationsArtifact {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IArtifact])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityImage', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Artifact
+ ${ArtifactName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${DisconnectedOperationInputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityImage', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${ImageInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_Get';
+ GetViaIdentity = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_GetViaIdentity';
+ GetViaIdentityDisconnectedOperation = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_GetViaIdentityDisconnectedOperation';
+ GetViaIdentityImage = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_GetViaIdentityImage';
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsArtifact_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Get deployment manifest.
+.Description
+Get deployment manifest.
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationDeploymentManifest
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsdisconnectedoperationdeploymentmanifest
+#>
+function Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationDeploymentManifest])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperationDeploymentManifest_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Get a DisconnectedOperation
+.Description
+Get a DisconnectedOperation
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperation
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+$disconnectedOperation = @{
+ "ResourceGroupName" = "ResourceGroup-1";
+ "DisconnectedOperationName" = "Resource-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsDisconnectedOperation -InputObject $disconnectedOperation
+.Example
+Get-AzDisconnectedOperationsDisconnectedOperation -ResourceGroupName "ResourceGroup-1"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsdisconnectedoperation
+#>
+function Get-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_Get';
+ GetViaIdentity = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_GetViaIdentity';
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_List';
+ List1 = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsDisconnectedOperation_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Get the URI to download the image.
+.Description
+Get the URI to download the image.
+.Example
+Get-AzDisconnectedOperationsImageDownloadUri -ImageName "release-v2509" -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImageDownloadResult
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsimagedownloaduri
+#>
+function Get-AzDisconnectedOperationsImageDownloadUri {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImageDownloadResult])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImageDownloadUri_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Get the resource.
+.Description
+Get the resource.
+.Example
+Get-AzDisconnectedOperationsImage -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+Get-AzDisconnectedOperationsImage -ImageName "release-v2509" -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+$disconnectedOperationsImage = @{
+ "ImageName" = "default";
+ "Name" = "Resource-1";
+ "ResourceGroupName" = "ResourceGroup-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsImage -InputObject $disconnectedOperationsImage
+.Example
+$disconnectedOperations = @{
+ "Name" = "Resource-1";
+ "ResourceGroupName" = "ResourceGroup-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+Get-AzDisconnectedOperationsImage -ImageName "default" -DisconnectedOperationInputObject $disconnectedOperations
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImage
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DISCONNECTEDOPERATIONINPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/get-azdisconnectedoperationsimage
+#>
+function Get-AzDisconnectedOperationsImage {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IImage])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the Image
+ ${ImageName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityDisconnectedOperation', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${DisconnectedOperationInputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Query')]
+ [System.String]
+ # Filter the result list using the given expression.
+ ${Filter},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Query')]
+ [System.Int32]
+ # The number of result items to skip.
+ ${Skip},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Query')]
+ [System.Int32]
+ # The number of result items to return.
+ ${Top},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_Get';
+ GetViaIdentity = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_GetViaIdentity';
+ GetViaIdentityDisconnectedOperation = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_GetViaIdentityDisconnectedOperation';
+ List = 'Az.DisconnectedOperations.private\Get-AzDisconnectedOperationsImage_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Create a DisconnectedOperation
+.Description
+Create a DisconnectedOperation
+.Example
+New-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -Location "westus3" -ConnectionIntent "Disconnected" -Tag @{}
+.Example
+New-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonFilePath "path/to/jsonFiles/CreateDisconnectedOperations.json"
+.Example
+New-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonString '{"properties":{"connectionIntent":"Disconnected","billingModel":"Capacity"},"tags":{},"location":"westus3"}'
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/new-azdisconnectedoperationsdisconnectedoperation
+#>
+function New-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.PSArgumentCompleterAttribute("Connected", "Disconnected")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The connection intent
+ ${ConnectionIntent},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.DisconnectedOperations.private\New-AzDisconnectedOperationsDisconnectedOperation_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.DisconnectedOperations.private\New-AzDisconnectedOperationsDisconnectedOperation_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.DisconnectedOperations.private\New-AzDisconnectedOperationsDisconnectedOperation_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Delete a DisconnectedOperation
+.Description
+Delete a DisconnectedOperation
+.Example
+Remove-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+$disconnectedOperations = @{
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+
+Remove-AzDisconnectedOperationsDisconnectedOperation -InputObject $disconnectedOperations
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/remove-azdisconnectedoperationsdisconnectedoperation
+#>
+function Remove-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.DisconnectedOperations.private\Remove-AzDisconnectedOperationsDisconnectedOperation_Delete';
+ DeleteViaIdentity = 'Az.DisconnectedOperations.private\Remove-AzDisconnectedOperationsDisconnectedOperation_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Update a DisconnectedOperation
+.Description
+Update a DisconnectedOperation
+.Example
+Update-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -RegistrationStatus "Registered"
+.Example
+Update-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonFilePath "path/to/jsonFiles/UpdateDisconnectedOperations.json"
+.Example
+Update-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonString '{"properties": {"registrationStatus": "Registered"}}'
+.Example
+$disconnectedOperation = @{
+ "ResourceGroupName" = "ResourceGroup-1";
+ "DisconnectedOperationName" = "Resource-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+
+Update-AzDisconnectedOperationsDisconnectedOperation -InputObject $disconnectedOperation -RegistrationStatus "Registered"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/update-azdisconnectedoperationsdisconnectedoperation
+#>
+function Update-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.PSArgumentCompleterAttribute("Connected", "Disconnected")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The connection intent
+ ${ConnectionIntent},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The device version
+ ${DeviceVersion},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.PSArgumentCompleterAttribute("Registered", "Unregistered")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The registration intent
+ ${RegistrationStatus},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationUpdateTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateViaJsonString';
+ }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/README.md b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/README.md
new file mode 100644
index 000000000000..38d5f648d729
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/README.md
@@ -0,0 +1,20 @@
+# Exports
+This directory contains the cmdlets *exported by* `Az.DisconnectedOperations`. No other cmdlets in this repository are directly exported. What that means is the `Az.DisconnectedOperations` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
+
+## Info
+- Modifiable: no
+- Generated: all
+- Committed: no
+- Packaged: yes
+
+## Details
+The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.DisconnectedOperations.private.dll`) and from the `..\custom\Az.DisconnectedOperations.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder.
+
+## Purpose
+We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles.
+
+## Structure
+The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile.
+
+## Usage
+When `./Az.DisconnectedOperations.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message.
\ No newline at end of file
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Remove-AzDisconnectedOperationsDisconnectedOperation.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Remove-AzDisconnectedOperationsDisconnectedOperation.ps1
new file mode 100644
index 000000000000..ffd22c82c711
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Remove-AzDisconnectedOperationsDisconnectedOperation.ps1
@@ -0,0 +1,246 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Delete a DisconnectedOperation
+.Description
+Delete a DisconnectedOperation
+.Example
+Remove-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1"
+.Example
+$disconnectedOperations = @{
+ "Name" = "disconnected-operation-name";
+ "ResourceGroupName" = "my-resource-group";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+
+Remove-AzDisconnectedOperationsDisconnectedOperation -InputObject $disconnectedOperations
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/remove-azdisconnectedoperationsdisconnectedoperation
+#>
+function Remove-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.DisconnectedOperations.private\Remove-AzDisconnectedOperationsDisconnectedOperation_Delete';
+ DeleteViaIdentity = 'Az.DisconnectedOperations.private\Remove-AzDisconnectedOperationsDisconnectedOperation_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Update-AzDisconnectedOperationsDisconnectedOperation.ps1 b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Update-AzDisconnectedOperationsDisconnectedOperation.ps1
new file mode 100644
index 000000000000..964c64801a13
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/exports/Update-AzDisconnectedOperationsDisconnectedOperation.ps1
@@ -0,0 +1,283 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Update a DisconnectedOperation
+.Description
+Update a DisconnectedOperation
+.Example
+Update-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -RegistrationStatus "Registered"
+.Example
+Update-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonFilePath "path/to/jsonFiles/UpdateDisconnectedOperations.json"
+.Example
+Update-AzDisconnectedOperationsDisconnectedOperation -Name "Resource-1" -ResourceGroupName "ResourceGroup-1" -JsonString '{"properties": {"registrationStatus": "Registered"}}'
+.Example
+$disconnectedOperation = @{
+ "ResourceGroupName" = "ResourceGroup-1";
+ "DisconnectedOperationName" = "Resource-1";
+ "SubscriptionId" = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
+}
+
+Update-AzDisconnectedOperationsDisconnectedOperation -InputObject $disconnectedOperation -RegistrationStatus "Registered"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ArtifactName ]: The name of the Artifact
+ [Id ]: Resource identity path
+ [ImageName ]: The name of the Image
+ [Name ]: Name of the resource
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.disconnectedoperations/update-azdisconnectedoperationsdisconnectedoperation
+#>
+function Update-AzDisconnectedOperationsDisconnectedOperation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperation])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # Name of the resource
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationsIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.PSArgumentCompleterAttribute("Connected", "Disconnected")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The connection intent
+ ${ConnectionIntent},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The device version
+ ${DeviceVersion},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.PSArgumentCompleterAttribute("Registered", "Unregistered")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # The registration intent
+ ${RegistrationStatus},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Models.IDisconnectedOperationUpdateTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.DisconnectedOperations.private\Update-AzDisconnectedOperationsDisconnectedOperation_UpdateViaJsonString';
+ }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/generate-info.json b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/generate-info.json
new file mode 100644
index 000000000000..1f6ea3cdcae1
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/generate-info.json
@@ -0,0 +1,3 @@
+{
+ "generate_Id": "a38a7c78-41d2-46ae-a619-94cb0076808c"
+}
diff --git a/generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/Module.cs b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/Module.cs
new file mode 100644
index 000000000000..d4dd88e91107
--- /dev/null
+++ b/generated/DisconnectedOperations/DisconnectedOperations.Autorest/generated/Module.cs
@@ -0,0 +1,200 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+namespace Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.DisconnectedOperations.Runtime.Extensions;
+ using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>;
+ using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>;
+ using GetParameterDelegate = global::System.Func;
+ using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
+ using ArgumentCompleterDelegate = global::System.Func;
+ using GetTelemetryIdDelegate = global::System.Func;
+ using TelemetryDelegate = global::System.Action;
+ using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
+ using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>;
+ using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>;
+ using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>;
+ using SanitizerDelegate = global::System.Action