From 68e03ba1f6ba0b36a79621d671ebf1487e0b57ae Mon Sep 17 00:00:00 2001 From: Yeming Liu Date: Mon, 6 Jul 2020 17:28:47 +0800 Subject: [PATCH 1/4] Az.HanaOnAzure --- src/HanaOnAzure/.gitignore | 4 +- src/HanaOnAzure/Az.Hana.psd1 | 25 - .../New-AzSapMonitorProviderInstance.ps1 | 280 +++ src/HanaOnAzure/custom/readme.md | 22 +- src/HanaOnAzure/docs/Az.HanaOnAzure.md | 34 + src/HanaOnAzure/docs/Get-AzSapMonitor.md | 194 ++ .../docs/Get-AzSapMonitorProviderInstance.md | 211 ++ src/HanaOnAzure/docs/New-AzSapMonitor.md | 284 +++ .../docs/New-AzSapMonitorProviderInstance.md | 349 +++ src/HanaOnAzure/docs/Remove-AzSapMonitor.md | 237 +++ .../Remove-AzSapMonitorProviderInstance.md | 253 +++ src/HanaOnAzure/docs/Update-AzSapMonitor.md | 213 ++ src/HanaOnAzure/docs/readme.md | 4 +- src/HanaOnAzure/examples/Get-AzSapMonitor.md | 48 + .../Get-AzSapMonitorProviderInstance.md | 46 + src/HanaOnAzure/examples/New-AzSapMonitor.md | 13 + .../New-AzSapMonitorProviderInstance.md | 22 + .../examples/Remove-AzSapMonitor.md | 17 + .../Remove-AzSapMonitorProviderInstance.md | 17 + .../examples/Update-AzSapMonitor.md | 23 + .../latest-2019-04-30/Get-AzHanaInstance.md | 18 - .../latest-2019-04-30/New-AzHanaInstance.md | 18 - .../Remove-AzHanaInstance.md | 18 - .../Restart-AzHanaInstance.md | 18 - .../latest-2019-04-30/Start-AzHanaInstance.md | 18 - .../latest-2019-04-30/Stop-AzHanaInstance.md | 18 - .../Update-AzHanaInstance.md | 18 - src/HanaOnAzure/examples/readme.md | 11 - src/HanaOnAzure/how-to.md | 32 +- src/HanaOnAzure/readme.md | 108 +- .../test/Get-AzSapMonitor.Recording.json | 162 ++ .../test/Get-AzSapMonitor.Tests.ps1 | 30 + ...zSapMonitorProviderInstance.Recording.json | 162 ++ ...Get-AzSapMonitorProviderInstance.Tests.ps1 | 30 + .../test/New-AzSapMonitor.Recording.json | 517 +++++ .../test/New-AzSapMonitor.Tests.ps1 | 24 + ...zSapMonitorProviderInstance.Recording.json | 548 +++++ ...New-AzSapMonitorProviderInstance.Tests.ps1 | 27 + .../test/Remove-AzSapMonitor.Recording.json | 1873 +++++++++++++++++ .../test/Remove-AzSapMonitor.Tests.ps1 | 32 + ...zSapMonitorProviderInstance.Recording.json | 517 +++++ ...ove-AzSapMonitorProviderInstance.Tests.ps1 | 27 + .../test/Update-AzSapMonitor.Recording.json | 112 + .../test/Update-AzSapMonitor.Tests.ps1 | 25 + src/HanaOnAzure/test/env.json | 25 + src/HanaOnAzure/test/loadEnv.ps1 | 28 + src/HanaOnAzure/test/new-sapmonitor.md | 50 + src/HanaOnAzure/test/readme.md | 8 +- src/HanaOnAzure/test/utils.ps1 | 88 + src/helpers/KeyVault/readme.noprofile.md | 19 + 50 files changed, 6679 insertions(+), 198 deletions(-) delete mode 100644 src/HanaOnAzure/Az.Hana.psd1 create mode 100644 src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 create mode 100644 src/HanaOnAzure/docs/Az.HanaOnAzure.md create mode 100644 src/HanaOnAzure/docs/Get-AzSapMonitor.md create mode 100644 src/HanaOnAzure/docs/Get-AzSapMonitorProviderInstance.md create mode 100644 src/HanaOnAzure/docs/New-AzSapMonitor.md create mode 100644 src/HanaOnAzure/docs/New-AzSapMonitorProviderInstance.md create mode 100644 src/HanaOnAzure/docs/Remove-AzSapMonitor.md create mode 100644 src/HanaOnAzure/docs/Remove-AzSapMonitorProviderInstance.md create mode 100644 src/HanaOnAzure/docs/Update-AzSapMonitor.md create mode 100644 src/HanaOnAzure/examples/Get-AzSapMonitor.md create mode 100644 src/HanaOnAzure/examples/Get-AzSapMonitorProviderInstance.md create mode 100644 src/HanaOnAzure/examples/New-AzSapMonitor.md create mode 100644 src/HanaOnAzure/examples/New-AzSapMonitorProviderInstance.md create mode 100644 src/HanaOnAzure/examples/Remove-AzSapMonitor.md create mode 100644 src/HanaOnAzure/examples/Remove-AzSapMonitorProviderInstance.md create mode 100644 src/HanaOnAzure/examples/Update-AzSapMonitor.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/Get-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/New-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/Remove-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/Restart-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/Start-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/Stop-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/latest-2019-04-30/Update-AzHanaInstance.md delete mode 100644 src/HanaOnAzure/examples/readme.md create mode 100644 src/HanaOnAzure/test/Get-AzSapMonitor.Recording.json create mode 100644 src/HanaOnAzure/test/Get-AzSapMonitor.Tests.ps1 create mode 100644 src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Recording.json create mode 100644 src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Tests.ps1 create mode 100644 src/HanaOnAzure/test/New-AzSapMonitor.Recording.json create mode 100644 src/HanaOnAzure/test/New-AzSapMonitor.Tests.ps1 create mode 100644 src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Recording.json create mode 100644 src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 create mode 100644 src/HanaOnAzure/test/Remove-AzSapMonitor.Recording.json create mode 100644 src/HanaOnAzure/test/Remove-AzSapMonitor.Tests.ps1 create mode 100644 src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Recording.json create mode 100644 src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Tests.ps1 create mode 100644 src/HanaOnAzure/test/Update-AzSapMonitor.Recording.json create mode 100644 src/HanaOnAzure/test/Update-AzSapMonitor.Tests.ps1 create mode 100644 src/HanaOnAzure/test/env.json create mode 100644 src/HanaOnAzure/test/loadEnv.ps1 create mode 100644 src/HanaOnAzure/test/new-sapmonitor.md create mode 100644 src/HanaOnAzure/test/utils.ps1 create mode 100644 src/helpers/KeyVault/readme.noprofile.md diff --git a/src/HanaOnAzure/.gitignore b/src/HanaOnAzure/.gitignore index 649721c69ce9..7ee9baa63225 100644 --- a/src/HanaOnAzure/.gitignore +++ b/src/HanaOnAzure/.gitignore @@ -11,4 +11,6 @@ test/*-TestResults.xml /*.psm1 /*.snk /*.csproj -/*.nuspec \ No newline at end of file +/*.nuspec +/*.psd1 +tools \ No newline at end of file diff --git a/src/HanaOnAzure/Az.Hana.psd1 b/src/HanaOnAzure/Az.Hana.psd1 deleted file mode 100644 index 8b93752bfecf..000000000000 --- a/src/HanaOnAzure/Az.Hana.psd1 +++ /dev/null @@ -1,25 +0,0 @@ -@{ - GUID = '71be773a-0f23-4714-b4df-eba7fbcf42ba' - RootModule = './Az.Hana.psm1' - ModuleVersion = '0.0.1' - CompatiblePSEditions = 'Core', 'Desktop' - Author = 'Microsoft Corporation' - CompanyName = 'Microsoft Corporation' - Copyright = 'Microsoft Corporation. All rights reserved.' - Description = 'Microsoft Azure PowerShell: Hana cmdlets' - PowerShellVersion = '5.1' - DotNetFrameworkVersion = '4.7.2' - RequiredAssemblies = './bin/Az.Hana.private.dll' - FormatsToProcess = './Az.Hana.format.ps1xml' - CmdletsToExport = 'Get-AzHanaInstance', 'New-AzHanaInstance', 'Remove-AzHanaInstance', 'Restart-AzHanaInstance', 'Start-AzHanaInstance', 'Stop-AzHanaInstance', 'Update-AzHanaInstance', '*' - AliasesToExport = '*' - PrivateData = @{ - PSData = @{ - Tags = 'Azure', 'ResourceManager', 'ARM', 'Hana' - LicenseUri = 'https://aka.ms/azps-license' - ProjectUri = 'https://github.com/Azure/azure-powershell' - ReleaseNotes = '' - Profiles = 'latest-2019-04-30' - } - } -} diff --git a/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 b/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 new file mode 100644 index 000000000000..3ea344728abe --- /dev/null +++ b/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 @@ -0,0 +1,280 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +.Description +Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.IProviderInstance +.Link +https://docs.microsoft.com/en-us/powershell/module/az.hana/new-azsapproviderinstance +#> +function New-AzSapMonitorProviderInstance { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.IProviderInstance])] + [CmdletBinding(DefaultParameterSetName = 'ByString', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'HanaDatabasePasswordKeyVaultResourceId', Justification = 'Not a password')] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'HanaDatabasePasswordSecretId', Justification = 'Not a password')] + param( + [Parameter(Mandatory)] + [Alias('ProviderInstanceName')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Path')] + [System.String] + # Name of the provider instance. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Path')] + [System.String] + # Name of the SAP monitor resource. + ${SapMonitorName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.Collections.Hashtable] + # A JSON string containing metadata of the provider instance. + ${Metadata}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.String] + # The type of provider instance. Supported values are: "SapHana". + ${ProviderType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.String] + # The hostname of SAP HANA instance. + ${HanaHostname}, + + [Parameter(Mandatory)] + [Alias('HanaDbName')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.String] + # The database name of SAP HANA instance. + ${HanaDatabaseName}, + + [Parameter(Mandatory)] + [Alias('HanaDbSqlPort')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.Int32] + # The SQL port of the database of SAP HANA instance. + ${HanaDatabaseSqlPort}, + + [Parameter(Mandatory)] + [Alias('HanaDbUsername')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.String] + # The username of the database of SAP HANA instance. + ${HanaDatabaseUsername}, + + [Parameter(ParameterSetName = 'ByString', Mandatory)] + [Alias('HanaDbPassword')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [SecureString] + # The password of the database of SAP HANA instance. + ${HanaDatabasePassword}, + + [Parameter(ParameterSetName = 'ByKeyVault', Mandatory)] + [Alias('HanaDbPasswordKeyVaultId', 'KeyVaultId')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.String] + # Resource ID of the Key Vault that contains the HANA credentials. + ${HanaDatabasePasswordKeyVaultResourceId}, + + [Parameter(ParameterSetName = 'ByKeyVault', Mandatory)] + [Alias('HanaDbPasswordSecretId', 'SecretId')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Body')] + [System.String] + # Secret identifier to the Key Vault secret that contains the HANA credentials. + ${HanaDatabasePasswordSecretId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $null = $PSBoundParameters.Remove('ResourceGroupName') + $null = $PSBoundParameters.Remove('Name') + $null = $PSBoundParameters.Remove('SapMonitorName') + $null = $PSBoundParameters.Remove('ProviderType') + $null = $PSBoundParameters.Remove('Metadata') + + $null = $PSBoundParameters.Remove('HanaHostname') + $null = $PSBoundParameters.Remove('HanaDatabaseName') + $null = $PSBoundParameters.Remove('HanaDatabaseSqlPort') + $null = $PSBoundParameters.Remove('HanaDatabaseUsername') + $null = $PSBoundParameters.Remove('HanaDatabasePasswordSecretId') + $null = $PSBoundParameters.Remove('HanaDatabasePasswordKeyVaultResourceId') + + $null = $PSBoundParameters.Remove('Confirm') + $null = $PSBoundParameters.Remove('WhatIf') + $hasAsJob = $PSBoundParameters.Remove('AsJob') + + $parameterSet = $PSCmdlet.ParameterSetName + switch ($parameterSet) { + 'ByString' { + $null = $PSBoundParameters.Remove('HanaDatabasePassword') + $property = @{ + hanaHostname = $HanaHostname + hanaDbName = $HanaDatabaseName + hanaDbSqlPort = $HanaDatabaseSqlPort + hanaDbUsername = $HanaDatabaseUsername + hanaDbPassword = ConvertFrom-SecureString $HanaDatabasePassword -AsPlainText + } + } + 'ByKeyVault' { + # Referencing to CLI's implementation + # https://github.com/Azure/azure-hanaonazure-cli-extension/blob/master/azext_hanaonazure/custom.py#L312-L338 + + # 1. Get MSI + $sapMonitor = Get-AzSapMonitor -ResourceGroupName $ResourceGroupName -Name $SapMonitorName @PSBoundParameters + $managedResourceGroupName = $sapMonitor.ManagedResourceGroupName + $sapMonitorId = $managedResourceGroupName.Split("-")[2] + + $msiName = "sapmon-msi-$sapMonitorId" + $msi = Az.HanaOnAzure.internal\Get-AzUserAssignedIdentity -ResourceGroupName $managedResourceGroupName -ResourceName $msiName @PSBoundParameters + + # 2. Grant key vault access to MSI + $null = $HanaDatabasePasswordKeyVaultResourceId -match "^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.KeyVault/vaults/(?[^/]+)$" + $vaultSubscriptionId = $Matches['subscriptionId'] + $vaultResourceGroupName = $Matches['resourceGroupName'] + $vaultName = $Matches['vaultName'] + + # Need to use vault's sub ID, not the sub ID of this cmdlet + $null = $PSBoundParameters.Remove('SubscriptionId') + $null = Az.HanaOnAzure.internal\Set-AzVaultAccessPolicy -OperationKind add -ResourceGroupName $vaultResourceGroupName -VaultName $vaultName -SubscriptionId $vaultSubscriptionId -AccessPolicy @{ + ObjectId = $msi.PrincipalId + TenantId = (Get-AzContext).Tenant.Id + PermissionSecret = 'get' + } @PSBoundParameters + $PSBoundParameters.Add('SubscriptionId', $SubscriptionId) + + # Service accepts secret ID without port + # but (Get-AzKeyVaultSecret).Id contains port (":443") + # need to remove it + $vaultPort = ":443" + if ($HanaDatabasePasswordSecretId.Contains($vaultPort)) { + $HanaDatabasePasswordSecretId = $HanaDatabasePasswordSecretId.Replace($vaultPort, "") + } + + $property = @{ + hanaHostname = $HanaHostname + hanaDbName = $HanaDatabaseName + hanaDbSqlPort = $HanaDatabaseSqlPort + hanaDbUsername = $HanaDatabaseUsername + hanaDbPasswordKeyVaultUrl = $HanaDatabasePasswordSecretId + keyVaultId = $HanaDatabasePasswordKeyVaultResourceId # key vault id is keyvault resource id + keyVaultCredentialsMsiClientID = $msi.ClientId # FIXME: this property is not needed in newer service backend, can we remove it? + } + } + } + $PSBoundParameters.Add('ResourceGroupName', $ResourceGroupName) + $PSBoundParameters.Add('Name', $Name) + $PSBoundParameters.Add('SapMonitorName', $SapMonitorName) + $PSBoundParameters.Add('ProviderType', $ProviderType) + $PSBoundParameters.Add('Metadata', ($Metadata | ConvertTo-Json)) + + $PSBoundParameters.Add('ProviderInstanceProperty', ($property | ConvertTo-Json)) + + if ($hasAsJob) { + $PSBoundParameters.Add('AsJob', $true) + } + + if ($PSCmdlet.ShouldProcess("SAP monitor provider instance $Name", "Create")) { + Az.HanaOnAzure.internal\New-AzSapMonitorProviderInstance @PSBoundParameters + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/custom/readme.md b/src/HanaOnAzure/custom/readme.md index fc3efc40a1c0..965eec748478 100644 --- a/src/HanaOnAzure/custom/readme.md +++ b/src/HanaOnAzure/custom/readme.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.Hana` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Hana.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.HanaOnAzure` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.HanaOnAzure.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -8,11 +8,11 @@ This directory contains custom implementation for non-generated cmdlets for the - Packaged: yes ## Details -For `Az.Hana` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. +For `Az.HanaOnAzure` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. -For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.Hana.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.HanaOnAzure.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. -For script cmdlets, these are loaded via the `Az.Hana.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. +For script cmdlets, these are loaded via the `Az.HanaOnAzure.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. @@ -27,15 +27,15 @@ The easiest way currently to start developing custom cmdlets is to copy an exist - ProxyCredential - ProxyUseDefaultCredentials -These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.Hana`. For C#, follow the usage seen in the `ProcessRecordAsync` method. +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.HanaOnAzure`. For C#, follow the usage seen in the `ProcessRecordAsync` method. ### Attributes For processing the cmdlets, we've created some additional attributes: -- `Microsoft.Azure.PowerShell.Cmdlets.Hana.Models.DescriptionAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.DescriptionAttribute` - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. -- `Microsoft.Azure.PowerShell.Cmdlets.Hana.Models.DoNotExportAttribute` - - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Hana`. -- `Microsoft.Azure.PowerShell.Cmdlets.Hana.Models.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Hana`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. -- `Microsoft.Azure.PowerShell.Cmdlets.Hana.Models.ProfileAttribute` +- `Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.DoNotExportAttribute` + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.HanaOnAzure`. +- `Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.InternalExportAttribute` + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.HanaOnAzure`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. +- `Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/HanaOnAzure/docs/Az.HanaOnAzure.md b/src/HanaOnAzure/docs/Az.HanaOnAzure.md new file mode 100644 index 000000000000..45d9dad811c1 --- /dev/null +++ b/src/HanaOnAzure/docs/Az.HanaOnAzure.md @@ -0,0 +1,34 @@ +--- +Module Name: Az.HanaOnAzure +Module Guid: 0e295417-d1c6-4338-8bf4-93e377692fb7 +Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.HanaOnAzure Module +## Description +Microsoft Azure PowerShell: HanaOn cmdlets + +## Az.HanaOnAzure Cmdlets +### [Get-AzSapMonitor](Get-AzSapMonitor.md) +Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + +### [Get-AzSapMonitorProviderInstance](Get-AzSapMonitorProviderInstance.md) +Gets properties of a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +### [New-AzSapMonitor](New-AzSapMonitor.md) +Creates a SAP monitor for the specified subscription, resource group, and resource name. + +### [New-AzSapMonitorProviderInstance](New-AzSapMonitorProviderInstance.md) +Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +### [Remove-AzSapMonitor](Remove-AzSapMonitor.md) +Deletes a SAP monitor with the specified subscription, resource group, and monitor name. + +### [Remove-AzSapMonitorProviderInstance](Remove-AzSapMonitorProviderInstance.md) +Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +### [Update-AzSapMonitor](Update-AzSapMonitor.md) +Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name. + diff --git a/src/HanaOnAzure/docs/Get-AzSapMonitor.md b/src/HanaOnAzure/docs/Get-AzSapMonitor.md new file mode 100644 index 000000000000..cb18480c68b7 --- /dev/null +++ b/src/HanaOnAzure/docs/Get-AzSapMonitor.md @@ -0,0 +1,194 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure/get-azsapmonitor +schema: 2.0.0 +--- + +# Get-AzSapMonitor + +## SYNOPSIS +Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + +## SYNTAX + +### List (Default) +``` +Get-AzSapMonitor [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzSapMonitor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzSapMonitor -InputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + +## EXAMPLES + +### Example 1: Get all SAP monitors under a subscription +```powershell +PS C:\> Get-AzSapMonitor + +Location Name Type +-------- ---- ---- +westus2 ps-sapmonitor-t01 Microsoft.HanaOnAzure/sapMonitors +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets SAP monitors under a subscription. + +### Example 2: Get a SAP monitor by name +```powershell +PS C:\> Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets a SAP monitor by name. + +### Example 3: Get a SAP monitor by object +```powershell +PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 +PS C:\> Get-AzSapMonitor -InputObject $sap + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets a SAP monitor by object. + +### Example 4: Get a SAP monitor by pipeline +```powershell +PS C:\> @{Id='/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01'} | Get-AzSapMonitor + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets a SAP monitor by pipeline. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: SapMonitorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.ISapMonitor + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[Id ]`: Resource identity path + - `[Location ]`: The location of the deleted vault. + - `[OperationKind ]`: Name of the operation + - `[ProviderInstanceName ]`: Name of the provider instance. + - `[ResourceGroupName ]`: Name of the resource group. + - `[ResourceName ]`: The name of the identity resource. + - `[SapMonitorName ]`: Name of the SAP monitor resource. + - `[Scope ]`: The resource provider scope of the resource. Parent resource being extended by Managed Identities. + - `[SubscriptionId ]`: Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[VaultName ]`: Name of the vault + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/Get-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/docs/Get-AzSapMonitorProviderInstance.md new file mode 100644 index 000000000000..8340b783a3a9 --- /dev/null +++ b/src/HanaOnAzure/docs/Get-AzSapMonitorProviderInstance.md @@ -0,0 +1,211 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure/get-azsapmonitorproviderinstance +schema: 2.0.0 +--- + +# Get-AzSapMonitorProviderInstance + +## SYNOPSIS +Gets properties of a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +## SYNTAX + +### List (Default) +``` +Get-AzSapMonitorProviderInstance -ResourceGroupName -SapMonitorName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzSapMonitorProviderInstance -Name -ResourceGroupName -SapMonitorName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzSapMonitorProviderInstance -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +## EXAMPLES + +### Example 1: Get all instances under a SAP monitor +```powershell +PS C:\> Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 + +Name Type +---- ---- +ps-sapmonitorins-t01 Microsoft.HanaOnAzure/sapMonitors/providerInstances +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets all instances under a SAP monitor. + +### Example 2: Get an instances of SAP monitor by name +```powershell +PS C:\> Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 + +Name Type +---- ---- +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets an instances of SAP monitor by name. + +### Example 3: Get an instances of SAP monitor by object +```powershell +PS C:\> $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 +PS C:\> Get-AzSapMonitorProviderInstance -InputObject $sapIns + +Name Type +---- ---- +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets an instances of SAP monitor by object. + +### Example 4: Get an instances of SAP monitor by pipeline +```powershell +PS C:\> @{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01/providerInstances/ps-sapmonitorins-t02"} | Get-AzSapMonitorProviderInstance + +Name Type +---- ---- +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets an instances of SAP monitor by pipeline. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the provider instance. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ProviderInstanceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SapMonitorName +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.IProviderInstance + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[Id ]`: Resource identity path + - `[Location ]`: The location of the deleted vault. + - `[OperationKind ]`: Name of the operation + - `[ProviderInstanceName ]`: Name of the provider instance. + - `[ResourceGroupName ]`: Name of the resource group. + - `[ResourceName ]`: The name of the identity resource. + - `[SapMonitorName ]`: Name of the SAP monitor resource. + - `[Scope ]`: The resource provider scope of the resource. Parent resource being extended by Managed Identities. + - `[SubscriptionId ]`: Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[VaultName ]`: Name of the vault + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/New-AzSapMonitor.md b/src/HanaOnAzure/docs/New-AzSapMonitor.md new file mode 100644 index 000000000000..0499019cb51d --- /dev/null +++ b/src/HanaOnAzure/docs/New-AzSapMonitor.md @@ -0,0 +1,284 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure/new-azsapmonitor +schema: 2.0.0 +--- + +# New-AzSapMonitor + +## SYNOPSIS +Creates a SAP monitor for the specified subscription, resource group, and resource name. + +## SYNTAX + +``` +New-AzSapMonitor -Name -ResourceGroupName -Location [-SubscriptionId ] + [-EnableCustomerAnalytic] [-LogAnalyticsWorkspaceId ] [-LogAnalyticsWorkspaceResourceId ] + [-LogAnalyticsWorkspaceSharedKey ] [-MonitorSubnetResourceId ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a SAP monitor for the specified subscription, resource group, and resource name. + +## EXAMPLES + +### Example 1: New SAP monitor +```powershell +PS C:\> $workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -Location westus2 -Sku "Standard" +PS C:\> $workspace = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name sapmonitor-test +PS C:\> New-AzSapMonitor -Name ps-sapmonitor-t01 -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey $workspace.PrimarySharedKey -LogAnalyticsWorkspaceId $workspace.CustomerId -LogAnalyticsWorkspaceResourceId $workspace.ResourceId + +Location Name Type +-------- ---- ---- +westus2 ps-sapmonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command creates a SAP monitor. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableCustomerAnalytic +The value indicating whether to send analytics to Microsoft + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticsWorkspaceId +The workspace ID of the log analytics workspace to be used for monitoring + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticsWorkspaceResourceId +The ARM ID of the Log Analytics Workspace that is used for monitoring + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LogAnalyticsWorkspaceSharedKey +The shared key of the log analytics workspace that is used for monitoring + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MonitorSubnetResourceId +The subnet which the SAP monitor will be deployed in. +It should be the same subnet of HANA database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: SapMonitorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.ISapMonitor + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/New-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/docs/New-AzSapMonitorProviderInstance.md new file mode 100644 index 000000000000..a76ddd0e57c2 --- /dev/null +++ b/src/HanaOnAzure/docs/New-AzSapMonitorProviderInstance.md @@ -0,0 +1,349 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hana/new-azsapproviderinstance +schema: 2.0.0 +--- + +# New-AzSapMonitorProviderInstance + +## SYNOPSIS +Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +## SYNTAX + +### ByString (Default) +``` +New-AzSapMonitorProviderInstance -Name -ResourceGroupName -SapMonitorName + -HanaDatabaseName -HanaDatabasePassword -HanaDatabaseSqlPort + -HanaDatabaseUsername -HanaHostname -ProviderType [-SubscriptionId ] + [-Metadata ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### ByKeyVault +``` +New-AzSapMonitorProviderInstance -Name -ResourceGroupName -SapMonitorName + -HanaDatabaseName -HanaDatabasePasswordKeyVaultResourceId + -HanaDatabasePasswordSecretId -HanaDatabaseSqlPort -HanaDatabaseUsername + -HanaHostname -ProviderType [-SubscriptionId ] [-Metadata ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +## EXAMPLES + +### Example 1: Create an instance of SAP monitor by string for HANA +```powershell +PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t01 -SapMonitorName yemingmonitor -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + +Name Type +---- ---- +ps-sapmonitorins-t01 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command creates an instance of SAP monitor by string for HANA. + +### Example 2: Create an instance of SAP monitor by key vault for HANA +```powershell +PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName sapMonitor-vayh7q-test -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId https://kv-9gosjc-test.vault.azure.net/secrets/hanaPassword/bf516d1dfcc144138e5cf55114f3344b -HanaDatabasePasswordKeyVaultResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-8p50xe/providers/Microsoft.KeyVault/vaults/kv-9gosjc-test -Name sapins-kv-test + +Name Type +---- ---- +sapins-kv-test Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command creates an instance of SAP monitor by key vault for HANA. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaDatabaseName +The database name of SAP HANA instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: HanaDbName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaDatabasePassword +The password of the database of SAP HANA instance. + +```yaml +Type: System.Security.SecureString +Parameter Sets: ByString +Aliases: HanaDbPassword + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaDatabasePasswordKeyVaultResourceId +Resource ID of the Key Vault that contains the HANA credentials. + +```yaml +Type: System.String +Parameter Sets: ByKeyVault +Aliases: HanaDbPasswordKeyVaultId, KeyVaultId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaDatabasePasswordSecretId +Secret identifier to the Key Vault secret that contains the HANA credentials. + +```yaml +Type: System.String +Parameter Sets: ByKeyVault +Aliases: HanaDbPasswordSecretId, SecretId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaDatabaseSqlPort +The SQL port of the database of SAP HANA instance. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: HanaDbSqlPort + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaDatabaseUsername +The username of the database of SAP HANA instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: HanaDbUsername + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HanaHostname +The hostname of SAP HANA instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Metadata +A JSON string containing metadata of the provider instance. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the provider instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ProviderInstanceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProviderType +The type of provider instance. +Supported values are: "SapHana". + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SapMonitorName +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.IProviderInstance + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/Remove-AzSapMonitor.md b/src/HanaOnAzure/docs/Remove-AzSapMonitor.md new file mode 100644 index 000000000000..95beeebc74fd --- /dev/null +++ b/src/HanaOnAzure/docs/Remove-AzSapMonitor.md @@ -0,0 +1,237 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure/remove-azsapmonitor +schema: 2.0.0 +--- + +# Remove-AzSapMonitor + +## SYNOPSIS +Deletes a SAP monitor with the specified subscription, resource group, and monitor name. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzSapMonitor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzSapMonitor -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a SAP monitor with the specified subscription, resource group, and monitor name. + +## EXAMPLES + +### Example 1: Remove a SAP monitor by name +```powershell +PS C:\> Remove-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t02 + +``` + +This command removes a SAP monitor by name. + +### Example 2: Remove a SAP monitor by object +```powershell +PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 +PS C:\> Remove-AzSapMonitor -InputObject $sap + +``` + +This command removes a SAP monitor by object. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: SapMonitorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[Id ]`: Resource identity path + - `[Location ]`: The location of the deleted vault. + - `[OperationKind ]`: Name of the operation + - `[ProviderInstanceName ]`: Name of the provider instance. + - `[ResourceGroupName ]`: Name of the resource group. + - `[ResourceName ]`: The name of the identity resource. + - `[SapMonitorName ]`: Name of the SAP monitor resource. + - `[Scope ]`: The resource provider scope of the resource. Parent resource being extended by Managed Identities. + - `[SubscriptionId ]`: Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[VaultName ]`: Name of the vault + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/Remove-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/docs/Remove-AzSapMonitorProviderInstance.md new file mode 100644 index 000000000000..633b6779ffeb --- /dev/null +++ b/src/HanaOnAzure/docs/Remove-AzSapMonitorProviderInstance.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure/remove-azsapmonitorproviderinstance +schema: 2.0.0 +--- + +# Remove-AzSapMonitorProviderInstance + +## SYNOPSIS +Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzSapMonitorProviderInstance -Name -ResourceGroupName -SapMonitorName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzSapMonitorProviderInstance -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. + +## EXAMPLES + +### Example 1: Remove instance of SAP monitor by name +```powershell +PS C:\> Remove-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 + +``` + +This command removes instance of SAP monitor by name. + +### Example 2: Remove instance of SAP monitor by object +```powershell +PS C:\> $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t01 +PS C:\> Remove-AzSapMonitorProviderInstance -InputObject $sapIns + +``` + +This command removes instance of SAP monitor by object. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the provider instance. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ProviderInstanceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SapMonitorName +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[Id ]`: Resource identity path + - `[Location ]`: The location of the deleted vault. + - `[OperationKind ]`: Name of the operation + - `[ProviderInstanceName ]`: Name of the provider instance. + - `[ResourceGroupName ]`: Name of the resource group. + - `[ResourceName ]`: The name of the identity resource. + - `[SapMonitorName ]`: Name of the SAP monitor resource. + - `[Scope ]`: The resource provider scope of the resource. Parent resource being extended by Managed Identities. + - `[SubscriptionId ]`: Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[VaultName ]`: Name of the vault + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/Update-AzSapMonitor.md b/src/HanaOnAzure/docs/Update-AzSapMonitor.md new file mode 100644 index 000000000000..162145c29258 --- /dev/null +++ b/src/HanaOnAzure/docs/Update-AzSapMonitor.md @@ -0,0 +1,213 @@ +--- +external help file: +Module Name: Az.HanaOnAzure +online version: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure/update-azsapmonitor +schema: 2.0.0 +--- + +# Update-AzSapMonitor + +## SYNOPSIS +Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzSapMonitor -Name -ResourceGroupName [-SubscriptionId ] [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzSapMonitor -InputObject [-Tag ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name. + +## EXAMPLES + +### Example 1: Update a SAP monitor by name +```powershell +PS C:\> Update-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 -Tag @{'key'=1;'key2'=2; 'key3'=3} + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This commands updates a SAP monitor by name. + +### Example 2: Update a SAP monitor by object +```powershell +PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 +PS C:\> Update-AzSapMonitor -InputObject $sap -Tag @{'key'=1;'key2'=2; 'key3'=3} + +Location Name Type +-------- ---- ---- +westus2 ps-sapmonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This commands updates a SAP monitor by object. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the SAP monitor resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: SapMonitorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription ID which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags field of the resource. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IHanaOnAzureIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.ISapMonitor + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[Id ]`: Resource identity path + - `[Location ]`: The location of the deleted vault. + - `[OperationKind ]`: Name of the operation + - `[ProviderInstanceName ]`: Name of the provider instance. + - `[ResourceGroupName ]`: Name of the resource group. + - `[ResourceName ]`: The name of the identity resource. + - `[SapMonitorName ]`: Name of the SAP monitor resource. + - `[Scope ]`: The resource provider scope of the resource. Parent resource being extended by Managed Identities. + - `[SubscriptionId ]`: Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[VaultName ]`: Name of the vault + +## RELATED LINKS + diff --git a/src/HanaOnAzure/docs/readme.md b/src/HanaOnAzure/docs/readme.md index d585a82f038a..6f6863435d7b 100644 --- a/src/HanaOnAzure/docs/readme.md +++ b/src/HanaOnAzure/docs/readme.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.Hana` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overriden on regeneration*. To update documentation examples, please use the `..\examples` folder. +This directory contains the documentation of the cmdlets for the `Az.HanaOnAzure` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overriden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.Hana` modul - Packaged: yes ## Details -The process of documentation generation loads `Az.Hana` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.HanaOnAzure` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/HanaOnAzure/examples/Get-AzSapMonitor.md b/src/HanaOnAzure/examples/Get-AzSapMonitor.md new file mode 100644 index 000000000000..413067132225 --- /dev/null +++ b/src/HanaOnAzure/examples/Get-AzSapMonitor.md @@ -0,0 +1,48 @@ +### Example 1: Get all SAP monitors under a subscription +```powershell +PS C:\> Get-AzSapMonitor + +Location Name Type +-------- ---- ---- +westus2 ps-sapmonitor-t01 Microsoft.HanaOnAzure/sapMonitors +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets SAP monitors under a subscription. + +### Example 2: Get a SAP monitor by name +```powershell +PS C:\> Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets a SAP monitor by name. + +### Example 3: Get a SAP monitor by object +```powershell +PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 +PS C:\> Get-AzSapMonitor -InputObject $sap + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets a SAP monitor by object. + +### Example 4: Get a SAP monitor by pipeline +```powershell +PS C:\> @{Id='/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01'} | Get-AzSapMonitor + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command gets a SAP monitor by pipeline. + + + diff --git a/src/HanaOnAzure/examples/Get-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/examples/Get-AzSapMonitorProviderInstance.md new file mode 100644 index 000000000000..c75e1a32275d --- /dev/null +++ b/src/HanaOnAzure/examples/Get-AzSapMonitorProviderInstance.md @@ -0,0 +1,46 @@ +### Example 1: Get all instances under a SAP monitor +```powershell +PS C:\> Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 + +Name Type +---- ---- +ps-sapmonitorins-t01 Microsoft.HanaOnAzure/sapMonitors/providerInstances +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets all instances under a SAP monitor. + +### Example 2: Get an instances of SAP monitor by name +```powershell +PS C:\> Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 + +Name Type +---- ---- +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets an instances of SAP monitor by name. + +### Example 3: Get an instances of SAP monitor by object +```powershell +PS C:\> $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 +PS C:\> Get-AzSapMonitorProviderInstance -InputObject $sapIns + +Name Type +---- ---- +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets an instances of SAP monitor by object. + +### Example 4: Get an instances of SAP monitor by pipeline +```powershell +PS C:\> @{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01/providerInstances/ps-sapmonitorins-t02"} | Get-AzSapMonitorProviderInstance + +Name Type +---- ---- +ps-sapmonitorins-t02 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command gets an instances of SAP monitor by pipeline. + diff --git a/src/HanaOnAzure/examples/New-AzSapMonitor.md b/src/HanaOnAzure/examples/New-AzSapMonitor.md new file mode 100644 index 000000000000..e0f808aca0db --- /dev/null +++ b/src/HanaOnAzure/examples/New-AzSapMonitor.md @@ -0,0 +1,13 @@ +### Example 1: New SAP monitor +```powershell +PS C:\> $workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -Location westus2 -Sku "Standard" +PS C:\> $workspace = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name sapmonitor-test +PS C:\> New-AzSapMonitor -Name ps-sapmonitor-t01 -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey $workspace.PrimarySharedKey -LogAnalyticsWorkspaceId $workspace.CustomerId -LogAnalyticsWorkspaceResourceId $workspace.ResourceId + +Location Name Type +-------- ---- ---- +westus2 ps-sapmonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This command creates a SAP monitor. + diff --git a/src/HanaOnAzure/examples/New-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/examples/New-AzSapMonitorProviderInstance.md new file mode 100644 index 000000000000..36d4d905bf26 --- /dev/null +++ b/src/HanaOnAzure/examples/New-AzSapMonitorProviderInstance.md @@ -0,0 +1,22 @@ +### Example 1: Create an instance of SAP monitor by string for HANA +```powershell +PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t01 -SapMonitorName yemingmonitor -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + +Name Type +---- ---- +ps-sapmonitorins-t01 Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command creates an instance of SAP monitor by string for HANA. + +### Example 2: Create an instance of SAP monitor by key vault for HANA +```powershell +PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName sapMonitor-vayh7q-test -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId https://kv-9gosjc-test.vault.azure.net/secrets/hanaPassword/bf516d1dfcc144138e5cf55114f3344b -HanaDatabasePasswordKeyVaultResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-8p50xe/providers/Microsoft.KeyVault/vaults/kv-9gosjc-test -Name sapins-kv-test + +Name Type +---- ---- +sapins-kv-test Microsoft.HanaOnAzure/sapMonitors/providerInstances +``` + +This command creates an instance of SAP monitor by key vault for HANA. + diff --git a/src/HanaOnAzure/examples/Remove-AzSapMonitor.md b/src/HanaOnAzure/examples/Remove-AzSapMonitor.md new file mode 100644 index 000000000000..99704f4df816 --- /dev/null +++ b/src/HanaOnAzure/examples/Remove-AzSapMonitor.md @@ -0,0 +1,17 @@ +### Example 1: Remove a SAP monitor by name +```powershell +PS C:\> Remove-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t02 + +``` + +This command removes a SAP monitor by name. + +### Example 2: Remove a SAP monitor by object +```powershell +PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 +PS C:\> Remove-AzSapMonitor -InputObject $sap + +``` + +This command removes a SAP monitor by object. + diff --git a/src/HanaOnAzure/examples/Remove-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/examples/Remove-AzSapMonitorProviderInstance.md new file mode 100644 index 000000000000..3cac2a001399 --- /dev/null +++ b/src/HanaOnAzure/examples/Remove-AzSapMonitorProviderInstance.md @@ -0,0 +1,17 @@ +### Example 1: Remove instance of SAP monitor by name +```powershell +PS C:\> Remove-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 + +``` + +This command removes instance of SAP monitor by name. + +### Example 2: Remove instance of SAP monitor by object +```powershell +PS C:\> $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t01 +PS C:\> Remove-AzSapMonitorProviderInstance -InputObject $sapIns + +``` + +This command removes instance of SAP monitor by object. + diff --git a/src/HanaOnAzure/examples/Update-AzSapMonitor.md b/src/HanaOnAzure/examples/Update-AzSapMonitor.md new file mode 100644 index 000000000000..95217aaf3172 --- /dev/null +++ b/src/HanaOnAzure/examples/Update-AzSapMonitor.md @@ -0,0 +1,23 @@ +### Example 1: Update a SAP monitor by name +```powershell +PS C:\> Update-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 -Tag @{'key'=1;'key2'=2; 'key3'=3} + +Location Name Type +-------- ---- ---- +westus2 ps-spamonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This commands updates a SAP monitor by name. + +### Example 2: Update a SAP monitor by object +```powershell +PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 +PS C:\> Update-AzSapMonitor -InputObject $sap -Tag @{'key'=1;'key2'=2; 'key3'=3} + +Location Name Type +-------- ---- ---- +westus2 ps-sapmonitor-t01 Microsoft.HanaOnAzure/sapMonitors +``` + +This commands updates a SAP monitor by object. + diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/Get-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/Get-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/Get-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/New-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/New-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/New-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/Remove-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/Remove-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/Remove-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/Restart-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/Restart-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/Restart-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/Start-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/Start-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/Start-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/Stop-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/Stop-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/Stop-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/latest-2019-04-30/Update-AzHanaInstance.md b/src/HanaOnAzure/examples/latest-2019-04-30/Update-AzHanaInstance.md deleted file mode 100644 index 093355d11d50..000000000000 --- a/src/HanaOnAzure/examples/latest-2019-04-30/Update-AzHanaInstance.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/HanaOnAzure/examples/readme.md b/src/HanaOnAzure/examples/readme.md deleted file mode 100644 index ac871d71fc72..000000000000 --- a/src/HanaOnAzure/examples/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -# Examples -This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran. - -## Info -- Modifiable: yes -- Generated: partial -- Committed: yes -- Packaged: no - -## Purpose -This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder. \ No newline at end of file diff --git a/src/HanaOnAzure/how-to.md b/src/HanaOnAzure/how-to.md index 84795ebf9f2f..9dfe8de5700c 100644 --- a/src/HanaOnAzure/how-to.md +++ b/src/HanaOnAzure/how-to.md @@ -1,34 +1,36 @@ # How-To -This document describes how to develop for `Az.Hana`. +This document describes how to develop for `Az.HanaOnAzure`. -## Building `Az.Hana` +## Building `Az.HanaOnAzure` To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [readme.md](exports/readme.md) in the `exports` folder. ## Creating custom cmdlets To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [readme.md](custom/readme.md) in the `custom` folder. ## Generating documentation -To generate documentation, run the `generate-help.ps1` script. This will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [readme.md](examples/readme.md) in the `examples` folder. To read more about documentation, look at the [readme.md](docs/readme.md) in the `docs` folder. +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [readme.md](examples/readme.md) in the `examples` folder. To read more about documentation, look at the [readme.md](docs/readme.md) in the `docs` folder. -## Testing `Az.Hana` +## Testing `Az.HanaOnAzure` To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [readme.md](examples/readme.md) in the `examples` folder. -## Packing `Az.Hana` -To pack `Az.Hana` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +## Packing `Az.HanaOnAzure` +To pack `Az.HanaOnAzure` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details -There are multiple scripts created for performing different actions for developing `Az.Hana`. +There are multiple scripts created for performing different actions for developing `Az.HanaOnAzure`. - `build-module.ps1` - - Builds the module DLL (`./bin/Az.Hana.private.dll`), creates the exported cmdlets, generates custom cmdlet test stubs, and updates `./Az.Hana.psd1` with Azure profile information. + - Builds the module DLL (`./bin/Az.HanaOnAzure.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.HanaOnAzure.psd1` with Azure profile information. - **Parameters**: [`Switch` parameters] - - `-Run`: After building, creates an isolated PowerShell session and loads `Az.Hana`. + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.HanaOnAzure`. - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. - `-Pack`: After building, packages the module into a `.nupkg`. - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. - `run-module.ps1` - - Creates an isolated PowerShell session and loads `Az.Hana` into the session. + - Creates an isolated PowerShell session and loads `Az.HanaOnAzure` into the session. - Same as `-Run` in `build-module.ps1`. - **Parameters**: [`Switch` parameters] - `-Code`: Opens a VSCode window with the module's directory. @@ -42,7 +44,15 @@ There are multiple scripts created for performing different actions for developi - `pack-module.ps1` - Packages the module into a `.nupkg` for distribution. - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. - `check-dependencies.ps1` - - Used in `run-module.ps1`, `generate-help.ps1`, and `test-module.ps1` to verify dependent modules are available to run those tasks. + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. - It will download local (within the module's directory structure) versions of those modules as needed. - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/HanaOnAzure/readme.md b/src/HanaOnAzure/readme.md index 1b2dbee27a40..3c320067f1ca 100644 --- a/src/HanaOnAzure/readme.md +++ b/src/HanaOnAzure/readme.md @@ -1,10 +1,10 @@ -# Az.Hana -This directory contains the PowerShell module for the Hana service. +# Az.HanaOnAzure +This directory contains the PowerShell module for the HanaOn service. --- ## Status -[![Az.Hana](https://img.shields.io/powershellgallery/v/Az.Hana.svg?style=flat-square&label=Az.Hana "Az.Hana")](https://www.powershellgallery.com/packages/Az.Hana/) +[![Az.HanaOnAzure](https://img.shields.io/powershellgallery/v/Az.HanaOnAzure.svg?style=flat-square&label=Az.HanaOnAzure "Az.HanaOnAzure")](https://www.powershellgallery.com/packages/Az.HanaOnAzure/) ## Info - Modifiable: yes @@ -17,13 +17,13 @@ This directory contains the PowerShell module for the Hana service. This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.6.0 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.8.1 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. ## Development -For information on how to develop for `Az.Hana`, see [how-to.md](how-to.md). +For information on how to develop for `Az.HanaOnAzure`, see [how-to.md](how-to.md). --- @@ -48,9 +48,103 @@ In this directory, run AutoRest: ``` yaml require: - - $(this-folder)/../readme.azure.md + - $(this-folder)/../readme.azure.noprofile.md - $(repo)/specification/hanaonazure/resource-manager/readme.md -module-version: 0.0.1 +# For new RP, the version is 0.1.0 +module-version: 0.1.0 +# Normally, title is the service name +title: HanaOnAzure +# Autorest will remove "Azure" in the generated module, resulting "Az.HanaOn" +# A work-around is to specify "service-name", which is of higher priority when calc the module name +service-name: HanaOnAzure +subject-prefix: SapMonitor +# If there are post APIs for some kinds of actions in the RP, you may need to +# uncomment following line to support viaIdentity for these post APIs +# identity-correction-for-post: true + +directive: + # Following is two common directive which are normally required in all the RPs + # 1. Remove the unexpanded parameter set + # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well + - where: + variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + remove: true + # Remove the set-* cmdlet, update-* is enough + - where: + verb: Set + # But do not remove set-* from key vault, that is needed + subject: ^SapMonitor$|^ProviderInstance$|^HanaInstance$ + remove: true + # Remove commands of Hana instance, which need to be reconsidered + - where: + subject: HanaInstance + remove: true + # Rename some parameters to follow powershell convention + - where: + parameter-name: LogAnalyticsWorkspaceArmId + set: + parameter-name: LogAnalyticsWorkspaceResourceId + - where: + parameter-name: MonitorSubnet + set: + parameter-name: MonitorSubnetResourceId + - where: + parameter-name: PropertiesType + set: + parameter-name: ProviderType + + # Update some parameter description + - where: + parameter-name: MonitorSubnetResourceId + subject: SapMonitor + set: + parameter-description: The subnet which the SAP monitor will be deployed in. It should be the same subnet of HANA database. + + # Make location required + # Fixme: when service team makes the change, remove this line + - from: swagger-document + where: $.definitions.TrackedResource + transform: $['required'] = ['location'] + # Hide New-*ProviderInstance for customization + - where: + verb: New + subject: ProviderInstance + hide: true + + # Table format + - where: + model-name: ProviderInstance + set: + format-table: + properties: + - Name + - ProviderType + labels: + ProviderType: Provider Type + - where: + model-name: SapMonitor + set: + format-table: + properties: + - Name + - Location +``` + +``` yaml +# HELPERS +# ManagedIdentity and KeyVault is required when creating provider instance +require: + - $(this-folder)/../helpers/ManagedIdentity/readme.noprofile.md + - $(this-folder)/../helpers/KeyVault/readme.noprofile.md + +directive: + # remove unneeded cmdlets + - where: + subject: ^VaultDeleted$|^Vault$|^VaultNameAvailability$ + remove: true + - where: + subject: ^SystemAssignedIdentity$ + remove: true ``` diff --git a/src/HanaOnAzure/test/Get-AzSapMonitor.Recording.json b/src/HanaOnAzure/test/Get-AzSapMonitor.Recording.json new file mode 100644 index 000000000000..58d856f0b63f --- /dev/null +++ b/src/HanaOnAzure/test/Get-AzSapMonitor.Recording.json @@ -0,0 +1,162 @@ +{ + "Get-AzSapMonitor+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/sapMonitors?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/sapMonitors?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "ca871d24-a132-4f36-9156-02bf4d32a36a" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T060345Z:52c65fca-c329-476e-bf62-6bf0a568b9e2" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "52c65fca-c329-476e-bf62-6bf0a568b9e2" ], + "x-ms-request-id": [ "edc0a00d-1d96-431f-b9c4-75123296207e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:03:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "5364" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-j1sm2o-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-j1sm2o-test\",\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-48537d0733dfc9\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-jeiysz/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-wohtnd\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-rnwz0m-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-rnwz0m-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-9cd4a794632527\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-o3udez/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-1jx26e\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-vayh7q-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-vayh7q-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-9eec93615bc403\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-dj6nwo/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-tbmy5e\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/yemingmonitor5\",\n \"location\": \"westus2\",\n \"name\": \"yemingmonitor5\",\n \"tags\": {\n \"a\": \"b\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Deleting\",\n \"managedResourceGroupName\": \"sapmon-rg-7dc200167f3865\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-db-a\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/yemingmonitortest\",\n \"location\": \"westus2\",\n \"name\": \"yemingmonitortest\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-31fb7355419438\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }\n ]\n }" + } + }, + "Get-AzSapMonitor+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "da28bd37-169f-44e3-a62d-653415e7501d" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T060346Z:2735fa2c-dedf-48a0-903d-ea5fb84d0625" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "2735fa2c-dedf-48a0-903d-ea5fb84d0625" ], + "x-ms-request-id": [ "bdacd02e-25e0-499d-8cdb-93f747303027" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:03:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "863" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "Get-AzSapMonitor+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "1a1c2b7d-a435-45da-bacc-66d961767bf2" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T060346Z:4949eb8f-7b51-4aeb-9e07-aa03bc1e2e5a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "4949eb8f-7b51-4aeb-9e07-aa03bc1e2e5a" ], + "x-ms-request-id": [ "fe3d916a-8d89-4f9d-99e9-4d52e49855ca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:03:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "863" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "Get-AzSapMonitor+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "07fa7177-6630-42d3-8414-dc9dad81df7e" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T060346Z:a5fa4a59-0bc9-48bd-aef8-e48c451f9c42" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "a5fa4a59-0bc9-48bd-aef8-e48c451f9c42" ], + "x-ms-request-id": [ "e8fab2f0-6d2d-4e47-a2da-605cc601736a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:03:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "863" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/Get-AzSapMonitor.Tests.ps1 b/src/HanaOnAzure/test/Get-AzSapMonitor.Tests.ps1 new file mode 100644 index 000000000000..0079d0c1900b --- /dev/null +++ b/src/HanaOnAzure/test/Get-AzSapMonitor.Tests.ps1 @@ -0,0 +1,30 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzSapMonitor.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzSapMonitor' { + It 'List' { + $sapMonitorList = Get-AzSapMonitor + $sapMonitorList.Count | Should -BeGreaterOrEqual 1 + } + + It 'Get' { + $sapMonitor = Get-AzSapMonitor -ResourceGroupName $env.resourceGroup -Name $env.sapMonitor01 + $sapMonitor.Name | Should -Be $env.sapMonitor01 + } + + It 'GetViaIdentity' { + $sapMonitor = Get-AzSapMonitor -ResourceGroupName $env.resourceGroup -Name $env.sapMonitor01 + $sapMonitor = Get-AzSapMonitor -InputObject $sapMonitor + $sapMonitor.Name | Should -Be $env.sapMonitor01 + } +} diff --git a/src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Recording.json b/src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Recording.json new file mode 100644 index 000000000000..c5ae68cad94e --- /dev/null +++ b/src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Recording.json @@ -0,0 +1,162 @@ +{ + "Get-AzSapMonitorProviderInstance+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "4797e415-cb5e-414b-a56b-8f2b92297142" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061432Z:96ac3ea2-7e01-4795-acc0-80789915f604" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "96ac3ea2-7e01-4795-acc0-80789915f604" ], + "x-ms-request-id": [ "d419b2d4-d85a-47d8-a758-1eed7d800b6a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:14:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1332" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9\",\n \"location\": \"\",\n \"name\": \"sapInstance-bukeg9\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\",\\\"hanaDbPasswordKeyVaultUrl\\\":\\\"https://kv-7zeudq-test.vault.azure.net:443/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Failed\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k\",\n \"location\": \"\",\n \"name\": \"sapInstance-p6zm1k\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }\n ]\n }" + } + }, + "Get-AzSapMonitorProviderInstance+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "973171f7-9818-4d3f-bf23-903d73445ebf" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061433Z:7ddfe1ee-2cb1-458d-af32-6ab150a00a5b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "7ddfe1ee-2cb1-458d-af32-6ab150a00a5b" ], + "x-ms-request-id": [ "803dd398-f42c-4357-9a6b-8f44faf80c9a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:14:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "563" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k\",\n \"location\": \"\",\n \"name\": \"sapInstance-p6zm1k\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }" + } + }, + "Get-AzSapMonitorProviderInstance+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "827d4b87-0da6-4a40-a545-16b77d055657" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061433Z:07b3d075-aa89-47bb-b628-0147307cd5e0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "07b3d075-aa89-47bb-b628-0147307cd5e0" ], + "x-ms-request-id": [ "67ed88f5-d750-4251-9bfe-851619274209" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:14:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "563" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k\",\n \"location\": \"\",\n \"name\": \"sapInstance-p6zm1k\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }" + } + }, + "Get-AzSapMonitorProviderInstance+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "a4fc032d-2178-46b8-921e-5c12720fe644" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061433Z:fad6cae6-5c80-448b-9e07-e9358e0b0098" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "fad6cae6-5c80-448b-9e07-e9358e0b0098" ], + "x-ms-request-id": [ "d3a366bc-21db-4c7e-9026-8976fdfa0698" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:14:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "563" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k\",\n \"location\": \"\",\n \"name\": \"sapInstance-p6zm1k\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Tests.ps1 b/src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Tests.ps1 new file mode 100644 index 000000000000..febe6092cf43 --- /dev/null +++ b/src/HanaOnAzure/test/Get-AzSapMonitorProviderInstance.Tests.ps1 @@ -0,0 +1,30 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzSapMonitorProviderInstance.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzSapMonitorProviderInstance' { + It 'List' { + $sapInsList = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 + $sapInsList.Count | Should -Be 2 + } + + It 'Get' { + $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 -Name $env.sapIns01 + $sapIns.Name | Should -Be $env.sapIns01 + } + + It 'GetViaIdentity' { + $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 -Name $env.sapIns01 + $sapIns = Get-AzSapMonitorProviderInstance -InputObject $sapIns + $sapIns.Name | Should -Be $env.sapIns01 + } +} diff --git a/src/HanaOnAzure/test/New-AzSapMonitor.Recording.json b/src/HanaOnAzure/test/New-AzSapMonitor.Recording.json new file mode 100644 index 000000000000..639d6e1337f1 --- /dev/null +++ b/src/HanaOnAzure/test/New-AzSapMonitor.Recording.json @@ -0,0 +1,517 @@ +{ + "New-AzSapMonitor+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": "{\n \"location\": \"westus2\",\n \"properties\": {\n \"enableCustomerAnalytics\": true,\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"logAnalyticsWorkspaceId\": \"\",\n \"logAnalyticsWorkspaceSharedKey\": \"Qf/scKlrNjkyMot3WIlWvw1/p3c1+1uRtu5fRI0ihpws92OqawKurEYuODmGlkfb81gfW03zTITzOF1QARpF6w==\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "634" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "6d0a8770-ea3d-495f-8a41-fe67312cc0a3" ], + "x-ms-request-id": [ "45cbdd2c-56af-4eb4-bd5d-a49da76eff4a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061627Z:6d0a8770-ea3d-495f-8a41-fe67312cc0a3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:16:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "957" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-wrlm5y-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Accepted\",\n \"managedResourceGroupName\": \"\",\n \"enableCustomerAnalytics\": true,\n \"sapMonitorCollectorVersion\": \"\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"logAnalyticsWorkspaceSharedKey\": \"Qf/scKlrNjkyMot3WIlWvw1/p3c1+1uRtu5fRI0ihpws92OqawKurEYuODmGlkfb81gfW03zTITzOF1QARpF6w==\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "fd81e0ec-8481-4df2-8e6e-2c763ffd970c" ], + "x-ms-request-id": [ "f684f72c-a484-4b4b-a5f2-1fc04211c5fb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061658Z:fd81e0ec-8481-4df2-8e6e-2c763ffd970c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:16:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "7cab45fd-8393-492f-a7a5-997e460916b2" ], + "x-ms-request-id": [ "8f50fa30-8353-4439-a46f-c26c05778f74" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061728Z:7cab45fd-8393-492f-a7a5-997e460916b2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:17:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "f863073f-b872-4baa-8afc-f263ac7597f7" ], + "x-ms-request-id": [ "70ce1cd5-28e0-4e09-b7f1-5e5aae0dc807" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061758Z:f863073f-b872-4baa-8afc-f263ac7597f7" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:17:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "60ebc708-a7f6-4d30-9dca-a39ecf181e82" ], + "x-ms-request-id": [ "0a2ee55f-3479-46cd-9153-a73677f5f336" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061829Z:60ebc708-a7f6-4d30-9dca-a39ecf181e82" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:18:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "638f0c40-ba33-4304-bd8b-516a61407ad1" ], + "x-ms-request-id": [ "fc8c2905-d0bb-4250-bfdc-d88e2d7074f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061859Z:638f0c40-ba33-4304-bd8b-516a61407ad1" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:18:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "56ea6a30-5406-4896-90ec-b8279c7879ad" ], + "x-ms-request-id": [ "81d16a96-3e76-4c57-8046-fb3ced6c5cec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T061929Z:56ea6a30-5406-4896-90ec-b8279c7879ad" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:19:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "bdc68240-1e31-41e5-8a81-bc2a34ab6e3a" ], + "x-ms-request-id": [ "e3fe7f22-213a-47e1-b35c-305dbd63b404" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T062000Z:bdc68240-1e31-41e5-8a81-bc2a34ab6e3a" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:19:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "2b27c07a-7236-4156-82c7-9825b8484218" ], + "x-ms-request-id": [ "88d0c120-6ffa-486b-831c-ddf921e26d7f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T062030Z:2b27c07a-7236-4156-82c7-9825b8484218" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:20:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "692dfa7d-5461-45ed-8042-647a98aea1e2" ], + "x-ms-request-id": [ "389b5643-35aa-4b57-8c09-0e1ece549ca9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T062100Z:692dfa7d-5461-45ed-8042-647a98aea1e2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:21:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "87504b41-4a66-4274-bbdd-8b420d3c1794" ], + "x-ms-request-id": [ "bc4a119a-d3ab-4f83-8b5a-c2481b75741e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T062131Z:87504b41-4a66-4274-bbdd-8b420d3c1794" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:21:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/45cbdd2c-56af-4eb4-bd5d-a49da76eff4a?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "33a24fea-0887-4522-b5bf-bebad3c69059" ], + "x-ms-request-id": [ "a36db8c3-5a28-435b-96ef-904046be7084" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T062202Z:33a24fea-0887-4522-b5bf-bebad3c69059" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:22:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"45cbdd2c-56af-4eb4-bd5d-a49da76eff4a\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T06:16:26.2984518Z\",\n \"endTime\": \"2020-07-06T06:21:34.3606846Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitor+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], + "x-ms-client-request-id": [ "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b", "eb67f65f-b48c-418e-9087-6819ad2a8b5b" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T062202Z:8a869c6b-b7ce-4ce4-8381-2be2e9cda56a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "8a869c6b-b7ce-4ce4-8381-2be2e9cda56a" ], + "x-ms-request-id": [ "736bc90b-69c8-4f25-ab16-4a447c2b35a5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:22:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "863" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-wrlm5y-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-755d7b77729881\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/New-AzSapMonitor.Tests.ps1 b/src/HanaOnAzure/test/New-AzSapMonitor.Tests.ps1 new file mode 100644 index 000000000000..3d8eb653c45f --- /dev/null +++ b/src/HanaOnAzure/test/New-AzSapMonitor.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSapMonitor.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzSapMonitor' { + It 'CreateExpanded' { + $sapMonitor = New-AzSapMonitor -Name $env.sapMonitor02 -ResourceGroupName $env.resourceGroup -Location $env.location -EnableCustomerAnalytic ` + -MonitorSubnet $env.MonitorSubnet ` + -LogAnalyticsWorkspaceSharedKey $env.workspace02Key ` + -LogAnalyticsWorkspaceId $env.workspace02Id ` + -LogAnalyticsWorkspaceResourceId $env.workspaceResourceId02 + + $sapMonitor.ProvisioningState | Should -Be 'Succeeded' + } +} diff --git a/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Recording.json b/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Recording.json new file mode 100644 index 000000000000..efc388bfcaea --- /dev/null +++ b/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Recording.json @@ -0,0 +1,548 @@ +{ + "New-AzSapMonitorProviderInstance+[NoContext]+CreateExpandedByString+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-ywnfxq?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-ywnfxq?api-version=2020-02-07-preview", + "Content": "{\n \"properties\": {\n \"type\": \"SapHana\",\n \"metadata\": \"null\",\n \"properties\": \"{\\n \\\"hanaHostname\\\": \\\"hdb1-0\\\",\\n \\\"hanaDbName\\\": \\\"SYSTEMDB\\\",\\n \\\"hanaDbPassword\\\": \\\"Manager1\\\",\\n \\\"hanaDbUsername\\\": \\\"SYSTEM\\\",\\n \\\"hanaDbSqlPort\\\": 30015\\n}\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "263" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "d19e97db-8c48-40ef-9612-485d29272a39" ], + "x-ms-request-id": [ "afefbee9-085a-435e-8d01-1a31c3db76a5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064506Z:d19e97db-8c48-40ef-9612-485d29272a39" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:45:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-ywnfxq\",\n \"location\": \"\",\n \"name\": \"sapInstance-ywnfxq\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Accepted\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+CreateExpandedByString+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "a764e8ac-88b7-41d6-8901-b0efb8ed1b7b" ], + "x-ms-request-id": [ "08fee32f-1851-44cb-913a-f0c14d63e18d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064537Z:a764e8ac-88b7-41d6-8901-b0efb8ed1b7b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:45:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"afefbee9-085a-435e-8d01-1a31c3db76a5\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:45:06.7623378Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+CreateExpandedByString+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2017-11-03-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "951ebe72-7eb6-4f85-ad29-d1d72a48c4be" ], + "x-ms-request-id": [ "cdcfdbd9-80fb-4ae3-a718-5eaf471bb818" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064607Z:951ebe72-7eb6-4f85-ad29-d1d72a48c4be" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:46:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"afefbee9-085a-435e-8d01-1a31c3db76a5\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:45:06.7623378Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+CreateExpandedByString+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2017-11-03-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/afefbee9-085a-435e-8d01-1a31c3db76a5?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "6a01311e-a145-4e81-9a73-4bfee6bb34eb" ], + "x-ms-request-id": [ "321ed2c7-3fd9-4d4d-bfe4-32a6adbcb224" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064637Z:6a01311e-a145-4e81-9a73-4bfee6bb34eb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:46:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"afefbee9-085a-435e-8d01-1a31c3db76a5\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T06:45:06.7623378Z\",\n \"endTime\": \"2020-07-06T06:46:07.6155649Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+CreateExpandedByString+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-ywnfxq?api-version=2020-02-07-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-ywnfxq?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5" ], + "x-ms-client-request-id": [ "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10", "5e4bf828-c889-471b-9936-5b6c96242e10" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064638Z:bcc55acd-bfdd-4f41-82b1-8232c4a7ec95" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "bcc55acd-bfdd-4f41-82b1-8232c4a7ec95" ], + "x-ms-request-id": [ "e5edad7d-44af-441e-b3a4-14d3a376fba0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:46:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "563" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-ywnfxq\",\n \"location\": \"\",\n \"name\": \"sapInstance-ywnfxq\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "2d3a8451-59cb-443c-8e83-063aa5b71ded" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064638Z:a73c2757-5277-4920-8be6-05a445b54172" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "a73c2757-5277-4920-8be6-05a445b54172" ], + "x-ms-request-id": [ "82fd40df-2cf0-49df-8bde-1d00b0f133ec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:46:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "863" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-wrlm5y-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-755d7b77729881\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/sapmon-rg-755d7b77729881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sapmon-msi-755d7b77729881?api-version=2018-11-30+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/sapmon-rg-755d7b77729881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sapmon-msi-755d7b77729881?api-version=2018-11-30", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0a0c8f70-101f-4df5-afe3-7b10a639b4d9" ], + "CommandName": [ "Az.HanaOnAzure.internal\\Get-AzUserAssignedIdentity" ], + "FullCommandName": [ "Get-AzUserAssignedIdentity_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-request-id": [ "0df93bdd-1b06-4dbb-86a6-959aaca27663" ], + "x-ms-correlation-request-id": [ "0df93bdd-1b06-4dbb-86a6-959aaca27663" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064640Z:0df93bdd-1b06-4dbb-86a6-959aaca27663" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:46:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "504" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/sapmon-rg-755d7b77729881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sapmon-msi-755d7b77729881\",\"name\":\"sapmon-msi-755d7b77729881\",\"type\":\"Microsoft.ManagedIdentity/userAssignedIdentities\",\"location\":\"westus2\",\"tags\":{\"SapMonId\":\"755d7b77729881\"},\"properties\":{\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"principalId\":\"f1c401e7-6382-4fec-bc03-b121212e1ed1\",\"clientId\":\"a4b2ca5f-f66d-4d66-8c55-0c5b0b312e09\"}}" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-r3ox95/providers/Microsoft.KeyVault/vaults/kv-7zeudq-test/accessPolicies/add?api-version=2016-10-01+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-r3ox95/providers/Microsoft.KeyVault/vaults/kv-7zeudq-test/accessPolicies/add?api-version=2016-10-01", + "Content": "{\n \"properties\": {\n \"accessPolicies\": [\n {\n \"permissions\": {\n \"secrets\": [ \"get\" ]\n },\n \"objectId\": \"f1c401e7-6382-4fec-bc03-b121212e1ed1\",\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n }\n ]\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "257" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-keyvault-service-version": [ "1.1.0.283" ], + "x-ms-request-id": [ "18a80d14-b67b-483d-b68d-4f8b2c3ea3f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-AspNet-Version": [ "4.0.30319" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "9110b3bf-2761-479c-8ece-919aaba2bbcd" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064642Z:9110b3bf-2761-479c-8ece-919aaba2bbcd" ], + "Date": [ "Mon, 06 Jul 2020 06:46:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "387" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-r3ox95/providers/Microsoft.KeyVault/vaults/kv-7zeudq-test/accessPolicies/\",\"type\":\"Microsoft.KeyVault/vaults/accessPolicies\",\"properties\":{\"accessPolicies\":[{\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"objectId\":\"f1c401e7-6382-4fec-bc03-b121212e1ed1\",\"permissions\":{\"secrets\":[\"get\"]}}]}}" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc?api-version=2020-02-07-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc?api-version=2020-02-07-preview", + "Content": "{\n \"properties\": {\n \"type\": \"SapHana\",\n \"metadata\": \"null\",\n \"properties\": \"{\\n \\\"keyVaultCredentialsMsiClientID\\\": \\\"a4b2ca5f-f66d-4d66-8c55-0c5b0b312e09\\\",\\n \\\"hanaDbSqlPort\\\": 30015,\\n \\\"hanaDbUsername\\\": \\\"SYSTEM\\\",\\n \\\"hanaDbName\\\": \\\"SYSTEMDB\\\",\\n \\\"hanaHostname\\\": \\\"hdb1-0\\\",\\n \\\"hanaDbPasswordKeyVaultUrl\\\": \\\"https://kv-7zeudq-test.vault.azure.net/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\",\\n \\\"keyVaultId\\\": \\\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-r3ox95/providers/Microsoft.KeyVault/vaults/kv-7zeudq-test\\\"\\n}\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "606" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "f099921a-dc51-4162-a69e-4c18fc3852c4" ], + "x-ms-request-id": [ "48434e6e-8173-4cd8-949c-52153282ef65" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064643Z:f099921a-dc51-4162-a69e-4c18fc3852c4" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:46:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "689" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc\",\n \"location\": \"\",\n \"name\": \"sapInstance-kopigc\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\",\\\"hanaDbPasswordKeyVaultUrl\\\":\\\"https://kv-7zeudq-test.vault.azure.net/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Accepted\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2020-02-07-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "9", "10" ], + "x-ms-client-request-id": [ "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "", "" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "094e4bcf-a3f5-48f2-951c-f8e306c68e4b" ], + "x-ms-request-id": [ "bc6810a7-a838-49e4-8a39-7204823e26a2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064713Z:094e4bcf-a3f5-48f2-951c-f8e306c68e4b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:47:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"48434e6e-8173-4cd8-949c-52153282ef65\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:46:43.1223718Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2017-11-03-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "9", "10", "11" ], + "x-ms-client-request-id": [ "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "", "", "" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "9e2c5df4-264b-4cd4-9d6a-e805a62eae65" ], + "x-ms-request-id": [ "715c8ddf-6e84-4335-afec-13bf4a33f9ab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064743Z:9e2c5df4-264b-4cd4-9d6a-e805a62eae65" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:47:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"48434e6e-8173-4cd8-949c-52153282ef65\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:46:43.1223718Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2017-11-03-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/48434e6e-8173-4cd8-949c-52153282ef65?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "9", "10", "11", "12" ], + "x-ms-client-request-id": [ "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "", "", "", "" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "73709bf8-3f5b-47b5-ac77-a8db2ec782a5" ], + "x-ms-request-id": [ "50a8ed56-eaff-4147-87d1-d546064a42cf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064814Z:73709bf8-3f5b-47b5-ac77-a8db2ec782a5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:48:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"48434e6e-8173-4cd8-949c-52153282ef65\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T06:46:43.1223718Z\",\n \"endTime\": \"2020-07-06T06:47:44.0060582Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc?api-version=2020-02-07-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "9", "10", "11", "12", "13" ], + "x-ms-client-request-id": [ "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab", "2fafbe1d-69a0-4134-b3a4-1252eb3349ab" ], + "CommandName": [ "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance", "Az.HanaOnAzure.internal\\New-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded", "New-AzSapMonitorProviderInstance_CreateExpanded" ], + "ParameterSetName": [ "", "", "", "", "" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064814Z:bcc944f0-c0cf-4452-b6a4-8c5e64603247" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "bcc944f0-c0cf-4452-b6a4-8c5e64603247" ], + "x-ms-request-id": [ "f3deccdf-b138-4ecf-9e43-d347b9c5c707" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:48:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "690" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc\",\n \"location\": \"\",\n \"name\": \"sapInstance-kopigc\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\",\\\"hanaDbPasswordKeyVaultUrl\\\":\\\"https://kv-7zeudq-test.vault.azure.net/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }" + } + }, + "New-AzSapMonitorProviderInstance+[NoContext]+ByKeyVault+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc?api-version=2020-02-07-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "d8f0689d-bf07-440a-9ea8-8fa81779badb" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064814Z:cea467d4-9675-46c0-84d7-d64a6e7537a4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "cea467d4-9675-46c0-84d7-d64a6e7537a4" ], + "x-ms-request-id": [ "b7e7fcaa-4730-43d3-af9f-1d832bff265c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:48:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "690" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test/providerInstances/sapInstance-kopigc\",\n \"location\": \"\",\n \"name\": \"sapInstance-kopigc\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\",\\\"hanaDbPasswordKeyVaultUrl\\\":\\\"https://kv-7zeudq-test.vault.azure.net/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Succeeded\"\n }\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 b/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 new file mode 100644 index 000000000000..37ac39fcf7d2 --- /dev/null +++ b/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSapMonitorProviderInstance.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzSapMonitorProviderInstance' { + It 'CreateExpandedByString' { + $hostName = 'hdb1-0' + $sapIns = New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns03 -SapMonitorName $env.sapMonitor02 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + $sapIns.ProvisioningState | Should -Be 'Succeeded' + } + It 'ByKeyVault' { + $hostName = 'hdb1-0' + New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns04 -SapMonitorName $env.sapMonitor02 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId $env.hanaDbPasswordSecretId -HanaDatabasePasswordKeyVaultResourceId $env.hanaDbPasswordKvResourceId -AsJob | Wait-Job + $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns04 -SapMonitorName $env.sapMonitor02 + $sapIns.ProvisioningState | Should -Be 'Succeeded' + } + +} diff --git a/src/HanaOnAzure/test/Remove-AzSapMonitor.Recording.json b/src/HanaOnAzure/test/Remove-AzSapMonitor.Recording.json new file mode 100644 index 000000000000..9c500733e629 --- /dev/null +++ b/src/HanaOnAzure/test/Remove-AzSapMonitor.Recording.json @@ -0,0 +1,1873 @@ +{ + "Remove-AzSapMonitor+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "547fdf2c-9fb6-4a0c-9e63-b82819f45563" ], + "x-ms-request-id": [ "0b8a5447-bed3-48db-9b16-6b8bd314348f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064903Z:547fdf2c-9fb6-4a0c-9e63-b82819f45563" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:49:02 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "2507df5e-cbdb-4022-a5ea-d83df18a9cc2" ], + "x-ms-request-id": [ "4bc43253-6d0c-4dfd-b28b-3c01e7e10138" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T064933Z:2507df5e-cbdb-4022-a5ea-d83df18a9cc2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:49:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "4b2eb702-7bd3-49bb-9e19-555ded547a79" ], + "x-ms-request-id": [ "d620372c-98aa-4d55-8798-06450f3a7963" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065003Z:4b2eb702-7bd3-49bb-9e19-555ded547a79" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:50:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "78302fee-28e1-49d3-86f0-23733813dddd" ], + "x-ms-request-id": [ "cf358012-5fb6-4f74-bc7a-5b0d348d939c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065034Z:78302fee-28e1-49d3-86f0-23733813dddd" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:50:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "233f541e-2e75-427a-a6bb-2b9cf550a057" ], + "x-ms-request-id": [ "2f60f56f-8ca0-4936-b93e-901ceba1335c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065104Z:233f541e-2e75-427a-a6bb-2b9cf550a057" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:51:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "4c26e3e8-5eb3-4393-9874-6ac02364fc6b" ], + "x-ms-request-id": [ "987f641a-29b7-4280-b9cf-7b2994935512" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065134Z:4c26e3e8-5eb3-4393-9874-6ac02364fc6b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:51:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "7c0eec18-5a38-4767-9592-7fdc2e05d4a5" ], + "x-ms-request-id": [ "8df18299-eb99-4d30-ac24-7adc373ed1b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065205Z:7c0eec18-5a38-4767-9592-7fdc2e05d4a5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:52:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "1a487169-9044-4b26-80e6-be7dc7b62427" ], + "x-ms-request-id": [ "1dc0754a-cf4e-4367-ba75-2abd2c5b6b18" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065235Z:1a487169-9044-4b26-80e6-be7dc7b62427" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:52:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "fd65dbc5-6dcc-4012-afa7-1a816c99b826" ], + "x-ms-request-id": [ "2711d9ad-48f5-409c-aaf7-a25d4f6c4eb9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065305Z:fd65dbc5-6dcc-4012-afa7-1a816c99b826" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:53:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "01b06d07-bb50-4868-ad24-5619aabb1daf" ], + "x-ms-request-id": [ "2fa00b3b-0a1e-40df-94d4-bb23cf9151ef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065336Z:01b06d07-bb50-4868-ad24-5619aabb1daf" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:53:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "8b12d438-d863-4ded-8cef-c5721b9c11f3" ], + "x-ms-request-id": [ "4b30f3a9-a5aa-4a24-bbc0-f8c9570f1cb7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065407Z:8b12d438-d863-4ded-8cef-c5721b9c11f3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:54:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "0c8d06ab-9b36-452c-b541-c2976d471ee0" ], + "x-ms-request-id": [ "64d2e808-735b-46e8-9a25-f2f22b05c460" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065437Z:0c8d06ab-9b36-452c-b541-c2976d471ee0" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:54:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "e7618885-3011-48eb-a05b-b6a84616115f" ], + "x-ms-request-id": [ "d995b025-a482-4452-aa8e-74a4f90d5f35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065507Z:e7618885-3011-48eb-a05b-b6a84616115f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:55:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "f3f11122-0d04-419b-9baf-ca8f5a10ed48" ], + "x-ms-request-id": [ "ad140cd6-637d-4720-a368-c9dc1c2f3c46" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065538Z:f3f11122-0d04-419b-9baf-ca8f5a10ed48" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:55:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "ff0d5601-dea3-4161-a732-e891e74ef94e" ], + "x-ms-request-id": [ "0dd56e44-1b58-4bc7-8a82-d8640f140e99" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065608Z:ff0d5601-dea3-4161-a732-e891e74ef94e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:56:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "1c7a804d-7ae5-4c6e-8b54-0a7b8989aa1c" ], + "x-ms-request-id": [ "70451d8f-4495-40d9-a64c-c576941cf3c5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065638Z:1c7a804d-7ae5-4c6e-8b54-0a7b8989aa1c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:56:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"endTime\": \"2020-07-06T06:56:34.3622846Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2020-02-07-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/0b8a5447-bed3-48db-9b16-6b8bd314348f?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17" ], + "x-ms-client-request-id": [ "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3", "b1b64284-9b1f-4043-9e50-ad83328725e3" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete", "Remove-AzSapMonitor_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "839a0a5c-204f-4d80-ae0d-1a91f779c535" ], + "x-ms-request-id": [ "c11c649c-03c9-40f9-ab17-670bec10bbbc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065639Z:839a0a5c-204f-4d80-ae0d-1a91f779c535" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:56:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"0b8a5447-bed3-48db-9b16-6b8bd314348f\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T06:49:03.1389173Z\",\n \"endTime\": \"2020-07-06T06:56:34.3622846Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/sapMonitors?api-version=2020-02-07-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/sapMonitors?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "f44e3f3b-957a-434f-8b65-f62ec4ec15f9" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065639Z:c8ddbe29-cb75-4b51-b29e-b3689febbae6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "c8ddbe29-cb75-4b51-b29e-b3689febbae6" ], + "x-ms-request-id": [ "142a7d0f-6063-46b7-a5cf-c29603cdd616" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:56:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "5364" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-j1sm2o-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-j1sm2o-test\",\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-48537d0733dfc9\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-jeiysz/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-wohtnd\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-rnwz0m-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-rnwz0m-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-9cd4a794632527\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-o3udez/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-1jx26e\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-vayh7q-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-vayh7q-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-9eec93615bc403\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-dj6nwo/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-tbmy5e\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/yemingmonitor5\",\n \"location\": \"westus2\",\n \"name\": \"yemingmonitor5\",\n \"tags\": {\n \"a\": \"b\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Deleting\",\n \"managedResourceGroupName\": \"sapmon-rg-7dc200167f3865\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-db-a\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/yemingmonitortest\",\n \"location\": \"westus2\",\n \"name\": \"yemingmonitortest\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-31fb7355419438\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }\n ]\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": "{\n \"location\": \"westus2\",\n \"properties\": {\n \"enableCustomerAnalytics\": true,\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"logAnalyticsWorkspaceId\": \"\",\n \"logAnalyticsWorkspaceSharedKey\": \"Qf/scKlrNjkyMot3WIlWvw1/p3c1+1uRtu5fRI0ihpws92OqawKurEYuODmGlkfb81gfW03zTITzOF1QARpF6w==\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "634" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "1158b127-6d8e-452a-82f5-bdf0116bbbbe" ], + "x-ms-request-id": [ "a6d30572-54fe-43a9-ad78-8f4622bd4575" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065640Z:1158b127-6d8e-452a-82f5-bdf0116bbbbe" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:56:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "957" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-wrlm5y-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Accepted\",\n \"managedResourceGroupName\": \"\",\n \"enableCustomerAnalytics\": true,\n \"sapMonitorCollectorVersion\": \"\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"logAnalyticsWorkspaceSharedKey\": \"Qf/scKlrNjkyMot3WIlWvw1/p3c1+1uRtu5fRI0ihpws92OqawKurEYuODmGlkfb81gfW03zTITzOF1QARpF6w==\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "59515134-21e6-40ca-8e8a-e701f1688c9e" ], + "x-ms-request-id": [ "e8b13ec4-6e70-4f89-9792-a80f83daf631" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065710Z:59515134-21e6-40ca-8e8a-e701f1688c9e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:57:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "21a4c749-739e-4753-bfbd-9ee33371f8d5" ], + "x-ms-request-id": [ "c884343a-f7ee-4484-bd48-ae087435ee18" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065740Z:21a4c749-739e-4753-bfbd-9ee33371f8d5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:57:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "8c19da17-8eed-4045-a4dd-e5c17e559839" ], + "x-ms-request-id": [ "4f2e3ad7-40e2-4d4b-82c2-455f48e09fee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065811Z:8c19da17-8eed-4045-a4dd-e5c17e559839" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:58:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "dde9a9ea-2367-4ea0-92db-3e04195a8365" ], + "x-ms-request-id": [ "f267425f-aab1-48cb-ae3f-514c9c0d3a35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065842Z:dde9a9ea-2367-4ea0-92db-3e04195a8365" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:58:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23", "24" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "6e8d6500-181b-41a9-a2e5-1ccb195ce5f6" ], + "x-ms-request-id": [ "7c558465-c2fd-434b-99f0-a72486521541" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065912Z:6e8d6500-181b-41a9-a2e5-1ccb195ce5f6" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:59:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23", "24", "25" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "36f2f490-0998-4d9b-8167-cec3c504ed1f" ], + "x-ms-request-id": [ "d7c94866-8138-4e46-9623-c200474e8893" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T065942Z:36f2f490-0998-4d9b-8167-cec3c504ed1f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 06:59:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23", "24", "25", "26" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "b26d87aa-5516-4bf4-8ef1-d50c46ab0eb5" ], + "x-ms-request-id": [ "25893f17-afd4-42dc-9416-e1ad9b2fe814" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070013Z:b26d87aa-5516-4bf4-8ef1-d50c46ab0eb5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:00:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23", "24", "25", "26", "27" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "28296e77-e6db-4ec0-81f5-86e4c879fcda" ], + "x-ms-request-id": [ "3d8fc93c-11b3-4d16-852b-c37feac93fa4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070043Z:28296e77-e6db-4ec0-81f5-86e4c879fcda" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:00:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/a6d30572-54fe-43a9-ad78-8f4622bd4575?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23", "24", "25", "26", "27", "28" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "fd18691e-36f5-4e9a-9b49-82179ccc9420" ], + "x-ms-request-id": [ "5bf4d8cb-2b72-4896-9507-ddd193ac6ccc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070113Z:fd18691e-36f5-4e9a-9b49-82179ccc9420" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:01:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"a6d30572-54fe-43a9-ad78-8f4622bd4575\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T06:56:39.8916429Z\",\n \"endTime\": \"2020-07-06T07:00:46.6877313Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29" ], + "x-ms-client-request-id": [ "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9", "da45c2ec-7a55-491c-9dae-391becfc65e9" ], + "CommandName": [ "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor", "New-AzSapMonitor" ], + "FullCommandName": [ "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded", "New-AzSapMonitor_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070114Z:e9f7bef2-76c4-4796-bb58-539472196810" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "e9f7bef2-76c4-4796-bb58-539472196810" ], + "x-ms-request-id": [ "b65d6ade-5d88-476f-b196-ddad7b8e8a7c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:01:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "863" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-wrlm5y-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-755d7b77729881\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview+12": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-wrlm5y-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "7c1e3306-cfa1-47eb-8b8e-fd2cacb3638f" ], + "x-ms-request-id": [ "88604872-b1ca-4ed5-9c40-75b1fdb48a51" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070114Z:7c1e3306-cfa1-47eb-8b8e-fd2cacb3638f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:01:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2020-02-07-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "7bab58aa-8ab5-4b55-b931-3d4b4774aada" ], + "x-ms-request-id": [ "d7cbdfce-7bcf-4015-94a4-2b271f00dd1a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070145Z:7bab58aa-8ab5-4b55-b931-3d4b4774aada" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:01:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "661070a6-f6a4-4091-91ef-dad15e62fb43" ], + "x-ms-request-id": [ "aef91bcf-ea7f-442f-8a77-c183c0d88e0e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070215Z:661070a6-f6a4-4091-91ef-dad15e62fb43" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:02:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "a5df54d7-b91a-4c62-b115-2f8b1ab730d4" ], + "x-ms-request-id": [ "c7a987bd-9ab8-47b8-831d-9f4250e4264a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070245Z:a5df54d7-b91a-4c62-b115-2f8b1ab730d4" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:02:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "e0bbcdd5-def1-4d8c-8ab1-6688711d96b9" ], + "x-ms-request-id": [ "554e0a50-589d-4fd0-a44d-266121d97d3f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070316Z:e0bbcdd5-def1-4d8c-8ab1-6688711d96b9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:03:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "c40b6463-a656-4fbb-b6af-b320411bc834" ], + "x-ms-request-id": [ "0cd5fc6d-f342-4f54-9858-05cc4f20a260" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070346Z:c40b6463-a656-4fbb-b6af-b320411bc834" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:03:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "cfac80d1-befb-42bd-8463-32d1a41161e5" ], + "x-ms-request-id": [ "7f8ed3c4-f841-41f5-958b-f7a019e483f4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070417Z:cfac80d1-befb-42bd-8463-32d1a41161e5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:04:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "10d8e334-a843-47c1-9a2d-337d3444e111" ], + "x-ms-request-id": [ "dca2f72a-1984-4db7-b2ac-3b92b68ba48c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070447Z:10d8e334-a843-47c1-9a2d-337d3444e111" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:04:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "47e29108-a7bf-4cee-9eca-21d8693706d5" ], + "x-ms-request-id": [ "9cfe3d61-a53e-41a5-a44e-f818bc2f5dbf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070518Z:47e29108-a7bf-4cee-9eca-21d8693706d5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:05:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "40b2e2ef-cedb-473c-a953-8a939fe62ae7" ], + "x-ms-request-id": [ "bdba27d5-50e2-421c-afc8-8d566cf471b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070548Z:40b2e2ef-cedb-473c-a953-8a939fe62ae7" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:05:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "f61bc39f-e202-461a-9cf9-3a88530a1b35" ], + "x-ms-request-id": [ "507747bc-fd43-4361-b27c-bfa88e6c4044" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070618Z:f61bc39f-e202-461a-9cf9-3a88530a1b35" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:06:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "1232a973-3029-4f40-be28-dc557b585195" ], + "x-ms-request-id": [ "2c0f3967-f94c-420b-927d-06331e1ffe45" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070649Z:1232a973-3029-4f40-be28-dc557b585195" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:06:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "a45ba037-4d75-4aed-9dc2-a3a058a73d33" ], + "x-ms-request-id": [ "98c091cc-d41b-462a-8fd1-f0395b59227a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070719Z:a45ba037-4d75-4aed-9dc2-a3a058a73d33" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:07:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "a686ddf2-9604-4fe8-8942-466f4ef1eaeb" ], + "x-ms-request-id": [ "d4897b15-6e24-4b93-bca3-abe15e4bfbbb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070749Z:a686ddf2-9604-4fe8-8942-466f4ef1eaeb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:07:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "701d543a-7d89-4b9e-8430-f34be8d7f90e" ], + "x-ms-request-id": [ "a913dee9-035c-420a-b502-a00a91f431fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070820Z:701d543a-7d89-4b9e-8430-f34be8d7f90e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:08:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "d9bb0b13-4633-4f23-9e60-7e2f28e5122f" ], + "x-ms-request-id": [ "25eca236-242a-4df3-8d0c-f6be73e826fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070850Z:d9bb0b13-4633-4f23-9e60-7e2f28e5122f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:08:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"endTime\": \"2020-07-06T07:08:45.9232238Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2020-02-07-preview+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/88604872-b1ca-4ed5-9c40-75b1fdb48a51?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46" ], + "x-ms-client-request-id": [ "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181", "dbb46d4d-e3e8-4f27-95ad-077235a33181" ], + "CommandName": [ "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor", "Remove-AzSapMonitor" ], + "FullCommandName": [ "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity", "Remove-AzSapMonitor_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "79786eb1-88f2-40fc-bb2e-e94659e2b084" ], + "x-ms-request-id": [ "1ddad028-38b2-4137-b57d-d1b2f4aba149" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070851Z:79786eb1-88f2-40fc-bb2e-e94659e2b084" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:08:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"88604872-b1ca-4ed5-9c40-75b1fdb48a51\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T07:01:14.6903054Z\",\n \"endTime\": \"2020-07-06T07:08:45.9232238Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitor+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/sapMonitors?api-version=2020-02-07-preview+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/sapMonitors?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "ffdabf2f-4ae0-4919-b5ed-cf55d0b3a42a" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070851Z:b8b2672e-5c09-4302-bdf7-b26d2bd8d306" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "b8b2672e-5c09-4302-bdf7-b26d2bd8d306" ], + "x-ms-request-id": [ "b6c8d7d6-14c8-42fc-8a8c-738db0d2f45f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:08:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "5364" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-j1sm2o-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-j1sm2o-test\",\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-48537d0733dfc9\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-jeiysz/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-wohtnd\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-rnwz0m-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-rnwz0m-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-9cd4a794632527\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-o3udez/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-1jx26e\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-vayh7q-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-vayh7q-test\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-9eec93615bc403\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-dj6nwo/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-tbmy5e\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/yemingmonitor5\",\n \"location\": \"westus2\",\n \"name\": \"yemingmonitor5\",\n \"tags\": {\n \"a\": \"b\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Deleting\",\n \"managedResourceGroupName\": \"sapmon-rg-7dc200167f3865\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-db-a\"\n }\n },\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/yemingmonitortest\",\n \"location\": \"westus2\",\n \"name\": \"yemingmonitortest\",\n \"tags\": {},\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-31fb7355419438\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }\n ]\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/Remove-AzSapMonitor.Tests.ps1 b/src/HanaOnAzure/test/Remove-AzSapMonitor.Tests.ps1 new file mode 100644 index 000000000000..e7cde48c732d --- /dev/null +++ b/src/HanaOnAzure/test/Remove-AzSapMonitor.Tests.ps1 @@ -0,0 +1,32 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzSapMonitor.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzSapMonitor' { + It 'Delete' { + Remove-AzSapMonitor -Name $env.sapMonitor02 -ResourceGroupName $env.resourceGroup + $sapMonitorList = Get-AzSapMonitor + $sapMonitorList.Name | Should -Not -Contain $env.sapMonitor02 + } + + It 'DeleteViaIdentity' { + $sapMonitor = New-AzSapMonitor -Name $env.sapMonitor02 -ResourceGroupName $env.resourceGroup -Location $env.location -EnableCustomerAnalytic ` + -MonitorSubnet $env.MonitorSubnet ` + -LogAnalyticsWorkspaceSharedKey $env.workspace02Key ` + -LogAnalyticsWorkspaceId $env.workspace02Id ` + -LogAnalyticsWorkspaceResourceId $env.workspaceResourceId02 + + Remove-AzSapMonitor -InputObject $sapMonitor + $sapMonitorList = Get-AzSapMonitor + $sapMonitorList.Name | Should -Not -Contain $env.sapMonitor02 + } +} diff --git a/src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Recording.json b/src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Recording.json new file mode 100644 index 000000000000..1c20560559aa --- /dev/null +++ b/src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Recording.json @@ -0,0 +1,517 @@ +{ + "Remove-AzSapMonitorProviderInstance+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-p6zm1k?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "69a741db-0b94-4dc5-b3d7-da38434e42cc" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "d00b54ff-9477-492d-95a1-d5ec30ef30bf" ], + "x-ms-request-id": [ "56a72567-8de2-48e6-83bc-721767b9a27e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T070951Z:d00b54ff-9477-492d-95a1-d5ec30ef30bf" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:09:51 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "fdc9f730-6a5e-44a8-a723-85e834426359" ], + "x-ms-request-id": [ "c90519bd-b9eb-4741-9244-de7b088f4ad8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071022Z:fdc9f730-6a5e-44a8-a723-85e834426359" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:10:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"56a72567-8de2-48e6-83bc-721767b9a27e\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:09:51.6310665Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2017-11-03-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "9252a89e-6dd4-4c38-9af2-81838669faa4" ], + "x-ms-request-id": [ "386991b5-08d1-439b-9ece-7dc91ea7bf2c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071052Z:9252a89e-6dd4-4c38-9af2-81838669faa4" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:10:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"56a72567-8de2-48e6-83bc-721767b9a27e\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:09:51.6310665Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2017-11-03-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "a9b2bd4c-b930-4091-886f-c151c16fa5cc" ], + "x-ms-request-id": [ "01f190d7-c70b-4746-8bba-ef3f5606ebc5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071122Z:a9b2bd4c-b930-4091-886f-c151c16fa5cc" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:11:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"56a72567-8de2-48e6-83bc-721767b9a27e\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T07:09:51.6310665Z\",\n \"endTime\": \"2020-07-06T07:10:52.4495119Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2020-02-07-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/56a72567-8de2-48e6-83bc-721767b9a27e?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5" ], + "x-ms-client-request-id": [ "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc", "69a741db-0b94-4dc5-b3d7-da38434e42cc" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete", "Remove-AzSapMonitorProviderInstance_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "a378b335-4cab-4e01-9391-c239816fd3bd" ], + "x-ms-request-id": [ "9c6bf889-ffd6-4349-ae6b-46f1485f6bdf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071123Z:a378b335-4cab-4e01-9391-c239816fd3bd" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:11:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"56a72567-8de2-48e6-83bc-721767b9a27e\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T07:09:51.6310665Z\",\n \"endTime\": \"2020-07-06T07:10:52.4495119Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances?api-version=2020-02-07-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "848a312a-ea75-419c-9e19-95b7c21396fa" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071123Z:a07379e8-5e1a-4f64-8d9a-8888cfd28c4d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "a07379e8-5e1a-4f64-8d9a-8888cfd28c4d" ], + "x-ms-request-id": [ "1cc4754b-44b8-4310-b200-282f4b0db74d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:11:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "740" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9\",\n \"location\": \"\",\n \"name\": \"sapInstance-bukeg9\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\",\\\"hanaDbPasswordKeyVaultUrl\\\":\\\"https://kv-7zeudq-test.vault.azure.net:443/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Failed\"\n }\n }\n ]\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "b50a1660-eb17-41e1-857d-9bc80fa4d324" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071123Z:44466125-e511-4cfb-b6cb-0ea9ed937428" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "44466125-e511-4cfb-b6cb-0ea9ed937428" ], + "x-ms-request-id": [ "e257917b-7829-4bbc-9cce-6a5610b9aa08" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:11:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "691" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9\",\n \"location\": \"\",\n \"name\": \"sapInstance-bukeg9\",\n \"tags\": null,\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors/providerInstances\",\n \"properties\": {\n \"type\": \"SapHana\",\n \"properties\": \"{\\\"hanaHostname\\\":\\\"hdb1-0\\\",\\\"hanaDbName\\\":\\\"SYSTEMDB\\\",\\\"hanaDbSqlPort\\\":30015,\\\"hanaDbUsername\\\":\\\"SYSTEM\\\",\\\"hanaDbPasswordKeyVaultUrl\\\":\\\"https://kv-7zeudq-test.vault.azure.net:443/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2\\\"}\",\n \"metadata\": \"null\",\n \"provisioningState\": \"Failed\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances/sapInstance-bukeg9?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "d124e684-9e03-4030-ae80-b88859629b28" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2020-02-07-preview" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "azure-asyncoperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2020-02-07-preview" ], + "x-ms-correlation-request-id": [ "84d69392-70fc-47e9-8813-6d2cfd15fb33" ], + "x-ms-request-id": [ "3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071124Z:84d69392-70fc-47e9-8813-6d2cfd15fb33" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:11:23 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2020-02-07-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9" ], + "x-ms-client-request-id": [ "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "1ce62f25-02ac-4b16-98d8-7deca306e665" ], + "x-ms-request-id": [ "c27b0956-9d25-4132-9790-e76a00a23859" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071154Z:1ce62f25-02ac-4b16-98d8-7deca306e665" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:11:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:11:24.0847108Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2017-11-03-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9", "10" ], + "x-ms-client-request-id": [ "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2017-11-03-preview" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "dc2c5996-1ff8-4122-8b23-69a1afc9431f" ], + "x-ms-request-id": [ "fe3448d1-f690-429a-b29a-5d474d4197a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071224Z:dc2c5996-1ff8-4122-8b23-69a1afc9431f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:12:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "176" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef\",\n \"status\": \"InProgress\",\n \"startTime\": \"2020-07-06T07:11:24.0847108Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2017-11-03-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2017-11-03-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9", "10", "11" ], + "x-ms-client-request-id": [ "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "9599e724-f5ab-452b-8914-a95be680b665" ], + "x-ms-request-id": [ "f73d0651-1015-4690-844d-a56f1f2194f7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071255Z:9599e724-f5ab-452b-8914-a95be680b665" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:12:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T07:11:24.0847108Z\",\n \"endTime\": \"2020-07-06T07:12:24.9777386Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2020-02-07-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.HanaOnAzure/locations/westus2/operationsStatus/3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9", "10", "11", "12" ], + "x-ms-client-request-id": [ "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28", "d124e684-9e03-4030-ae80-b88859629b28" ], + "CommandName": [ "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance", "Remove-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity", "Remove-AzSapMonitorProviderInstance_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "cb5a7f53-d3da-4d6b-a84e-6fb1d8001ae2" ], + "x-ms-request-id": [ "45eea5e3-78ea-4b77-a790-0bbff0bf1265" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071255Z:cb5a7f53-d3da-4d6b-a84e-6fb1d8001ae2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:12:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "220" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"name\": \"3e7ea1f6-e7dc-4abb-9b0e-2170fec68eef\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2020-07-06T07:11:24.0847108Z\",\n \"endTime\": \"2020-07-06T07:12:24.9777386Z\",\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n }" + } + }, + "Remove-AzSapMonitorProviderInstance+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances?api-version=2020-02-07-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test/providerInstances?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "643ee402-ffac-4c53-9f2c-7c9a36398de5" ], + "CommandName": [ "Get-AzSapMonitorProviderInstance" ], + "FullCommandName": [ "Get-AzSapMonitorProviderInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "4a7a72ce-37d5-4a8d-b650-3664bbd08253" ], + "x-ms-request-id": [ "129cac9c-0349-4a8d-8158-fd32ab273eaf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071255Z:4a7a72ce-37d5-4a8d-b650-3664bbd08253" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:12:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "18" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"value\": []\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Tests.ps1 b/src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Tests.ps1 new file mode 100644 index 000000000000..485f1aa6dfdc --- /dev/null +++ b/src/HanaOnAzure/test/Remove-AzSapMonitorProviderInstance.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzSapMonitorProviderInstance.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzSapMonitorProviderInstance' { + It 'Delete' { + Remove-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 -Name $env.sapIns01 + $sapInsList = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 + $sapInsList.Name | Should -Not -Contain $env.sapIns01 + } + + It 'DeleteViaIdentity' { + $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 -Name $env.sapIns02 + Remove-AzSapMonitorProviderInstance -InputObject $sapIns + $sapInsList = Get-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -SapMonitorName $env.sapMonitor01 + $sapInsList.Name | Should -Not -Contain $env.sapIns02 + } +} diff --git a/src/HanaOnAzure/test/Update-AzSapMonitor.Recording.json b/src/HanaOnAzure/test/Update-AzSapMonitor.Recording.json new file mode 100644 index 000000000000..794797bd5717 --- /dev/null +++ b/src/HanaOnAzure/test/Update-AzSapMonitor.Recording.json @@ -0,0 +1,112 @@ +{ + "Update-AzSapMonitor+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview", + "Content": "{\n \"tags\": {\n \"key3\": \"3\",\n \"key2\": \"2\",\n \"key\": \"1\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "68" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071426Z:c9389691-2871-4bc0-a12f-6b6ae07e01d6" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "c9389691-2871-4bc0-a12f-6b6ae07e01d6" ], + "x-ms-request-id": [ "fb6f455c-3923-46f0-bfe5-68132271cafa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:14:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "912" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\",\n \"key3\": \"3\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "Update-AzSapMonitor+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "a5619595-2c37-44fa-b9d8-9bb98dddb2e3" ], + "CommandName": [ "Get-AzSapMonitor" ], + "FullCommandName": [ "Get-AzSapMonitor_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071426Z:272f6055-4530-4d48-ac46-04be82923b33" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "272f6055-4530-4d48-ac46-04be82923b33" ], + "x-ms-request-id": [ "8b551889-fed2-4a28-9852-b7bec9aff101" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:14:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "912" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\",\n \"key3\": \"3\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + }, + "Update-AzSapMonitor+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview+2": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test?api-version=2020-02-07-preview", + "Content": "{\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "51" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200706T071437Z:7befeb37-4746-4407-a918-d486ab780cac" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "7befeb37-4746-4407-a918-d486ab780cac" ], + "x-ms-request-id": [ "d7f64c29-b60b-4940-951b-54511cceb9ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "nginx/1.17.8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 06 Jul 2020 07:14:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "896" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/sapMonitor-4fi3jk-test\",\n \"location\": \"westus2\",\n \"name\": \"sapMonitor-4fi3jk-test\",\n \"tags\": {\n \"key\": \"1\",\n \"key2\": \"2\"\n },\n \"type\": \"Microsoft.HanaOnAzure/sapMonitors\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"managedResourceGroupName\": \"sapmon-rg-6007a622f08d10\",\n \"enableCustomerAnalytics\": false,\n \"sapMonitorCollectorVersion\": \"v2.0-beta\",\n \"logAnalyticsWorkspaceArmId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9\",\n \"monitorSubnet\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin\"\n }\n }" + } + } +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/Update-AzSapMonitor.Tests.ps1 b/src/HanaOnAzure/test/Update-AzSapMonitor.Tests.ps1 new file mode 100644 index 000000000000..740a1b650588 --- /dev/null +++ b/src/HanaOnAzure/test/Update-AzSapMonitor.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzSapMonitor.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzSapMonitor' { + It 'UpdateExpanded' { + $sapMonitor = Update-AzSapMonitor -ResourceGroupName $env.resourceGroup -Name $env.sapMonitor01 -Tag @{'key'=1;'key2'=2; 'key3'=3} + $sapMonitor.Tag.Count | Should -Be 3 + } + + It 'UpdateViaIdentity' { + $sapMonitor = Get-AzSapMonitor -ResourceGroupName $env.resourceGroup -Name $env.sapMonitor01 + $sapMonitor = Update-AzSapMonitor -InputObject $sapMonitor -Tag @{'key'=1;'key2'=2} + $sapMonitor.Tag.Count | Should -Be 2 + } +} diff --git a/src/HanaOnAzure/test/env.json b/src/HanaOnAzure/test/env.json new file mode 100644 index 000000000000..62ad394290bc --- /dev/null +++ b/src/HanaOnAzure/test/env.json @@ -0,0 +1,25 @@ +{ + "hanaDbPasswordKvResourceId": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-r3ox95/providers/Microsoft.KeyVault/vaults/kv-7zeudq-test", + "workspace02Key": "Qf/scKlrNjkyMot3WIlWvw1/p3c1+1uRtu5fRI0ihpws92OqawKurEYuODmGlkfb81gfW03zTITzOF1QARpF6w==", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "workspaceResourceId02": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-4qo1xt", + "sapIns04": "sapInstance-kopigc", + "workspacesName01": "monitoringworkspace-dic1o9", + "workspace01Key": "Qf/scKlrNjkyMot3WIlWvw1/p3c1+1uRtu5fRI0ihpws92OqawKurEYuODmGlkfb81gfW03zTITzOF1QARpF6w==", + "sapIns03": "sapInstance-ywnfxq", + "MonitorSubnet": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin", + "workspacesName02": "monitoringworkspace-4qo1xt", + "sapMonitor02": "sapMonitor-wrlm5y-test", + "location": "westus2", + "sapIns01": "sapInstance-p6zm1k", + "costResourceGroup": "costmanagement-rg-r3ox95", + "resourceGroup": "nancyc-hn1", + "workspaceResourceId01": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/costmanagement-rg-r3ox95/providers/microsoft.operationalinsights/workspaces/monitoringworkspace-dic1o9", + "workspace01Id": "09853e58-0c60-499f-bc20-beb61d92a088", + "sapMonitor01": "sapMonitor-4fi3jk-test", + "sapMonitor03": "sapMonitor-kb09s8-test", + "workspace02Id": null, + "hanaDbPasswordSecretId": "https://kv-7zeudq-test.vault.azure.net/secrets/hanaPassword/bcf58c63a98d4be4bb6e9dc1c66bcbe2", + "sapIns02": "sapInstance-bukeg9", + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" +} diff --git a/src/HanaOnAzure/test/loadEnv.ps1 b/src/HanaOnAzure/test/loadEnv.ps1 new file mode 100644 index 000000000000..c4ebf2e8310c --- /dev/null +++ b/src/HanaOnAzure/test/loadEnv.ps1 @@ -0,0 +1,28 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json + $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} +} \ No newline at end of file diff --git a/src/HanaOnAzure/test/new-sapmonitor.md b/src/HanaOnAzure/test/new-sapmonitor.md new file mode 100644 index 000000000000..076a47785acf --- /dev/null +++ b/src/HanaOnAzure/test/new-sapmonitor.md @@ -0,0 +1,50 @@ +## Create a VM +It's very difficult to deploy a HANA VM. Please use this one for testing: + +Subscription: 9e223dbe-3399-4e19-88eb-0975f02ac87f (Azure PowerShell Test - Manual) +ResourceGroup: nancyc-hn1 +Location: westus2 + +## Before testing, create a log analytic workspace (Operational Insights workspace) + +```powershell +New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name yeminglaw -Location westus2 +``` + +## Create a sap monitor and a provider instance + +```powershell +New-AzSapMonitor -Name yemingmonitor -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey O5IXp1MjlFqACcRNRASv3SYwQTlw+wJyrZCaX230c3/8WyWpNHct84z0L/8F1NEfRsqqjIZh+yV9aOboZX6yAA== -LogAnalyticsWorkspaceId fdeceea9-46c7-424c-8d1e-808471a2ccf4 -LogAnalyticsWorkspaceResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw" + +New-AzSapMonitor -Name ps-spamonitor-t01 -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey O5IXp1MjlFqACcRNRASv3SYwQTlw+wJyrZCaX230c3/8WyWpNHct84z0L/8F1NEfRsqqjIZh+yV9aOboZX6yAA== -LogAnalyticsWorkspaceId fdeceea9-46c7-424c-8d1e-808471a2ccf4 -LogAnalyticsWorkspaceResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw" + +# new provider, plain password +New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name yeminginstance2 -SapMonitorName yemingmonitor -Type SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + +New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t04 -SapMonitorName yemingmonitortest -Type SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + +# new provider, password stored in key vault +New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name keyvalue-test -SapMonitorName yemingmonitortest -Type SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId https://yeminghana.vault.azure.net/secrets/psw/cb7e620d72c34d9e940ebdcf178e585b -HanaDatabasePasswordKeyVaultResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/yeminghana/providers/Microsoft.KeyVault/vaults/yeminghana +``` + +1. LogAnalyticsWorkspaceSharedKey can be get by `Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name yeminglaw` (use PrimarySharedKey) +1. The subnet must be the subnet of the hana instance (you can navigate to the vm and see its subnet in networking properties) + +## Notes + +1. When writing docs, use `SAP` instead of `sap` or `Sap`; use `HANA` instead of `Hana` or `hana`. + + + + + + + + + + + + + + + diff --git a/src/HanaOnAzure/test/readme.md b/src/HanaOnAzure/test/readme.md index 7e2633ae9b74..7c752b4c8c43 100644 --- a/src/HanaOnAzure/test/readme.md +++ b/src/HanaOnAzure/test/readme.md @@ -7,11 +7,11 @@ This directory contains the [Pester](https://www.powershellgallery.com/packages/ - Committed: yes - Packaged: no -## Details (*WIP*) -We allow three testing modes: `live`, `record`, and `playback`. +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. ## Purpose Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. -## Usage (*WIP*) -This feature is currently a **work-in-progress**. It is able to create test recordings of the HTTP pipeline. However, folder structure, file names, and processes are being implemented. \ No newline at end of file +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file diff --git a/src/HanaOnAzure/test/utils.ps1 b/src/HanaOnAzure/test/utils.ps1 new file mode 100644 index 000000000000..f3e383b27333 --- /dev/null +++ b/src/HanaOnAzure/test/utils.ps1 @@ -0,0 +1,88 @@ +function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + Write-Host -ForegroundColor Yellow "Required Az.OperationalInsights and Az.KeyVault, please check if Az.OperationalInsights and Az.KeyVault installed" + + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + $env.location = 'westus2' + # For any resources you created for test, you should add it to $env here. + $env.sapMonitor01 = 'sapMonitor-' + (RandomString -allChars $false -len 6) + '-test' + $env.sapMonitor02 = 'sapMonitor-' + (RandomString -allChars $false -len 6) + '-test' + $env.sapMonitor03 = 'sapMonitor-' + (RandomString -allChars $false -len 6) + '-test' + $env.sapIns01 = 'sapInstance-' + (RandomString -allChars $false -len 6) + $env.sapIns02 = 'sapInstance-' + (RandomString -allChars $false -len 6) + $env.sapIns03 = 'sapInstance-' + (RandomString -allChars $false -len 6) + $env.sapIns04 = 'sapInstance-' + (RandomString -allChars $false -len 6) + + Write-Host -ForegroundColor Green "Create test group..." + $costResourceGroup = 'costmanagement-rg-' + (RandomString -allChars $false -len 6) + New-AzResourceGroup -Name $costResourceGroup -Location $env.location + $null = $env.Add('costResourceGroup', $costResourceGroup) + Write-Host -ForegroundColor Green 'The test group create completed.' + + Write-Host -ForegroundColor Green "Using nancyc-hn1 resource group.The resource group included HANA VM, Cann't remove." + $env.resourceGroup = 'nancyc-hn1' # The resource group deployed HANA VM, Because very difficult to deploy a HANA VM. + + Write-Host -ForegroundColor Green 'Deploying operational insights workspace' + $env.workspacesName01 = 'monitoringworkspace-' + (RandomString -allChars $false -len 6) + $env.workspacesName02 = 'monitoringworkspace-' + (RandomString -allChars $false -len 6) + # Cannot deploy template file using the New-AzDeployment, Because the all resource type cannot be exported and are not included in the template. + $workspace01 = New-AzOperationalInsightsWorkspace -ResourceGroupName $env.costResourceGroup -Name $env.workspacesName01 -Location $env.location -Sku "Standard" + $workspace02 = New-AzOperationalInsightsWorkspace -ResourceGroupName $env.costResourceGroup -Name $env.workspacesName02 -Location $env.location -Sku "Standard" + $workspace01Keys = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName $env.costResourceGroup -Name $env.workspacesName01 + $workspace02Keys = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName $env.costResourceGroup -Name $env.workspacesName01 + $null = $env.Add('workspaceResourceId01', $workspace01.ResourceId) + $null = $env.Add('workspaceResourceId02', $workspace02.ResourceId) + $null = $env.Add('workspace01Key', $workspace01Keys.PrimarySharedKey) + $null = $env.Add('workspace02Key', $workspace02Keys.PrimarySharedKey) + $null = $env.Add('workspace01Id', $workspace01.CustomerId) + $null = $env.Add('workspace02Id', $workspace02Id.CustomerId) + Write-Host -ForegroundColor Green 'The operational insights workspace deployed successfully' + + Write-Host -ForegroundColor Green 'Deploying key valut...' + $kvName = 'kv-' + (RandomString -allChars $false -len 6) + '-test' + $keyValut = New-AzKeyVault -VaultName $kvName -ResourceGroupName $env.costResourceGroup -Location $env.location + $hanaDbPasswordSecret = Set-AzKeyVaultSecret -VaultName $kvName -Name 'hanaPassword' -SecretValue (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + $env.hanaDbPasswordKvResourceId = $keyValut.ResourceId + $env.hanaDbPasswordSecretId = $hanaDbPasswordSecret.Id + Write-Host -ForegroundColor Green 'The key valut deployed successfully' + + # Virtual network + # HANA Vm subnet + $env.MonitorSubnet = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" + + # Create SAP monitor + Write-Host -ForegroundColor Green 'create SAP monitor for test...' + New-AzSapMonitor -Name $env.sapMonitor01 -ResourceGroupName $env.resourceGroup -Location $env.location -EnableCustomerAnalytic ` + -MonitorSubnet $env.MonitorSubnet ` + -LogAnalyticsWorkspaceSharedKey $env.workspace01Key ` + -LogAnalyticsWorkspaceId $env.workspace01Id ` + -LogAnalyticsWorkspaceResourceId $env.workspaceResourceId01 + Write-Host -ForegroundColor Green 'The SAP monitor created successfully' + + Write-Host -ForegroundColor Green 'create SAP instance for test...' + $hostName = 'hdb1-0' + New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns01 -SapMonitorName $env.sapMonitor01 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) + New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns02 -SapMonitorName $env.sapMonitor01 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId $env.hanaDbPasswordSecretId -HanaDatabasePasswordKeyVaultResourceId $env.hanaDbPasswordKvResourceId + Write-Host -ForegroundColor Green 'The SAP instance created successfully' + + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing + Remove-AzResourceGroup -Name $env.costResourceGroup +} + diff --git a/src/helpers/KeyVault/readme.noprofile.md b/src/helpers/KeyVault/readme.noprofile.md new file mode 100644 index 000000000000..1bdf20a212f2 --- /dev/null +++ b/src/helpers/KeyVault/readme.noprofile.md @@ -0,0 +1,19 @@ +### AutoRest Configuration +> see https://aka.ms/autorest + +``` yaml +require: + - $(this-folder)/../../readme.azure.noprofile.md +input-file: + - $(repo)/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2016-10-01/keyvault.json + +# subject-prefix: '' + +directive: + # hide all cmdlets + - where: + subject: ^VaultDeleted$|^Vault$|^VaultNameAvailability$|^VaultAccessPolicy$ + hide: true + set: + subject-prefix: '' +``` From eaa572a18ea13e18aeba31c7de44a009337c4c07 Mon Sep 17 00:00:00 2001 From: Yeming Liu Date: Mon, 6 Jul 2020 18:06:11 +0800 Subject: [PATCH 2/4] psd1 --- src/HanaOnAzure/.gitignore | 1 - src/HanaOnAzure/Az.HanaOnAzure.psd1 | 24 ++++++++++++++++++++++++ src/HanaOnAzure/docs/Az.HanaOnAzure.md | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/HanaOnAzure/Az.HanaOnAzure.psd1 diff --git a/src/HanaOnAzure/.gitignore b/src/HanaOnAzure/.gitignore index 7ee9baa63225..d5d6b05d1460 100644 --- a/src/HanaOnAzure/.gitignore +++ b/src/HanaOnAzure/.gitignore @@ -12,5 +12,4 @@ test/*-TestResults.xml /*.snk /*.csproj /*.nuspec -/*.psd1 tools \ No newline at end of file diff --git a/src/HanaOnAzure/Az.HanaOnAzure.psd1 b/src/HanaOnAzure/Az.HanaOnAzure.psd1 new file mode 100644 index 000000000000..0ad560f403ed --- /dev/null +++ b/src/HanaOnAzure/Az.HanaOnAzure.psd1 @@ -0,0 +1,24 @@ +@{ + GUID = '79ad50da-e6b5-4703-885a-d36974a4d9b9' + RootModule = './Az.HanaOnAzure.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: HanaOn cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.HanaOnAzure.private.dll' + FormatsToProcess = './Az.HanaOnAzure.format.ps1xml' + FunctionsToExport = 'Get-AzSapMonitor', 'Get-AzSapMonitorProviderInstance', 'New-AzSapMonitor', 'New-AzSapMonitorProviderInstance', 'Remove-AzSapMonitor', 'Remove-AzSapMonitorProviderInstance', 'Update-AzSapMonitor' + AliasesToExport = '*' + PrivateData = @{ + PSData = @{ + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HanaOn' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } +} diff --git a/src/HanaOnAzure/docs/Az.HanaOnAzure.md b/src/HanaOnAzure/docs/Az.HanaOnAzure.md index 45d9dad811c1..58b8bc2c8052 100644 --- a/src/HanaOnAzure/docs/Az.HanaOnAzure.md +++ b/src/HanaOnAzure/docs/Az.HanaOnAzure.md @@ -1,6 +1,6 @@ --- Module Name: Az.HanaOnAzure -Module Guid: 0e295417-d1c6-4338-8bf4-93e377692fb7 +Module Guid: 79ad50da-e6b5-4703-885a-d36974a4d9b9 Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.hanaonazure Help Version: 1.0.0.0 Locale: en-US From 92d7567e3de2fe6384c34dc63ed625b9d8553972 Mon Sep 17 00:00:00 2001 From: Yeming Liu Date: Mon, 6 Jul 2020 19:02:25 +0800 Subject: [PATCH 3/4] suppress --- .../test/New-AzSapMonitorProviderInstance.Tests.ps1 | 1 + src/HanaOnAzure/test/utils.ps1 | 2 ++ tools/SecurityTools/CredScanSuppressions.json | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 b/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 index 37ac39fcf7d2..f53bb8f95161 100644 --- a/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 +++ b/src/HanaOnAzure/test/New-AzSapMonitorProviderInstance.Tests.ps1 @@ -14,6 +14,7 @@ while(-not $mockingPath) { Describe 'New-AzSapMonitorProviderInstance' { It 'CreateExpandedByString' { $hostName = 'hdb1-0' + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] $sapIns = New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns03 -SapMonitorName $env.sapMonitor02 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) $sapIns.ProvisioningState | Should -Be 'Succeeded' } diff --git a/src/HanaOnAzure/test/utils.ps1 b/src/HanaOnAzure/test/utils.ps1 index f3e383b27333..4f0c71f6a508 100644 --- a/src/HanaOnAzure/test/utils.ps1 +++ b/src/HanaOnAzure/test/utils.ps1 @@ -51,6 +51,7 @@ function setupEnv() { Write-Host -ForegroundColor Green 'Deploying key valut...' $kvName = 'kv-' + (RandomString -allChars $false -len 6) + '-test' $keyValut = New-AzKeyVault -VaultName $kvName -ResourceGroupName $env.costResourceGroup -Location $env.location + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] $hanaDbPasswordSecret = Set-AzKeyVaultSecret -VaultName $kvName -Name 'hanaPassword' -SecretValue (ConvertTo-SecureString "Manager1" -AsPlainText -Force) $env.hanaDbPasswordKvResourceId = $keyValut.ResourceId $env.hanaDbPasswordSecretId = $hanaDbPasswordSecret.Id @@ -71,6 +72,7 @@ function setupEnv() { Write-Host -ForegroundColor Green 'create SAP instance for test...' $hostName = 'hdb1-0' + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns01 -SapMonitorName $env.sapMonitor01 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) New-AzSapMonitorProviderInstance -ResourceGroupName $env.resourceGroup -Name $env.sapIns02 -SapMonitorName $env.sapMonitor01 -ProviderType SapHana -HanaHostname $hostName -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId $env.hanaDbPasswordSecretId -HanaDatabasePasswordKeyVaultResourceId $env.hanaDbPasswordKvResourceId Write-Host -ForegroundColor Green 'The SAP instance created successfully' diff --git a/tools/SecurityTools/CredScanSuppressions.json b/tools/SecurityTools/CredScanSuppressions.json index c91e866c08e3..74ea84fbaa3e 100644 --- a/tools/SecurityTools/CredScanSuppressions.json +++ b/tools/SecurityTools/CredScanSuppressions.json @@ -1097,6 +1097,10 @@ "file": "src\\TimeSeriesInsights\\test\\env.json", "_justification": "Test resource is deleted" }, + { + "file": "src\\HanaOnAzure\\test\\env.json", + "_justification": "Test resource is deleted" + }, { "file": "src\\TimeSeriesInsights\\test\\New-AzTimeSeriesInsightsEnvironment.Recording.json", "_justification": "Test resource is deleted" From da0a8146810f7529fed1fc107938777e318ba987 Mon Sep 17 00:00:00 2001 From: Yeming Liu Date: Tue, 7 Jul 2020 09:21:06 +0800 Subject: [PATCH 4/4] clean code --- .../New-AzSapMonitorProviderInstance.ps1 | 9 ---- src/HanaOnAzure/test/new-sapmonitor.md | 50 ------------------- 2 files changed, 59 deletions(-) delete mode 100644 src/HanaOnAzure/test/new-sapmonitor.md diff --git a/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 b/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 index 3ea344728abe..e2fbe8133e17 100644 --- a/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 +++ b/src/HanaOnAzure/custom/New-AzSapMonitorProviderInstance.ps1 @@ -18,15 +18,6 @@ Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Description Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. -.Example -PS C:\> {{ Add code here }} - -{{ Add output here }} -.Example -PS C:\> {{ Add code here }} - -{{ Add output here }} - .Outputs Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Api20200207Preview.IProviderInstance .Link diff --git a/src/HanaOnAzure/test/new-sapmonitor.md b/src/HanaOnAzure/test/new-sapmonitor.md deleted file mode 100644 index 076a47785acf..000000000000 --- a/src/HanaOnAzure/test/new-sapmonitor.md +++ /dev/null @@ -1,50 +0,0 @@ -## Create a VM -It's very difficult to deploy a HANA VM. Please use this one for testing: - -Subscription: 9e223dbe-3399-4e19-88eb-0975f02ac87f (Azure PowerShell Test - Manual) -ResourceGroup: nancyc-hn1 -Location: westus2 - -## Before testing, create a log analytic workspace (Operational Insights workspace) - -```powershell -New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name yeminglaw -Location westus2 -``` - -## Create a sap monitor and a provider instance - -```powershell -New-AzSapMonitor -Name yemingmonitor -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey O5IXp1MjlFqACcRNRASv3SYwQTlw+wJyrZCaX230c3/8WyWpNHct84z0L/8F1NEfRsqqjIZh+yV9aOboZX6yAA== -LogAnalyticsWorkspaceId fdeceea9-46c7-424c-8d1e-808471a2ccf4 -LogAnalyticsWorkspaceResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw" - -New-AzSapMonitor -Name ps-spamonitor-t01 -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey O5IXp1MjlFqACcRNRASv3SYwQTlw+wJyrZCaX230c3/8WyWpNHct84z0L/8F1NEfRsqqjIZh+yV9aOboZX6yAA== -LogAnalyticsWorkspaceId fdeceea9-46c7-424c-8d1e-808471a2ccf4 -LogAnalyticsWorkspaceResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.OperationalInsights/workspaces/yeminglaw" - -# new provider, plain password -New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name yeminginstance2 -SapMonitorName yemingmonitor -Type SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) - -New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t04 -SapMonitorName yemingmonitortest -Type SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) - -# new provider, password stored in key vault -New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name keyvalue-test -SapMonitorName yemingmonitortest -Type SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId https://yeminghana.vault.azure.net/secrets/psw/cb7e620d72c34d9e940ebdcf178e585b -HanaDatabasePasswordKeyVaultResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/yeminghana/providers/Microsoft.KeyVault/vaults/yeminghana -``` - -1. LogAnalyticsWorkspaceSharedKey can be get by `Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name yeminglaw` (use PrimarySharedKey) -1. The subnet must be the subnet of the hana instance (you can navigate to the vm and see its subnet in networking properties) - -## Notes - -1. When writing docs, use `SAP` instead of `sap` or `Sap`; use `HANA` instead of `Hana` or `hana`. - - - - - - - - - - - - - - -