From e358dbcce44925b137975623ad4348c2a672ff87 Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Wed, 15 Oct 2025 04:10:53 +0000
Subject: [PATCH] [skip ci] Archive deed8db801365cc26557b46c7a8a01d134f0b524
---
generated/Site/Site.Autorest/Az.Site.csproj | 11 +
.../Site/Site.Autorest/Az.Site.format.ps1xml | 455 ++
generated/Site/Site.Autorest/Az.Site.psd1 | 23 +
generated/Site/Site.Autorest/Az.Site.psm1 | 119 +
.../Site.Autorest/Properties/AssemblyInfo.cs | 29 +
.../Site/Site.Autorest/check-dependencies.ps1 | 65 +
.../Site/Site.Autorest/exports/Get-AzSite.ps1 | 232 +
.../Site/Site.Autorest/exports/New-AzSite.ps1 | 360 ++
.../exports/ProxyCmdletDefinitions.ps1 | 1148 ++++
.../Site/Site.Autorest/exports/README.md | 20 +
.../Site.Autorest/exports/Remove-AzSite.ps1 | 248 +
.../Site.Autorest/exports/Update-AzSite.ps1 | 353 +
.../Site/Site.Autorest/generate-info.json | 3 +
.../Site/Site.Autorest/generated/Module.cs | 202 +
.../generated/api/Models/Any.PowerShell.cs | 156 +
.../generated/api/Models/Any.TypeConverter.cs | 146 +
.../Site.Autorest/generated/api/Models/Any.cs | 34 +
.../generated/api/Models/Any.json.cs | 104 +
.../Models/ErrorAdditionalInfo.PowerShell.cs | 172 +
.../ErrorAdditionalInfo.TypeConverter.cs | 147 +
.../api/Models/ErrorAdditionalInfo.cs | 80 +
.../api/Models/ErrorAdditionalInfo.json.cs | 116 +
.../api/Models/ErrorDetail.PowerShell.cs | 196 +
.../api/Models/ErrorDetail.TypeConverter.cs | 147 +
.../generated/api/Models/ErrorDetail.cs | 149 +
.../generated/api/Models/ErrorDetail.json.cs | 145 +
.../api/Models/ErrorResponse.PowerShell.cs | 208 +
.../api/Models/ErrorResponse.TypeConverter.cs | 147 +
.../generated/api/Models/ErrorResponse.cs | 151 +
.../api/Models/ErrorResponse.json.cs | 109 +
.../api/Models/ProxyResource.PowerShell.cs | 238 +
.../api/Models/ProxyResource.TypeConverter.cs | 147 +
.../generated/api/Models/ProxyResource.cs | 130 +
.../api/Models/ProxyResource.json.cs | 108 +
.../api/Models/Resource.PowerShell.cs | 238 +
.../api/Models/Resource.TypeConverter.cs | 146 +
.../generated/api/Models/Resource.cs | 257 +
.../generated/api/Models/Resource.json.cs | 126 +
.../generated/api/Models/Site.PowerShell.cs | 332 +
.../api/Models/Site.TypeConverter.cs | 146 +
.../generated/api/Models/Site.cs | 324 +
.../generated/api/Models/Site.json.cs | 108 +
.../SiteAddressProperties.PowerShell.cs | 204 +
.../SiteAddressProperties.TypeConverter.cs | 147 +
.../api/Models/SiteAddressProperties.cs | 154 +
.../api/Models/SiteAddressProperties.json.cs | 118 +
.../api/Models/SiteIdentity.PowerShell.cs | 194 +
.../api/Models/SiteIdentity.TypeConverter.cs | 157 +
.../generated/api/Models/SiteIdentity.cs | 131 +
.../generated/api/Models/SiteIdentity.json.cs | 113 +
.../api/Models/SiteListResult.PowerShell.cs | 172 +
.../Models/SiteListResult.TypeConverter.cs | 147 +
.../generated/api/Models/SiteListResult.cs | 74 +
.../api/Models/SiteListResult.json.cs | 116 +
.../api/Models/SiteProperties.PowerShell.cs | 244 +
.../Models/SiteProperties.TypeConverter.cs | 147 +
.../generated/api/Models/SiteProperties.cs | 233 +
.../api/Models/SiteProperties.json.cs | 117 +
.../Models/SitePropertiesLabels.PowerShell.cs | 160 +
.../SitePropertiesLabels.TypeConverter.cs | 147 +
.../api/Models/SitePropertiesLabels.cs | 35 +
.../Models/SitePropertiesLabels.dictionary.cs | 75 +
.../api/Models/SitePropertiesLabels.json.cs | 109 +
.../api/Models/SiteUpdate.PowerShell.cs | 244 +
.../api/Models/SiteUpdate.TypeConverter.cs | 146 +
.../generated/api/Models/SiteUpdate.cs | 204 +
.../generated/api/Models/SiteUpdate.json.cs | 106 +
.../Models/SiteUpdateProperties.PowerShell.cs | 236 +
.../SiteUpdateProperties.TypeConverter.cs | 147 +
.../api/Models/SiteUpdateProperties.cs | 208 +
.../api/Models/SiteUpdateProperties.json.cs | 114 +
.../SiteUpdatePropertiesLabels.PowerShell.cs | 160 +
...iteUpdatePropertiesLabels.TypeConverter.cs | 147 +
.../api/Models/SiteUpdatePropertiesLabels.cs | 35 +
.../SiteUpdatePropertiesLabels.dictionary.cs | 75 +
.../Models/SiteUpdatePropertiesLabels.json.cs | 109 +
.../api/Models/SystemData.PowerShell.cs | 204 +
.../api/Models/SystemData.TypeConverter.cs | 146 +
.../generated/api/Models/SystemData.cs | 158 +
.../generated/api/Models/SystemData.json.cs | 116 +
.../Site/Site.Autorest/generated/api/Site.cs | 5518 ++++++++++++++++
.../GetAzSiteSitesByServiceGroup_Get.cs | 487 ++
...zSiteSitesByServiceGroup_GetViaIdentity.cs | 482 ++
...ServiceGroup_GetViaIdentityServiceGroup.cs | 494 ++
.../GetAzSiteSitesByServiceGroup_List.cs | 499 ++
.../GetAzSiteSitesBySubscription_Get.cs | 495 ++
...zSiteSitesBySubscription_GetViaIdentity.cs | 482 ++
.../GetAzSiteSitesBySubscription_List.cs | 507 ++
.../generated/cmdlets/GetAzSite_Get.cs | 507 ++
.../cmdlets/GetAzSite_GetViaIdentity.cs | 486 ++
.../generated/cmdlets/GetAzSite_List.cs | 519 ++
...zSiteSitesByServiceGroup_CreateExpanded.cs | 644 ++
...p_CreateViaIdentityServiceGroupExpanded.cs | 653 ++
...tesByServiceGroup_CreateViaJsonFilePath.cs | 557 ++
...SitesByServiceGroup_CreateViaJsonString.cs | 555 ++
...zSiteSitesBySubscription_CreateExpanded.cs | 649 ++
...tesBySubscription_CreateViaJsonFilePath.cs | 562 ++
...SitesBySubscription_CreateViaJsonString.cs | 560 ++
.../cmdlets/NewAzSite_CreateExpanded.cs | 664 ++
.../NewAzSite_CreateViaJsonFilePath.cs | 577 ++
.../cmdlets/NewAzSite_CreateViaJsonString.cs | 575 ++
.../RemoveAzSiteSitesByServiceGroup_Delete.cs | 511 ++
...teSitesByServiceGroup_DeleteViaIdentity.cs | 506 ++
...viceGroup_DeleteViaIdentityServiceGroup.cs | 519 ++
.../RemoveAzSiteSitesBySubscription_Delete.cs | 516 ++
...teSitesBySubscription_DeleteViaIdentity.cs | 506 ++
.../generated/cmdlets/RemoveAzSite_Delete.cs | 530 ++
.../cmdlets/RemoveAzSite_DeleteViaIdentity.cs | 510 ++
...zSiteSitesByServiceGroup_UpdateExpanded.cs | 593 ++
...yServiceGroup_UpdateViaIdentityExpanded.cs | 588 ++
...p_UpdateViaIdentityServiceGroupExpanded.cs | 601 ++
...tesByServiceGroup_UpdateViaJsonFilePath.cs | 506 ++
...SitesByServiceGroup_UpdateViaJsonString.cs | 504 ++
...zSiteSitesBySubscription_UpdateExpanded.cs | 598 ++
...ySubscription_UpdateViaIdentityExpanded.cs | 588 ++
...tesBySubscription_UpdateViaJsonFilePath.cs | 511 ++
...SitesBySubscription_UpdateViaJsonString.cs | 509 ++
.../cmdlets/UpdateAzSite_UpdateExpanded.cs | 612 ++
.../UpdateAzSite_UpdateViaIdentityExpanded.cs | 592 ++
.../UpdateAzSite_UpdateViaJsonFilePath.cs | 525 ++
.../UpdateAzSite_UpdateViaJsonString.cs | 523 ++
.../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 +
.../Site.Autorest/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 +
.../Site.Autorest/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 +
.../internal/Az.Site.internal.psm1 | 38 +
.../Site.Autorest/internal/Get-AzSite.ps1 | 187 +
.../Get-AzSiteSitesByServiceGroup.ps1 | 181 +
.../Get-AzSiteSitesBySubscription.ps1 | 175 +
.../Site.Autorest/internal/New-AzSite.ps1 | 273 +
.../New-AzSiteSitesByServiceGroup.ps1 | 256 +
.../New-AzSiteSitesBySubscription.ps1 | 234 +
.../internal/ProxyCmdletDefinitions.ps1 | 2507 ++++++++
.../Site/Site.Autorest/internal/README.md | 14 +
.../Site.Autorest/internal/Remove-AzSite.ps1 | 188 +
.../Remove-AzSiteSitesByServiceGroup.ps1 | 185 +
.../Remove-AzSiteSitesBySubscription.ps1 | 179 +
.../Site.Autorest/internal/Update-AzSite.ps1 | 289 +
.../Update-AzSiteSitesByServiceGroup.ps1 | 270 +
.../Update-AzSiteSitesBySubscription.ps1 | 255 +
.../Site/Site.Autorest/resources/README.md | 11 +
generated/Site/Site.Autorest/test-module.ps1 | 98 +
264 files changed, 65708 insertions(+)
create mode 100644 generated/Site/Site.Autorest/Az.Site.csproj
create mode 100644 generated/Site/Site.Autorest/Az.Site.format.ps1xml
create mode 100644 generated/Site/Site.Autorest/Az.Site.psd1
create mode 100644 generated/Site/Site.Autorest/Az.Site.psm1
create mode 100644 generated/Site/Site.Autorest/Properties/AssemblyInfo.cs
create mode 100644 generated/Site/Site.Autorest/check-dependencies.ps1
create mode 100644 generated/Site/Site.Autorest/exports/Get-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/exports/New-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1
create mode 100644 generated/Site/Site.Autorest/exports/README.md
create mode 100644 generated/Site/Site.Autorest/exports/Remove-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/exports/Update-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/generate-info.json
create mode 100644 generated/Site/Site.Autorest/generated/Module.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Any.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Any.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Any.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Any.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorDetail.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorDetail.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorResponse.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ErrorResponse.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ProxyResource.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ProxyResource.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ProxyResource.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/ProxyResource.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Resource.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Resource.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Resource.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Resource.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Site.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Site.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Site.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/Site.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteAddressProperties.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteAddressProperties.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteAddressProperties.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteAddressProperties.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteIdentity.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteIdentity.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteIdentity.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteListResult.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteListResult.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteListResult.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteListResult.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteProperties.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteProperties.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteProperties.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteProperties.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SitePropertiesLabels.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SitePropertiesLabels.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SitePropertiesLabels.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SitePropertiesLabels.dictionary.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SitePropertiesLabels.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdate.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdate.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdate.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdate.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdateProperties.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdateProperties.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdateProperties.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdateProperties.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdatePropertiesLabels.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdatePropertiesLabels.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdatePropertiesLabels.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdatePropertiesLabels.dictionary.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SiteUpdatePropertiesLabels.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SystemData.PowerShell.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SystemData.TypeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SystemData.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Models/SystemData.json.cs
create mode 100644 generated/Site/Site.Autorest/generated/api/Site.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesByServiceGroup_Get.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesByServiceGroup_GetViaIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesByServiceGroup_GetViaIdentityServiceGroup.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesByServiceGroup_List.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesBySubscription_Get.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesBySubscription_GetViaIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSiteSitesBySubscription_List.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSite_Get.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSite_GetViaIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/GetAzSite_List.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesByServiceGroup_CreateExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesByServiceGroup_CreateViaIdentityServiceGroupExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesByServiceGroup_CreateViaJsonFilePath.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesByServiceGroup_CreateViaJsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesBySubscription_CreateExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesBySubscription_CreateViaJsonFilePath.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSiteSitesBySubscription_CreateViaJsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSite_CreateExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSite_CreateViaJsonFilePath.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/NewAzSite_CreateViaJsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSiteSitesByServiceGroup_Delete.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSiteSitesByServiceGroup_DeleteViaIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSiteSitesByServiceGroup_DeleteViaIdentityServiceGroup.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSiteSitesBySubscription_Delete.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSiteSitesBySubscription_DeleteViaIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSite_Delete.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/RemoveAzSite_DeleteViaIdentity.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesByServiceGroup_UpdateExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesByServiceGroup_UpdateViaIdentityExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesByServiceGroup_UpdateViaIdentityServiceGroupExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesByServiceGroup_UpdateViaJsonFilePath.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesByServiceGroup_UpdateViaJsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesBySubscription_UpdateExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesBySubscription_UpdateViaIdentityExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesBySubscription_UpdateViaJsonFilePath.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSiteSitesBySubscription_UpdateViaJsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSite_UpdateExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSite_UpdateViaIdentityExpanded.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSite_UpdateViaJsonFilePath.cs
create mode 100644 generated/Site/Site.Autorest/generated/cmdlets/UpdateAzSite_UpdateViaJsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/AsyncCommandRuntime.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/AsyncJob.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/AsyncOperationResponse.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/CollectionExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsFormatTypes.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/PsAttributes.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/PsExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/PsHelpers.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/StringExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/BuildTime/XmlExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/CmdInfoHandler.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Context.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/ConversionException.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/IJsonConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/BinaryConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/BooleanConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/DateTimeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/DecimalConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/DoubleConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/EnumConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/GuidConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/HashSet'1Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/Int16Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/Int32Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/Int64Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/JsonArrayConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/JsonObjectConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/SingleConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/StringConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/TimeSpanConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/UInt16Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/UInt32Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/UInt64Converter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/Instances/UriConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/JsonConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/JsonConverterAttribute.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/JsonConverterFactory.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Conversions/StringLikeConverter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/IJsonSerializable.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/JsonArray.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/JsonBoolean.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/JsonNode.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/JsonNumber.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/JsonObject.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/JsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Customizations/XNodeArray.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Debugging.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/DictionaryExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/EventData.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/EventDataExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/EventListener.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Events.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/EventsExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Extensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Helpers/Extensions/TypeExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Helpers/Seperator.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Helpers/TypeDetails.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Helpers/XHelper.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/HttpPipeline.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/HttpPipelineMocking.ps1
create mode 100644 generated/Site/Site.Autorest/generated/runtime/IAssociativeArray.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/IHeaderSerializable.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/ISendAsync.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/InfoAttribute.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/InputHandler.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Iso/IsoDate.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/JsonType.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/MessageAttribute.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/MessageAttributeHelper.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Method.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Models/JsonMember.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Models/JsonModel.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Models/JsonModelCache.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/Collections/JsonArray.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/Collections/XImmutableArray.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/Collections/XList.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/Collections/XSet.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/JsonBoolean.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/JsonDate.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/JsonNode.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/JsonNumber.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/JsonObject.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/JsonString.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/XBinary.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Nodes/XNull.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/Exceptions/ParseException.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/JsonParser.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/JsonToken.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/JsonTokenizer.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/Location.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/Readers/SourceReader.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Parser/TokenReader.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/PipelineMocking.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Properties/Resources.Designer.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Properties/Resources.resx
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Response.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Serialization/JsonSerializer.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Serialization/PropertyTransformation.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Serialization/SerializationOptions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/SerializationMode.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/TypeConverterExtensions.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/UndeclaredResponseException.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/Writers/JsonWriter.cs
create mode 100644 generated/Site/Site.Autorest/generated/runtime/delegates.cs
create mode 100644 generated/Site/Site.Autorest/internal/Az.Site.internal.psm1
create mode 100644 generated/Site/Site.Autorest/internal/Get-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Get-AzSiteSitesByServiceGroup.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Get-AzSiteSitesBySubscription.ps1
create mode 100644 generated/Site/Site.Autorest/internal/New-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/internal/New-AzSiteSitesByServiceGroup.ps1
create mode 100644 generated/Site/Site.Autorest/internal/New-AzSiteSitesBySubscription.ps1
create mode 100644 generated/Site/Site.Autorest/internal/ProxyCmdletDefinitions.ps1
create mode 100644 generated/Site/Site.Autorest/internal/README.md
create mode 100644 generated/Site/Site.Autorest/internal/Remove-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Remove-AzSiteSitesByServiceGroup.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Remove-AzSiteSitesBySubscription.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Update-AzSite.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Update-AzSiteSitesByServiceGroup.ps1
create mode 100644 generated/Site/Site.Autorest/internal/Update-AzSiteSitesBySubscription.ps1
create mode 100644 generated/Site/Site.Autorest/resources/README.md
create mode 100644 generated/Site/Site.Autorest/test-module.ps1
diff --git a/generated/Site/Site.Autorest/Az.Site.csproj b/generated/Site/Site.Autorest/Az.Site.csproj
new file mode 100644
index 000000000000..c5e3139a95a3
--- /dev/null
+++ b/generated/Site/Site.Autorest/Az.Site.csproj
@@ -0,0 +1,11 @@
+
+
+ Site
+ Site
+ Site.Autorest
+ Microsoft.Azure.PowerShell.Cmdlets.Site
+
+
+
+
+
diff --git a/generated/Site/Site.Autorest/Az.Site.format.ps1xml b/generated/Site/Site.Autorest/Az.Site.format.ps1xml
new file mode 100644
index 000000000000..d4753512e11c
--- /dev/null
+++ b/generated/Site/Site.Autorest/Az.Site.format.ps1xml
@@ -0,0 +1,455 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ErrorDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ErrorDetail#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ProxyResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ProxyResource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.Resource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.Site
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.Site#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteAddressProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteAddressProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ City
+
+
+ Country
+
+
+ PostalCode
+
+
+ StateOrProvince
+
+
+ StreetAddress1
+
+
+ StreetAddress2
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ResourceGroupName
+
+
+ ServicegroupName
+
+
+ SiteName
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ DisplayName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SitePropertiesLabels
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SitePropertiesLabels#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ DisplayName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteUpdatePropertiesLabels
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SiteUpdatePropertiesLabels#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.Site.Models.SystemData#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/generated/Site/Site.Autorest/Az.Site.psd1 b/generated/Site/Site.Autorest/Az.Site.psd1
new file mode 100644
index 000000000000..92d7c34c9b96
--- /dev/null
+++ b/generated/Site/Site.Autorest/Az.Site.psd1
@@ -0,0 +1,23 @@
+@{
+ GUID = '0d71f77e-e1a5-4caf-8e65-236a1052e79f'
+ RootModule = './Az.Site.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: Site cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.Site.private.dll'
+ FormatsToProcess = './Az.Site.format.ps1xml'
+ FunctionsToExport = 'Get-AzSite', 'New-AzSite', 'Remove-AzSite', 'Update-AzSite'
+ PrivateData = @{
+ PSData = @{
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Site'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
+}
diff --git a/generated/Site/Site.Autorest/Az.Site.psm1 b/generated/Site/Site.Autorest/Az.Site.psm1
new file mode 100644
index 000000000000..b866ba8961b7
--- /dev/null
+++ b/generated/Site/Site.Autorest/Az.Site.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.Site.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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/Site/Site.Autorest/Properties/AssemblyInfo.cs b/generated/Site/Site.Autorest/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..e38dec318c06
--- /dev/null
+++ b/generated/Site/Site.Autorest/Properties/AssemblyInfo.cs
@@ -0,0 +1,29 @@
+// 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 - Site")]
+[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/Site/Site.Autorest/check-dependencies.ps1 b/generated/Site/Site.Autorest/check-dependencies.ps1
new file mode 100644
index 000000000000..90ca9867ae40
--- /dev/null
+++ b/generated/Site/Site.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/Site/Site.Autorest/exports/Get-AzSite.ps1 b/generated/Site/Site.Autorest/exports/Get-AzSite.ps1
new file mode 100644
index 000000000000..190b91a61ad6
--- /dev/null
+++ b/generated/Site/Site.Autorest/exports/Get-AzSite.ps1
@@ -0,0 +1,232 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Site
+.Description
+Get a Site from different scopes: Resource Group, Subscription, or Service Group
+.Example
+Get-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Get-AzSite -Name "mysite-001" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Get-AzSite -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Get-AzSite -Name "mysite-sg-001" -ServicegroupName "my-service-group"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.site/get-azsite
+#>
+function Get-AzSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site (optional for list operations)
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\Get-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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/Site/Site.Autorest/exports/New-AzSite.ps1 b/generated/Site/Site.Autorest/exports/New-AzSite.ps1
new file mode 100644
index 000000000000..00aaecc395ff
--- /dev/null
+++ b/generated/Site/Site.Autorest/exports/New-AzSite.ps1
@@ -0,0 +1,360 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Site
+.Description
+Create a Site in different scopes: Resource Group, Subscription, or Service Group
+.Example
+New-AzSite -SiteName "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "West Coast Site" -Description "Primary site for west coast operations" -Country "US" -PostalCode "98101"
+.Example
+$labels = @{
+ "environment" = "production"
+ "region" = "west"
+ "owner" = "operations-team"
+}
+
+New-AzSite -SiteName "mysite-002" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Seattle Operations Center" -Description "Main operations site for Seattle region" -Country "US" -PostalCode "98101" -StateOrProvince "WA" -City "Seattle" -StreetAddress1 "123 Main St" -Labels $labels
+.Example
+New-AzSite -SiteName "global-site-001" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Global Operations Site" -Description "Enterprise-wide operations center" -Country "US" -PostalCode "10001"
+.Example
+$jsonConfig = @"
+{
+ "properties": {
+ "displayName": "JSON Created Site",
+ "description": "Site created via JSON configuration",
+ "siteAddress": {
+ "country": "CA",
+ "postalCode": "K1A 0A6",
+ "stateOrProvince": "ON",
+ "city": "Ottawa",
+ "streetAddress1": "100 Wellington St"
+ },
+ "labels": {
+ "deployment-method": "json",
+ "country": "canada"
+ }
+ }
+}
+"@
+
+New-AzSite -SiteName "site-json-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -JsonString $jsonConfig
+.Example
+New-AzSite -SiteName "service-site-001" -ServicegroupName "my-service-group" -DisplayName "Service Group Site" -Description "Site managed at service group level" -Country "US" -PostalCode "78701"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+SITE : Site details
+ [City ]: City of the address
+ [Country ]: Country of the address
+ [Description ]: Description of Site resource
+ [DisplayName ]: displayName of Site resource
+ [Labels ]: Key-value pairs for labeling the site resource.
+ [(Any) ]: This indicates any property can be added to this object.
+ [PostalCode ]: Postal or ZIP code of the address
+ [StateOrProvince ]: State or province of the address
+ [StreetAddress1 ]: First line of the street address
+ [StreetAddress2 ]: Second line of the street address
+.Link
+https://learn.microsoft.com/powershell/module/az.site/new-azsite
+#>
+function New-AzSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite])]
+[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('Name')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site
+ ${SiteName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite]
+ # Site details
+ ${Site},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Site operation
+ ${JsonFilePath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Json string supplied to the Site operation
+ ${JsonString},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Expanded parameters for Site creation
+ # Description of Site resource
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Display name of Site resource
+ ${DisplayName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # City of the address
+ ${City},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Country of the address
+ ${Country},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Postal or ZIP code of the address
+ ${PostalCode},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # State or province of the address
+ ${StateOrProvince},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # First line of the street address
+ ${StreetAddress1},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Second line of the street address
+ ${StreetAddress2},
+
+ [Parameter()]
+ [Alias('Labels')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.Collections.Hashtable]
+ # Key-value pairs for labeling the site resource
+ ${Label},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\New-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1
new file mode 100644
index 000000000000..f3feef820e3f
--- /dev/null
+++ b/generated/Site/Site.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -0,0 +1,1148 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Site
+.Description
+Get a Site from different scopes: Resource Group, Subscription, or Service Group
+.Example
+Get-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Get-AzSite -Name "mysite-001" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Get-AzSite -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Get-AzSite -Name "mysite-sg-001" -ServicegroupName "my-service-group"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.site/get-azsite
+#>
+function Get-AzSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site (optional for list operations)
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\Get-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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 Site
+.Description
+Create a Site in different scopes: Resource Group, Subscription, or Service Group
+.Example
+New-AzSite -SiteName "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "West Coast Site" -Description "Primary site for west coast operations" -Country "US" -PostalCode "98101"
+.Example
+$labels = @{
+ "environment" = "production"
+ "region" = "west"
+ "owner" = "operations-team"
+}
+
+New-AzSite -SiteName "mysite-002" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Seattle Operations Center" -Description "Main operations site for Seattle region" -Country "US" -PostalCode "98101" -StateOrProvince "WA" -City "Seattle" -StreetAddress1 "123 Main St" -Labels $labels
+.Example
+New-AzSite -SiteName "global-site-001" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Global Operations Site" -Description "Enterprise-wide operations center" -Country "US" -PostalCode "10001"
+.Example
+$jsonConfig = @"
+{
+ "properties": {
+ "displayName": "JSON Created Site",
+ "description": "Site created via JSON configuration",
+ "siteAddress": {
+ "country": "CA",
+ "postalCode": "K1A 0A6",
+ "stateOrProvince": "ON",
+ "city": "Ottawa",
+ "streetAddress1": "100 Wellington St"
+ },
+ "labels": {
+ "deployment-method": "json",
+ "country": "canada"
+ }
+ }
+}
+"@
+
+New-AzSite -SiteName "site-json-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -JsonString $jsonConfig
+.Example
+New-AzSite -SiteName "service-site-001" -ServicegroupName "my-service-group" -DisplayName "Service Group Site" -Description "Site managed at service group level" -Country "US" -PostalCode "78701"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+SITE : Site details
+ [City ]: City of the address
+ [Country ]: Country of the address
+ [Description ]: Description of Site resource
+ [DisplayName ]: displayName of Site resource
+ [Labels ]: Key-value pairs for labeling the site resource.
+ [(Any) ]: This indicates any property can be added to this object.
+ [PostalCode ]: Postal or ZIP code of the address
+ [StateOrProvince ]: State or province of the address
+ [StreetAddress1 ]: First line of the street address
+ [StreetAddress2 ]: Second line of the street address
+.Link
+https://learn.microsoft.com/powershell/module/az.site/new-azsite
+#>
+function New-AzSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite])]
+[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('Name')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site
+ ${SiteName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite]
+ # Site details
+ ${Site},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Site operation
+ ${JsonFilePath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Json string supplied to the Site operation
+ ${JsonString},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Expanded parameters for Site creation
+ # Description of Site resource
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Display name of Site resource
+ ${DisplayName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # City of the address
+ ${City},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Country of the address
+ ${Country},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Postal or ZIP code of the address
+ ${PostalCode},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # State or province of the address
+ ${StateOrProvince},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # First line of the street address
+ ${StreetAddress1},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Second line of the street address
+ ${StreetAddress2},
+
+ [Parameter()]
+ [Alias('Labels')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.Collections.Hashtable]
+ # Key-value pairs for labeling the site resource
+ ${Label},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\New-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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 Site
+.Description
+Delete a Site from different scopes: Resource Group, Subscription, or Service Group
+.Example
+Remove-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Remove-AzSite -Name "global-site-001" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Remove-AzSite -Name "service-site-001" -ServicegroupName "my-service-group"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.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 for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.site/remove-azsite
+#>
+function Remove-AzSite {
+[OutputType([System.Boolean])]
+[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\Remove-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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 Site
+.Description
+Update a Site in different scopes: Resource Group, Subscription, or Service Group
+.Example
+$newLabels = @{
+ "environment" = "updated"
+ "version" = "2.0"
+ "updated-by" = "admin"
+}
+
+Update-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -Description "Updated site description" -Labels $newLabels
+.Example
+Update-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Updated West Coast Site"
+.Example
+$jsonUpdate = @"
+{
+ "properties": {
+ "displayName": "JSON Updated Site",
+ "description": "Updated via JSON configuration",
+ "labels": {
+ "update-method": "json",
+ "automation": "true"
+ }
+ }
+}
+"@
+
+Update-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -JsonString $jsonUpdate
+.Example
+Update-AzSite -Name "global-site-001" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Updated Global Site" -Description "Updated enterprise operations center"
+.Example
+Update-AzSite -Name "service-site-001" -ServicegroupName "my-service-group" -DisplayName "Updated Service Group Site" -Description "Updated service group managed site"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+SITE : Site details
+ [City ]: City of the address
+ [Country ]: Country of the address
+ [Description ]: Description of Site resource
+ [DisplayName ]: displayName of Site resource
+ [Labels ]: Key-value pairs for labeling the site resource.
+ [(Any) ]: This indicates any property can be added to this object.
+ [PostalCode ]: Postal or ZIP code of the address
+ [StateOrProvince ]: State or province of the address
+ [StreetAddress1 ]: First line of the street address
+ [StreetAddress2 ]: Second line of the street address
+.Link
+https://learn.microsoft.com/powershell/module/az.site/update-azsite
+#>
+function Update-AzSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite])]
+[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite]
+ # Site details
+ ${Site},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Site operation
+ ${JsonFilePath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Json string supplied to the Site operation
+ ${JsonString},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Expanded parameters for Site creation
+ # Description of Site resource
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Display name of Site resource
+ ${DisplayName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # City of the address
+ ${City},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Country of the address
+ ${Country},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Postal or ZIP code of the address
+ ${PostalCode},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # State or province of the address
+ ${StateOrProvince},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # First line of the street address
+ ${StreetAddress1},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Second line of the street address
+ ${StreetAddress2},
+
+ [Parameter()]
+ [Alias('Labels')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.Collections.Hashtable]
+ # Key-value pairs for labeling the site resource
+ ${Label},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\Update-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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/Site/Site.Autorest/exports/README.md b/generated/Site/Site.Autorest/exports/README.md
new file mode 100644
index 000000000000..b18edcabeef5
--- /dev/null
+++ b/generated/Site/Site.Autorest/exports/README.md
@@ -0,0 +1,20 @@
+# Exports
+This directory contains the cmdlets *exported by* `Az.Site`. No other cmdlets in this repository are directly exported. What that means is the `Az.Site` 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.Site.private.dll`) and from the `..\custom\Az.Site.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.Site.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/Site/Site.Autorest/exports/Remove-AzSite.ps1 b/generated/Site/Site.Autorest/exports/Remove-AzSite.ps1
new file mode 100644
index 000000000000..be0f1a00b056
--- /dev/null
+++ b/generated/Site/Site.Autorest/exports/Remove-AzSite.ps1
@@ -0,0 +1,248 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Site
+.Description
+Delete a Site from different scopes: Resource Group, Subscription, or Service Group
+.Example
+Remove-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Remove-AzSite -Name "global-site-001" -SubscriptionId "12345678-1234-1234-1234-123456789012"
+.Example
+Remove-AzSite -Name "service-site-001" -ServicegroupName "my-service-group"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.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 for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+.Link
+https://learn.microsoft.com/powershell/module/az.site/remove-azsite
+#>
+function Remove-AzSite {
+[OutputType([System.Boolean])]
+[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\Remove-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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/Site/Site.Autorest/exports/Update-AzSite.ps1 b/generated/Site/Site.Autorest/exports/Update-AzSite.ps1
new file mode 100644
index 000000000000..bf4f1a5baf93
--- /dev/null
+++ b/generated/Site/Site.Autorest/exports/Update-AzSite.ps1
@@ -0,0 +1,353 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Site
+.Description
+Update a Site in different scopes: Resource Group, Subscription, or Service Group
+.Example
+$newLabels = @{
+ "environment" = "updated"
+ "version" = "2.0"
+ "updated-by" = "admin"
+}
+
+Update-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -Description "Updated site description" -Labels $newLabels
+.Example
+Update-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Updated West Coast Site"
+.Example
+$jsonUpdate = @"
+{
+ "properties": {
+ "displayName": "JSON Updated Site",
+ "description": "Updated via JSON configuration",
+ "labels": {
+ "update-method": "json",
+ "automation": "true"
+ }
+ }
+}
+"@
+
+Update-AzSite -Name "mysite-001" -ResourceGroupName "rg-sites" -SubscriptionId "12345678-1234-1234-1234-123456789012" -JsonString $jsonUpdate
+.Example
+Update-AzSite -Name "global-site-001" -SubscriptionId "12345678-1234-1234-1234-123456789012" -DisplayName "Updated Global Site" -Description "Updated enterprise operations center"
+.Example
+Update-AzSite -Name "service-site-001" -ServicegroupName "my-service-group" -DisplayName "Updated Service Group Site" -Description "Updated service group managed site"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter for pipeline operations
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServicegroupName ]: The name of the service group
+ [SiteName ]: The name of the Site
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+
+SITE : Site details
+ [City ]: City of the address
+ [Country ]: Country of the address
+ [Description ]: Description of Site resource
+ [DisplayName ]: displayName of Site resource
+ [Labels ]: Key-value pairs for labeling the site resource.
+ [(Any) ]: This indicates any property can be added to this object.
+ [PostalCode ]: Postal or ZIP code of the address
+ [StateOrProvince ]: State or province of the address
+ [StreetAddress1 ]: First line of the street address
+ [StreetAddress2 ]: Second line of the street address
+.Link
+https://learn.microsoft.com/powershell/module/az.site/update-azsite
+#>
+function Update-AzSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite])]
+[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the Site
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # Required for resource group scope operations.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # Required for resource group and subscription scope operations.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [System.String]
+ # The name of the service group.
+ # Required for service group scope operations.
+ ${ServicegroupName},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISiteIdentity]
+ # Identity Parameter for pipeline operations
+ ${InputObject},
+
+ [Parameter(ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Models.ISite]
+ # Site details
+ ${Site},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Site operation
+ ${JsonFilePath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Json string supplied to the Site operation
+ ${JsonString},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Expanded parameters for Site creation
+ # Description of Site resource
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Display name of Site resource
+ ${DisplayName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # City of the address
+ ${City},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Country of the address
+ ${Country},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Postal or ZIP code of the address
+ ${PostalCode},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # State or province of the address
+ ${StateOrProvince},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # First line of the street address
+ ${StreetAddress1},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.String]
+ # Second line of the street address
+ ${StreetAddress2},
+
+ [Parameter()]
+ [Alias('Labels')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Body')]
+ [System.Collections.Hashtable]
+ # Key-value pairs for labeling the site resource
+ ${Label},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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.Site.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Site.custom\Update-AzSite';
+ }
+ if (('__AllParameterSets') -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.Site.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.Site.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Site.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.Site.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/Site/Site.Autorest/generate-info.json b/generated/Site/Site.Autorest/generate-info.json
new file mode 100644
index 000000000000..946bf273c031
--- /dev/null
+++ b/generated/Site/Site.Autorest/generate-info.json
@@ -0,0 +1,3 @@
+{
+ "generate_Id": "42925558-4e1b-4ac8-9f09-eaca93301159"
+}
diff --git a/generated/Site/Site.Autorest/generated/Module.cs b/generated/Site/Site.Autorest/generated/Module.cs
new file mode 100644
index 000000000000..ffb54c5e57d2
--- /dev/null
+++ b/generated/Site/Site.Autorest/generated/Module.cs
@@ -0,0 +1,202 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.Site
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.Site.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