From bacaa7e702852e4c72554fa93f5dd97e3f749064 Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Fri, 18 Apr 2025 03:39:26 +0000
Subject: [PATCH] [skip ci] Archive 67d1fa22b35a9bd9a4a405649b4d787a909e2ef9
---
.../Datadog.Autorest/Az.Datadog.csproj | 2 +-
.../Datadog.Autorest/Az.Datadog.format.ps1xml | 440 +-
.../Datadog/Datadog.Autorest/Az.Datadog.psd1 | 3 +-
.../Properties/AssemblyInfo.cs | 29 +-
.../Datadog.Autorest/check-dependencies.ps1 | 6 +-
.../Get-AzDatadogMarketplaceAgreement.ps1 | 20 +-
.../exports/Get-AzDatadogMonitor.ps1 | 21 +-
.../exports/Get-AzDatadogMonitorApiKey.ps1 | 20 +-
.../Get-AzDatadogMonitorDefaultKey.ps1 | 21 +-
.../exports/Get-AzDatadogMonitorHost.ps1 | 20 +-
.../Get-AzDatadogMonitorLinkedResource.ps1 | 20 +-
.../Get-AzDatadogMonitorMonitoredResource.ps1 | 20 +-
...Get-AzDatadogSingleSignOnConfiguration.ps1 | 37 +-
.../exports/Get-AzDatadogTagRule.ps1 | 37 +-
.../New-AzDatadogFilteringTagObject.ps1 | 16 +-
.../New-AzDatadogMarketplaceAgreement.ps1 | 54 +-
.../exports/New-AzDatadogMonitor.ps1 | 132 +-
...New-AzDatadogSingleSignOnConfiguration.ps1 | 71 +-
.../exports/New-AzDatadogTagRule.ps1 | 93 +-
.../exports/ProxyCmdletDefinitions.ps1 | 1274 ++-
.../exports/Remove-AzDatadogMonitor.ps1 | 17 +-
.../Set-AzDatadogMonitorDefaultKey.ps1 | 48 +-
.../exports/Update-AzDatadogMonitor.ps1 | 60 +-
...Update-AzDatadogMonitorSetPasswordLink.ps1 | 21 +-
...ate-AzDatadogSingleSignOnConfiguration.ps1 | 268 +
.../exports/Update-AzDatadogTagRule.ps1 | 298 +
.../Datadog.Autorest/generate-info.json | 2 +-
.../Datadog.Autorest/generated/Module.cs | 27 +-
.../Datadog.Autorest/generated/api/Datadog.cs | 7286 +++++++++++++----
.../generated/api/Models/Any.PowerShell.cs | 4 +-
.../generated/api/Models/Any.cs | 6 +-
.../generated/api/Models/Any.json.cs | 2 +-
.../DatadogMonitorResource.PowerShell.cs | 450 -
.../MonitorProperties.PowerShell.cs | 300 -
.../MonitoringTagRules.PowerShell.cs | 308 -
.../DatadogAgreementProperties.PowerShell.cs | 52 +-
...atadogAgreementProperties.TypeConverter.cs | 6 +-
.../DatadogAgreementProperties.cs | 30 +-
.../DatadogAgreementProperties.json.cs | 24 +-
.../DatadogAgreementResource.PowerShell.cs | 96 +-
.../DatadogAgreementResource.TypeConverter.cs | 6 +-
.../DatadogAgreementResource.cs | 165 +-
.../DatadogAgreementResource.json.cs | 26 +-
...greementResourceListResponse.PowerShell.cs | 30 +-
...ementResourceListResponse.TypeConverter.cs | 6 +-
.../DatadogAgreementResourceListResponse.cs | 22 +-
...tadogAgreementResourceListResponse.json.cs | 12 +-
.../DatadogApiKey.PowerShell.cs | 36 +-
.../DatadogApiKey.TypeConverter.cs | 6 +-
.../Models/{Api20210301 => }/DatadogApiKey.cs | 18 +-
.../{Api20210301 => }/DatadogApiKey.json.cs | 16 +-
.../DatadogApiKeyListResponse.PowerShell.cs | 28 +-
...DatadogApiKeyListResponse.TypeConverter.cs | 6 +-
.../DatadogApiKeyListResponse.cs | 22 +-
.../DatadogApiKeyListResponse.json.cs | 12 +-
.../DatadogHost.PowerShell.cs | 64 +-
.../DatadogHost.TypeConverter.cs | 6 +-
.../Models/{Api20210301 => }/DatadogHost.cs | 72 +-
.../{Api20210301 => }/DatadogHost.json.cs | 18 +-
.../DatadogHostListResponse.PowerShell.cs | 28 +-
.../DatadogHostListResponse.TypeConverter.cs | 6 +-
.../DatadogHostListResponse.cs | 22 +-
.../DatadogHostListResponse.json.cs | 12 +-
.../DatadogHostMetadata.PowerShell.cs | 48 +-
.../DatadogHostMetadata.TypeConverter.cs | 6 +-
.../{Api20210301 => }/DatadogHostMetadata.cs | 45 +-
.../DatadogHostMetadata.json.cs | 14 +-
.../generated/api/Models/DatadogIdentity.cs | 18 +
.../api/Models/DatadogIdentity.json.cs | 12 +-
.../DatadogInstallMethod.PowerShell.cs | 32 +-
.../DatadogInstallMethod.TypeConverter.cs | 6 +-
.../{Api20210301 => }/DatadogInstallMethod.cs | 15 +-
.../DatadogInstallMethod.json.cs | 14 +-
.../DatadogLogsAgent.PowerShell.cs | 24 +-
.../DatadogLogsAgent.TypeConverter.cs | 6 +-
.../{Api20210301 => }/DatadogLogsAgent.cs | 9 +-
.../DatadogLogsAgent.json.cs | 10 +-
.../DatadogMonitorResource.PowerShell.cs | 450 +
.../DatadogMonitorResource.TypeConverter.cs | 6 +-
.../DatadogMonitorResource.cs | 321 +-
.../DatadogMonitorResource.json.cs | 34 +-
...gMonitorResourceListResponse.PowerShell.cs | 30 +-
...nitorResourceListResponse.TypeConverter.cs | 6 +-
.../DatadogMonitorResourceListResponse.cs | 22 +-
...DatadogMonitorResourceListResponse.json.cs | 12 +-
.../DatadogMonitorResourceTags.PowerShell.cs | 20 +-
...atadogMonitorResourceTags.TypeConverter.cs | 6 +-
.../DatadogMonitorResourceTags.cs | 6 +-
.../DatadogMonitorResourceTags.dictionary.cs | 4 +-
.../DatadogMonitorResourceTags.json.cs | 8 +-
...itorResourceUpdateParameters.PowerShell.cs | 42 +-
...rResourceUpdateParameters.TypeConverter.cs | 6 +-
.../DatadogMonitorResourceUpdateParameters.cs | 53 +-
...dogMonitorResourceUpdateParameters.json.cs | 14 +-
...ResourceUpdateParametersTags.PowerShell.cs | 20 +-
...ourceUpdateParametersTags.TypeConverter.cs | 6 +-
...adogMonitorResourceUpdateParametersTags.cs | 6 +-
...ResourceUpdateParametersTags.dictionary.cs | 4 +-
...onitorResourceUpdateParametersTags.json.cs | 8 +-
...atadogOrganizationProperties.PowerShell.cs | 54 +-
...dogOrganizationProperties.TypeConverter.cs | 6 +-
.../DatadogOrganizationProperties.cs | 34 +-
.../DatadogOrganizationProperties.json.cs | 52 +-
.../DatadogSetPasswordLink.PowerShell.cs | 24 +-
.../DatadogSetPasswordLink.TypeConverter.cs | 6 +-
.../DatadogSetPasswordLink.cs | 9 +-
.../DatadogSetPasswordLink.json.cs | 10 +-
...atadogSingleSignOnProperties.PowerShell.cs | 38 +-
...dogSingleSignOnProperties.TypeConverter.cs | 6 +-
.../DatadogSingleSignOnProperties.cs | 46 +-
.../DatadogSingleSignOnProperties.json.cs | 20 +-
.../DatadogSingleSignOnResource.PowerShell.cs | 82 +-
...tadogSingleSignOnResource.TypeConverter.cs | 6 +-
.../DatadogSingleSignOnResource.cs | 165 +-
.../DatadogSingleSignOnResource.json.cs | 26 +-
...leSignOnResourceListResponse.PowerShell.cs | 28 +-
...ignOnResourceListResponse.TypeConverter.cs | 6 +-
...DatadogSingleSignOnResourceListResponse.cs | 22 +-
...ogSingleSignOnResourceListResponse.json.cs | 12 +-
.../ErrorAdditionalInfo.PowerShell.cs | 28 +-
.../ErrorAdditionalInfo.TypeConverter.cs | 6 +-
.../Models/{Api20 => }/ErrorAdditionalInfo.cs | 16 +-
.../{Api20 => }/ErrorAdditionalInfo.json.cs | 16 +-
.../{Api20 => }/ErrorDetail.PowerShell.cs | 40 +-
.../{Api20 => }/ErrorDetail.TypeConverter.cs | 6 +-
.../api/Models/{Api20 => }/ErrorDetail.cs | 51 +-
.../Models/{Api20 => }/ErrorDetail.json.cs | 30 +-
.../{Api20 => }/ErrorResponse.PowerShell.cs | 44 +-
.../ErrorResponse.TypeConverter.cs | 6 +-
.../api/Models/{Api20 => }/ErrorResponse.cs | 61 +-
.../Models/{Api20 => }/ErrorResponse.json.cs | 10 +-
.../FilteringTag.PowerShell.cs | 32 +-
.../FilteringTag.TypeConverter.cs | 6 +-
.../Models/{Api20210301 => }/FilteringTag.cs | 27 +-
.../{Api20210301 => }/FilteringTag.json.cs | 16 +-
.../IdentityProperties.PowerShell.cs | 32 +-
.../IdentityProperties.TypeConverter.cs | 6 +-
.../{Api20210301 => }/IdentityProperties.cs | 31 +-
.../IdentityProperties.json.cs | 18 +-
.../LinkedResource.PowerShell.cs | 24 +-
.../LinkedResource.TypeConverter.cs | 6 +-
.../{Api20210301 => }/LinkedResource.cs | 9 +-
.../{Api20210301 => }/LinkedResource.json.cs | 10 +-
.../LinkedResourceListResponse.PowerShell.cs | 28 +-
...inkedResourceListResponse.TypeConverter.cs | 6 +-
.../LinkedResourceListResponse.cs | 22 +-
.../LinkedResourceListResponse.json.cs | 12 +-
.../{Api20210301 => }/LogRules.PowerShell.cs | 36 +-
.../LogRules.TypeConverter.cs | 6 +-
.../api/Models/{Api20210301 => }/LogRules.cs | 28 +-
.../Models/{Api20210301 => }/LogRules.json.cs | 18 +-
.../MetricRules.PowerShell.cs | 24 +-
.../MetricRules.TypeConverter.cs | 6 +-
.../Models/{Api20210301 => }/MetricRules.cs | 19 +-
.../{Api20210301 => }/MetricRules.json.cs | 12 +-
.../Models/MonitorProperties.PowerShell.cs | 300 +
.../MonitorProperties.TypeConverter.cs | 6 +-
.../{Api20210301 => }/MonitorProperties.cs | 152 +-
.../MonitorProperties.json.cs | 30 +-
.../MonitorUpdateProperties.PowerShell.cs | 24 +-
.../MonitorUpdateProperties.TypeConverter.cs | 6 +-
.../MonitorUpdateProperties.cs | 21 +-
.../MonitorUpdateProperties.json.cs | 10 +-
.../MonitoredResource.PowerShell.cs | 40 +-
.../MonitoredResource.TypeConverter.cs | 6 +-
.../{Api20210301 => }/MonitoredResource.cs | 21 +-
.../MonitoredResource.json.cs | 18 +-
...onitoredResourceListResponse.PowerShell.cs | 30 +-
...toredResourceListResponse.TypeConverter.cs | 6 +-
.../MonitoredResourceListResponse.cs | 22 +-
.../MonitoredResourceListResponse.json.cs | 12 +-
.../Models/MonitoringTagRules.PowerShell.cs | 308 +
.../MonitoringTagRules.TypeConverter.cs | 6 +-
.../{Api20210301 => }/MonitoringTagRules.cs | 185 +-
.../MonitoringTagRules.json.cs | 26 +-
...nitoringTagRulesListResponse.PowerShell.cs | 30 +-
...oringTagRulesListResponse.TypeConverter.cs | 6 +-
.../MonitoringTagRulesListResponse.cs | 22 +-
.../MonitoringTagRulesListResponse.json.cs | 12 +-
...MonitoringTagRulesProperties.PowerShell.cs | 54 +-
...itoringTagRulesProperties.TypeConverter.cs | 6 +-
.../MonitoringTagRulesProperties.cs | 76 +-
.../MonitoringTagRulesProperties.json.cs | 16 +-
.../OperationDisplay.PowerShell.cs | 36 +-
.../OperationDisplay.TypeConverter.cs | 6 +-
.../{Api20210301 => }/OperationDisplay.cs | 18 +-
.../OperationDisplay.json.cs | 16 +-
.../OperationListResult.PowerShell.cs | 28 +-
.../OperationListResult.TypeConverter.cs | 6 +-
.../{Api20210301 => }/OperationListResult.cs | 22 +-
.../OperationListResult.json.cs | 12 +-
.../OperationResult.PowerShell.cs | 48 +-
.../OperationResult.TypeConverter.cs | 6 +-
.../{Api20210301 => }/OperationResult.cs | 40 +-
.../{Api20210301 => }/OperationResult.json.cs | 14 +-
.../ResourceSku.PowerShell.cs | 24 +-
.../ResourceSku.TypeConverter.cs | 6 +-
.../Models/{Api20210301 => }/ResourceSku.cs | 9 +-
.../{Api20210301 => }/ResourceSku.json.cs | 12 +-
.../{Api20 => }/SystemData.PowerShell.cs | 44 +-
.../{Api20 => }/SystemData.TypeConverter.cs | 6 +-
.../api/Models/{Api20 => }/SystemData.cs | 48 +-
.../api/Models/{Api20 => }/SystemData.json.cs | 22 +-
.../{Api20210301 => }/UserInfo.PowerShell.cs | 32 +-
.../UserInfo.TypeConverter.cs | 6 +-
.../api/Models/{Api20210301 => }/UserInfo.cs | 15 +-
.../Models/{Api20210301 => }/UserInfo.json.cs | 16 +-
.../api/Support/CreatedByType.Completer.cs | 47 -
.../Support/CreatedByType.TypeConverter.cs | 59 -
.../generated/api/Support/CreatedByType.cs | 102 -
.../LiftrResourceCategories.Completer.cs | 39 -
.../LiftrResourceCategories.TypeConverter.cs | 59 -
.../api/Support/LiftrResourceCategories.cs | 97 -
.../Support/ManagedIdentityTypes.Completer.cs | 39 -
.../ManagedIdentityTypes.TypeConverter.cs | 59 -
.../api/Support/ManagedIdentityTypes.cs | 98 -
...MarketplaceSubscriptionStatus.Completer.cs | 50 -
...etplaceSubscriptionStatus.TypeConverter.cs | 62 -
.../Support/MarketplaceSubscriptionStatus.cs | 111 -
.../api/Support/MonitoringStatus.Completer.cs | 39 -
.../Support/MonitoringStatus.TypeConverter.cs | 59 -
.../generated/api/Support/MonitoringStatus.cs | 98 -
.../Support/ProvisioningState.Completer.cs | 67 -
.../ProvisioningState.TypeConverter.cs | 59 -
.../api/Support/ProvisioningState.cs | 111 -
.../Support/SingleSignOnStates.Completer.cs | 47 -
.../SingleSignOnStates.TypeConverter.cs | 59 -
.../api/Support/SingleSignOnStates.cs | 102 -
.../api/Support/TagAction.Completer.cs | 39 -
.../api/Support/TagAction.TypeConverter.cs | 59 -
.../generated/api/Support/TagAction.cs | 98 -
.../GetAzDatadogMarketplaceAgreement_List.cs | 119 +-
.../cmdlets/GetAzDatadogMonitorApiKey_List.cs | 119 +-
.../GetAzDatadogMonitorDefaultKey_Get.cs | 112 +-
...DatadogMonitorDefaultKey_GetViaIdentity.cs | 105 +-
.../cmdlets/GetAzDatadogMonitorHost_List.cs | 119 +-
.../GetAzDatadogMonitorLinkedResource_List.cs | 119 +-
...tAzDatadogMonitorMonitoredResource_List.cs | 119 +-
.../cmdlets/GetAzDatadogMonitor_Get.cs | 112 +-
.../GetAzDatadogMonitor_GetViaIdentity.cs | 105 +-
.../cmdlets/GetAzDatadogMonitor_List.cs | 119 +-
.../cmdlets/GetAzDatadogMonitor_List1.cs | 119 +-
.../cmdlets/GetAzDatadogOperation_List.cs | 112 +-
...tAzDatadogSingleSignOnConfiguration_Get.cs | 112 +-
...ingleSignOnConfiguration_GetViaIdentity.cs | 105 +-
...gnOnConfiguration_GetViaIdentityMonitor.cs | 500 ++
...AzDatadogSingleSignOnConfiguration_List.cs | 119 +-
.../cmdlets/GetAzDatadogTagRule_Get.cs | 112 +-
.../GetAzDatadogTagRule_GetViaIdentity.cs | 105 +-
...tAzDatadogTagRule_GetViaIdentityMonitor.cs | 500 ++
.../cmdlets/GetAzDatadogTagRule_List.cs | 119 +-
...adogMarketplaceAgreement_CreateExpanded.cs | 120 +-
...ketplaceAgreement_CreateViaJsonFilePath.cs | 495 ++
...arketplaceAgreement_CreateViaJsonString.cs | 493 ++
.../NewAzDatadogMonitor_CreateExpanded.cs | 168 +-
...atadogMonitor_CreateViaIdentityExpanded.cs | 721 ++
...wAzDatadogMonitor_CreateViaJsonFilePath.cs | 607 ++
...NewAzDatadogMonitor_CreateViaJsonString.cs | 605 ++
...ingleSignOnConfiguration_CreateExpanded.cs | 140 +-
...Configuration_CreateViaIdentityExpanded.cs | 139 +-
...ration_CreateViaIdentityMonitorExpanded.cs | 612 ++
...gnOnConfiguration_CreateViaJsonFilePath.cs | 623 ++
...SignOnConfiguration_CreateViaJsonString.cs | 621 ++
.../NewAzDatadogTagRule_CreateExpanded.cs | 128 +-
...atadogTagRule_CreateViaIdentityExpanded.cs | 127 +-
...agRule_CreateViaIdentityMonitorExpanded.cs | 573 ++
...wAzDatadogTagRule_CreateViaJsonFilePath.cs | 537 ++
...NewAzDatadogTagRule_CreateViaJsonString.cs | 535 ++
.../cmdlets/RemoveAzDatadogMonitor_Delete.cs | 98 +-
...emoveAzDatadogMonitor_DeleteViaIdentity.cs | 91 +-
...tAzDatadogMonitorDefaultKey_SetExpanded.cs | 86 +-
...dogMonitorDefaultKey_SetViaJsonFilePath.cs | 510 ++
...tadogMonitorDefaultKey_SetViaJsonString.cs | 508 ++
...AzDatadogMonitorSetPasswordLink_Refresh.cs | 112 +-
...nitorSetPasswordLink_RefreshViaIdentity.cs | 105 +-
.../UpdateAzDatadogMonitor_UpdateExpanded.cs | 148 +-
...atadogMonitor_UpdateViaIdentityExpanded.cs | 147 +-
...eAzDatadogMonitor_UpdateViaJsonFilePath.cs | 607 ++
...ateAzDatadogMonitor_UpdateViaJsonString.cs | 605 ++
...ingleSignOnConfiguration_UpdateExpanded.cs | 644 ++
...Configuration_UpdateViaIdentityExpanded.cs | 616 ++
...ration_UpdateViaIdentityMonitorExpanded.cs | 628 ++
.../UpdateAzDatadogTagRule_UpdateExpanded.cs | 617 ++
...atadogTagRule_UpdateViaIdentityExpanded.cs | 590 ++
...agRule_UpdateViaIdentityMonitorExpanded.cs | 601 ++
.../Attributes/ExternalDocsAttribute.cs | 30 +
.../PSArgumentCompleterAttribute.cs | 52 +
.../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 6 +-
.../BuildTime/Cmdlets/ExportModelSurface.cs | 2 +-
.../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 4 +-
.../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 8 +-
.../BuildTime/Cmdlets/ExportTestStub.cs | 211 +-
.../runtime/BuildTime/MarkdownRenderer.cs | 2 +-
.../BuildTime/Models/PsMarkdownTypes.cs | 43 +-
.../BuildTime/Models/PsProxyOutputs.cs | 60 +-
.../runtime/BuildTime/Models/PsProxyTypes.cs | 56 +-
.../runtime/BuildTime/PsAttributes.cs | 15 +
.../runtime/BuildTime/PsExtensions.cs | 7 +
.../generated/runtime/BuildTime/PsHelpers.cs | 4 +-
.../generated/runtime/Context.cs | 33 +
.../generated/runtime/Events.cs | 4 +-
.../generated/runtime/ISendAsync.cs | 113 +
.../generated/runtime/InfoAttribute.cs | 4 +
.../generated/runtime/InputHandler.cs | 22 +
.../runtime/Nodes/Collections/XNodeArray.cs | 5 +
.../generated/runtime/SerializationMode.cs | 8 +-
.../runtime/TypeConverterExtensions.cs | 50 +
.../internal/Get-AzDatadogOperation.ps1 | 10 +-
.../internal/ProxyCmdletDefinitions.ps1 | 10 +-
.../Datadog.Autorest/resources/README.md | 11 +
.../Datadog/Datadog.Autorest/test-module.ps1 | 10 +-
311 files changed, 28753 insertions(+), 7660 deletions(-)
create mode 100644 generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogSingleSignOnConfiguration.ps1
create mode 100644 generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogTagRule.ps1
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Models/Api20210301/DatadogMonitorResource.PowerShell.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Models/Api20210301/MonitorProperties.PowerShell.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Models/Api20210301/MonitoringTagRules.PowerShell.cs
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementProperties.PowerShell.cs (63%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementProperties.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementProperties.cs (91%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementProperties.json.cs (92%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResource.PowerShell.cs (50%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResource.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResource.cs (60%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResource.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResourceListResponse.PowerShell.cs (74%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResourceListResponse.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResourceListResponse.cs (71%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogAgreementResourceListResponse.json.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKey.PowerShell.cs (75%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKey.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKey.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKey.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKeyListResponse.PowerShell.cs (76%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKeyListResponse.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKeyListResponse.cs (72%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogApiKeyListResponse.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHost.PowerShell.cs (58%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHost.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHost.cs (62%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHost.json.cs (88%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostListResponse.PowerShell.cs (76%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostListResponse.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostListResponse.cs (72%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostListResponse.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostMetadata.PowerShell.cs (63%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostMetadata.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostMetadata.cs (65%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogHostMetadata.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogInstallMethod.PowerShell.cs (77%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogInstallMethod.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogInstallMethod.cs (88%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogInstallMethod.json.cs (94%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogLogsAgent.PowerShell.cs (85%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogLogsAgent.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogLogsAgent.cs (84%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogLogsAgent.json.cs (94%)
create mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Models/DatadogMonitorResource.PowerShell.cs
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResource.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResource.cs (57%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResource.json.cs (88%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceListResponse.PowerShell.cs (75%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceListResponse.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceListResponse.cs (71%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceListResponse.json.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceTags.PowerShell.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceTags.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceTags.cs (79%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceTags.dictionary.cs (95%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceTags.json.cs (95%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParameters.PowerShell.cs (64%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParameters.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParameters.cs (56%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParameters.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParametersTags.PowerShell.cs (88%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParametersTags.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParametersTags.cs (79%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParametersTags.dictionary.cs (95%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogMonitorResourceUpdateParametersTags.json.cs (94%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogOrganizationProperties.PowerShell.cs (64%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogOrganizationProperties.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogOrganizationProperties.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogOrganizationProperties.json.cs (67%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSetPasswordLink.PowerShell.cs (84%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSetPasswordLink.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSetPasswordLink.cs (83%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSetPasswordLink.json.cs (94%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnProperties.PowerShell.cs (69%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnProperties.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnProperties.cs (67%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnProperties.json.cs (92%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResource.PowerShell.cs (50%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResource.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResource.cs (52%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResource.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResourceListResponse.PowerShell.cs (74%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResourceListResponse.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResourceListResponse.cs (71%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/DatadogSingleSignOnResourceListResponse.json.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorAdditionalInfo.PowerShell.cs (80%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorAdditionalInfo.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorAdditionalInfo.cs (82%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorAdditionalInfo.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorDetail.PowerShell.cs (69%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorDetail.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorDetail.cs (66%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorDetail.json.cs (84%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorResponse.PowerShell.cs (66%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorResponse.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorResponse.cs (58%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/ErrorResponse.json.cs (95%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/FilteringTag.PowerShell.cs (78%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/FilteringTag.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/FilteringTag.cs (80%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/FilteringTag.json.cs (92%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/IdentityProperties.PowerShell.cs (76%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/IdentityProperties.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/IdentityProperties.cs (74%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/IdentityProperties.json.cs (92%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResource.PowerShell.cs (85%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResource.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResource.cs (86%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResource.json.cs (94%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResourceListResponse.PowerShell.cs (76%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResourceListResponse.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResourceListResponse.cs (72%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LinkedResourceListResponse.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LogRules.PowerShell.cs (71%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LogRules.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LogRules.cs (85%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/LogRules.json.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MetricRules.PowerShell.cs (80%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MetricRules.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MetricRules.cs (76%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MetricRules.json.cs (88%)
create mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Models/MonitorProperties.PowerShell.cs
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorProperties.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorProperties.cs (63%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorProperties.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorUpdateProperties.PowerShell.cs (82%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorUpdateProperties.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorUpdateProperties.cs (68%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitorUpdateProperties.json.cs (94%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResource.PowerShell.cs (71%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResource.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResource.cs (91%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResource.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResourceListResponse.PowerShell.cs (75%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResourceListResponse.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResourceListResponse.cs (72%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoredResourceListResponse.json.cs (89%)
create mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Models/MonitoringTagRules.PowerShell.cs
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRules.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRules.cs (57%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRules.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesListResponse.PowerShell.cs (75%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesListResponse.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesListResponse.cs (71%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesListResponse.json.cs (89%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesProperties.PowerShell.cs (56%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesProperties.TypeConverter.cs (96%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesProperties.cs (66%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/MonitoringTagRulesProperties.json.cs (92%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationDisplay.PowerShell.cs (75%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationDisplay.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationDisplay.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationDisplay.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationListResult.PowerShell.cs (77%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationListResult.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationListResult.cs (74%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationListResult.json.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationResult.PowerShell.cs (66%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationResult.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationResult.cs (76%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/OperationResult.json.cs (94%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/ResourceSku.PowerShell.cs (85%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/ResourceSku.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/ResourceSku.cs (84%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/ResourceSku.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/SystemData.PowerShell.cs (67%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/SystemData.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/SystemData.cs (78%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20 => }/SystemData.json.cs (93%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/UserInfo.PowerShell.cs (79%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/UserInfo.TypeConverter.cs (97%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/UserInfo.cs (90%)
rename generated/Datadog/Datadog.Autorest/generated/api/Models/{Api20210301 => }/UserInfo.json.cs (93%)
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/CreatedByType.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/CreatedByType.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/LiftrResourceCategories.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/LiftrResourceCategories.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/LiftrResourceCategories.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/ManagedIdentityTypes.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/ManagedIdentityTypes.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/ManagedIdentityTypes.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/MarketplaceSubscriptionStatus.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/MarketplaceSubscriptionStatus.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/MarketplaceSubscriptionStatus.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/MonitoringStatus.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/MonitoringStatus.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/MonitoringStatus.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/ProvisioningState.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/ProvisioningState.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/SingleSignOnStates.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/SingleSignOnStates.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/SingleSignOnStates.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/TagAction.Completer.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/TagAction.TypeConverter.cs
delete mode 100644 generated/Datadog/Datadog.Autorest/generated/api/Support/TagAction.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/GetAzDatadogSingleSignOnConfiguration_GetViaIdentityMonitor.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/GetAzDatadogTagRule_GetViaIdentityMonitor.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogMarketplaceAgreement_CreateViaJsonFilePath.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogMarketplaceAgreement_CreateViaJsonString.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogMonitor_CreateViaIdentityExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogMonitor_CreateViaJsonFilePath.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogMonitor_CreateViaJsonString.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogSingleSignOnConfiguration_CreateViaIdentityMonitorExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogSingleSignOnConfiguration_CreateViaJsonFilePath.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogSingleSignOnConfiguration_CreateViaJsonString.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogTagRule_CreateViaIdentityMonitorExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogTagRule_CreateViaJsonFilePath.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/NewAzDatadogTagRule_CreateViaJsonString.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/SetAzDatadogMonitorDefaultKey_SetViaJsonFilePath.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/SetAzDatadogMonitorDefaultKey_SetViaJsonString.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogMonitor_UpdateViaJsonFilePath.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogMonitor_UpdateViaJsonString.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogSingleSignOnConfiguration_UpdateExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogSingleSignOnConfiguration_UpdateViaIdentityExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogSingleSignOnConfiguration_UpdateViaIdentityMonitorExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogTagRule_UpdateExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogTagRule_UpdateViaIdentityExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/cmdlets/UpdateAzDatadogTagRule_UpdateViaIdentityMonitorExpanded.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/runtime/Context.cs
create mode 100644 generated/Datadog/Datadog.Autorest/generated/runtime/InputHandler.cs
create mode 100644 generated/Datadog/Datadog.Autorest/resources/README.md
diff --git a/generated/Datadog/Datadog.Autorest/Az.Datadog.csproj b/generated/Datadog/Datadog.Autorest/Az.Datadog.csproj
index cce7e27ee4ef..bf651c21f615 100644
--- a/generated/Datadog/Datadog.Autorest/Az.Datadog.csproj
+++ b/generated/Datadog/Datadog.Autorest/Az.Datadog.csproj
@@ -2,9 +2,9 @@
Datadog
Datadog
+ Datadog.Autorest
-
diff --git a/generated/Datadog/Datadog.Autorest/Az.Datadog.format.ps1xml b/generated/Datadog/Datadog.Autorest/Az.Datadog.format.ps1xml
index 2b3e5b8e03f6..b2a7f2bdf55a 100644
--- a/generated/Datadog/Datadog.Autorest/Az.Datadog.format.ps1xml
+++ b/generated/Datadog/Datadog.Autorest/Az.Datadog.format.ps1xml
@@ -2,141 +2,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogIdentity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ConfigurationName
-
-
- MonitorName
-
-
- ResourceGroupName
-
-
- RuleSetName
-
-
- SubscriptionId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20.ErrorDetail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- Message
-
-
- Target
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20.SystemData
-
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20.SystemData
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CreatedAt
-
-
- CreatedBy
-
-
- CreatedByType
-
-
- LastModifiedAt
-
-
- LastModifiedBy
-
-
- LastModifiedByType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementProperties#Multiple
@@ -198,15 +66,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResource
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResource#Multiple
+
+
+
@@ -214,15 +85,18 @@
Name
+
+ ResourceGroupName
+
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResourceListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResourceListResponse#Multiple
@@ -242,9 +116,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogApiKey
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogApiKey
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogApiKey
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogApiKey#Multiple
@@ -282,9 +156,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogApiKeyListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogApiKeyListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogApiKeyListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogApiKeyListResponse#Multiple
@@ -304,18 +178,12 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogHost
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogHost
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogHost
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogHost#Multiple
-
-
-
-
-
-
@@ -323,12 +191,6 @@
-
- Alias
-
-
- App
-
Name
@@ -338,9 +200,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogHostListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogHostListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogHostListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogHostListResponse#Multiple
@@ -360,9 +222,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogHostMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogHostMetadata
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogHostMetadata
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogHostMetadata#Multiple
@@ -382,9 +244,55 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogInstallMethod
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ConfigurationName
+
+
+ MonitorName
+
+
+ ResourceGroupName
+
+
+ RuleSetName
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogInstallMethod
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogInstallMethod
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogInstallMethod#Multiple
@@ -416,9 +324,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogLogsAgent
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogLogsAgent
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogLogsAgent
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogLogsAgent#Multiple
@@ -438,9 +346,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResource
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResource#Multiple
@@ -450,6 +358,9 @@
+
+
+
@@ -460,15 +371,18 @@
Name
+
+ ResourceGroupName
+
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResourceListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResourceListResponse#Multiple
@@ -488,9 +402,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResourceTags#Multiple
@@ -510,9 +424,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResourceUpdateParametersTags
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResourceUpdateParametersTags
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogMonitorResourceUpdateParametersTags
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogMonitorResourceUpdateParametersTags#Multiple
@@ -532,9 +446,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogOrganizationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogOrganizationProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogOrganizationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogOrganizationProperties#Multiple
@@ -590,9 +504,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSetPasswordLink
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSetPasswordLink
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSetPasswordLink
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSetPasswordLink#Multiple
@@ -612,9 +526,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSingleSignOnProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSingleSignOnProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSingleSignOnProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSingleSignOnProperties#Multiple
@@ -652,15 +566,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSingleSignOnResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSingleSignOnResource
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSingleSignOnResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSingleSignOnResource#Multiple
+
+
+
@@ -668,15 +585,18 @@
Name
+
+ ResourceGroupName
+
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSingleSignOnResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSingleSignOnResourceListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogSingleSignOnResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogSingleSignOnResourceListResponse#Multiple
@@ -696,9 +616,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.FilteringTag
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.FilteringTag
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ErrorDetail#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.FilteringTag
+
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.FilteringTag#Multiple
@@ -730,9 +684,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IdentityProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IdentityProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IdentityProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IdentityProperties#Multiple
@@ -758,9 +712,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.LinkedResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.LinkedResourceListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.LinkedResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.LinkedResourceListResponse#Multiple
@@ -780,9 +734,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.LogRules
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.LogRules
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.LogRules
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.LogRules#Multiple
@@ -814,9 +768,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoredResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoredResource
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoredResource
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoredResource#Multiple
@@ -854,9 +808,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoredResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoredResourceListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoredResourceListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoredResourceListResponse#Multiple
@@ -876,15 +830,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoringTagRules
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoringTagRules
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoringTagRules
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoringTagRules#Multiple
+
+
+
@@ -892,15 +849,18 @@
Name
+
+ ResourceGroupName
+
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoringTagRulesListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoringTagRulesListResponse
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoringTagRulesListResponse
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoringTagRulesListResponse#Multiple
@@ -920,9 +880,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoringTagRulesProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoringTagRulesProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitoringTagRulesProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitoringTagRulesProperties#Multiple
@@ -942,9 +902,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitorProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitorProperties#Multiple
@@ -988,9 +948,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitorUpdateProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitorUpdateProperties
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.MonitorUpdateProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.MonitorUpdateProperties#Multiple
@@ -1010,9 +970,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.OperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.OperationDisplay#Multiple
@@ -1050,9 +1010,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.OperationListResult
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.OperationListResult#Multiple
@@ -1072,9 +1032,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.OperationResult
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.OperationResult
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.OperationResult
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.OperationResult#Multiple
@@ -1100,9 +1060,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.ResourceSku
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ResourceSku
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.ResourceSku
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ResourceSku#Multiple
@@ -1122,9 +1082,61 @@
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.UserInfo
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.SystemData#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.UserInfo
- Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.UserInfo
+ Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.UserInfo#Multiple
diff --git a/generated/Datadog/Datadog.Autorest/Az.Datadog.psd1 b/generated/Datadog/Datadog.Autorest/Az.Datadog.psd1
index 9d32c045ef96..fc597608c408 100644
--- a/generated/Datadog/Datadog.Autorest/Az.Datadog.psd1
+++ b/generated/Datadog/Datadog.Autorest/Az.Datadog.psd1
@@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Datadog.private.dll'
FormatsToProcess = './Az.Datadog.format.ps1xml'
- FunctionsToExport = 'Get-AzDatadogMarketplaceAgreement', 'Get-AzDatadogMonitor', 'Get-AzDatadogMonitorApiKey', 'Get-AzDatadogMonitorDefaultKey', 'Get-AzDatadogMonitorHost', 'Get-AzDatadogMonitorLinkedResource', 'Get-AzDatadogMonitorMonitoredResource', 'Get-AzDatadogSingleSignOnConfiguration', 'Get-AzDatadogTagRule', 'New-AzDatadogFilteringTagObject', 'New-AzDatadogMarketplaceAgreement', 'New-AzDatadogMonitor', 'New-AzDatadogSingleSignOnConfiguration', 'New-AzDatadogTagRule', 'Remove-AzDatadogMonitor', 'Set-AzDatadogMonitorDefaultKey', 'Update-AzDatadogMonitor', 'Update-AzDatadogMonitorSetPasswordLink', '*'
- AliasesToExport = '*'
+ FunctionsToExport = 'Get-AzDatadogMarketplaceAgreement', 'Get-AzDatadogMonitor', 'Get-AzDatadogMonitorApiKey', 'Get-AzDatadogMonitorDefaultKey', 'Get-AzDatadogMonitorHost', 'Get-AzDatadogMonitorLinkedResource', 'Get-AzDatadogMonitorMonitoredResource', 'Get-AzDatadogSingleSignOnConfiguration', 'Get-AzDatadogTagRule', 'New-AzDatadogFilteringTagObject', 'New-AzDatadogMarketplaceAgreement', 'New-AzDatadogMonitor', 'New-AzDatadogSingleSignOnConfiguration', 'New-AzDatadogTagRule', 'Remove-AzDatadogMonitor', 'Set-AzDatadogMonitorDefaultKey', 'Update-AzDatadogMonitor', 'Update-AzDatadogMonitorSetPasswordLink', 'Update-AzDatadogSingleSignOnConfiguration', 'Update-AzDatadogTagRule'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Datadog'
diff --git a/generated/Datadog/Datadog.Autorest/Properties/AssemblyInfo.cs b/generated/Datadog/Datadog.Autorest/Properties/AssemblyInfo.cs
index 8e70270026b4..d97d4bfa5713 100644
--- a/generated/Datadog/Datadog.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Datadog/Datadog.Autorest/Properties/AssemblyInfo.cs
@@ -1,28 +1,27 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
+// 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,
+// 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: AssemblyTitle("Microsoft Azure Powershell - Datadog")]
-[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
-[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
-[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+[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 - Datadog")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
-[assembly: ComVisible(false)]
-[assembly: CLSCompliant(false)]
-[assembly: Guid("2803dd32-1677-468c-b63a-dbfbc253d002")]
-[assembly: AssemblyVersion("0.1.2")]
-[assembly: AssemblyFileVersion("0.1.2")]
diff --git a/generated/Datadog/Datadog.Autorest/check-dependencies.ps1 b/generated/Datadog/Datadog.Autorest/check-dependencies.ps1
index c29591c7bfe1..90ca9867ae40 100644
--- a/generated/Datadog/Datadog.Autorest/check-dependencies.ps1
+++ b/generated/Datadog/Datadog.Autorest/check-dependencies.ps1
@@ -12,13 +12,13 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
$ErrorActionPreference = 'Stop'
-if(-not $Isolated) {
+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 -Isolated
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
return
}
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMarketplaceAgreement.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMarketplaceAgreement.ps1
index 9e69bc9ed93c..d1f113e8e50d 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMarketplaceAgreement.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMarketplaceAgreement.ps1
@@ -23,12 +23,12 @@ List Datadog marketplace agreements in the subscription.
Get-AzDatadogMarketplaceAgreement
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmarketplaceagreement
#>
function Get-AzDatadogMarketplaceAgreement {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -94,6 +94,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -115,9 +124,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMarketplaceAgreement_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -131,6 +138,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitor.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitor.ps1
index 4c562d509b0a..2ceaa788e318 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitor.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitor.ps1
@@ -31,7 +31,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzD
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitor
#>
function Get-AzDatadogMonitor {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -79,7 +79,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -138,6 +137,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -162,9 +170,7 @@ begin {
List = 'Az.Datadog.private\Get-AzDatadogMonitor_List';
List1 = 'Az.Datadog.private\Get-AzDatadogMonitor_List1';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -178,6 +184,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorApiKey.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorApiKey.ps1
index b258e67f2ea6..b695b91a7c9a 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorApiKey.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorApiKey.ps1
@@ -23,12 +23,12 @@ List the api keys for a given monitor resource.
Get-AzDatadogMonitorApiKey -ResourceGroupName azure-rg-Datadog -Name Datadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitorapikey
#>
function Get-AzDatadogMonitorApiKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -107,6 +107,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -128,9 +137,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorApiKey_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -144,6 +151,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorDefaultKey.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorDefaultKey.ps1
index 46b80541ade4..72d38659f841 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorDefaultKey.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorDefaultKey.ps1
@@ -27,7 +27,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzD
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitordefaultkey
#>
function Get-AzDatadogMonitorDefaultKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -71,7 +71,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -130,6 +129,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -152,9 +160,7 @@ begin {
Get = 'Az.Datadog.private\Get-AzDatadogMonitorDefaultKey_Get';
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogMonitorDefaultKey_GetViaIdentity';
}
- if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -168,6 +174,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorHost.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorHost.ps1
index 53400d5337d2..7246582dc600 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorHost.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorHost.ps1
@@ -23,12 +23,12 @@ List the hosts for a given monitor resource.
Get-AzDatadogMonitorHost -ResourceGroupName azure-rg-Datadog -Name Datadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogHost
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogHost
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitorhost
#>
function Get-AzDatadogMonitorHost {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogHost])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogHost])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -107,6 +107,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -128,9 +137,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorHost_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -144,6 +151,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorLinkedResource.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorLinkedResource.ps1
index a10e8482897d..31796a365222 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorLinkedResource.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorLinkedResource.ps1
@@ -23,12 +23,12 @@ List all Azure resources associated to the same Datadog organization as the targ
Get-AzDatadogMonitorLinkedResource -ResourceGroupName azure-rg-Datadog -Name lucasDatadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.ILinkedResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ILinkedResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitorlinkedresource
#>
function Get-AzDatadogMonitorLinkedResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.ILinkedResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ILinkedResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -107,6 +107,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -128,9 +137,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorLinkedResource_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -144,6 +151,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorMonitoredResource.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorMonitoredResource.ps1
index 41c13e13d7db..3bfc4ce32fb5 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorMonitoredResource.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogMonitorMonitoredResource.ps1
@@ -23,12 +23,12 @@ List the resources currently being monitored by the Datadog monitor resource.
Get-AzDatadogMonitorMonitoredResource -ResourceGroupName azure-rg-Datadog -Name Datadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoredResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoredResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitormonitoredresource
#>
function Get-AzDatadogMonitorMonitoredResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoredResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoredResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -107,6 +107,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -128,9 +137,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorMonitoredResource_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -144,6 +151,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogSingleSignOnConfiguration.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogSingleSignOnConfiguration.ps1
index d9d3b0541651..aa3bb1b2bcd9 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogSingleSignOnConfiguration.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogSingleSignOnConfiguration.ps1
@@ -29,7 +29,7 @@ New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -Moni
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -42,11 +42,19 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[RuleSetName ]: Rule set name
[SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogsinglesignonconfiguration
#>
function Get-AzDatadogSingleSignOnConfiguration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -57,6 +65,7 @@ param(
${MonitorName},
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Configuration name
@@ -82,9 +91,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -141,6 +155,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -162,11 +185,10 @@ begin {
$mapping = @{
Get = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_Get';
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_GetViaIdentity';
+ GetViaIdentityMonitor = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_GetViaIdentityMonitor';
List = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -180,6 +202,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogTagRule.ps1 b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogTagRule.ps1
index 34bfb3dcaf53..0a9d0d809ba7 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogTagRule.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Get-AzDatadogTagRule.ps1
@@ -29,7 +29,7 @@ Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -N
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -42,11 +42,19 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[RuleSetName ]: Rule set name
[SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogtagrule
#>
function Get-AzDatadogTagRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -57,6 +65,7 @@ param(
${MonitorName},
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Rule set name
@@ -82,9 +91,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -141,6 +155,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -162,11 +185,10 @@ begin {
$mapping = @{
Get = 'Az.Datadog.private\Get-AzDatadogTagRule_Get';
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogTagRule_GetViaIdentity';
+ GetViaIdentityMonitor = 'Az.Datadog.private\Get-AzDatadogTagRule_GetViaIdentityMonitor';
List = 'Az.Datadog.private\Get-AzDatadogTagRule_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -180,6 +202,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogFilteringTagObject.ps1 b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogFilteringTagObject.ps1
index 3d0c0129316e..598dc4ea8891 100644
--- a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogFilteringTagObject.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogFilteringTagObject.ps1
@@ -23,18 +23,18 @@ Create an in-memory object for FilteringTag.
New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.FilteringTag
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.FilteringTag
.Link
-https://learn.microsoft.com/powershell/module/Az.Datadog/new-AzDatadogFilteringTagObject
+https://learn.microsoft.com/powershell/module/Az.Datadog/new-azdatadogfilteringtagobject
#>
function New-AzDatadogFilteringTagObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.FilteringTag])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.FilteringTag])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.TagAction])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Include", "Exclude")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.TagAction]
+ [System.String]
# Valid actions for a filtering tag.
# Exclusion takes priority over inclusion.
${Action},
@@ -59,6 +59,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -87,6 +90,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMarketplaceAgreement.ps1 b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMarketplaceAgreement.ps1
index 61ae9c4d9742..4e3f9727703d 100644
--- a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMarketplaceAgreement.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMarketplaceAgreement.ps1
@@ -16,19 +16,19 @@
<#
.Synopsis
-Create Datadog marketplace agreement in the subscription.
+create Datadog marketplace agreement in the subscription.
.Description
-Create Datadog marketplace agreement in the subscription.
+create Datadog marketplace agreement in the subscription.
.Example
New-AzDatadogMarketplaceAgreement -Accepted
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogmarketplaceagreement
#>
function New-AzDatadogMarketplaceAgreement {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -38,55 +38,67 @@ param(
# The ID of the target subscription.
${SubscriptionId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# If any version of the terms have been accepted, otherwise false.
${Accepted},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Link to HTML with Microsoft and Publisher terms.
${LicenseTextLink},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Plan identifier string.
${Plan},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Link to the privacy policy of the publisher.
${PrivacyPolicyLink},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Product identifier string.
${Product},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Publisher identifier string.
${Publisher},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.DateTime]
# Date and time in UTC of when the terms were accepted.
# This is empty if Accepted is false.
${RetrieveDatetime},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Terms signature.
${Signature},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -143,6 +155,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -163,10 +184,10 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogMarketplaceAgreement_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogMarketplaceAgreement_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogMarketplaceAgreement_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -180,6 +201,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMonitor.ps1 b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMonitor.ps1
index 2265c3b9a052..04e1cbf5fab5 100644
--- a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMonitor.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogMonitor.ps1
@@ -16,129 +16,180 @@
<#
.Synopsis
-Create a monitor resource.
+create a monitor resource.
.Description
-Create a monitor resource.
+create a monitor resource.
.Example
-New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -IdentityType SystemAssigned
+New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -EnableSystemAssignedIdentity:$true
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource
+.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
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogmonitor
#>
function New-AzDatadogMonitor {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('MonitorName')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Monitor resource name
${Name},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# .
${Location},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.ManagedIdentityTypes])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.ManagedIdentityTypes]
- # Identity type
- ${IdentityType},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus])]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus]
+ [System.String]
# Flag specifying if the resource monitoring is enabled or disabled.
${MonitoringStatus},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Api key associated to the Datadog organization.
${OrganizationApiKey},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Application key associated to the Datadog organization.
${OrganizationApplicationKey},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The Id of the Enterprise App used for Single sign on.
${OrganizationEnterpriseAppId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The auth code used to linking to an existing datadog organization.
${OrganizationLinkingAuthCode},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The client_id from an existing in exchange for an auth token to link organization.
${OrganizationLinkingClientId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The redirect uri for linking.
${OrganizationRedirectUri},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Name of the SKU.
${SkuName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResourceTags]))]
[System.Collections.Hashtable]
# Dictionary of
${Tag},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Email of the user used by Datadog for contacting them if needed
${UserInfoEmailAddress},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Name of the user
${UserInfoName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Phone number of the user used by Datadog for contacting them if needed
${UserInfoPhoneNumber},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -207,6 +258,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -227,10 +287,11 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogMonitor_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.Datadog.private\New-AzDatadogMonitor_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogMonitor_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogMonitor_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -244,6 +305,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogSingleSignOnConfiguration.ps1 b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogSingleSignOnConfiguration.ps1
index 817131146331..e890db78fe8d 100644
--- a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogSingleSignOnConfiguration.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogSingleSignOnConfiguration.ps1
@@ -27,7 +27,7 @@ Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -Moni
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -40,26 +40,41 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[RuleSetName ]: Rule set name
[SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogsinglesignonconfiguration
#>
function New-AzDatadogSingleSignOnConfiguration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Monitor resource name
${MonitorName},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Configuration name
${Name},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
@@ -67,6 +82,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -77,22 +94,43 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The Id of the Enterprise App used for Single sign-on.
${EnterpriseAppId},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.SingleSignOnStates])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Initial", "Enable", "Disable", "Existing")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.SingleSignOnStates]
+ [System.String]
# Various states of the SSO resource
${SingleSignOnState},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -161,6 +199,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -182,10 +229,11 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateExpanded';
CreateViaIdentityExpanded = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaIdentityExpanded';
+ CreateViaIdentityMonitorExpanded = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaIdentityMonitorExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -199,6 +247,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogTagRule.ps1 b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogTagRule.ps1
index 0b4f5992d624..28c27610dd67 100644
--- a/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogTagRule.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/New-AzDatadogTagRule.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Create or update a tag rule set for a given monitor resource.
+create a tag rule set for a given monitor resource.
.Description
-Create or update a tag rule set for a given monitor resource.
+create a tag rule set for a given monitor resource.
.Example
$ftobjArray = @()
$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
@@ -33,7 +33,7 @@ Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -N
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,34 +48,49 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
LOGRULEFILTERINGTAG : List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
[Name ]: The name (also known as the key) of the tag.
[Value ]: The value of the tag.
METRICRULEFILTERINGTAG : List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
[Name ]: The name (also known as the key) of the tag.
[Value ]: The value of the tag.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogtagrule
#>
function New-AzDatadogTagRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Monitor resource name
${MonitorName},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Rule set name
${Name},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
@@ -83,6 +98,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -93,50 +110,75 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IFilteringTag[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
# List of filtering tags to be used for capturing logs.
# This only takes effect if SendResourceLogs flag is enabled.
# If empty, all resources will be captured.
# If only Exclude action is specified, the rules will apply to the list of all available resources.
# If Include actions are specified, the rules will only include resources with the associated tags.
- # To construct, see NOTES section for LOGRULEFILTERINGTAG properties and create a hash table.
${LogRuleFilteringTag},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag specifying if AAD logs should be sent for the Monitor resource.
${LogRuleSendAadLog},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag specifying if Azure resource logs should be sent for the Monitor resource.
${LogRuleSendResourceLog},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag specifying if Azure subscription logs should be sent for the Monitor resource.
${LogRuleSendSubscriptionLog},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IFilteringTag[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
# List of filtering tags to be used for capturing metrics.
# If empty, all resources will be captured.
# If only Exclude action is specified, the rules will apply to the list of all available resources.
# If Include actions are specified, the rules will only include resources with the associated tags.
- # To construct, see NOTES section for METRICRULEFILTERINGTAG properties and create a hash table.
${MetricRuleFilteringTag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -193,6 +235,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -214,10 +265,11 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogTagRule_CreateExpanded';
CreateViaIdentityExpanded = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaIdentityExpanded';
+ CreateViaIdentityMonitorExpanded = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaIdentityMonitorExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -231,6 +283,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Datadog/Datadog.Autorest/exports/ProxyCmdletDefinitions.ps1
index 4c8d67418509..03104f806c48 100644
--- a/generated/Datadog/Datadog.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -23,12 +23,12 @@ List Datadog marketplace agreements in the subscription.
Get-AzDatadogMarketplaceAgreement
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmarketplaceagreement
#>
function Get-AzDatadogMarketplaceAgreement {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -94,6 +94,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -115,9 +124,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMarketplaceAgreement_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -131,6 +138,9 @@ begin {
[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)
@@ -183,12 +193,12 @@ List the api keys for a given monitor resource.
Get-AzDatadogMonitorApiKey -ResourceGroupName azure-rg-Datadog -Name Datadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitorapikey
#>
function Get-AzDatadogMonitorApiKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -267,6 +277,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -288,9 +307,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorApiKey_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -304,6 +321,9 @@ begin {
[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)
@@ -360,7 +380,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzD
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -377,7 +397,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitordefaultkey
#>
function Get-AzDatadogMonitorDefaultKey {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogApiKey])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogApiKey])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -404,7 +424,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -463,6 +482,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -485,9 +513,7 @@ begin {
Get = 'Az.Datadog.private\Get-AzDatadogMonitorDefaultKey_Get';
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogMonitorDefaultKey_GetViaIdentity';
}
- if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -501,6 +527,9 @@ begin {
[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)
@@ -553,12 +582,12 @@ List the hosts for a given monitor resource.
Get-AzDatadogMonitorHost -ResourceGroupName azure-rg-Datadog -Name Datadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogHost
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogHost
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitorhost
#>
function Get-AzDatadogMonitorHost {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogHost])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogHost])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -637,6 +666,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -658,9 +696,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorHost_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -674,6 +710,9 @@ begin {
[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)
@@ -726,12 +765,12 @@ List all Azure resources associated to the same Datadog organization as the targ
Get-AzDatadogMonitorLinkedResource -ResourceGroupName azure-rg-Datadog -Name lucasDatadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.ILinkedResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ILinkedResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitorlinkedresource
#>
function Get-AzDatadogMonitorLinkedResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.ILinkedResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ILinkedResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -810,6 +849,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -831,9 +879,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorLinkedResource_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -847,6 +893,9 @@ begin {
[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)
@@ -899,12 +948,12 @@ List the resources currently being monitored by the Datadog monitor resource.
Get-AzDatadogMonitorMonitoredResource -ResourceGroupName azure-rg-Datadog -Name Datadog
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoredResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoredResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitormonitoredresource
#>
function Get-AzDatadogMonitorMonitoredResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoredResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoredResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -983,6 +1032,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -1004,9 +1062,7 @@ begin {
$mapping = @{
List = 'Az.Datadog.private\Get-AzDatadogMonitorMonitoredResource_List';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1020,6 +1076,9 @@ begin {
[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)
@@ -1080,7 +1139,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzD
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1097,7 +1156,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogmonitor
#>
function Get-AzDatadogMonitor {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1128,7 +1187,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -1187,6 +1245,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -1211,9 +1278,7 @@ begin {
List = 'Az.Datadog.private\Get-AzDatadogMonitor_List';
List1 = 'Az.Datadog.private\Get-AzDatadogMonitor_List1';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1227,6 +1292,9 @@ begin {
[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)
@@ -1285,7 +1353,7 @@ New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -Moni
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1298,11 +1366,19 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[RuleSetName ]: Rule set name
[SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogsinglesignonconfiguration
#>
function Get-AzDatadogSingleSignOnConfiguration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1313,6 +1389,7 @@ param(
${MonitorName},
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Configuration name
@@ -1338,9 +1415,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1397,6 +1479,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -1418,11 +1509,10 @@ begin {
$mapping = @{
Get = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_Get';
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_GetViaIdentity';
+ GetViaIdentityMonitor = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_GetViaIdentityMonitor';
List = 'Az.Datadog.private\Get-AzDatadogSingleSignOnConfiguration_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1436,6 +1526,9 @@ begin {
[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)
@@ -1494,7 +1587,7 @@ Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -N
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1507,11 +1600,19 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[RuleSetName ]: Rule set name
[SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogtagrule
#>
function Get-AzDatadogTagRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1522,6 +1623,7 @@ param(
${MonitorName},
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Rule set name
@@ -1547,9 +1649,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityMonitor', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1606,6 +1713,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -1627,11 +1743,10 @@ begin {
$mapping = @{
Get = 'Az.Datadog.private\Get-AzDatadogTagRule_Get';
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogTagRule_GetViaIdentity';
+ GetViaIdentityMonitor = 'Az.Datadog.private\Get-AzDatadogTagRule_GetViaIdentityMonitor';
List = 'Az.Datadog.private\Get-AzDatadogTagRule_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1645,6 +1760,9 @@ begin {
[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)
@@ -1690,19 +1808,19 @@ end {
<#
.Synopsis
-Create Datadog marketplace agreement in the subscription.
+create Datadog marketplace agreement in the subscription.
.Description
-Create Datadog marketplace agreement in the subscription.
+create Datadog marketplace agreement in the subscription.
.Example
New-AzDatadogMarketplaceAgreement -Accepted
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogmarketplaceagreement
#>
function New-AzDatadogMarketplaceAgreement {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -1712,55 +1830,67 @@ param(
# The ID of the target subscription.
${SubscriptionId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# If any version of the terms have been accepted, otherwise false.
${Accepted},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Link to HTML with Microsoft and Publisher terms.
${LicenseTextLink},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Plan identifier string.
${Plan},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Link to the privacy policy of the publisher.
${PrivacyPolicyLink},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Product identifier string.
${Product},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Publisher identifier string.
${Publisher},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.DateTime]
# Date and time in UTC of when the terms were accepted.
# This is empty if Accepted is false.
${RetrieveDatetime},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Terms signature.
${Signature},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1817,6 +1947,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -1837,10 +1976,10 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogMarketplaceAgreement_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogMarketplaceAgreement_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogMarketplaceAgreement_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1854,6 +1993,9 @@ begin {
[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)
@@ -1899,129 +2041,180 @@ end {
<#
.Synopsis
-Create a monitor resource.
+create a monitor resource.
.Description
-Create a monitor resource.
+create a monitor resource.
.Example
-New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -IdentityType SystemAssigned
+New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -EnableSystemAssignedIdentity:$true
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource
+.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
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogmonitor
#>
function New-AzDatadogMonitor {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('MonitorName')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Monitor resource name
${Name},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# .
${Location},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.ManagedIdentityTypes])]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.ManagedIdentityTypes]
- # Identity type
- ${IdentityType},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus]
+ [System.String]
# Flag specifying if the resource monitoring is enabled or disabled.
${MonitoringStatus},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Api key associated to the Datadog organization.
${OrganizationApiKey},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Application key associated to the Datadog organization.
${OrganizationApplicationKey},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The Id of the Enterprise App used for Single sign on.
${OrganizationEnterpriseAppId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The auth code used to linking to an existing datadog organization.
${OrganizationLinkingAuthCode},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The client_id from an existing in exchange for an auth token to link organization.
${OrganizationLinkingClientId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The redirect uri for linking.
${OrganizationRedirectUri},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Name of the SKU.
${SkuName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResourceTags]))]
[System.Collections.Hashtable]
# Dictionary of
${Tag},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Email of the user used by Datadog for contacting them if needed
${UserInfoEmailAddress},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Name of the user
${UserInfoName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Phone number of the user used by Datadog for contacting them if needed
${UserInfoPhoneNumber},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2090,6 +2283,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -2110,10 +2312,11 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogMonitor_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.Datadog.private\New-AzDatadogMonitor_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogMonitor_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogMonitor_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2127,6 +2330,9 @@ begin {
[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)
@@ -2183,7 +2389,7 @@ Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -Moni
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2196,26 +2402,41 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[RuleSetName ]: Rule set name
[SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogsinglesignonconfiguration
#>
function New-AzDatadogSingleSignOnConfiguration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogSingleSignOnResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Monitor resource name
${MonitorName},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Configuration name
${Name},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
@@ -2223,6 +2444,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -2233,22 +2456,43 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The Id of the Enterprise App used for Single sign-on.
${EnterpriseAppId},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.SingleSignOnStates])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Initial", "Enable", "Disable", "Existing")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.SingleSignOnStates]
+ [System.String]
# Various states of the SSO resource
${SingleSignOnState},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2317,6 +2561,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -2338,10 +2591,11 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateExpanded';
CreateViaIdentityExpanded = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaIdentityExpanded';
+ CreateViaIdentityMonitorExpanded = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaIdentityMonitorExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogSingleSignOnConfiguration_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2355,6 +2609,9 @@ begin {
[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)
@@ -2400,9 +2657,9 @@ end {
<#
.Synopsis
-Create or update a tag rule set for a given monitor resource.
+create a tag rule set for a given monitor resource.
.Description
-Create or update a tag rule set for a given monitor resource.
+create a tag rule set for a given monitor resource.
.Example
$ftobjArray = @()
$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
@@ -2417,7 +2674,7 @@ Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -N
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2432,34 +2689,49 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
LOGRULEFILTERINGTAG : List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
[Name ]: The name (also known as the key) of the tag.
[Value ]: The value of the tag.
METRICRULEFILTERINGTAG : List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
[Name ]: The name (also known as the key) of the tag.
[Value ]: The value of the tag.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://learn.microsoft.com/powershell/module/az.datadog/new-azdatadogtagrule
#>
function New-AzDatadogTagRule {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IMonitoringTagRules])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Monitor resource name
${MonitorName},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# Rule set name
${Name},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
@@ -2467,6 +2739,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -2477,50 +2751,75 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IFilteringTag[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
# List of filtering tags to be used for capturing logs.
# This only takes effect if SendResourceLogs flag is enabled.
# If empty, all resources will be captured.
# If only Exclude action is specified, the rules will apply to the list of all available resources.
# If Include actions are specified, the rules will only include resources with the associated tags.
- # To construct, see NOTES section for LOGRULEFILTERINGTAG properties and create a hash table.
${LogRuleFilteringTag},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag specifying if AAD logs should be sent for the Monitor resource.
${LogRuleSendAadLog},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag specifying if Azure resource logs should be sent for the Monitor resource.
${LogRuleSendResourceLog},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Flag specifying if Azure subscription logs should be sent for the Monitor resource.
${LogRuleSendSubscriptionLog},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityMonitorExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IFilteringTag[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
# List of filtering tags to be used for capturing metrics.
# If empty, all resources will be captured.
# If only Exclude action is specified, the rules will apply to the list of all available resources.
# If Include actions are specified, the rules will only include resources with the associated tags.
- # To construct, see NOTES section for METRICRULEFILTERINGTAG properties and create a hash table.
${MetricRuleFilteringTag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2577,6 +2876,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -2598,10 +2906,11 @@ begin {
$mapping = @{
CreateExpanded = 'Az.Datadog.private\New-AzDatadogTagRule_CreateExpanded';
CreateViaIdentityExpanded = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaIdentityExpanded';
+ CreateViaIdentityMonitorExpanded = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaIdentityMonitorExpanded';
+ CreateViaJsonFilePath = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.Datadog.private\New-AzDatadogTagRule_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2615,6 +2924,9 @@ begin {
[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)
@@ -2716,7 +3028,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -2793,6 +3104,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -2815,9 +3135,7 @@ begin {
Delete = 'Az.Datadog.private\Remove-AzDatadogMonitor_Delete';
DeleteViaIdentity = 'Az.Datadog.private\Remove-AzDatadogMonitor_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2831,6 +3149,9 @@ begin {
[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)
@@ -2911,30 +3232,42 @@ param(
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [System.String]
- # The value of the API key.
- ${Key},
-
- [Parameter()]
+ [Parameter(ParameterSetName='SetExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The time of creation of the API key.
${CreatedAt},
- [Parameter()]
+ [Parameter(ParameterSetName='SetExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The user that created the API key.
${CreatedBy},
- [Parameter()]
+ [Parameter(ParameterSetName='SetExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # The value of the API key.
+ ${Key},
+
+ [Parameter(ParameterSetName='SetExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The name of the API key.
${Name},
+ [Parameter(ParameterSetName='SetViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Set operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='SetViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Set operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2997,6 +3330,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -3017,10 +3359,10 @@ begin {
$mapping = @{
SetExpanded = 'Az.Datadog.private\Set-AzDatadogMonitorDefaultKey_SetExpanded';
+ SetViaJsonFilePath = 'Az.Datadog.private\Set-AzDatadogMonitorDefaultKey_SetViaJsonFilePath';
+ SetViaJsonString = 'Az.Datadog.private\Set-AzDatadogMonitorDefaultKey_SetViaJsonString';
}
- if (('SetExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('SetExpanded', 'SetViaJsonFilePath', 'SetViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3034,6 +3376,9 @@ begin {
[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)
@@ -3090,7 +3435,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-System.String
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSetPasswordLink
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3107,7 +3452,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogmonitorsetpasswordlink
#>
function Update-AzDatadogMonitorSetPasswordLink {
-[OutputType([System.String])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSetPasswordLink])]
[CmdletBinding(DefaultParameterSetName='Refresh', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Refresh', Mandatory)]
@@ -3134,7 +3479,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -3193,6 +3537,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -3215,9 +3568,7 @@ begin {
Refresh = 'Az.Datadog.private\Update-AzDatadogMonitorSetPasswordLink_Refresh';
RefreshViaIdentity = 'Az.Datadog.private\Update-AzDatadogMonitorSetPasswordLink_RefreshViaIdentity';
}
- if (('Refresh') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Refresh') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3231,6 +3582,9 @@ begin {
[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)
@@ -3276,9 +3630,9 @@ end {
<#
.Synopsis
-Update a monitor resource.
+update a monitor resource.
.Description
-Update a monitor resource.
+update a monitor resource.
.Example
Update-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog -Tag @{'key1'='value1'; 'key2'='value2'}
.Example
@@ -3287,7 +3641,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3304,10 +3658,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogmonitor
#>
function Update-AzDatadogMonitor {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('MonitorName')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
@@ -3315,6 +3671,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
@@ -3322,6 +3680,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -3332,29 +3692,43 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus])]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus]
+ [System.String]
# Flag specifying if the resource monitoring is enabled or disabled.
${MonitoringStatus},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Name of the SKU.
${SkuName},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResourceUpdateParametersTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResourceUpdateParametersTags]))]
[System.Collections.Hashtable]
# The new tags of the monitor resource.
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -3423,6 +3797,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -3444,10 +3827,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3461,6 +3844,9 @@ begin {
[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)
@@ -3506,25 +3892,561 @@ end {
<#
.Synopsis
-Create an in-memory object for FilteringTag.
+Configures single-sign-on for this resource.
.Description
-Create an in-memory object for FilteringTag.
+Configures single-sign-on for this resource.
.Example
-New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
+Update-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
+.Example
+Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Update-AzDatadogSingleSignOnConfiguration -SingleSignOnState Disable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.FilteringTag
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource
+.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
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
.Link
-https://learn.microsoft.com/powershell/module/Az.Datadog/new-AzDatadogFilteringTagObject
+https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogsinglesignonconfiguration
#>
-function New-AzDatadogFilteringTagObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.FilteringTag])]
-[CmdletBinding(PositionalBinding=$false)]
+function Update-AzDatadogSingleSignOnConfiguration {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Monitor resource name
+ ${MonitorName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Configuration name
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.TagAction])]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.TagAction]
+ [System.String]
+ # The Id of the Enterprise App used for Single sign-on.
+ ${EnterpriseAppId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Initial", "Enable", "Disable", "Existing")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Various states of the SSO resource
+ ${SingleSignOnState},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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.Datadog.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.Datadog.private\Update-AzDatadogSingleSignOnConfiguration_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.Datadog.private\Update-AzDatadogSingleSignOnConfiguration_UpdateViaIdentityExpanded';
+ UpdateViaIdentityMonitorExpanded = 'Az.Datadog.private\Update-AzDatadogSingleSignOnConfiguration_UpdateViaIdentityMonitorExpanded';
+ }
+ if (('UpdateExpanded') -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.Datadog.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.Datadog.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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 tag rule set for a given monitor resource.
+.Description
+update a tag rule set for a given monitor resource.
+.Example
+$ftobjArray = @()
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
+Update-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'test' -LogRuleFilteringTag $ftobjArray
+.Example
+$ftobjArray = @()
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
+Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Update-AzDatadogTagRule -LogRuleFilteringTag $ftobjArray
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules
+.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
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+
+LOGRULEFILTERINGTAG : List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Name ]: The name (also known as the key) of the tag.
+ [Value ]: The value of the tag.
+
+METRICRULEFILTERINGTAG : List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Name ]: The name (also known as the key) of the tag.
+ [Value ]: The value of the tag.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogtagrule
+#>
+function Update-AzDatadogTagRule {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Monitor resource name
+ ${MonitorName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Rule set name
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
+ # List of filtering tags to be used for capturing logs.
+ # This only takes effect if SendResourceLogs flag is enabled.
+ # If empty, all resources will be captured.
+ # If only Exclude action is specified, the rules will apply to the list of all available resources.
+ # If Include actions are specified, the rules will only include resources with the associated tags.
+ ${LogRuleFilteringTag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag specifying if AAD logs should be sent for the Monitor resource.
+ ${LogRuleSendAadLog},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag specifying if Azure resource logs should be sent for the Monitor resource.
+ ${LogRuleSendResourceLog},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag specifying if Azure subscription logs should be sent for the Monitor resource.
+ ${LogRuleSendSubscriptionLog},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
+ # List of filtering tags to be used for capturing metrics.
+ # If empty, all resources will be captured.
+ # If only Exclude action is specified, the rules will apply to the list of all available resources.
+ # If Include actions are specified, the rules will only include resources with the associated tags.
+ ${MetricRuleFilteringTag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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.Datadog.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.Datadog.private\Update-AzDatadogTagRule_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.Datadog.private\Update-AzDatadogTagRule_UpdateViaIdentityExpanded';
+ UpdateViaIdentityMonitorExpanded = 'Az.Datadog.private\Update-AzDatadogTagRule_UpdateViaIdentityMonitorExpanded';
+ }
+ if (('UpdateExpanded') -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.Datadog.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.Datadog.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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 an in-memory object for FilteringTag.
+.Description
+Create an in-memory object for FilteringTag.
+.Example
+New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.FilteringTag
+.Link
+https://learn.microsoft.com/powershell/module/Az.Datadog/new-azdatadogfilteringtagobject
+#>
+function New-AzDatadogFilteringTagObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.FilteringTag])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Include", "Exclude")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
# Valid actions for a filtering tag.
# Exclusion takes priority over inclusion.
${Action},
@@ -3549,6 +4471,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3577,6 +4502,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Remove-AzDatadogMonitor.ps1 b/generated/Datadog/Datadog.Autorest/exports/Remove-AzDatadogMonitor.ps1
index 1e08adc73903..f385fae85598 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Remove-AzDatadogMonitor.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Remove-AzDatadogMonitor.ps1
@@ -72,7 +72,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -149,6 +148,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -171,9 +179,7 @@ begin {
Delete = 'Az.Datadog.private\Remove-AzDatadogMonitor_Delete';
DeleteViaIdentity = 'Az.Datadog.private\Remove-AzDatadogMonitor_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -187,6 +193,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Set-AzDatadogMonitorDefaultKey.ps1 b/generated/Datadog/Datadog.Autorest/exports/Set-AzDatadogMonitorDefaultKey.ps1
index ec3295ba6b88..c0ba08961d3e 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Set-AzDatadogMonitorDefaultKey.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Set-AzDatadogMonitorDefaultKey.ps1
@@ -51,30 +51,42 @@ param(
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [System.String]
- # The value of the API key.
- ${Key},
-
- [Parameter()]
+ [Parameter(ParameterSetName='SetExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The time of creation of the API key.
${CreatedAt},
- [Parameter()]
+ [Parameter(ParameterSetName='SetExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The user that created the API key.
${CreatedBy},
- [Parameter()]
+ [Parameter(ParameterSetName='SetExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # The value of the API key.
+ ${Key},
+
+ [Parameter(ParameterSetName='SetExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# The name of the API key.
${Name},
+ [Parameter(ParameterSetName='SetViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Set operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='SetViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Set operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -137,6 +149,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -157,10 +178,10 @@ begin {
$mapping = @{
SetExpanded = 'Az.Datadog.private\Set-AzDatadogMonitorDefaultKey_SetExpanded';
+ SetViaJsonFilePath = 'Az.Datadog.private\Set-AzDatadogMonitorDefaultKey_SetViaJsonFilePath';
+ SetViaJsonString = 'Az.Datadog.private\Set-AzDatadogMonitorDefaultKey_SetViaJsonString';
}
- if (('SetExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('SetExpanded', 'SetViaJsonFilePath', 'SetViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -174,6 +195,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitor.ps1 b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitor.ps1
index 7562e7f98be6..7b95dcdd19ec 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitor.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitor.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Update a monitor resource.
+update a monitor resource.
.Description
-Update a monitor resource.
+update a monitor resource.
.Example
Update-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog -Tag @{'key1'='value1'; 'key2'='value2'}
.Example
@@ -27,7 +27,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,10 +44,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogmonitor
#>
function Update-AzDatadogMonitor {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('MonitorName')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
@@ -55,6 +57,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[System.String]
# The name of the resource group.
@@ -62,6 +66,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -72,29 +78,43 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus])]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Support.MonitoringStatus]
+ [System.String]
# Flag specifying if the resource monitoring is enabled or disabled.
${MonitoringStatus},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
[System.String]
# Name of the SKU.
${SkuName},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResourceUpdateParametersTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogMonitorResourceUpdateParametersTags]))]
[System.Collections.Hashtable]
# The new tags of the monitor resource.
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -163,6 +183,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -184,10 +213,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.Datadog.private\Update-AzDatadogMonitor_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -201,6 +230,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitorSetPasswordLink.ps1 b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitorSetPasswordLink.ps1
index 3684c2f01daf..3a6edd34ed3c 100644
--- a/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitorSetPasswordLink.ps1
+++ b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogMonitorSetPasswordLink.ps1
@@ -27,7 +27,7 @@ Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
.Outputs
-System.String
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSetPasswordLink
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogmonitorsetpasswordlink
#>
function Update-AzDatadogMonitorSetPasswordLink {
-[OutputType([System.String])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSetPasswordLink])]
[CmdletBinding(DefaultParameterSetName='Refresh', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Refresh', Mandatory)]
@@ -71,7 +71,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -130,6 +129,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.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()
@@ -152,9 +160,7 @@ begin {
Refresh = 'Az.Datadog.private\Update-AzDatadogMonitorSetPasswordLink_Refresh';
RefreshViaIdentity = 'Az.Datadog.private\Update-AzDatadogMonitorSetPasswordLink_RefreshViaIdentity';
}
- if (('Refresh') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Refresh') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -168,6 +174,9 @@ begin {
[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)
diff --git a/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogSingleSignOnConfiguration.ps1 b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogSingleSignOnConfiguration.ps1
new file mode 100644
index 000000000000..3e5f8c45971c
--- /dev/null
+++ b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogSingleSignOnConfiguration.ps1
@@ -0,0 +1,268 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Configures single-sign-on for this resource.
+.Description
+Configures single-sign-on for this resource.
+.Example
+Update-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
+.Example
+Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Update-AzDatadogSingleSignOnConfiguration -SingleSignOnState Disable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource
+.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
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogsinglesignonconfiguration
+#>
+function Update-AzDatadogSingleSignOnConfiguration {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogSingleSignOnResource])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Monitor resource name
+ ${MonitorName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Configuration name
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # The Id of the Enterprise App used for Single sign-on.
+ ${EnterpriseAppId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.PSArgumentCompleterAttribute("Initial", "Enable", "Disable", "Existing")]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.String]
+ # Various states of the SSO resource
+ ${SingleSignOnState},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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.Datadog.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.Datadog.private\Update-AzDatadogSingleSignOnConfiguration_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.Datadog.private\Update-AzDatadogSingleSignOnConfiguration_UpdateViaIdentityExpanded';
+ UpdateViaIdentityMonitorExpanded = 'Az.Datadog.private\Update-AzDatadogSingleSignOnConfiguration_UpdateViaIdentityMonitorExpanded';
+ }
+ if (('UpdateExpanded') -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.Datadog.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.Datadog.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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/Datadog/Datadog.Autorest/exports/Update-AzDatadogTagRule.ps1 b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogTagRule.ps1
new file mode 100644
index 000000000000..22d4b46a9789
--- /dev/null
+++ b/generated/Datadog/Datadog.Autorest/exports/Update-AzDatadogTagRule.ps1
@@ -0,0 +1,298 @@
+
+# ----------------------------------------------------------------------------------
+# 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 tag rule set for a given monitor resource.
+.Description
+update a tag rule set for a given monitor resource.
+.Example
+$ftobjArray = @()
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
+Update-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'test' -LogRuleFilteringTag $ftobjArray
+.Example
+$ftobjArray = @()
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
+$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
+Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Update-AzDatadogTagRule -LogRuleFilteringTag $ftobjArray
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules
+.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
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+
+LOGRULEFILTERINGTAG : List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Name ]: The name (also known as the key) of the tag.
+ [Value ]: The value of the tag.
+
+METRICRULEFILTERINGTAG : List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
+ [Action ]: Valid actions for a filtering tag. Exclusion takes priority over inclusion.
+ [Name ]: The name (also known as the key) of the tag.
+ [Value ]: The value of the tag.
+
+MONITORINPUTOBJECT : Identity Parameter
+ [ConfigurationName ]: Configuration name
+ [Id ]: Resource identity path
+ [MonitorName ]: Monitor resource name
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RuleSetName ]: Rule set name
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.datadog/update-azdatadogtagrule
+#>
+function Update-AzDatadogTagRule {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IMonitoringTagRules])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Monitor resource name
+ ${MonitorName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # Rule set name
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityMonitorExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
+ # Identity Parameter
+ ${MonitorInputObject},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
+ # List of filtering tags to be used for capturing logs.
+ # This only takes effect if SendResourceLogs flag is enabled.
+ # If empty, all resources will be captured.
+ # If only Exclude action is specified, the rules will apply to the list of all available resources.
+ # If Include actions are specified, the rules will only include resources with the associated tags.
+ ${LogRuleFilteringTag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag specifying if AAD logs should be sent for the Monitor resource.
+ ${LogRuleSendAadLog},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag specifying if Azure resource logs should be sent for the Monitor resource.
+ ${LogRuleSendResourceLog},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag specifying if Azure subscription logs should be sent for the Monitor resource.
+ ${LogRuleSendSubscriptionLog},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IFilteringTag[]]
+ # List of filtering tags to be used for capturing metrics.
+ # If empty, all resources will be captured.
+ # If only Exclude action is specified, the rules will apply to the list of all available resources.
+ # If Include actions are specified, the rules will only include resources with the associated tags.
+ ${MetricRuleFilteringTag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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.Datadog.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ UpdateExpanded = 'Az.Datadog.private\Update-AzDatadogTagRule_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.Datadog.private\Update-AzDatadogTagRule_UpdateViaIdentityExpanded';
+ UpdateViaIdentityMonitorExpanded = 'Az.Datadog.private\Update-AzDatadogTagRule_UpdateViaIdentityMonitorExpanded';
+ }
+ if (('UpdateExpanded') -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.Datadog.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.Datadog.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Datadog.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.Datadog.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/Datadog/Datadog.Autorest/generate-info.json b/generated/Datadog/Datadog.Autorest/generate-info.json
index 14fbf4dd1fe7..c9b994617281 100644
--- a/generated/Datadog/Datadog.Autorest/generate-info.json
+++ b/generated/Datadog/Datadog.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "55f63bdc-cc02-48a0-b52f-7442a8b2a819"
+ "generate_Id": "971ce380-8928-40a9-b340-5e09ec30dbdf"
}
diff --git a/generated/Datadog/Datadog.Autorest/generated/Module.cs b/generated/Datadog/Datadog.Autorest/generated/Module.cs
index 62fda404f587..d511ca99e8c1 100644
--- a/generated/Datadog/Datadog.Autorest/generated/Module.cs
+++ b/generated/Datadog/Datadog.Autorest/generated/Module.cs
@@ -28,12 +28,20 @@ public partial class Module
public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler();
+ private static bool _init = false;
+
+ private static readonly global::System.Object _initLock = new global::System.Object();
+
+ private static Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module _instance;
+
/// the ISendAsync pipeline instance
private Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.HttpPipeline _pipelineWithProxy;
+ private static readonly global::System.Object _singletonLock = new global::System.Object();
+
public bool _useProxy = false;
public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
@@ -56,11 +64,8 @@ public partial class Module
/// The delegate to get the telemetry info.
public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; }
- /// Backing field for property.
- private static Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module _instance;
-
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module());
+ public static Microsoft.Azure.PowerShell.Cmdlets.Datadog.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
public string Name => @"Az.Datadog";
@@ -125,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.HttpPipeline CreatePip
/// Initialization steps performed after the module is loaded.
public void Init()
{
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
- CustomInit();
+ if (_init == false)
+ {
+ lock (_initLock) {
+ if (_init == false) {
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
+ CustomInit();
+ _init = true;
+ }
+ }
+ }
}
/// Creates the module instance.
diff --git a/generated/Datadog/Datadog.Autorest/generated/api/Datadog.cs b/generated/Datadog/Datadog.Autorest/generated/api/Datadog.cs
index 6b624e4f3b10..72472e1fa46a 100644
--- a/generated/Datadog/Datadog.Autorest/generated/api/Datadog.cs
+++ b/generated/Datadog/Datadog.Autorest/generated/api/Datadog.cs
@@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Datadog
public partial class Datadog
{
- /// Create Datadog marketplace agreement in the subscription.
+ /// update Datadog marketplace agreement in the subscription.
/// The ID of the target subscription.
///
/// a delegate that is called when the remote service returns 200 (OK).
@@ -21,10 +21,11 @@ public partial class Datadog
/// elsewhere).
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2021-03-01";
// Constant Parameters
@@ -48,15 +49,15 @@ public partial class Datadog
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.MarketplaceAgreementsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.MarketplaceAgreementsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender);
}
}
- /// Create Datadog marketplace agreement in the subscription.
+ /// update Datadog marketplace agreement in the subscription.
///
///
/// a delegate that is called when the remote service returns 200 (OK).
@@ -64,10 +65,11 @@ public partial class Datadog
/// elsewhere).
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2021-03-01";
// Constant Parameters
@@ -101,95 +103,119 @@ public partial class Datadog
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.MarketplaceAgreementsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.MarketplaceAgreementsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender);
}
}
- /// Actual wire call for method.
- /// the prepared HttpRequestMessage to send.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
+ /// update Datadog marketplace agreement in the subscription.
+ ///
+ ///
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// A that will be complete when handling of the response is completed.
+ /// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource body, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeUpdate)
{
+ var apiVersion = @"2021-03-01";
+ // Constant Parameters
using( NoSynchronizationContext )
{
- global::System.Net.Http.HttpResponseMessage _response = null;
- try
- {
- var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
- _response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- var _contentType = _response.Content.Headers.ContentType?.MediaType;
+ // verify that Identity format is an exact match for uri
- switch ( _response.StatusCode )
- {
- case global::System.Net.HttpStatusCode.OK:
- {
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) ));
- break;
- }
- default:
- {
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) ));
- break;
- }
- }
- }
- finally
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Datadog/agreements/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
{
- // finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Finally, request, _response);
- _response?.Dispose();
- request?.Dispose();
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default'");
}
+
+ // replace URI parameters with values from identity
+ var subscriptionId = _match.Groups["subscriptionId"].Value;
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + subscriptionId
+ + "/providers/Microsoft.Datadog/agreements/default"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ // generate request object
+ var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Put, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.MarketplaceAgreementsCreateOrUpdateWithResult_Call (request, eventListener,sender);
}
}
- ///
- /// Validation method for method. Call this like the actual call, but you
- /// will get validation events back.
- ///
+ /// update Datadog marketplace agreement in the subscription.
/// The ID of the target subscription.
- ///
+ /// Json string supplied to the MarketplaceAgreementsCreateOrUpdate operation
+ /// a delegate that is called when the remote service returns 200 (OK).
+ /// a delegate that is called when the remote service returns default (any response code not handled
+ /// elsewhere).
/// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdate_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogAgreementResource body, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateViaJsonString(string subscriptionId, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
{
+ var apiVersion = @"2021-03-01";
+ // Constant Parameters
using( NoSynchronizationContext )
{
- await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId);
- await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1);
- await eventListener.AssertNotNull(nameof(body), body);
- await eventListener.AssertObjectIsValid(nameof(body), body);
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/providers/Microsoft.Datadog/agreements/default"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+
+ // generate request object
+ var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Put, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
+ // make the call
+ await this.MarketplaceAgreementsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender);
}
}
- /// List Datadog marketplace agreements in the subscription.
+ /// update Datadog marketplace agreement in the subscription.
/// The ID of the target subscription.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
+ /// Json string supplied to the MarketplaceAgreementsCreateOrUpdate operation
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task MarketplaceAgreementsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateViaJsonStringWithResult(string subscriptionId, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-03-01";
// Constant Parameters
@@ -199,73 +225,135 @@ public partial class Datadog
var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
"/subscriptions/"
+ global::System.Uri.EscapeDataString(subscriptionId)
- + "/providers/Microsoft.Datadog/agreements"
+ + "/providers/Microsoft.Datadog/agreements/default"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Put, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
- await this.MarketplaceAgreementsList_Call(request,onOk,onDefault,eventListener,sender);
+ return await this.MarketplaceAgreementsCreateOrUpdateWithResult_Call (request, eventListener,sender);
}
}
- /// List Datadog marketplace agreements in the subscription.
- ///
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
+ /// update Datadog marketplace agreement in the subscription.
+ /// The ID of the target subscription.
+ ///
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
- /// A that will be complete when handling of the response is completed.
+ /// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task MarketplaceAgreementsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource body, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2021-03-01";
// Constant Parameters
using( NoSynchronizationContext )
{
- // verify that Identity format is an exact match for uri
-
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Datadog/agreements$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
- if (!_match.Success)
- {
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements'");
- }
-
- // replace URI parameters with values from identity
- var subscriptionId = _match.Groups["subscriptionId"].Value;
// construct URL
var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
"/subscriptions/"
- + subscriptionId
- + "/providers/Microsoft.Datadog/agreements"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/providers/Microsoft.Datadog/agreements/default"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Put, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // set body content
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; }
// make the call
- await this.MarketplaceAgreementsList_Call(request,onOk,onDefault,eventListener,sender);
+ return await this.MarketplaceAgreementsCreateOrUpdateWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ ///
+ /// A that will be complete when handling of the response is completed.
+ ///
+ internal async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _contentType = _response.Content.Headers.ContentType?.MediaType;
+
+ switch ( _response.StatusCode )
+ {
+ case global::System.Net.HttpStatusCode.OK:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
+ }
+ default:
+ {
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) );
+ // Error Response : default
+ var code = (await _result)?.Code;
+ var message = (await _result)?.Message;
+ if ((null == code || null == message))
+ {
+ // Unrecognized Response. Create an error record based on what we have.
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
+ }
+ }
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
}
}
- /// Actual wire call for method.
+ ///
+ /// Actual wire call for method.
+ ///
/// the prepared HttpRequestMessage to send.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
@@ -275,7 +363,7 @@ public partial class Datadog
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task MarketplaceAgreementsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -286,6 +374,7 @@ public partial class Datadog
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
_response = await sendTask;
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; }
var _contentType = _response.Content.Headers.ContentType?.MediaType;
switch ( _response.StatusCode )
@@ -293,13 +382,13 @@ public partial class Datadog
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.DatadogAgreementResourceListResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -315,28 +404,28 @@ public partial class Datadog
}
///
- /// Validation method for method. Call this like the actual call, but you will get
- /// validation events back.
+ /// Validation method for method. Call this like the actual call, but you
+ /// will get validation events back.
///
/// The ID of the target subscription.
+ ///
/// an instance that will receive events.
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task MarketplaceAgreementsList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task MarketplaceAgreementsCreateOrUpdate_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogAgreementResource body, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId);
await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1);
+ await eventListener.AssertNotNull(nameof(body), body);
+ await eventListener.AssertObjectIsValid(nameof(body), body);
}
}
- /// Create a monitor resource.
+ /// List Datadog marketplace agreements in the subscription.
/// The ID of the target subscription.
- /// The name of the resource group. The name is case insensitive.
- /// Monitor resource name
- ///
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -345,7 +434,7 @@ public partial class Datadog
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task MonitorsCreate(string subscriptionId, string resourceGroupName, string monitorName, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-03-01";
// Constant Parameters
@@ -355,10 +444,7 @@ public partial class Datadog
var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
"/subscriptions/"
+ global::System.Uri.EscapeDataString(subscriptionId)
- + "/resourceGroups/"
- + global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.Datadog/monitors/"
- + global::System.Uri.EscapeDataString(monitorName)
+ + "/providers/Microsoft.Datadog/agreements"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -367,22 +453,17 @@ public partial class Datadog
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Put, _url);
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get, _url);
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
- // set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
- request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.MonitorsCreate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.MarketplaceAgreementsList_Call (request, onOk,onDefault,eventListener,sender);
}
}
- /// Create a monitor resource.
+ /// List Datadog marketplace agreements in the subscription.
///
- ///
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -391,7 +472,7 @@ public partial class Datadog
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task MonitorsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.Api20210301.IDatadogMonitorResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
{
var apiVersion = @"2021-03-01";
// Constant Parameters
@@ -399,24 +480,19 @@ public partial class Datadog
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Datadog/monitors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Datadog/agreements$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
if (!_match.Success)
{
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}'");
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements'");
}
// replace URI parameters with values from identity
var subscriptionId = _match.Groups["subscriptionId"].Value;
- var resourceGroupName = _match.Groups["resourceGroupName"].Value;
- var monitorName = _match.Groups["monitorName"].Value;
// construct URL
var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
"/subscriptions/"
+ subscriptionId
- + "/resourceGroups/"
- + resourceGroupName
- + "/providers/Microsoft.Datadog/monitors/"
- + monitorName
+ + "/providers/Microsoft.Datadog/agreements"
+ "?"
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
@@ -425,136 +501,181 @@ public partial class Datadog
// generate request object
var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Put, _url);
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get, _url);
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
- // set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
- request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.MonitorsCreate_Call(request,onOk,onDefault,eventListener,sender);
+ await this.MarketplaceAgreementsList_Call (request, onOk,onDefault,eventListener,sender);
}
}
- /// Actual wire call for method.
- /// the prepared HttpRequestMessage to send.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
+ /// List Datadog marketplace agreements in the subscription.
+ ///
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
///
- /// A that will be complete when handling of the response is completed.
+ /// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task MonitorsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
{
+ var apiVersion = @"2021-03-01";
+ // Constant Parameters
using( NoSynchronizationContext )
{
- global::System.Net.Http.HttpResponseMessage _response = null;
- try
- {
- var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
- _response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- // this operation supports x-ms-long-running-operation
- var _originalUri = request.RequestUri.AbsoluteUri;
- // declared final-state-via: azure-async-operation
- var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation");
- var location = _response.GetFirstHeader(@"Location");
- while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted )
- {
-
- // get the delay before polling. (default to 30 seconds if not present)
- int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ // verify that Identity format is an exact match for uri
- // start the delay timer (we'll await later...)
- var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token );
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Datadog/agreements$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
+ if (!_match.Success)
+ {
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements'");
+ }
- // while we wait, let's grab the headers and get ready to poll.
- if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) {
- asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation");
- }
- if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) {
- location = _response.GetFirstHeader(@"Location");
- }
- var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation;
- request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get);
+ // replace URI parameters with values from identity
+ var subscriptionId = _match.Groups["subscriptionId"].Value;
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + subscriptionId
+ + "/providers/Microsoft.Datadog/agreements"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
- // and let's look at the current response body and see if we have some information we can give back to the listener
- var content = await _response.Content.ReadAsStringAsync();
- await waiting;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- // check for cancellation
- if( eventListener.Token.IsCancellationRequested ) { return; }
+ // generate request object
+ var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
- // drop the old response
- _response?.Dispose();
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.MarketplaceAgreementsListWithResult_Call (request, eventListener,sender);
+ }
+ }
- // make the polling call
- _response = await sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
+ /// List Datadog marketplace agreements in the subscription.
+ /// The ID of the target subscription.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ ///
+ /// A that will be complete when handling of the response is completed.
+ ///
+ public async global::System.Threading.Tasks.Task MarketplaceAgreementsListWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ {
+ var apiVersion = @"2021-03-01";
+ // Constant Parameters
+ using( NoSynchronizationContext )
+ {
+ // construct URL
+ var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
+ "/subscriptions/"
+ + global::System.Uri.EscapeDataString(subscriptionId)
+ + "/providers/Microsoft.Datadog/agreements"
+ + "?"
+ + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ // generate request object
+ var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
+ var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get, _url);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; }
+
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ // make the call
+ return await this.MarketplaceAgreementsListWithResult_Call (request, eventListener,sender);
+ }
+ }
+
+ ///
+ /// Actual wire call for method.
+ ///
+ /// the prepared HttpRequestMessage to send.
+ /// an instance that will receive events.
+ /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync pipeline to use to make the request.
+ ///
+ /// A that will be complete when handling of the response is completed.
+ ///
+ internal async global::System.Threading.Tasks.Task MarketplaceAgreementsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.ISendAsync sender)
+ {
+ using( NoSynchronizationContext )
+ {
+ global::System.Net.Http.HttpResponseMessage _response = null;
+ try
+ {
+ var sendTask = sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ _response = await sendTask;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _contentType = _response.Content.Headers.ContentType?.MediaType;
- // if we got back an OK, take a peek inside and see if it's done
- if( _response.StatusCode == global::System.Net.HttpStatusCode.OK)
+ switch ( _response.StatusCode )
+ {
+ case global::System.Net.HttpStatusCode.OK:
{
- var error = false;
- try {
- if( Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonObject json)
- {
- var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status");
- if( state is null )
- {
- // the body doesn't contain any information that has the state of the LRO
- // we're going to just get out, and let the consumer have the result
- break;
- }
-
- switch( state?.ToString()?.ToLower() )
- {
- case "failed":
- error = true;
- break;
- case "succeeded":
- case "canceled":
- // we're done polling.
- break;
-
- default:
- // need to keep polling!
- _response.StatusCode = global::System.Net.HttpStatusCode.Created;
- continue;
- }
- }
- } catch {
- // if we run into a problem peeking into the result,
- // we really don't want to do anything special.
- }
- if (error) {
- throw new Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.UndeclaredResponseException(_response);
- }
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.DatadogAgreementResourceListResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) );
+ return await _result;
}
-
- // check for terminal status code
- if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted )
+ default:
{
- continue;
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; }
+ var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Json.JsonNode.Parse(body.Result)) );
+ // Error Response : default
+ var code = (await _result)?.Code;
+ var message = (await _result)?.Message;
+ if ((null == code || null == message))
+ {
+ // Unrecognized Response. Create an error record based on what we have.
+ var ex = new Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.RestException(_response, await _result);
+ throw ex;
+ }
+ else
+ {
+ throw new global::System.Exception($"[{code}] : {message}");
+ }
}
- // we are done polling, do a request on final target?
- // create a new request with the final uri
- request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Method.Get);
-
- // drop the old response
- _response?.Dispose();
-
- // make the final call
- _response = await sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- break;
}
+ }
+ finally
+ {
+ // finally statements
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.Events.Finally, request, _response);
+ _response?.Dispose();
+ request?.Dispose();
+ }
+ }
+ }
+
+ /// Actual wire call for