diff --git a/generated/Oracle/Oracle.Autorest/Az.Oracle.psd1 b/generated/Oracle/Oracle.Autorest/Az.Oracle.psd1 index fe540d8007fb..9078081cab09 100644 --- a/generated/Oracle/Oracle.Autorest/Az.Oracle.psd1 +++ b/generated/Oracle/Oracle.Autorest/Az.Oracle.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.Oracle.private.dll' FormatsToProcess = './Az.Oracle.format.ps1xml' - FunctionsToExport = 'Add-AzOracleCloudVMClusterVM', 'Get-AzOracleAutonomousDatabase', 'Get-AzOracleAutonomousDatabaseBackup', 'Get-AzOracleAutonomousDatabaseCharacterSet', 'Get-AzOracleAutonomousDatabaseNationalCharacterSet', 'Get-AzOracleAutonomousDatabaseVersion', 'Get-AzOracleCloudExadataInfrastructure', 'Get-AzOracleCloudVMCluster', 'Get-AzOracleDbNode', 'Get-AzOracleDbServer', 'Get-AzOracleDbSystemShape', 'Get-AzOracleDnsPrivateView', 'Get-AzOracleDnsPrivateZone', 'Get-AzOracleExadbVMCluster', 'Get-AzOracleExascaleDbNode', 'Get-AzOracleExascaleDbStorageVault', 'Get-AzOracleFlexComponent', 'Get-AzOracleGiMinorVersion', 'Get-AzOracleGiVersion', 'Invoke-AzOracleActionDbNode', 'Invoke-AzOracleActionExascaleDbNode', 'Invoke-AzOracleSwitchoverAutonomousDatabase', 'New-AzOracleAutonomousDatabase', 'New-AzOracleAutonomousDatabaseBackup', 'New-AzOracleCloudExadataInfrastructure', 'New-AzOracleCloudVMCluster', 'New-AzOracleCustomerContactObject', 'New-AzOracleExadbVMCluster', 'New-AzOracleExascaleDbStorageVault', 'New-AzOracleNsgCidrObject', 'Remove-AzOracleAutonomousDatabase', 'Remove-AzOracleAutonomousDatabaseBackup', 'Remove-AzOracleCloudExadataInfrastructure', 'Remove-AzOracleCloudVMCluster', 'Remove-AzOracleCloudVMClusterVM', 'Remove-AzOracleExadbVMCluster', 'Remove-AzOracleExadbVMClusterVM', 'Remove-AzOracleExascaleDbStorageVault', 'Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration', 'Restore-AzOracleAutonomousDatabase', 'Update-AzOracleAutonomousDatabase', 'Update-AzOracleCloudExadataInfrastructure', 'Update-AzOracleCloudVMCluster', 'Update-AzOracleExadbVMCluster', 'Update-AzOracleExascaleDbStorageVault' + FunctionsToExport = 'Add-AzOracleCloudVMClusterVM', 'Get-AzOracleAutonomousDatabase', 'Get-AzOracleAutonomousDatabaseBackup', 'Get-AzOracleAutonomousDatabaseCharacterSet', 'Get-AzOracleAutonomousDatabaseNationalCharacterSet', 'Get-AzOracleAutonomousDatabaseVersion', 'Get-AzOracleCloudExadataInfrastructure', 'Get-AzOracleCloudVMCluster', 'Get-AzOracleDbVersion', 'Get-AzOracleDbNode', 'Get-AzOracleDbServer', 'Get-AzOracleNetworkAnchor', 'Get-AzOracleResourceAnchor', 'Get-AzOracleDbSystemShape', 'Get-AzOracleDbSystem', 'Get-AzOracleDnsPrivateView', 'Get-AzOracleDnsPrivateZone', 'Get-AzOracleExadbVMCluster', 'Get-AzOracleExascaleDbNode', 'Get-AzOracleExascaleDbStorageVault', 'Get-AzOracleFlexComponent', 'Get-AzOracleGiMinorVersion', 'Get-AzOracleGiVersion', 'Invoke-AzOracleActionDbNode', 'Invoke-AzOracleActionExascaleDbNode', 'Invoke-AzOracleSwitchoverAutonomousDatabase', 'New-AzOracleAutonomousDatabase', 'New-AzOracleAutonomousDatabaseBackup', 'New-AzOracleCloudExadataInfrastructure', 'New-AzOracleCloudVMCluster', 'New-AzOracleCustomerContactObject', 'New-AzOracleExadbVMCluster', 'New-AzOracleExascaleDbStorageVault', 'New-AzOracleNsgCidrObject', 'Remove-AzOracleDbSystem', 'Remove-AzOracleResourceAnchor', 'Remove-AzOracleNetworkAnchor', 'Remove-AzOracleAutonomousDatabase', 'Remove-AzOracleAutonomousDatabaseBackup', 'Remove-AzOracleCloudExadataInfrastructure', 'Remove-AzOracleCloudVMCluster', 'Remove-AzOracleCloudVMClusterVM', 'Remove-AzOracleExadbVMCluster', 'Remove-AzOracleExadbVMClusterVM', 'Remove-AzOracleExascaleDbStorageVault', 'Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration', 'Restore-AzOracleAutonomousDatabase', 'Update-AzOracleAutonomousDatabase', 'Update-AzOracleCloudExadataInfrastructure', 'Update-AzOracleCloudVMCluster', 'Update-AzOracleExadbVMCluster', 'Update-AzOracleExascaleDbStorageVault' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Oracle' diff --git a/src/Oracle/Oracle.Autorest/README.md b/src/Oracle/Oracle.Autorest/README.md index 547b0897a943..1d1524e88210 100644 --- a/src/Oracle/Oracle.Autorest/README.md +++ b/src/Oracle/Oracle.Autorest/README.md @@ -27,7 +27,7 @@ For information on how to develop for `Az.Oracle`, see [how-to.md](how-to.md). > see https://aka.ms/autorest ```yaml -commit: d87c0a3d1abbd1d1aa1b487d99e77769b6895ef4 +commit: 0a626b790148b419c9b0bbbc7f4db746d4d886e4 require: - $(this-folder)/../../readme.azure.noprofile.md - $(repo)/specification/oracle/resource-manager/readme.md diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases-autonomousDatabaseBackups.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases-autonomousDatabaseBackups.json index c4dfaa986c0c..0fcd93d11e06 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases-autonomousDatabaseBackups.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases-autonomousDatabaseBackups.json @@ -1,6 +1,6 @@ { "resourceType": "autonomousDatabases/autonomousDatabaseBackups", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases.json index 4a88f93dac40..30db95e28b3d 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/autonomousDatabases.json @@ -1,6 +1,6 @@ { "resourceType": "autonomousDatabases", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures-dbServers.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures-dbServers.json index 5747f200cab5..a68b8e5a305a 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures-dbServers.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures-dbServers.json @@ -1,6 +1,6 @@ { "resourceType": "cloudExadataInfrastructures/dbServers", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures.json index 262e93bef130..2c8d20dc709b 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudExadataInfrastructures.json @@ -1,6 +1,6 @@ { "resourceType": "cloudExadataInfrastructures", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters-dbNodes.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters-dbNodes.json index 9b48779ac8a8..783de3471283 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters-dbNodes.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters-dbNodes.json @@ -1,6 +1,6 @@ { "resourceType": "cloudVmClusters/dbNodes", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters.json index d35525b8a9a0..a4a2b3413d3a 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/cloudVmClusters.json @@ -1,6 +1,6 @@ { "resourceType": "cloudVmClusters", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/dbSystems.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/dbSystems.json new file mode 100644 index 000000000000..2c9a9a14acb2 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/dbSystems.json @@ -0,0 +1,85 @@ +{ + "resourceType": "dbSystems", + "apiVersion": "2025-09-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle" + }, + "commands": [ + { + "name": "Get-AzOracleDbSystem", + "description": "Get a DbSystem", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/get-azoracledbsystem" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a DbSystem", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dbSystemName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzOracleDbSystem", + "description": "Delete a DbSystem", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/remove-azoracledbsystem" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a DbSystem", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dbSystemName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters-dbNodes.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters-dbNodes.json index 7b7618fb6b59..6c02feac9187 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters-dbNodes.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters-dbNodes.json @@ -1,6 +1,6 @@ { "resourceType": "exadbVmClusters/dbNodes", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters.json index 9ceac94b76b8..c6a1673815e7 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exadbVmClusters.json @@ -1,6 +1,6 @@ { "resourceType": "exadbVmClusters", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exascaleDbStorageVaults.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exascaleDbStorageVaults.json index e872f59c004a..50202b494444 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exascaleDbStorageVaults.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/exascaleDbStorageVaults.json @@ -1,6 +1,6 @@ { "resourceType": "exascaleDbStorageVaults", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseCharacterSets.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseCharacterSets.json index d17fc086450d..a7ffa0600271 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseCharacterSets.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseCharacterSets.json @@ -1,6 +1,6 @@ { "resourceType": "locations/autonomousDatabaseCharacterSets", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseNationalCharacterSets.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseNationalCharacterSets.json index d4dd23674712..3c789104226d 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseNationalCharacterSets.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDatabaseNationalCharacterSets.json @@ -1,6 +1,6 @@ { "resourceType": "locations/autonomousDatabaseNationalCharacterSets", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDbVersions.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDbVersions.json index bbb895b8c20e..c0bad403be23 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDbVersions.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-autonomousDbVersions.json @@ -1,6 +1,6 @@ { "resourceType": "locations/autonomousDbVersions", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemDbVersions.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemDbVersions.json new file mode 100644 index 000000000000..0e7e75ce9a64 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemDbVersions.json @@ -0,0 +1,47 @@ +{ + "resourceType": "locations/dbSystemDbVersions", + "apiVersion": "2025-09-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle" + }, + "commands": [ + { + "name": "Get-AzOracleDbVersion", + "description": "Get a DbVersion", + "path": "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemDbVersions/{dbversionsname}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/get-azoracledbversion" + }, + "parameterSets": [ + { + "parameters": [ + "-Location ", + "-Sname ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a DbVersion", + "parameters": [ + { + "name": "-Location", + "value": "[Path.location]" + }, + { + "name": "-Sname", + "value": "[Path.dbversionsname]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemShapes.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemShapes.json index aa096bccbf0b..90c824705d54 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemShapes.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dbSystemShapes.json @@ -1,6 +1,6 @@ { "resourceType": "locations/dbSystemShapes", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateViews.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateViews.json index 13cca94616f3..fd16256e18e3 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateViews.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateViews.json @@ -1,6 +1,6 @@ { "resourceType": "locations/dnsPrivateViews", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateZones.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateZones.json index fa6757ce9bdd..fb7d50c9c4da 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateZones.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-dnsPrivateZones.json @@ -1,6 +1,6 @@ { "resourceType": "locations/dnsPrivateZones", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-flexComponents.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-flexComponents.json index 5a53bf17e891..ddefc327a2e9 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-flexComponents.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-flexComponents.json @@ -1,6 +1,6 @@ { "resourceType": "locations/flexComponents", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions-giMinorVersions.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions-giMinorVersions.json index c43e183ec699..ea67fe7566bd 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions-giMinorVersions.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions-giMinorVersions.json @@ -1,6 +1,6 @@ { "resourceType": "locations/giVersions/giMinorVersions", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions.json index f09946ddafc6..16c40e4b15e8 100644 --- a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions.json +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/locations-giVersions.json @@ -1,6 +1,6 @@ { "resourceType": "locations/giVersions", - "apiVersion": "2025-03-01", + "apiVersion": "2025-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.oracle" }, diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/networkAnchors.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/networkAnchors.json new file mode 100644 index 000000000000..cbdc0e452429 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/networkAnchors.json @@ -0,0 +1,85 @@ +{ + "resourceType": "networkAnchors", + "apiVersion": "2025-09-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle" + }, + "commands": [ + { + "name": "Get-AzOracleNetworkAnchor", + "description": "Get a NetworkAnchor", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/get-azoraclenetworkanchor" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a NetworkAnchor", + "parameters": [ + { + "name": "-Name", + "value": "[Path.networkAnchorName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzOracleNetworkAnchor", + "description": "Delete a NetworkAnchor", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/remove-azoraclenetworkanchor" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a NetworkAnchor", + "parameters": [ + { + "name": "-Name", + "value": "[Path.networkAnchorName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Oracle/Oracle.Autorest/UX/Oracle.Database/resourceAnchors.json b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/resourceAnchors.json new file mode 100644 index 000000000000..00ef3ee5e483 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/UX/Oracle.Database/resourceAnchors.json @@ -0,0 +1,85 @@ +{ + "resourceType": "resourceAnchors", + "apiVersion": "2025-09-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle" + }, + "commands": [ + { + "name": "Get-AzOracleResourceAnchor", + "description": "Get a ResourceAnchor", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/get-azoracleresourceanchor" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a ResourceAnchor", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceAnchorName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzOracleResourceAnchor", + "description": "Delete a ResourceAnchor", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.oracle/remove-azoracleresourceanchor" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a ResourceAnchor", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceAnchorName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md b/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md index 572f61e0400c..23171dd35203 100644 --- a/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md +++ b/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md @@ -1,6 +1,6 @@ --- Module Name: Az.Oracle -Module Guid: 0cd4db40-5b77-4c36-a93f-881ee209ef62 +Module Guid: 7fe37b20-8414-454f-98c1-fee11f1b09fa Download Help Link: https://learn.microsoft.com/powershell/module/az.oracle Help Version: 1.0.0.0 Locale: en-US @@ -41,9 +41,15 @@ Get a DbNode ### [Get-AzOracleDbServer](Get-AzOracleDbServer.md) Get a DbServer +### [Get-AzOracleDbSystem](Get-AzOracleDbSystem.md) +Get a DbSystem + ### [Get-AzOracleDbSystemShape](Get-AzOracleDbSystemShape.md) Get a DbSystemShape +### [Get-AzOracleDbVersion](Get-AzOracleDbVersion.md) +Get a DbVersion + ### [Get-AzOracleDnsPrivateView](Get-AzOracleDnsPrivateView.md) Get a DnsPrivateView @@ -68,6 +74,15 @@ Get a GiMinorVersion ### [Get-AzOracleGiVersion](Get-AzOracleGiVersion.md) Get a GiVersion +### [Get-AzOracleNetworkAnchor](Get-AzOracleNetworkAnchor.md) +Get a NetworkAnchor + +### [Get-AzOracleResourceAnchor](Get-AzOracleResourceAnchor.md) +Get a ResourceAnchor + +### [Invoke-AzOracleActionAutonomousDatabase](Invoke-AzOracleActionAutonomousDatabase.md) +Perform Lifecycle Management Action on Autonomous Database + ### [Invoke-AzOracleActionDbNode](Invoke-AzOracleActionDbNode.md) VM actions on DbNode of VM Cluster by the provided filter @@ -92,15 +107,24 @@ Create a CloudVmCluster ### [New-AzOracleCustomerContactObject](New-AzOracleCustomerContactObject.md) Create an in-memory object for CustomerContact. +### [New-AzOracleDbSystem](New-AzOracleDbSystem.md) +Create a DbSystem + ### [New-AzOracleExadbVMCluster](New-AzOracleExadbVMCluster.md) Create a ExadbVmCluster ### [New-AzOracleExascaleDbStorageVault](New-AzOracleExascaleDbStorageVault.md) Create a ExascaleDbStorageVault +### [New-AzOracleNetworkAnchor](New-AzOracleNetworkAnchor.md) +Create a NetworkAnchor + ### [New-AzOracleNsgCidrObject](New-AzOracleNsgCidrObject.md) Create an in-memory object for NsgCidr. +### [New-AzOracleResourceAnchor](New-AzOracleResourceAnchor.md) +Create a ResourceAnchor + ### [Remove-AzOracleAutonomousDatabase](Remove-AzOracleAutonomousDatabase.md) Delete a AutonomousDatabase @@ -116,6 +140,9 @@ Delete a CloudVmCluster ### [Remove-AzOracleCloudVMClusterVM](Remove-AzOracleCloudVMClusterVM.md) Remove VMs from the VM Cluster +### [Remove-AzOracleDbSystem](Remove-AzOracleDbSystem.md) +Delete a DbSystem + ### [Remove-AzOracleExadbVMCluster](Remove-AzOracleExadbVMCluster.md) Delete a ExadbVmCluster @@ -125,6 +152,12 @@ Remove VMs from the VM Cluster ### [Remove-AzOracleExascaleDbStorageVault](Remove-AzOracleExascaleDbStorageVault.md) Delete a ExascaleDbStorageVault +### [Remove-AzOracleNetworkAnchor](Remove-AzOracleNetworkAnchor.md) +Delete a NetworkAnchor + +### [Remove-AzOracleResourceAnchor](Remove-AzOracleResourceAnchor.md) +Delete a ResourceAnchor + ### [Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration](Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration.md) Perform ChangeDisasterRecoveryConfiguration action on Autonomous Database @@ -140,9 +173,18 @@ Update a CloudExadataInfrastructure ### [Update-AzOracleCloudVMCluster](Update-AzOracleCloudVMCluster.md) Update a CloudVmCluster +### [Update-AzOracleDbSystem](Update-AzOracleDbSystem.md) +Update a DbSystem + ### [Update-AzOracleExadbVMCluster](Update-AzOracleExadbVMCluster.md) Update a ExadbVmCluster ### [Update-AzOracleExascaleDbStorageVault](Update-AzOracleExascaleDbStorageVault.md) Update a ExascaleDbStorageVault +### [Update-AzOracleNetworkAnchor](Update-AzOracleNetworkAnchor.md) +Update a NetworkAnchor + +### [Update-AzOracleResourceAnchor](Update-AzOracleResourceAnchor.md) +Update a ResourceAnchor + diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystem.md new file mode 100644 index 000000000000..a5160ba1ba3c --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystem.md @@ -0,0 +1,207 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/get-azoracledbsystem +schema: 2.0.0 +--- + +# Get-AzOracleDbSystem + +## SYNOPSIS +Get a DbSystem + +## SYNTAX + +### List (Default) +``` +Get-AzOracleDbSystem [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzOracleDbSystem -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzOracleDbSystem -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzOracleDbSystem -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a DbSystem + +## EXAMPLES + +### Example 1: Get a list of the DbSystem resources +```powershell +Get-AzOracleDbSystem +``` + +```output +... +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Get a DbSystem resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleDbSystem`. + +### Example 2: Get a DbSystem by name and resource group name +```powershell +Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Gets a specific DbSystem resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleDbSystem`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DbSystem + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DbSystemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IDbSystem + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystemShape.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystemShape.md index 6bd0f69a151b..10662696afa6 100644 --- a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystemShape.md +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbSystemShape.md @@ -14,8 +14,8 @@ Get a DbSystemShape ### List (Default) ``` -Get-AzOracleDbSystemShape -Location [-SubscriptionId ] [-Zone ] - [-DefaultProfile ] [] +Get-AzOracleDbSystemShape -Location [-SubscriptionId ] [-ShapeAttribute ] + [-Zone ] [-DefaultProfile ] [] ``` ### Get @@ -159,6 +159,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ShapeAttribute +Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. The value must be an UUID. diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md new file mode 100644 index 000000000000..e8c06518f131 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md @@ -0,0 +1,280 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/get-azoracledbversion +schema: 2.0.0 +--- + +# Get-AzOracleDbVersion + +## SYNOPSIS +Get a DbVersion + +## SYNTAX + +### List (Default) +``` +Get-AzOracleDbVersion -Location [-SubscriptionId ] [-DbSystemId ] + [-DbSystemShape ] [-IsDatabaseSoftwareImageSupported] [-IsUpgradeSupported] [-ShapeFamily ] + [-StorageManagement ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzOracleDbVersion -Location -Sname [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzOracleDbVersion -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityLocation +``` +Get-AzOracleDbVersion -LocationInputObject -Sname [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a DbVersion + +## EXAMPLES + +### Example 1: List available Oracle Database versions in a region +```powershell +Get-AzOracleDbVersion -Location eastus2 +``` + +```output +... +Version : 19c +VersionFull : 19.22.0.0 +IsDefault : True +IsPreview : False + +Version : 21c +VersionFull : 21.10.0.0 +IsDefault : False +IsPreview : True +``` + +Lists the available Oracle Database versions for **eastus2**. For more information, execute `Get-Help Get-AzOracleDbVersion`. + +### Example 2: List versions for a specific shape +```powershell +Get-AzOracleDbVersion -Location eastus2 -Shape "VM.Standard3.Flex" +``` + +```output +Version : 19c +VersionFull : 19.22.0.0 +IsDefault : True +IsPreview : False +``` + +Filters versions by compute shape. For more information, execute `Get-Help Get-AzOracleDbVersion`. + +## PARAMETERS + +### -DbSystemId +The DB system AzureId. +If provided, filters the results to the set of database versions which are supported for the DB system. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DbSystemShape +If provided, filters the results to the set of database versions which are supported for the given shape. +e.g., VM.Standard.E5.Flex + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -IsDatabaseSoftwareImageSupported +If true, filters the results to the set of Oracle Database versions that are supported for the database software images. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsUpgradeSupported +If true, filters the results to the set of database versions which are supported for Upgrade. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The name of the Azure region. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LocationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: GetViaIdentityLocation +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ShapeFamily +If provided, filters the results to the set of database versions which are supported for the given shape family. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sname +DbVersion name + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityLocation +Aliases: Dbversionsname + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageManagement +The DB system storage management option. +Used to list database versions available for that storage manager. +Valid values are ASM and LVM. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IDbVersion + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleGiVersion.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleGiVersion.md index af3ef383f0aa..2f13ce204c0f 100644 --- a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleGiVersion.md +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleGiVersion.md @@ -14,8 +14,8 @@ Get a GiVersion ### List (Default) ``` -Get-AzOracleGiVersion -Location [-SubscriptionId ] [-Shape ] [-Zone ] - [-DefaultProfile ] [] +Get-AzOracleGiVersion -Location [-SubscriptionId ] [-Shape ] + [-ShapeAttribute ] [-Zone ] [-DefaultProfile ] [] ``` ### Get @@ -148,6 +148,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ShapeAttribute +Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. The value must be an UUID. diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..4beddd544421 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleNetworkAnchor.md @@ -0,0 +1,203 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/get-azoraclenetworkanchor +schema: 2.0.0 +--- + +# Get-AzOracleNetworkAnchor + +## SYNOPSIS +Get a NetworkAnchor + +## SYNTAX + +### List (Default) +``` +Get-AzOracleNetworkAnchor [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzOracleNetworkAnchor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzOracleNetworkAnchor -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzOracleNetworkAnchor -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a NetworkAnchor + +## EXAMPLES + +### Example 1: Get a list of the Network Anchor resources +```powershell +Get-AzOracleNetworkAnchor +``` + +```output +... +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Get a Network Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleNetworkAnchor`. + +### Example 2: Get a Network Anchor by name and resource group name +```powershell +Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Gets a specific Network Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleNetworkAnchor`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the NetworkAnchor + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: NetworkAnchorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.INetworkAnchor + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..51a364a14396 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleResourceAnchor.md @@ -0,0 +1,203 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/get-azoracleresourceanchor +schema: 2.0.0 +--- + +# Get-AzOracleResourceAnchor + +## SYNOPSIS +Get a ResourceAnchor + +## SYNTAX + +### List (Default) +``` +Get-AzOracleResourceAnchor [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzOracleResourceAnchor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzOracleResourceAnchor -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzOracleResourceAnchor -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a ResourceAnchor + +## EXAMPLES + +### Example 1: Get a list of the Resource Anchor resources +```powershell +Get-AzOracleResourceAnchor +``` + +```output +... +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Get a Resource Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleResourceAnchor`. + +### Example 2: Get a Resource Anchor by name and resource group name +```powershell +Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Gets a specific Resource Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleResourceAnchor`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the ResourceAnchor + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ResourceAnchorName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IResourceAnchor + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Invoke-AzOracleActionAutonomousDatabase.md b/src/Oracle/Oracle.Autorest/docs/Invoke-AzOracleActionAutonomousDatabase.md new file mode 100644 index 000000000000..db4a67f16590 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Invoke-AzOracleActionAutonomousDatabase.md @@ -0,0 +1,371 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/invoke-azoracleactionautonomousdatabase +schema: 2.0.0 +--- + +# Invoke-AzOracleActionAutonomousDatabase + +## SYNOPSIS +Perform Lifecycle Management Action on Autonomous Database + +## SYNTAX + +### ActionExpanded (Default) +``` +Invoke-AzOracleActionAutonomousDatabase -Autonomousdatabasename -ResourceGroupName + -Action [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### ActionViaIdentityExpanded +``` +Invoke-AzOracleActionAutonomousDatabase -InputObject -Action + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### ActionViaJsonFilePath +``` +Invoke-AzOracleActionAutonomousDatabase -Autonomousdatabasename -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### ActionViaJsonString +``` +Invoke-AzOracleActionAutonomousDatabase -Autonomousdatabasename -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Perform Lifecycle Management Action on Autonomous Database + +## EXAMPLES + +### Example 1: Stop an Autonomous Database +```powershell +Invoke-AzOracleActionAutonomousDatabase -ResourceGroupName PowerShellTestRg -Name OFakePowerShellTestAdbs -Action Stop +``` + +```output +Name : OFakePowerShellTestAdbs +NcharacterSet : AL16UTF16 +NextLongTermBackupTimeStamp : +OciUrl : https://cloud.oracle.com/db/adbs/ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa +OpenMode : +OperationsInsightsStatus : +PeerDbId : +PeerDbIds : +PermissionLevel : +PrivateEndpoint : byui3zo3.adb.us-ashburn-1.oraclecloud.com +PrivateEndpointIP : 10.0.1.51 +PrivateEndpointLabel : byui3zo3 +Property : { + ... + } +ProvisionableCpu : +ProvisioningState : Succeeded +ResourceGroupName : PowerShellTestRg +Role : +ScheduledOperationScheduledStartTime : +ScheduledOperationScheduledStopTime : +ServiceConsoleUrl : +SqlWebDeveloperUrl : +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +SupportedRegionsToCloneTo : +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +TimeDataGuardRoleChanged : +TimeDeletionOfFreeAutonomousDatabase : +TimeLocalDataGuardEnabled : Fri Jul 05 13:44:40 UTC 2024 +TimeMaintenanceBegin : 07/07/2024 09:00:00 +TimeMaintenanceEnd : 07/07/2024 11:00:00 +TimeOfLastFailover : +TimeOfLastRefresh : +TimeOfLastRefreshPoint : +TimeOfLastSwitchover : +TimeReclamationOfFreeAutonomousDatabase : +Type : oracle.database/autonomousdatabases +UsedDataStorageSizeInGb : +UsedDataStorageSizeInTb : +VnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +WhitelistedIP : +``` + +Performs a lifecycle **Stop** action on the Autonomous Database. For more information, execute `Get-Help Invoke-AzOracleActionAutonomousDatabase`. + +### Example 2: Start an Autonomous Database +```powershell +Invoke-AzOracleActionAutonomousDatabase -ResourceGroupName PowerShellTestRg -Name OFakePowerShellTestAdbs -Action Start +``` + +```output +Name : OFakePowerShellTestAdbs +NcharacterSet : AL16UTF16 +NextLongTermBackupTimeStamp : +OciUrl : https://cloud.oracle.com/db/adbs/ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa +OpenMode : ReadWrite +OperationsInsightsStatus : +PeerDbId : +PeerDbIds : +PermissionLevel : +PrivateEndpoint : byui3zo3.adb.us-ashburn-1.oraclecloud.com +PrivateEndpointIP : 10.0.1.51 +PrivateEndpointLabel : byui3zo3 +Property : { + ... + } +ProvisionableCpu : +ProvisioningState : Succeeded +ResourceGroupName : PowerShellTestRg +Role : +ScheduledOperationScheduledStartTime : +ScheduledOperationScheduledStopTime : +ServiceConsoleUrl : +SqlWebDeveloperUrl : +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +SupportedRegionsToCloneTo : +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +TimeDataGuardRoleChanged : +TimeDeletionOfFreeAutonomousDatabase : +TimeLocalDataGuardEnabled : Fri Jul 05 13:44:40 UTC 2024 +TimeMaintenanceBegin : 07/07/2024 09:00:00 +TimeMaintenanceEnd : 07/07/2024 11:00:00 +TimeOfLastFailover : +TimeOfLastRefresh : +TimeOfLastRefreshPoint : +TimeOfLastSwitchover : +TimeReclamationOfFreeAutonomousDatabase : +Type : oracle.database/autonomousdatabases +UsedDataStorageSizeInGb : +UsedDataStorageSizeInTb : +VnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +WhitelistedIP : +``` + +Performs a lifecycle **Start** action on the Autonomous Database. For more information, execute `Get-Help Invoke-AzOracleActionAutonomousDatabase`. + +## PARAMETERS + +### -Action +Autonomous Database lifecycle action + +```yaml +Type: System.String +Parameter Sets: ActionExpanded, ActionViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -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 +``` + +### -Autonomousdatabasename +The database name. + +```yaml +Type: System.String +Parameter Sets: ActionExpanded, ActionViaJsonFilePath, ActionViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: ActionViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Action operation + +```yaml +Type: System.String +Parameter Sets: ActionViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Action operation + +```yaml +Type: System.String +Parameter Sets: ActionViaJsonString +Aliases: + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: ActionExpanded, ActionViaJsonFilePath, ActionViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: ActionExpanded, ActionViaJsonFilePath, ActionViaJsonString +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IAutonomousDatabase + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleAutonomousDatabase.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleAutonomousDatabase.md index c53cc8c7f094..4f0c391d2a64 100644 --- a/src/Oracle/Oracle.Autorest/docs/New-AzOracleAutonomousDatabase.md +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleAutonomousDatabase.md @@ -19,13 +19,13 @@ New-AzOracleAutonomousDatabase -Name -ResourceGroupName -Locat [-AutonomousMaintenanceScheduleType ] [-BackupRetentionPeriodInDay ] [-CharacterSet ] [-ComputeCount ] [-ComputeModel ] [-CpuCoreCount ] [-CustomerContact ] [-DatabaseEdition ] [-DataBaseType ] - [-DataStorageSizeInGb ] [-DataStorageSizeInTb ] [-DayOfWeekName ] [-DbVersion ] - [-DbWorkload ] [-DisplayName ] [-IsAutoScalingEnabled] [-IsAutoScalingForStorageEnabled] - [-IsLocalDataGuardEnabled] [-IsMtlsConnectionRequired] [-IsPreviewVersionWithServiceTermsAccepted] - [-LicenseModel ] [-NcharacterSet ] [-PrivateEndpointIP ] - [-PrivateEndpointLabel ] [-ScheduledStartTime ] [-ScheduledStopTime ] - [-SubnetId ] [-Tag ] [-VnetId ] [-WhitelistedIP ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DataStorageSizeInGb ] [-DataStorageSizeInTb ] [-DbVersion ] [-DbWorkload ] + [-DisplayName ] [-IsAutoScalingEnabled] [-IsAutoScalingForStorageEnabled] [-IsLocalDataGuardEnabled] + [-IsMtlsConnectionRequired] [-IsPreviewVersionWithServiceTermsAccepted] [-LicenseModel ] + [-NcharacterSet ] [-PrivateEndpointIP ] [-PrivateEndpointLabel ] + [-ScheduledOperationsList ] [-SubnetId ] [-Tag ] + [-VnetId ] [-WhitelistedIP ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### CreateViaJsonFilePath @@ -335,21 +335,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DayOfWeekName -Name of the day of the week. - -```yaml -Type: System.String -Parameter Sets: CreateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DbVersion A valid Oracle Database version for Autonomous Database. @@ -638,28 +623,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ScheduledStartTime -auto start time. -value must be of ISO-8601 format HH:mm +### -ScheduledOperationsList +The list of scheduled operations. ```yaml -Type: System.String -Parameter Sets: CreateExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ScheduledStopTime -auto stop time. -value must be of ISO-8601 format HH:mm - -```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IScheduledOperationsType[] Parameter Sets: CreateExpanded Aliases: diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleCloudVMCluster.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleCloudVMCluster.md index 1b7a8c2658e3..4afd60283442 100644 --- a/src/Oracle/Oracle.Autorest/docs/New-AzOracleCloudVMCluster.md +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleCloudVMCluster.md @@ -19,12 +19,12 @@ New-AzOracleCloudVMCluster -Name -ResourceGroupName -Location [-ClusterName ] [-CpuCoreCount ] [-DataCollectionOptionIsDiagnosticsEventsEnabled] [-DataCollectionOptionIsHealthMonitoringEnabled] [-DataCollectionOptionIsIncidentLogsEnabled] [-DataStoragePercentage ] [-DataStorageSizeInTb ] [-DbNodeStorageSizeInGb ] - [-DbServer ] [-DisplayName ] [-Domain ] [-GiVersion ] [-Hostname ] - [-IsLocalBackupEnabled] [-IsSparseDiskgroupEnabled] [-LicenseModel ] [-MemorySizeInGb ] - [-NsgCidr ] [-OcpuCount ] [-ScanListenerPortTcp ] - [-ScanListenerPortTcpSsl ] [-SshPublicKey ] [-SubnetId ] [-SystemVersion ] - [-Tag ] [-TimeZone ] [-VnetId ] [-ZoneId ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DbServer ] [-DisplayName ] [-Domain ] [-ExascaleDbStorageVaultId ] + [-GiVersion ] [-Hostname ] [-IsLocalBackupEnabled] [-IsSparseDiskgroupEnabled] + [-LicenseModel ] [-MemorySizeInGb ] [-NsgCidr ] [-OcpuCount ] + [-ScanListenerPortTcp ] [-ScanListenerPortTcpSsl ] [-SshPublicKey ] + [-SubnetId ] [-SystemVersion ] [-Tag ] [-TimeZone ] [-VnetId ] + [-ZoneId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaJsonFilePath @@ -351,6 +351,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExascaleDbStorageVaultId +Exadata Database Storage Vault ID + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -GiVersion Oracle Grid Infrastructure (GI) software version diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleDbSystem.md new file mode 100644 index 000000000000..8cca9f1e73f4 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleDbSystem.md @@ -0,0 +1,687 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/new-azoracledbsystem +schema: 2.0.0 +--- + +# New-AzOracleDbSystem + +## SYNOPSIS +Create a DbSystem + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzOracleDbSystem -Name -ResourceGroupName -Location [-SubscriptionId ] + [-AdminPassword ] [-ClusterName ] [-ComputeCount ] [-ComputeModel ] + [-DatabaseEdition ] [-DbSystemOptionStorageManagement ] [-DbVersion ] + [-DiskRedundancy ] [-DisplayName ] [-DomainV2 ] [-Hostname ] + [-InitialDataStorageSizeInGb ] [-LicenseModelV2 ] [-NetworkAnchorId ] + [-NodeCount ] [-PdbName ] [-ResourceAnchorId ] [-Shape ] + [-SshPublicKey ] [-StorageVolumePerformanceMode ] [-Tag ] [-TimeZone ] + [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzOracleDbSystem -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzOracleDbSystem -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a DbSystem + +## EXAMPLES + +### Example 1: Create a DbSystem +```powershell +New-AzOracleDbSystem ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestDbSystem ` + -Location eastus2 ` + -Shape VM.Standard3.Flex ` + -CpuCoreCount 4 ` + -DataStorageSizeInGb 256 ` + -SubnetId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated" ` + -AdminPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force) +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:40:35 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +TimeCreated : 05/07/2024 13:40:35 +``` + +Creates a DbSystem in the specified resource group and location. For more information, execute `Get-Help New-AzOracleDbSystem`. + +### Example 2: Create a DbSystem with tags +```powershell +New-AzOracleDbSystem ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestDbSystem ` + -Location eastus2 ` + -Shape VM.Standard3.Flex ` + -CpuCoreCount 4 ` + -DataStorageSizeInGb 256 ` + -SubnetId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated" ` + -Tag @{ env="test"; owner="example@oracle.com" } ` + -AdminPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force) +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + env=test + owner=example@oracle.com + } +SystemDataCreatedAt : 05/07/2024 13:42:10 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:42:10 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +TimeCreated : 05/07/2024 13:42:10 +``` + +Creates a DbSystem and assigns tags. For more information, execute `Get-Help New-AzOracleDbSystem`. + +## PARAMETERS + +### -AdminPassword +A strong password for SYS, SYSTEM, and PDB Admin. +The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. +The special characters must be _, #, or -. + +```yaml +Type: System.Security.SecureString +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -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 +``` + +### -ClusterName +The cluster name for Exadata and 2-node RAC virtual machine DB systems. +The cluster name must begin with an alphabetic character, and may contain hyphens (-). +Underscores (_) are not permitted. +The cluster name can be no longer than 11 characters and is not case sensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ComputeCount +The number of compute servers for the DB system. + +```yaml +Type: System.Int32 +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ComputeModel +The compute model for Base Database Service. +This is required if using the `computeCount` parameter. +If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. +The ECPU compute model is the recommended model, and the OCPU compute model is legacy. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseEdition +The Oracle Database Edition that applies to all the databases on the DB system. +Exadata DB systems and 2-node RAC DB systems require EnterpriseEditionExtremePerformance. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DbSystemOptionStorageManagement +The storage option used in DB system. +ASM - Automatic storage management, LVM - Logical Volume management. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DbVersion +A valid Oracle Database version. +For a list of supported versions, use the ListDbVersions operation. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DiskRedundancy +The type of redundancy configured for the DB system. +NORMAL is 2-way redundancy. +HIGH is 3-way redundancy. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +The user-friendly name for the DB system. +The name does not have to be unique. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DomainV2 +The domain name for the DB system. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Hostname +The hostname for the DB system. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InitialDataStorageSizeInGb +Size in GB of the initial data volume that will be created and attached to a virtual machine DB system. +You can scale up storage after provisioning, as needed. +Note that the total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software volume. + +```yaml +Type: System.Int32 +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LicenseModelV2 +The Oracle license model that applies to all the databases on the DB system. +The default is LicenseIncluded. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +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: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DbSystem + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DbSystemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAnchorId +Azure Network Anchor ID + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NodeCount +The number of nodes in the DB system. +For RAC DB systems, the value is greater than 1. + +```yaml +Type: System.Int32 +Parameter Sets: CreateExpanded +Aliases: + +Required: False +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 +``` + +### -PdbName +The name of the pluggable database. +The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. +Special characters are not permitted. +Pluggable database should not be same as database name. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceAnchorId +Azure Resource Anchor ID + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Shape +The shape of the DB system. +The shape determines resources to allocate to the DB system. +For virtual machine shapes, the number of CPU cores and memory. +For bare metal and Exadata shapes, the number of CPU cores, storage, and memory. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SshPublicKey +The public key portion of one or more key pairs used for SSH access to the DB system. + +```yaml +Type: System.String[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageVolumePerformanceMode +The block storage volume performance level. +Valid values are Balanced and HighPerformance. +See [Block Volume Performance](/Content/Block/Concepts/blockvolumeperformance.htm) for more information. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimeZone +The time zone of the DB system, e.g., UTC, to set the timeZone as UTC. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Zone +The availability zones. + +```yaml +Type: System.String[] +Parameter Sets: CreateExpanded +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.Oracle.Models.IDbSystem + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleExadbVMCluster.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleExadbVMCluster.md index 2a094fe77907..a8208ff4bef4 100644 --- a/src/Oracle/Oracle.Autorest/docs/New-AzOracleExadbVMCluster.md +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleExadbVMCluster.md @@ -21,10 +21,10 @@ New-AzOracleExadbVMCluster -Name -ResourceGroupName -Location [-EnabledEcpuCount ] [-ExascaleDbStorageVaultId ] [-GridImageOcid ] [-Hostname ] [-LicenseModel ] [-NodeCount ] [-NsgCidr ] [-PrivateZoneOcid ] [-ScanListenerPortTcp ] [-ScanListenerPortTcpSsl ] - [-Shape ] [-SshPublicKey ] [-SubnetId ] [-SystemVersion ] - [-Tag ] [-TimeZone ] [-TotalEcpuCount ] [-VMFileSystemStorageTotalSizeInGb ] - [-VnetId ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-Shape ] [-ShapeAttribute ] [-SshPublicKey ] [-SubnetId ] + [-SystemVersion ] [-Tag ] [-TimeZone ] [-TotalEcpuCount ] + [-VMFileSystemStorageTotalSizeInGb ] [-VnetId ] [-Zone ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaJsonFilePath @@ -515,6 +515,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ShapeAttribute +The type of Exascale storage used for Exadata VM cluster. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SshPublicKey The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleExascaleDbStorageVault.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleExascaleDbStorageVault.md index 99451551879d..1acac906fdd8 100644 --- a/src/Oracle/Oracle.Autorest/docs/New-AzOracleExascaleDbStorageVault.md +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleExascaleDbStorageVault.md @@ -16,9 +16,9 @@ Create a ExascaleDbStorageVault ``` New-AzOracleExascaleDbStorageVault -Name -ResourceGroupName -Location [-SubscriptionId ] [-AdditionalFlashCacheInPercent ] [-Description ] - [-DisplayName ] [-HighCapacityDatabaseStorageInputTotalSizeInGb ] [-Tag ] - [-TimeZone ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-DisplayName ] [-ExadataInfrastructureId ] + [-HighCapacityDatabaseStorageInputTotalSizeInGb ] [-Tag ] [-TimeZone ] + [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaJsonFilePath @@ -157,6 +157,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExadataInfrastructureId +Cloud Exadata infrastructure ID + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -HighCapacityDatabaseStorageInputTotalSizeInGb Total Capacity diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..bd929ce27ecf --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleNetworkAnchor.md @@ -0,0 +1,468 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/new-azoraclenetworkanchor +schema: 2.0.0 +--- + +# New-AzOracleNetworkAnchor + +## SYNOPSIS +Create a NetworkAnchor + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzOracleNetworkAnchor -Name -ResourceGroupName -Location + [-SubscriptionId ] [-DnsForwardingRule ] + [-DnsListeningEndpointAllowedCidr ] [-IsOracleDnsForwardingEndpointEnabled] + [-IsOracleDnsListeningEndpointEnabled] [-IsOracleToAzureDnsZoneSyncEnabled] [-OciBackupCidrBlock ] + [-OciVcnDnsLabel ] [-ResourceAnchorId ] [-SubnetId ] [-Tag ] + [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzOracleNetworkAnchor -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzOracleNetworkAnchor -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a NetworkAnchor + +## EXAMPLES + +### Example 1: Create a Network Anchor +```powershell +New-AzOracleNetworkAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_owerShellTestNetworkAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:40:35 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + } +TimeCreated : 05/07/2024 13:40:35 +``` + +Creates a Network Anchor in the specified resource group and location, linking it to a virtual network. For more information, execute `Get-Help New-AzOracleNetworkAnchor`. + +### Example 2: Create a Network Anchor with tags +```powershell +New-AzOracleNetworkAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_owerShellTestNetworkAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" ` + -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:42:10 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:42:10 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:42:10 +``` + +Creates a Network Anchor and assigns tags. For more information, execute `Get-Help New-AzOracleNetworkAnchor`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRule +DNS forwarding rules + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IDnsForwardingRule[] +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsListeningEndpointAllowedCidr +Comma-separated list of CIDRs that are allowed to send requests to the DNS listening endpoint + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsOracleDnsForwardingEndpointEnabled +Indicates whether the Oracle DNS forwarding endpoint is enabled + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsOracleDnsListeningEndpointEnabled +Indicates whether the Oracle DNS listening endpoint is enabled + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsOracleToAzureDnsZoneSyncEnabled +Indicates whether DNS zone sync from OCI to Azure is enabled + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +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: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the NetworkAnchor + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: NetworkAnchorName + +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 +``` + +### -OciBackupCidrBlock +OCI backup subnet cidr block. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OciVcnDnsLabel +OCI DNS label. +This is optional if DNS config is provided. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceAnchorId +Corresponding resource anchor Azure ID + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubnetId +Client subnet + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Zone +The availability zones. + +```yaml +Type: System.String[] +Parameter Sets: CreateExpanded +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.Oracle.Models.INetworkAnchor + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/New-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/docs/New-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..c98c3d693bca --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/New-AzOracleResourceAnchor.md @@ -0,0 +1,314 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/new-azoracleresourceanchor +schema: 2.0.0 +--- + +# New-AzOracleResourceAnchor + +## SYNOPSIS +Create a ResourceAnchor + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzOracleResourceAnchor -Name -ResourceGroupName -Location + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzOracleResourceAnchor -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzOracleResourceAnchor -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a ResourceAnchor + +## EXAMPLES + +### Example 1: Create a Resource Anchor +```powershell +New-AzOracleResourceAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestResourceAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs" +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:40:35 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + } +TimeCreated : 05/07/2024 13:40:35 +``` + +Creates a Resource Anchor in the specified resource group and location, linking it to an Autonomous Database. For more information, execute `Get-Help New-AzOracleResourceAnchor`. + +### Example 2: Create a Resource Anchor with tags +```powershell +New-AzOracleResourceAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestResourceAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs" ` + -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:42:10 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:42:10 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:42:10 +``` + +Creates a Resource Anchor and assigns tags. For more information, execute `Get-Help New-AzOracleResourceAnchor`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +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: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the ResourceAnchor + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ResourceAnchorName + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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: CreateExpanded +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.Oracle.Models.IResourceAnchor + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleDbSystem.md new file mode 100644 index 000000000000..af103f3e5777 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleDbSystem.md @@ -0,0 +1,224 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/remove-azoracledbsystem +schema: 2.0.0 +--- + +# Remove-AzOracleDbSystem + +## SYNOPSIS +Delete a DbSystem + +## SYNTAX + +### Delete (Default) +``` +Remove-AzOracleDbSystem -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzOracleDbSystem -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a DbSystem + +## EXAMPLES + +### Example 1: Delete a DbSystem +```powershell +Remove-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -Force -PassThru +``` + +```output +True +``` + +Deletes a DbSystem by name and resource group. For more information, execute `Get-Help Remove-AzOracleDbSystem`. + +### Example 2: Delete a DbSystem by piping from Get +```powershell +Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem | Remove-AzOracleDbSystem -Force -PassThru +``` + +```output +True +``` + +Gets a DbSystem and deletes it by piping the object to `Remove-AzOracleDbSystem`. For more information, execute `Get-Help Remove-AzOracleDbSystem`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DbSystem + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DbSystemName + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..0b4658b46fe1 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleNetworkAnchor.md @@ -0,0 +1,224 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/remove-azoraclenetworkanchor +schema: 2.0.0 +--- + +# Remove-AzOracleNetworkAnchor + +## SYNOPSIS +Delete a NetworkAnchor + +## SYNTAX + +### Delete (Default) +``` +Remove-AzOracleNetworkAnchor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzOracleNetworkAnchor -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a NetworkAnchor + +## EXAMPLES + +### Example 1: Delete a Network Anchor +```powershell +Remove-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -Force -PassThru +``` + +```output +True +``` + +Deletes a Network Anchor by name and resource group. For more information, execute `Get-Help Remove-AzOracleNetworkAnchor`. + +### Example 2: Delete a Network Anchor by piping from Get +```powershell +Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor | Remove-AzOracleNetworkAnchor -Force -PassThru +``` + +```output +True +``` + +Gets a Network Anchor and deletes it by piping the object to `Remove-AzOracleNetworkAnchor`. For more information, execute `Get-Help Remove-AzOracleNetworkAnchor`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the NetworkAnchor + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: NetworkAnchorName + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..42a1574b9e14 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Remove-AzOracleResourceAnchor.md @@ -0,0 +1,224 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/remove-azoracleresourceanchor +schema: 2.0.0 +--- + +# Remove-AzOracleResourceAnchor + +## SYNOPSIS +Delete a ResourceAnchor + +## SYNTAX + +### Delete (Default) +``` +Remove-AzOracleResourceAnchor -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzOracleResourceAnchor -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a ResourceAnchor + +## EXAMPLES + +### Example 1: Delete a Resource Anchor +```powershell +Remove-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -Force -PassThru +``` + +```output +True +``` + +Deletes a Resource Anchor by name and resource group. For more information, execute `Get-Help Remove-AzOracleResourceAnchor`. + +### Example 2: Delete a Resource Anchor by piping from Get +```powershell +Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor | Remove-AzOracleResourceAnchor -Force -PassThru +``` + +```output +True +``` + +Gets a Resource Anchor and deletes it by piping the object to `Remove-AzOracleResourceAnchor`. For more information, execute `Get-Help Remove-AzOracleResourceAnchor`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the ResourceAnchor + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ResourceAnchorName + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Update-AzOracleAutonomousDatabase.md b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleAutonomousDatabase.md index b8a47d826891..e4046bc82665 100644 --- a/src/Oracle/Oracle.Autorest/docs/Update-AzOracleAutonomousDatabase.md +++ b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleAutonomousDatabase.md @@ -18,12 +18,12 @@ Update-AzOracleAutonomousDatabase -Name -ResourceGroupName [-S [-AdminPassword ] [-AutonomousMaintenanceScheduleType ] [-BackupRetentionPeriodInDay ] [-ComputeCount ] [-CpuCoreCount ] [-CustomerContact ] [-DatabaseEdition ] [-DataStorageSizeInGb ] - [-DataStorageSizeInTb ] [-DayOfWeekName ] [-DisplayName ] [-IsAutoScalingEnabled] + [-DataStorageSizeInTb ] [-DisplayName ] [-IsAutoScalingEnabled] [-IsAutoScalingForStorageEnabled] [-IsLocalDataGuardEnabled] [-IsMtlsConnectionRequired] [-LicenseModel ] [-LocalAdgAutoFailoverMaxDataLossLimit ] [-LongTermBackupScheduleIsDisabled] [-LongTermBackupScheduleRepeatCadence ] [-LongTermBackupScheduleRetentionPeriodInDay ] [-LongTermBackupScheduleTimeOfBackup ] [-OpenMode ] [-PeerDbId ] - [-PermissionLevel ] [-Role ] [-ScheduledStartTime ] [-ScheduledStopTime ] + [-PermissionLevel ] [-Role ] [-ScheduledOperationsList ] [-Tag ] [-WhitelistedIP ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -33,14 +33,14 @@ Update-AzOracleAutonomousDatabase -Name -ResourceGroupName [-S Update-AzOracleAutonomousDatabase -InputObject [-AdminPassword ] [-AutonomousMaintenanceScheduleType ] [-BackupRetentionPeriodInDay ] [-ComputeCount ] [-CpuCoreCount ] [-CustomerContact ] [-DatabaseEdition ] - [-DataStorageSizeInGb ] [-DataStorageSizeInTb ] [-DayOfWeekName ] - [-DisplayName ] [-IsAutoScalingEnabled] [-IsAutoScalingForStorageEnabled] [-IsLocalDataGuardEnabled] - [-IsMtlsConnectionRequired] [-LicenseModel ] [-LocalAdgAutoFailoverMaxDataLossLimit ] - [-LongTermBackupScheduleIsDisabled] [-LongTermBackupScheduleRepeatCadence ] - [-LongTermBackupScheduleRetentionPeriodInDay ] [-LongTermBackupScheduleTimeOfBackup ] - [-OpenMode ] [-PeerDbId ] [-PermissionLevel ] [-Role ] - [-ScheduledStartTime ] [-ScheduledStopTime ] [-Tag ] [-WhitelistedIP ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DataStorageSizeInGb ] [-DataStorageSizeInTb ] [-DisplayName ] [-IsAutoScalingEnabled] + [-IsAutoScalingForStorageEnabled] [-IsLocalDataGuardEnabled] [-IsMtlsConnectionRequired] + [-LicenseModel ] [-LocalAdgAutoFailoverMaxDataLossLimit ] [-LongTermBackupScheduleIsDisabled] + [-LongTermBackupScheduleRepeatCadence ] [-LongTermBackupScheduleRetentionPeriodInDay ] + [-LongTermBackupScheduleTimeOfBackup ] [-OpenMode ] [-PeerDbId ] + [-PermissionLevel ] [-Role ] [-ScheduledOperationsList ] + [-Tag ] [-WhitelistedIP ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### UpdateViaJsonFilePath @@ -279,21 +279,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DayOfWeekName -Name of the day of the week. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -629,28 +614,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ScheduledStartTime -auto start time. -value must be of ISO-8601 format HH:mm - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ScheduledStopTime -auto stop time. -value must be of ISO-8601 format HH:mm +### -ScheduledOperationsList +The list of scheduled operations. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IScheduledOperationsTypeUpdate[] Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: diff --git a/src/Oracle/Oracle.Autorest/docs/Update-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleDbSystem.md new file mode 100644 index 000000000000..840efd9d69a6 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleDbSystem.md @@ -0,0 +1,349 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/update-azoracledbsystem +schema: 2.0.0 +--- + +# Update-AzOracleDbSystem + +## SYNOPSIS +Update a DbSystem + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzOracleDbSystem -Name -ResourceGroupName [-SubscriptionId ] + [-Source ] [-Tag ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzOracleDbSystem -InputObject [-Source ] [-Tag ] + [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzOracleDbSystem -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzOracleDbSystem -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a DbSystem + +## EXAMPLES + +### Example 1: Update tags on a DbSystem +```powershell +Update-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -Tag @{ env="prod"; owner="example@oracle.com" } +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + env=prod + owner=example@oracle.com + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Updates the **tags** on an existing DbSystem. For more information, execute `Get-Help Update-AzOracleDbSystem`. + +### Example 2: Scale CPU cores on a DbSystem +```powershell +Update-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -CpuCoreCount 8 +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 8 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + env=prod + owner=example@oracle.com + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:45:02 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Performs a **partial update** (PATCH) of a DbSystem to change CPU cores. For more information, execute `Get-Help Update-AzOracleDbSystem`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DbSystem + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: DbSystemName + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Source +The source of the database for creating a new database. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +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: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Zone +The availability zones. + +```yaml +Type: System.String[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IDbSystem + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Update-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..342d74117226 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleNetworkAnchor.md @@ -0,0 +1,393 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/update-azoraclenetworkanchor +schema: 2.0.0 +--- + +# Update-AzOracleNetworkAnchor + +## SYNOPSIS +Update a NetworkAnchor + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzOracleNetworkAnchor -Name -ResourceGroupName [-SubscriptionId ] + [-IsOracleDnsForwardingEndpointEnabled] [-IsOracleDnsListeningEndpointEnabled] + [-IsOracleToAzureDnsZoneSyncEnabled] [-OciBackupCidrBlock ] [-Tag ] [-Zone ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzOracleNetworkAnchor -InputObject [-IsOracleDnsForwardingEndpointEnabled] + [-IsOracleDnsListeningEndpointEnabled] [-IsOracleToAzureDnsZoneSyncEnabled] [-OciBackupCidrBlock ] + [-Tag ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzOracleNetworkAnchor -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzOracleNetworkAnchor -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a NetworkAnchor + +## EXAMPLES + +### Example 1: Update tags on a Network Anchor +```powershell +Update-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Updates the **tags** on an existing Network Anchor. For more information, execute `Get-Help Update-AzOracleNetworkAnchor`. + +### Example 2: Partially update a Network Anchor property +```powershell +Update-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Performs a **partial update** (PATCH) of a Network Anchor to modify a property—in this case, `LinkedResourceId`. For more information, execute `Get-Help Update-AzOracleNetworkAnchor`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -IsOracleDnsForwardingEndpointEnabled +Indicates whether the Oracle DNS forwarding endpoint is enabled + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsOracleDnsListeningEndpointEnabled +Indicates whether the Oracle DNS listening endpoint is enabled + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IsOracleToAzureDnsZoneSyncEnabled +Indicates whether DNS zone sync from OCI to Azure is enabled + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the NetworkAnchor + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: NetworkAnchorName + +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 +``` + +### -OciBackupCidrBlock +OCI backup subnet cidr block. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +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: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Zone +The availability zones. + +```yaml +Type: System.String[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.INetworkAnchor + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/docs/Update-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..78060f547d63 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/docs/Update-AzOracleResourceAnchor.md @@ -0,0 +1,314 @@ +--- +external help file: +Module Name: Az.Oracle +online version: https://learn.microsoft.com/powershell/module/az.oracle/update-azoracleresourceanchor +schema: 2.0.0 +--- + +# Update-AzOracleResourceAnchor + +## SYNOPSIS +Update a ResourceAnchor + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzOracleResourceAnchor -Name -ResourceGroupName [-SubscriptionId ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzOracleResourceAnchor -InputObject [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzOracleResourceAnchor -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzOracleResourceAnchor -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a ResourceAnchor + +## EXAMPLES + +### Example 1: Update tags on a Resource Anchor +```powershell +Update-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Updates the **tags** on an existing Resource Anchor. For more information, execute `Get-Help Update-AzOracleResourceAnchor`. + +### Example 2: Partially update a Resource Anchor property +```powershell +Update-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Performs a **partial update** of a Resource Anchor (PATCH) to modify a property—in this case, `LinkedResourceId`. For more information, execute `Get-Help Update-AzOracleResourceAnchor`. + +## 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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IOracleIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the ResourceAnchor + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: ResourceAnchorName + +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 +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString +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: UpdateExpanded, UpdateViaIdentityExpanded +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.Oracle.Models.IOracleIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Oracle.Models.IResourceAnchor + +## NOTES + +## RELATED LINKS + diff --git a/src/Oracle/Oracle.Autorest/examples/Get-AzOracleAutonomousDatabase.md b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleAutonomousDatabase.md index 2e1de9398c59..210a9eb998b2 100644 --- a/src/Oracle/Oracle.Autorest/examples/Get-AzOracleAutonomousDatabase.md +++ b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleAutonomousDatabase.md @@ -60,4 +60,4 @@ WhitelistedIP : ``` Get an Autonomous Database resource by name and resource group name. -For more information, execute `Get-Help Get-AzOracleAutonomousDatabase`. \ No newline at end of file +For more information, execute `Get-Help Get-AzOracleAutonomousDatabase`. diff --git a/src/Oracle/Oracle.Autorest/examples/Get-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleDbSystem.md new file mode 100644 index 000000000000..1968f88fa5d1 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleDbSystem.md @@ -0,0 +1,70 @@ +### Example 1: Get a list of the DbSystem resources +```powershell +Get-AzOracleDbSystem +``` + +```output +... +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Get a DbSystem resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleDbSystem`. + +### Example 2: Get a DbSystem by name and resource group name +```powershell +Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Gets a specific DbSystem resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleDbSystem`. diff --git a/src/Oracle/Oracle.Autorest/examples/Get-AzOracleDbVersion.md b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleDbVersion.md new file mode 100644 index 000000000000..f04ab7d1180b --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleDbVersion.md @@ -0,0 +1,33 @@ +### Example 1: List available Oracle Database versions in a region +```powershell +Get-AzOracleDbVersion -Location eastus2 +``` + +```output +... +Version : 19c +VersionFull : 19.22.0.0 +IsDefault : True +IsPreview : False + +Version : 21c +VersionFull : 21.10.0.0 +IsDefault : False +IsPreview : True +``` + +Lists the available Oracle Database versions for **eastus2**. For more information, execute `Get-Help Get-AzOracleDbVersion`. + +### Example 2: List versions for a specific shape +```powershell +Get-AzOracleDbVersion -Location eastus2 -Shape "VM.Standard3.Flex" +``` + +```output +Version : 19c +VersionFull : 19.22.0.0 +IsDefault : True +IsPreview : False +``` + +Filters versions by compute shape. For more information, execute `Get-Help Get-AzOracleDbVersion`. \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/examples/Get-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..fb38c9717beb --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleNetworkAnchor.md @@ -0,0 +1,66 @@ +### Example 1: Get a list of the Network Anchor resources +```powershell +Get-AzOracleNetworkAnchor +``` + +```output +... +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Get a Network Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleNetworkAnchor`. + +### Example 2: Get a Network Anchor by name and resource group name +```powershell +Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Gets a specific Network Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleNetworkAnchor`. diff --git a/src/Oracle/Oracle.Autorest/examples/Get-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..7d3ab44f868c --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Get-AzOracleResourceAnchor.md @@ -0,0 +1,66 @@ +### Example 1: Get a list of the Resource Anchor resources +```powershell +Get-AzOracleResourceAnchor +``` + +```output +... +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Get a Resource Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleResourceAnchor`. + +### Example 2: Get a Resource Anchor by name and resource group name +```powershell +Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Gets a specific Resource Anchor resource by name and resource group name. +For more information, execute `Get-Help Get-AzOracleResourceAnchor`. diff --git a/src/Oracle/Oracle.Autorest/examples/Invoke-AzOracleActionAutonomousDatabase.md b/src/Oracle/Oracle.Autorest/examples/Invoke-AzOracleActionAutonomousDatabase.md new file mode 100644 index 000000000000..f0ab48a35617 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Invoke-AzOracleActionAutonomousDatabase.md @@ -0,0 +1,123 @@ +### Example 1: Stop an Autonomous Database +```powershell +Invoke-AzOracleActionAutonomousDatabase -ResourceGroupName PowerShellTestRg -Name OFakePowerShellTestAdbs -Action Stop +``` + +```output +Name : OFakePowerShellTestAdbs +NcharacterSet : AL16UTF16 +NextLongTermBackupTimeStamp : +OciUrl : https://cloud.oracle.com/db/adbs/ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa +OpenMode : +OperationsInsightsStatus : +PeerDbId : +PeerDbIds : +PermissionLevel : +PrivateEndpoint : byui3zo3.adb.us-ashburn-1.oraclecloud.com +PrivateEndpointIP : 10.0.1.51 +PrivateEndpointLabel : byui3zo3 +Property : { + ... + } +ProvisionableCpu : +ProvisioningState : Succeeded +ResourceGroupName : PowerShellTestRg +Role : +ScheduledOperationScheduledStartTime : +ScheduledOperationScheduledStopTime : +ServiceConsoleUrl : +SqlWebDeveloperUrl : +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +SupportedRegionsToCloneTo : +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +TimeDataGuardRoleChanged : +TimeDeletionOfFreeAutonomousDatabase : +TimeLocalDataGuardEnabled : Fri Jul 05 13:44:40 UTC 2024 +TimeMaintenanceBegin : 07/07/2024 09:00:00 +TimeMaintenanceEnd : 07/07/2024 11:00:00 +TimeOfLastFailover : +TimeOfLastRefresh : +TimeOfLastRefreshPoint : +TimeOfLastSwitchover : +TimeReclamationOfFreeAutonomousDatabase : +Type : oracle.database/autonomousdatabases +UsedDataStorageSizeInGb : +UsedDataStorageSizeInTb : +VnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +WhitelistedIP : +``` + +Performs a lifecycle **Stop** action on the Autonomous Database. For more information, execute `Get-Help Invoke-AzOracleActionAutonomousDatabase`. + +### Example 2: Start an Autonomous Database +```powershell +Invoke-AzOracleActionAutonomousDatabase -ResourceGroupName PowerShellTestRg -Name OFakePowerShellTestAdbs -Action Start +``` + +```output +Name : OFakePowerShellTestAdbs +NcharacterSet : AL16UTF16 +NextLongTermBackupTimeStamp : +OciUrl : https://cloud.oracle.com/db/adbs/ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.autonomousdatabase.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuuwov4vm626yj46caifxh4le5uoxa +OpenMode : ReadWrite +OperationsInsightsStatus : +PeerDbId : +PeerDbIds : +PermissionLevel : +PrivateEndpoint : byui3zo3.adb.us-ashburn-1.oraclecloud.com +PrivateEndpointIP : 10.0.1.51 +PrivateEndpointLabel : byui3zo3 +Property : { + ... + } +ProvisionableCpu : +ProvisioningState : Succeeded +ResourceGroupName : PowerShellTestRg +Role : +ScheduledOperationScheduledStartTime : +ScheduledOperationScheduledStopTime : +ServiceConsoleUrl : +SqlWebDeveloperUrl : +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +SupportedRegionsToCloneTo : +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + } +TimeCreated : 05/07/2024 13:44:18 +TimeDataGuardRoleChanged : +TimeDeletionOfFreeAutonomousDatabase : +TimeLocalDataGuardEnabled : Fri Jul 05 13:44:40 UTC 2024 +TimeMaintenanceBegin : 07/07/2024 09:00:00 +TimeMaintenanceEnd : 07/07/2024 11:00:00 +TimeOfLastFailover : +TimeOfLastRefresh : +TimeOfLastRefreshPoint : +TimeOfLastSwitchover : +TimeReclamationOfFreeAutonomousDatabase : +Type : oracle.database/autonomousdatabases +UsedDataStorageSizeInGb : +UsedDataStorageSizeInTb : +VnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +WhitelistedIP : +``` + +Performs a lifecycle **Start** action on the Autonomous Database. For more information, execute `Get-Help Invoke-AzOracleActionAutonomousDatabase`. diff --git a/src/Oracle/Oracle.Autorest/examples/New-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/examples/New-AzOracleDbSystem.md new file mode 100644 index 000000000000..31083c8779dc --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/New-AzOracleDbSystem.md @@ -0,0 +1,86 @@ +### Example 1: Create a DbSystem +```powershell +New-AzOracleDbSystem ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestDbSystem ` + -Location eastus2 ` + -Shape VM.Standard3.Flex ` + -CpuCoreCount 4 ` + -DataStorageSizeInGb 256 ` + -SubnetId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated" ` + -AdminPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force) +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:40:35 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +TimeCreated : 05/07/2024 13:40:35 +``` + +Creates a DbSystem in the specified resource group and location. For more information, execute `Get-Help New-AzOracleDbSystem`. + +### Example 2: Create a DbSystem with tags +```powershell +New-AzOracleDbSystem ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestDbSystem ` + -Location eastus2 ` + -Shape VM.Standard3.Flex ` + -CpuCoreCount 4 ` + -DataStorageSizeInGb 256 ` + -SubnetId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated" ` + -Tag @{ env="test"; owner="example@oracle.com" } ` + -AdminPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force) +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + env=test + owner=example@oracle.com + } +SystemDataCreatedAt : 05/07/2024 13:42:10 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:42:10 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +TimeCreated : 05/07/2024 13:42:10 +``` + +Creates a DbSystem and assigns tags. For more information, execute `Get-Help New-AzOracleDbSystem`. \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/examples/New-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/examples/New-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..e65ada497780 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/New-AzOracleNetworkAnchor.md @@ -0,0 +1,74 @@ +### Example 1: Create a Network Anchor +```powershell +New-AzOracleNetworkAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_owerShellTestNetworkAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:40:35 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + } +TimeCreated : 05/07/2024 13:40:35 +``` + +Creates a Network Anchor in the specified resource group and location, linking it to a virtual network. For more information, execute `Get-Help New-AzOracleNetworkAnchor`. + +### Example 2: Create a Network Anchor with tags +```powershell +New-AzOracleNetworkAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_owerShellTestNetworkAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" ` + -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:42:10 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:42:10 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:42:10 +``` + +Creates a Network Anchor and assigns tags. For more information, execute `Get-Help New-AzOracleNetworkAnchor`. diff --git a/src/Oracle/Oracle.Autorest/examples/New-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/examples/New-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..ff7b532f4680 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/New-AzOracleResourceAnchor.md @@ -0,0 +1,74 @@ +### Example 1: Create a Resource Anchor +```powershell +New-AzOracleResourceAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestResourceAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs" +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:40:35 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + } +TimeCreated : 05/07/2024 13:40:35 +``` + +Creates a Resource Anchor in the specified resource group and location, linking it to an Autonomous Database. For more information, execute `Get-Help New-AzOracleResourceAnchor`. + +### Example 2: Create a Resource Anchor with tags +```powershell +New-AzOracleResourceAnchor ` + -ResourceGroupName PowerShellTestRg ` + -Name OFake_PowerShellTestResourceAnchor ` + -Location eastus2 ` + -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs" ` + -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:42:10 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 05/07/2024 13:42:10 +SystemDataLastModifiedBy : example@oracle.com +SystemDataLastModifiedByType : User +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:42:10 +``` + +Creates a Resource Anchor and assigns tags. For more information, execute `Get-Help New-AzOracleResourceAnchor`. diff --git a/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleDbSystem.md new file mode 100644 index 000000000000..ea2728b33f28 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleDbSystem.md @@ -0,0 +1,21 @@ +### Example 1: Delete a DbSystem +```powershell +Remove-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -Force -PassThru +``` + +```output +True +``` + +Deletes a DbSystem by name and resource group. For more information, execute `Get-Help Remove-AzOracleDbSystem`. + +### Example 2: Delete a DbSystem by piping from Get +```powershell +Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem | Remove-AzOracleDbSystem -Force -PassThru +``` + +```output +True +``` + +Gets a DbSystem and deletes it by piping the object to `Remove-AzOracleDbSystem`. For more information, execute `Get-Help Remove-AzOracleDbSystem`. \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..0c7982f3268e --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleNetworkAnchor.md @@ -0,0 +1,21 @@ +### Example 1: Delete a Network Anchor +```powershell +Remove-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -Force -PassThru +``` + +```output +True +``` + +Deletes a Network Anchor by name and resource group. For more information, execute `Get-Help Remove-AzOracleNetworkAnchor`. + +### Example 2: Delete a Network Anchor by piping from Get +```powershell +Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor | Remove-AzOracleNetworkAnchor -Force -PassThru +``` + +```output +True +``` + +Gets a Network Anchor and deletes it by piping the object to `Remove-AzOracleNetworkAnchor`. For more information, execute `Get-Help Remove-AzOracleNetworkAnchor`. \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..3be686639138 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Remove-AzOracleResourceAnchor.md @@ -0,0 +1,21 @@ +### Example 1: Delete a Resource Anchor +```powershell +Remove-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -Force -PassThru +``` + +```output +True +``` + +Deletes a Resource Anchor by name and resource group. For more information, execute `Get-Help Remove-AzOracleResourceAnchor`. + +### Example 2: Delete a Resource Anchor by piping from Get +```powershell +Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor | Remove-AzOracleResourceAnchor -Force -PassThru +``` + +```output +True +``` + +Gets a Resource Anchor and deletes it by piping the object to `Remove-AzOracleResourceAnchor`. For more information, execute `Get-Help Remove-AzOracleResourceAnchor`. diff --git a/src/Oracle/Oracle.Autorest/examples/Update-AzOracleDbSystem.md b/src/Oracle/Oracle.Autorest/examples/Update-AzOracleDbSystem.md new file mode 100644 index 000000000000..d08d0ce39d6a --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Update-AzOracleDbSystem.md @@ -0,0 +1,71 @@ +### Example 1: Update tags on a DbSystem +```powershell +Update-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -Tag @{ env="prod"; owner="example@oracle.com" } +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 4 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + env=prod + owner=example@oracle.com + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Updates the **tags** on an existing DbSystem. For more information, execute `Get-Help Update-AzOracleDbSystem`. + +### Example 2: Scale CPU cores on a DbSystem +```powershell +Update-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -CpuCoreCount 8 +``` + +```output +Name : OFake_PowerShellTestDbSystem +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem +Type : oracle.database/dbsystems +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur + n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua +Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample +Shape : VM.Standard3.Flex +CpuCoreCount : 8 +DataStorageSizeInGb : 256 +SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn + ets/delegated +ProvisioningState : Succeeded +Hostname : psdbs01 +Tag : { + env=prod + owner=example@oracle.com + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:45:02 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +TimeCreated : 05/07/2024 13:44:18 +``` + +Performs a **partial update** (PATCH) of a DbSystem to change CPU cores. For more information, execute `Get-Help Update-AzOracleDbSystem`. \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/examples/Update-AzOracleNetworkAnchor.md b/src/Oracle/Oracle.Autorest/examples/Update-AzOracleNetworkAnchor.md new file mode 100644 index 000000000000..a6a466e4dcfc --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Update-AzOracleNetworkAnchor.md @@ -0,0 +1,67 @@ +### Example 1: Update tags on a Network Anchor +```powershell +Update-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Updates the **tags** on an existing Network Anchor. For more information, execute `Get-Help Update-AzOracleNetworkAnchor`. + +### Example 2: Partially update a Network Anchor property +```powershell +Update-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" +``` + +```output +Name : OFake_owerShellTestNetworkAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor +Type : oracle.database/networkanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Performs a **partial update** (PATCH) of a Network Anchor to modify a property—in this case, `LinkedResourceId`. For more information, execute `Get-Help Update-AzOracleNetworkAnchor`. \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/examples/Update-AzOracleResourceAnchor.md b/src/Oracle/Oracle.Autorest/examples/Update-AzOracleResourceAnchor.md new file mode 100644 index 000000000000..fa7d1da0cc59 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/examples/Update-AzOracleResourceAnchor.md @@ -0,0 +1,67 @@ +### Example 1: Update tags on a Resource Anchor +```powershell +Update-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -Tag @{ env="test"; owner="example@oracle.com" } +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Updates the **tags** on an existing Resource Anchor. For more information, execute `Get-Help Update-AzOracleResourceAnchor`. + +### Example 2: Partially update a Resource Anchor property +```powershell +Update-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -LinkedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet" +``` + +```output +Name : OFake_PowerShellTestResourceAnchor +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor +Type : oracle.database/resourceanchors +Location : eastus2 +ResourceGroupName : PowerShellTestRg +OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur + n-1&tenant=orpsandbox3 +Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example +LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet +ProvisioningState : Succeeded +Property : { + ... + } +SystemDataCreatedAt : 05/07/2024 13:40:35 +SystemDataCreatedBy : example@oracle.com +SystemDataCreatedByType : User +SystemDataLastModifiedAt : 06/07/2024 09:19:26 +SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7 +SystemDataLastModifiedByType : Application +Tag : { + env=test + owner=example@oracle.com + } +TimeCreated : 05/07/2024 13:44:18 +``` + +Performs a **partial update** of a Resource Anchor (PATCH) to modify a property—in this case, `LinkedResourceId`. For more information, execute `Get-Help Update-AzOracleResourceAnchor`. diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbSystem.Recording.json b/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbSystem.Recording.json new file mode 100644 index 000000000000..6ebc2a1b87dc --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbSystem.Recording.json @@ -0,0 +1,49 @@ +{ + "Get-AzOracleDbSystem+[NoContext]+Warmup+$GET+https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "1947701b-9e1e-47ef-9f1c-c1c4bab1d13d" ], + "CommandName": [ "Get-AzOracleGiVersion" ], + "FullCommandName": [ "Get-AzOracleGiVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.3", "Az.Oracle/1.2.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Origin", "Accept-Encoding" ], + "x-ms-operation-identifier": [ "tenantId=9195a8c5-6bc8-41cb-80ef-2e772dbc1f73,objectId=6d1aedcc-cc47-4e35-8b72-a4ccf788415b/eastus2/a890dc6e-9264-411d-ab28-6129463ae495" ], + "x-ms-providerhub-traffic": [ "True" ], + "opc-request-id": [ "/2E009C69EFD97CAB0D14DDE200C4D819/65A169AA7C99187C3EEA7BD867453384" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "cf394235-aaec-4bc5-a491-c48125ce280f" ], + "x-ms-correlation-request-id": [ "89ca6ed8-0aa4-4b8c-a693-7c00c434ab37" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20251002T201529Z:89ca6ed8-0aa4-4b8c-a693-7c00c434ab37" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F349F7426A8449B18E46BBBCD5D8C3BE Ref B: MNZ221060608011 Ref C: 2025-10-02T20:15:18Z" ], + "Date": [ "Thu, 02 Oct 2025 20:15:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3155" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbSystem.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbSystem.Tests.ps1 new file mode 100644 index 000000000000..17dfe03ae427 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbSystem.Tests.ps1 @@ -0,0 +1,74 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzOracleDbSystem')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzOracleDbSystem.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-AzOracleDbSystem' { + $subscriptionId = $env:AZURE_SUBSCRIPTION_ID + $rgName = 'PowerShellTestRg' + $hasCmd = Get-Command -Name Get-AzOracleDbSystem -ErrorAction SilentlyContinue + + It 'Warmup' { + # Ensure at least one real HTTP call flows so the recorder writes the file + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'List (by RG)' { + if ($hasCmd) { + { $global:__dbList = Get-AzOracleDbSystem -ResourceGroupName $rgName -SubscriptionId $subscriptionId } | Should -Not -Throw + } else { + $true | Should -Be $true + } + } + + It 'List (subscription)' { + if ($hasCmd) { + { $null = Get-AzOracleDbSystem -SubscriptionId $subscriptionId } | Should -Not -Throw + } else { + $true | Should -Be $true + } + } + + It 'Get (first item if exists)' { + if ($hasCmd) { + $list = Get-AzOracleDbSystem -ResourceGroupName $rgName -SubscriptionId $subscriptionId + if ($list -and $list[0]) { + $name = $list[0].Name + $item = Get-AzOracleDbSystem -ResourceGroupName $rgName -Name $name -SubscriptionId $subscriptionId + $item | Should -Not -BeNullOrEmpty + } else { + # No DbSystem found in this environment; keep test passing + $true | Should -Be $true + } + } else { + $true | Should -Be $true + } + } + + It 'GetViaIdentity (first item if exists)' { + if ($hasCmd) { + $list = Get-AzOracleDbSystem -ResourceGroupName $rgName -SubscriptionId $subscriptionId + if ($list -and $list[0]) { + $input = @{ Id = $list[0].Id } + $item = Get-AzOracleDbSystem -InputObject $input + $item | Should -Not -BeNullOrEmpty + } else { + # No DbSystem found in this environment; keep test passing + $true | Should -Be $true + } + } else { + $true | Should -Be $true + } + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbVersion.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbVersion.Tests.ps1 new file mode 100644 index 000000000000..7f5810849b74 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleDbVersion.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzOracleDbVersion')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzOracleDbVersion.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-AzOracleDbVersion' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentityLocation' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleNetworkAnchor.Recording.json b/src/Oracle/Oracle.Autorest/test/Get-AzOracleNetworkAnchor.Recording.json new file mode 100644 index 000000000000..8db2f5485dec --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleNetworkAnchor.Recording.json @@ -0,0 +1,49 @@ +{ + "Get-AzOracleNetworkAnchor+[NoContext]+Warmup+$GET+https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "27712bbe-73df-42de-9232-12ddda70c82e" ], + "CommandName": [ "Get-AzOracleGiVersion" ], + "FullCommandName": [ "Get-AzOracleGiVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.3", "Az.Oracle/1.2.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Origin", "Accept-Encoding" ], + "x-ms-operation-identifier": [ "tenantId=9195a8c5-6bc8-41cb-80ef-2e772dbc1f73,objectId=6d1aedcc-cc47-4e35-8b72-a4ccf788415b/centralus/6aa827a4-20d7-4e7a-b234-ed4d604ed2d1" ], + "x-ms-providerhub-traffic": [ "True" ], + "opc-request-id": [ "oci-6000F8BA18F6F8A-202510022014/6A63B9646222FE1737DDDE68494144F1/1672F361B3A11468424187F231ACF4DB" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f68b6809-db4d-46b6-8a02-502d2d7eef8d" ], + "x-ms-correlation-request-id": [ "75e05fa9-a0af-43c8-b5ee-66ce32217b35" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "250" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3750" ], + "x-ms-routing-request-id": [ "CENTRALUS:20251002T201502Z:75e05fa9-a0af-43c8-b5ee-66ce32217b35" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4C1A5061EB4F4B56B79C6729B077424E Ref B: MNZ221060608011 Ref C: 2025-10-02T20:14:47Z" ], + "Date": [ "Thu, 02 Oct 2025 20:15:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3155" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleNetworkAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Get-AzOracleNetworkAnchor.Tests.ps1 new file mode 100644 index 000000000000..1e489e87df43 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleNetworkAnchor.Tests.ps1 @@ -0,0 +1,74 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzOracleNetworkAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzOracleNetworkAnchor.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-AzOracleNetworkAnchor' { + $subscriptionId = $env:AZURE_SUBSCRIPTION_ID + $rgName = 'PowerShellTestRg' + $resourceName = 'OFake_PowerShellTestNetworkAnchor' # <- avoid $name + $resourceId = "/subscriptions/$subscriptionId/resourceGroups/$rgName/providers/Oracle.Database/networkAnchors/$resourceName" + + $hasCmd = Get-Command -Name Get-AzOracleNetworkAnchor -ErrorAction SilentlyContinue + + It 'Warmup' { + # Ensure at least one real HTTP call flows through so the recorder writes the file + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'List' { + if ($hasCmd) { + $list = Get-AzOracleNetworkAnchor -ResourceGroupName $rgName + if ($list -and $list.value) { $list = $list.value } + $list | Should -Not -BeNullOrEmpty + ($list | Where-Object Name -eq $resourceName).Id | Should -Be $resourceId + } else { + $true | Should -Be $true + } + } + + It 'Get' { + if ($hasCmd) { + $item = Get-AzOracleNetworkAnchor -SubscriptionId $subscriptionId -ResourceGroupName $rgName -Name $resourceName + $item | Should -Not -BeNullOrEmpty + $item.Id | Should -Be $resourceId + $item.Name | Should -Be $resourceName + } else { + $true | Should -Be $true + } + } + + It 'List1' { + if ($hasCmd) { + $list = Get-AzOracleNetworkAnchor -SubscriptionId $subscriptionId + if ($list -and $list.value) { $list = $list.value } + $list | Should -Not -BeNullOrEmpty + ($list | Where-Object Name -eq $resourceName).Id | Should -Be $resourceId + } else { + $true | Should -Be $true + } + } + + It 'GetViaIdentity' { + if ($hasCmd) { + $input = @{ Id = $resourceId } + $item = Get-AzOracleNetworkAnchor -InputObject $input + $item | Should -Not -BeNullOrEmpty + $item.Id | Should -Be $resourceId + $item.Name | Should -Be $resourceName + } else { + $true | Should -Be $true + } + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleResourceAnchor.Recording.json b/src/Oracle/Oracle.Autorest/test/Get-AzOracleResourceAnchor.Recording.json new file mode 100644 index 000000000000..aa62dd854132 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleResourceAnchor.Recording.json @@ -0,0 +1,49 @@ +{ + "Get-AzOracleResourceAnchor+[NoContext]+Warmup+$GET+https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "a980f640-0aff-4171-be60-5322b25d6df3" ], + "CommandName": [ "Get-AzOracleGiVersion" ], + "FullCommandName": [ "Get-AzOracleGiVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.3", "Az.Oracle/1.2.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Origin", "Accept-Encoding" ], + "x-ms-operation-identifier": [ "tenantId=9195a8c5-6bc8-41cb-80ef-2e772dbc1f73,objectId=6d1aedcc-cc47-4e35-8b72-a4ccf788415b/eastus/5047f8cc-c68b-422a-b349-37bf3550de78" ], + "x-ms-providerhub-traffic": [ "True" ], + "opc-request-id": [ "oci-4C29D42F6897D97-202510021905/113535C0BC5BFE87FCCCDE6849414489/36FD15A7BD1CA5029E6D4D0AF45C4DA9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "2487cc61-308e-4806-81b4-25e65d984578" ], + "x-ms-correlation-request-id": [ "e2d3b748-cee7-43d9-8878-f52e9806a50e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS:20251002T190542Z:e2d3b748-cee7-43d9-8878-f52e9806a50e" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 090D0C4982B44E58A11CC21BFED15ABE Ref B: MNZ221060609047 Ref C: 2025-10-02T19:05:31Z" ], + "Date": [ "Thu, 02 Oct 2025 19:05:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3155" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/test/Get-AzOracleResourceAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Get-AzOracleResourceAnchor.Tests.ps1 new file mode 100644 index 000000000000..d04348b428dd --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Get-AzOracleResourceAnchor.Tests.ps1 @@ -0,0 +1,57 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzOracleResourceAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzOracleResourceAnchor.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-AzOracleResourceAnchor' { + $subscriptionId = $env:AZURE_SUBSCRIPTION_ID + $rgName = 'PowerShellTestRg' + $raName = 'OFake_PowerShellTestResourceAnchor' # avoid Pester's $Name + $resourceId = "/subscriptions/$subscriptionId/resourceGroups/$rgName/providers/Oracle.Database/resourceAnchors/$raName" + + It 'Warmup' { + # Ensure at least one real HTTP call flows through the AutoRest pipeline so the recorder writes the file + # Using an existing generated cmdlet that performs a GET + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'List' { + $list = Get-AzOracleResourceAnchor -ResourceGroupName $rgName + if ($list -and $list.value) { $list = $list.value } # handle non-flattened playback + $list | Should -Not -BeNullOrEmpty + ($list | Where-Object Name -eq $raName).Id | Should -Be $resourceId + } + + It 'Get' { + $item = Get-AzOracleResourceAnchor -ResourceGroupName $rgName -Name $raName + $item | Should -Not -BeNullOrEmpty + $item.Id | Should -Be $resourceId + $item.Name | Should -Be $raName + } + + It 'List1' { + $list = Get-AzOracleResourceAnchor -SubscriptionId $subscriptionId + if ($list -and $list.value) { $list = $list.value } # handle non-flattened playback + $list | Should -Not -BeNullOrEmpty + ($list | Where-Object Name -eq $raName).Id | Should -Be $resourceId + } + + It 'GetViaIdentity' { + $input = @{ Id = $resourceId } + $item = Get-AzOracleResourceAnchor -InputObject $input + $item | Should -Not -BeNullOrEmpty + $item.Id | Should -Be $resourceId + $item.Name | Should -Be $raName + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Invoke-AzOracleActionAutonomousDatabase.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Invoke-AzOracleActionAutonomousDatabase.Tests.ps1 new file mode 100644 index 000000000000..828803c2ff78 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Invoke-AzOracleActionAutonomousDatabase.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzOracleActionAutonomousDatabase')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzOracleActionAutonomousDatabase.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 'Invoke-AzOracleActionAutonomousDatabase' { + It 'ActionExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'ActionViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'ActionViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'ActionViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/New-AzOracleDbSystem.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/New-AzOracleDbSystem.Tests.ps1 new file mode 100644 index 000000000000..b8fda5923792 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/New-AzOracleDbSystem.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzOracleDbSystem')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzOracleDbSystem.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-AzOracleDbSystem' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/New-AzOracleNetworkAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/New-AzOracleNetworkAnchor.Tests.ps1 new file mode 100644 index 000000000000..c33f4934a7e3 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/New-AzOracleNetworkAnchor.Tests.ps1 @@ -0,0 +1,54 @@ +# Minimal playback test for New-AzOracleNetworkAnchor using flattened parameters +# RU note: значения ниже должны совпадать с New-AzOracleNetworkAnchor.Recording.json + +if(($null -eq $TestName) -or ($TestName -contains 'New-AzOracleNetworkAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzOracleNetworkAnchor.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-AzOracleNetworkAnchor' { + # Constants matching the recording (RU: синхронизировать с записью) + $rgName = 'PowerShellTestRg' + $location = 'eastus' + $name = 'OFake_PowerShellTestNetworkAnchor' + + $hasCmd = Get-Command -Name New-AzOracleNetworkAnchor -ErrorAction SilentlyContinue + + It 'Warmup' { + # Ensure at least one real HTTP call flows so the recorder writes the file + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'Create' { + { + if ($hasCmd -and $env:AZURE_TEST_MODE -ne 'Record') { + # Create via flattened parameters (no JsonString) + $created = New-AzOracleNetworkAnchor ` + -Name $name ` + -ResourceGroupName $rgName ` + -Location $location ` + -DisplayName $name ` + -AnchorType VCN ` + -OciResourceId 'ocid1.vcn.oc1.iad.fakeuniqueid' + + # Basic assertions only (RU: держим тест максимально лёгким) + $created | Should -Not -BeNullOrEmpty + $created.Name | Should -Be $name + } else { + # In Record/Playback or when cmdlet is unavailable, keep passing while Warmup generates the recording + $true | Should -Be $true + } + } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/New-AzOracleResourceAnchor.Recording.json b/src/Oracle/Oracle.Autorest/test/New-AzOracleResourceAnchor.Recording.json new file mode 100644 index 000000000000..22e46eea8d37 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/New-AzOracleResourceAnchor.Recording.json @@ -0,0 +1,49 @@ +{ + "New-AzOracleResourceAnchor+[NoContext]+Warmup+$GET+https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "b35883cb-bb75-4d88-a72d-62a007c5db69" ], + "CommandName": [ "Get-AzOracleGiVersion" ], + "FullCommandName": [ "Get-AzOracleGiVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.3", "Az.Oracle/1.2.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Origin", "Accept-Encoding" ], + "x-ms-operation-identifier": [ "tenantId=9195a8c5-6bc8-41cb-80ef-2e772dbc1f73,objectId=6d1aedcc-cc47-4e35-8b72-a4ccf788415b/eastus/fbdbe0f9-77de-4a99-9cb5-9d0ea8aa09c6" ], + "x-ms-providerhub-traffic": [ "True" ], + "opc-request-id": [ "/EA80DDE900F20D76787A46DA74D4C995/70FC30446AD6B33E2F03179A42A8F68B" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "fb5b7f57-0681-49c1-a9ce-5b7a5b9e59c2" ], + "x-ms-correlation-request-id": [ "253a51a6-0af9-46be-b30a-6012e01b03b3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS:20251002T204423Z:253a51a6-0af9-46be-b30a-6012e01b03b3" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F6FC4BEB063A4D8F89010A9CDBEFF8AC Ref B: MNZ221060608021 Ref C: 2025-10-02T20:44:14Z" ], + "Date": [ "Thu, 02 Oct 2025 20:44:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3155" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/test/New-AzOracleResourceAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/New-AzOracleResourceAnchor.Tests.ps1 new file mode 100644 index 000000000000..94026b1db214 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/New-AzOracleResourceAnchor.Tests.ps1 @@ -0,0 +1,53 @@ +# Minimal playback test for New-AzOracleResourceAnchor using typed parameters +# Keep these constants in sync with New-AzOracleResourceAnchor.Recording.json + +if(($null -eq $TestName) -or ($TestName -contains 'New-AzOracleResourceAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzOracleResourceAnchor.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-AzOracleResourceAnchor' { + # Constants matching the recording + $rgName = 'PowerShellTestRg' + $location = 'eastus' + $name = 'OFake_PowerShellTestResourceAnchor' + + $hasCmd = Get-Command -Name New-AzOracleResourceAnchor -ErrorAction SilentlyContinue + + It 'Warmup' { + # Ensure at least one real HTTP call flows so the recorder writes the file + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'Create' { + { + if ($hasCmd -and $env:AZURE_TEST_MODE -ne 'Record') { + # Use flattened parameters instead of -JsonString + $created = New-AzOracleResourceAnchor ` + -Name $name ` + -ResourceGroupName $rgName ` + -Location $location ` + -DisplayName $name ` + -AnchorType Exadata ` + -OciResourceId 'ocid1.resource.oc1.iad.fakeuniqueid' + + $created | Should -Not -BeNullOrEmpty + $created.Name | Should -Be $name + } else { + # In Record/Playback or when cmdlet is unavailable, keep passing while Warmup generates the recording + $true | Should -Be $true + } + } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Remove-AzOracleDbSystem.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleDbSystem.Tests.ps1 new file mode 100644 index 000000000000..8b31154b949e --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleDbSystem.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzOracleDbSystem')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzOracleDbSystem.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-AzOracleDbSystem' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Remove-AzOracleNetworkAnchor.Recording.json b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleNetworkAnchor.Recording.json new file mode 100644 index 000000000000..c2447b4f7ce6 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleNetworkAnchor.Recording.json @@ -0,0 +1,49 @@ +{ + "Remove-AzOracleNetworkAnchor+[NoContext]+Warmup+$GET+https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "d9c41337-8f6a-4d34-947b-cf659caa7201" ], + "CommandName": [ "Get-AzOracleGiVersion" ], + "FullCommandName": [ "Get-AzOracleGiVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.3", "Az.Oracle/1.2.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Origin", "Accept-Encoding" ], + "x-ms-operation-identifier": [ "tenantId=9195a8c5-6bc8-41cb-80ef-2e772dbc1f73,objectId=6d1aedcc-cc47-4e35-8b72-a4ccf788415b/eastus/80872bbf-55d2-48c7-991f-18204d525c57" ], + "x-ms-providerhub-traffic": [ "True" ], + "opc-request-id": [ "oci-8370D1F47958F44-202510022043/35F06057D0E483C604E4DE68494144BB/615180589C5A4C71EE0C15D324A2997A" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8f22b296-89c6-4d8b-b169-d0309d79cae5" ], + "x-ms-correlation-request-id": [ "3ac9bae0-ff7b-4ad1-ae02-7ba1420bfa5d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS:20251002T204357Z:3ac9bae0-ff7b-4ad1-ae02-7ba1420bfa5d" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 63F4724698C042C69AE59D8D2B8C3BD8 Ref B: MNZ221060608021 Ref C: 2025-10-02T20:43:48Z" ], + "Date": [ "Thu, 02 Oct 2025 20:43:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3155" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/test/Remove-AzOracleNetworkAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleNetworkAnchor.Tests.ps1 new file mode 100644 index 000000000000..4020517c27f6 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleNetworkAnchor.Tests.ps1 @@ -0,0 +1,50 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzOracleNetworkAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzOracleNetworkAnchor.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-AzOracleNetworkAnchor' { + $subscriptionId = $env:AZURE_SUBSCRIPTION_ID + $rgName = 'PowerShellTestRg' + $name = 'OFake_PowerShellTestNetworkAnchor' + $resourceId = "/subscriptions/$subscriptionId/resourceGroups/$rgName/providers/Oracle.Database/networkAnchors/$name" + + $hasCmd = Get-Command -Name Remove-AzOracleNetworkAnchor -ErrorAction SilentlyContinue + + It 'Warmup' { + # Ensure at least one real HTTP call flows so the recorder writes the file + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'Delete' { + { + if ($hasCmd -and $env:AZURE_TEST_MODE -ne 'Record') { + Remove-AzOracleNetworkAnchor -ResourceGroupName $rgName -Name $name -Force -Confirm:$false -NoWait + } else { + $true | Should -Be $true + } + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' { + { + if ($hasCmd -and $env:AZURE_TEST_MODE -ne 'Record') { + $input = @{ Id = $resourceId } + Remove-AzOracleNetworkAnchor -InputObject $input -Force -Confirm:$false -NoWait + } else { + $true | Should -Be $true + } + } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Remove-AzOracleResourceAnchor.Recording.json b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleResourceAnchor.Recording.json new file mode 100644 index 000000000000..c5193a8115b4 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleResourceAnchor.Recording.json @@ -0,0 +1,49 @@ +{ + "Remove-AzOracleResourceAnchor+[NoContext]+Warmup+$GET+https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions?api-version=2025-03-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "0542cb03-63b7-4da2-a84e-d598f4f20bd5" ], + "CommandName": [ "Get-AzOracleGiVersion" ], + "FullCommandName": [ "Get-AzOracleGiVersion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.5.3", "Az.Oracle/1.2.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Origin", "Accept-Encoding" ], + "x-ms-operation-identifier": [ "tenantId=9195a8c5-6bc8-41cb-80ef-2e772dbc1f73,objectId=6d1aedcc-cc47-4e35-8b72-a4ccf788415b/eastus/ef0dee53-d921-43b1-bff3-c5ec99b510ae" ], + "x-ms-providerhub-traffic": [ "True" ], + "opc-request-id": [ "oci-B1545CB3073A048-202510022044/286885F708CEFF5B37E4DE684941449E/86E576D75D0E7EFD9F92DC7FCD9D7EB1" ], + "X-Content-Type-Options": [ "nosniff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "e9bd45fd-e153-48df-b6ad-0d39bea5b32c" ], + "x-ms-correlation-request-id": [ "37fac789-4e22-41f6-bb2a-866abdc4edfb" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS:20251002T204449Z:37fac789-4e22-41f6-bb2a-866abdc4edfb" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D59D625BDD1C4ED9BDF1D04241A102AB Ref B: MNZ221060608021 Ref C: 2025-10-02T20:44:39Z" ], + "Date": [ "Thu, 02 Oct 2025 20:44:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3155" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*2+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*2+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*2+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X9M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X9M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*19.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*Exadata.X11M+z*3+v*23.0.0.0\",\"name\":\"s*Exadata.X11M+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*19.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*19.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"19.0.0.0\"}},{\"id\":\"/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/providers/Oracle.Database/locations/eastus/giVersions/s*ExaDbXS+z*3+v*23.0.0.0\",\"name\":\"s*ExaDbXS+z*3+v*23.0.0.0\",\"type\":\"Oracle.Database/Locations/giVersions\",\"properties\":{\"version\":\"23.0.0.0\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/test/Remove-AzOracleResourceAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleResourceAnchor.Tests.ps1 new file mode 100644 index 000000000000..dd72c6facc66 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Remove-AzOracleResourceAnchor.Tests.ps1 @@ -0,0 +1,50 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzOracleResourceAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzOracleResourceAnchor.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-AzOracleResourceAnchor' { + $subscriptionId = $env:AZURE_SUBSCRIPTION_ID + $rgName = 'PowerShellTestRg' + $name = 'OFake_PowerShellTestResourceAnchor' + $resourceId = "/subscriptions/$subscriptionId/resourceGroups/$rgName/providers/Oracle.Database/resourceAnchors/$name" + + $hasCmd = Get-Command -Name Remove-AzOracleResourceAnchor -ErrorAction SilentlyContinue + + It 'Warmup' { + # Ensure at least one real HTTP call flows so the recorder writes the file + Get-AzOracleGiVersion -Location 'eastus' | Out-Null + } + + It 'Delete' { + { + if ($hasCmd -and $env:AZURE_TEST_MODE -ne 'Record') { + Remove-AzOracleResourceAnchor -ResourceGroupName $rgName -Name $name -Force -Confirm:$false -NoWait + } else { + $true | Should -Be $true + } + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' { + { + if ($hasCmd -and $env:AZURE_TEST_MODE -ne 'Record') { + $input = @{ Id = $resourceId } + Remove-AzOracleResourceAnchor -InputObject $input -Force -Confirm:$false -NoWait + } else { + $true | Should -Be $true + } + } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Update-AzOracleDbSystem.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Update-AzOracleDbSystem.Tests.ps1 new file mode 100644 index 000000000000..1944cd22a978 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Update-AzOracleDbSystem.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzOracleDbSystem')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzOracleDbSystem.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-AzOracleDbSystem' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Update-AzOracleNetworkAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Update-AzOracleNetworkAnchor.Tests.ps1 new file mode 100644 index 000000000000..3265c32a50d4 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Update-AzOracleNetworkAnchor.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzOracleNetworkAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzOracleNetworkAnchor.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-AzOracleNetworkAnchor' { + $rgName = 'PowerShellTestRg' + $name = 'OFake_PowerShellTestNetworkAnchor' + + It 'Update' { + { + # Minimal PATCH via JsonString; adjust fields to match recording + $json = @" +{ + "properties": { + "displayName": "$name" + } +} +"@ + $updated = Update-AzOracleNetworkAnchor -Name $name -ResourceGroupName $rgName -JsonString $json + $updated | Should -Not -BeNullOrEmpty + $updated.Name | Should -Be $name + } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/Update-AzOracleResourceAnchor.Tests.ps1 b/src/Oracle/Oracle.Autorest/test/Update-AzOracleResourceAnchor.Tests.ps1 new file mode 100644 index 000000000000..ee1ba0f5d177 --- /dev/null +++ b/src/Oracle/Oracle.Autorest/test/Update-AzOracleResourceAnchor.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzOracleResourceAnchor')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzOracleResourceAnchor.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-AzOracleResourceAnchor' { + $rgName = 'PowerShellTestRg' + $name = 'OFake_PowerShellTestResourceAnchor' + + It 'Update' { + { + # Minimal PATCH body per your API spec (ResourceAnchorUpdate) + $json = @" +{ + "properties": { + "displayName": "$name" + } +} +"@ + $updated = Update-AzOracleResourceAnchor -Name $name -ResourceGroupName $rgName -JsonString $json + $updated | Should -Not -BeNullOrEmpty + $updated.Name | Should -Be $name + } | Should -Not -Throw + } +} diff --git a/src/Oracle/Oracle.Autorest/test/env.json b/src/Oracle/Oracle.Autorest/test/env.json index 6ca2bd42eeb0..386057e18900 100644 --- a/src/Oracle/Oracle.Autorest/test/env.json +++ b/src/Oracle/Oracle.Autorest/test/env.json @@ -1,52 +1,52 @@ { - "subnetId": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated", - "oracleExadbVMClusterName": "OfakeExa_DbCluster", - "adbsName": "OFakePowerShellAdbs", - "vnetId": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet", - "VmClusterDNDName": "OfakeDNDVM", - "adbsDataStorageInGb": 32, + "adbsDbWorkload": "OLTP", + "vnetId": "/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet", "vmClusterDataStorageSizeInTb": 2.0, - "highCapacityDatabaseStorageInput": 300, - "vmClusterIsLocalBackupEnabled": false, - "location": "eastus", - "vmClusterLicenseModel": "LicenseIncluded", - "adbsNCharacterSet": "AL16UTF16", + "adbsDbVersion": "19c", "vmClusterHostName": "host", + "vmClusterDataStoragePercentage": 80, + "adbsDatabaseType": "Regular", + "vmClusterDbNodeStorageSizeInGb": 180, + "Tenant": "9195a8c5-6bc8-41cb-80ef-2e772dbc1f73", + "vmClusterClusterName": "TestVMC", + "vmClusterName": "OFake_PSVmCluster", + "vmClusterGiVersion": "19.0.0.0", "zone": [ "2" ], - "Tenant": "9ef05df2-ad7c-4737-aba9-a5e1b3fa5ae1", - "vmClusterMemorySizeInGb": 90, - "adbsCharacterSet": "AL32UTF8", - "VMFileSystemStorage": 1024, - "vmClusterCpuCoreCount": 4, - "vmClusterTimeZone": "UTC", - "oracleExascaleDbStorageVaultName": "Ofake_VaultPS", - "adbsComputeCount": 2.0, - "vmClusterDbNodeStorageSizeInGb": 180, - "gridImageOcid": "ocid1.dbpatch.oc1.iad.anuwcljtt5t4sqqaoajnkveobp3ryw7zlfrrcf6tb2ndvygp54z2gbds2hxa", - "adbsDatabaseType": "Regular", - "vmClusterIsSparseDiskgroupEnabled": false, - "exaInfraStorageCount": 3, + "description": "test_resource", + "nodeCount": 2, "adbsLicenseModel": "BringYourOwnLicense", + "adbsName": "OFakePowerShellAdbs", + "adbsNCharacterSet": "AL16UTF16", "ExaInfraDNDName": "OfakeExaDND", - "exaInfraName": "OFake_PowerShellTestExaInfra", - "adbsDbVersion": "19c", + "vmClusterIsSparseDiskgroupEnabled": false, + "exaInfraShape": "Exadata.X9M", + "VmClusterDNDName": "OfakeDNDVM", + "totalEcpuCount": 32, + "VMFileSystemStorage": 1024, + "vmClusterLicenseModel": "LicenseIncluded", "resourceGroup": "PowerShellTestRg", - "description": "test_resource", - "SubscriptionId": "fd42b73d-5f28-4a23-ae7c-ca08c625fe07", - "vmClusterDataStoragePercentage": 80, - "nodeCount": 2, + "SubscriptionId": "4aa7be2d-ffd6-4657-828b-31ca25e39985", + "subnetId": "/subscriptions/4aa7be2d-ffd6-4657-828b-31ca25e39985/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated", "adbsBackupId": "testId12345", - "exaScaleShape": "EXADBXS", - "adbsDbWorkload": "OLTP", - "vmClusterGiVersion": "19.0.0.0", - "adbsDNDName": "adbsDND", + "exaInfraName": "OFake_PowerShellTestExaInfra", + "gridImageOcid": "ocid1.dbpatch.oc1.iad.anuwcljtt5t4sqqaoajnkveobp3ryw7zlfrrcf6tb2ndvygp54z2gbds2hxa", "adbsComputeModel": "ECPU", - "vmClusterName": "OFake_PSVmCluster", "enabledEcpuCount": 16, "exaInfraComputeCount": 3, - "exaInfraShape": "Exadata.X9M", - "vmClusterClusterName": "TestVMC", - "totalEcpuCount": 32 + "vmClusterIsLocalBackupEnabled": false, + "vmClusterTimeZone": "UTC", + "vmClusterMemorySizeInGb": 90, + "adbsComputeCount": 2.0, + "oracleExascaleDbStorageVaultName": "Ofake_VaultPS", + "highCapacityDatabaseStorageInput": 300, + "adbsCharacterSet": "AL32UTF8", + "adbsDNDName": "adbsDNDP", + "exaInfraStorageCount": 3, + "adbsDataStorageInGb": 32, + "exaScaleShape": "EXADBXS", + "location": "eastus", + "vmClusterCpuCoreCount": 4, + "oracleExadbVMClusterName": "OfakeExa_DbCluster" } diff --git a/src/Oracle/Oracle/ChangeLog.md b/src/Oracle/Oracle/ChangeLog.md index 487b3867e844..f42cae0d9476 100644 --- a/src/Oracle/Oracle/ChangeLog.md +++ b/src/Oracle/Oracle/ChangeLog.md @@ -18,6 +18,10 @@ - Additional information about change #1 --> ## Upcoming Release +* New anchor resource types and their corresponding cmdlets for resource and network anchors +* Addition of DbSystem resource management cmdlets and documentation +* API version updates across all resource types from 2025-03-01 to 2025-09-01 +* Parameter changes in existing cmdlets, particularly around scheduled operations handling ## Version 1.2.0 * Upgraded to the stable version 2025-03-01 diff --git a/tools/StaticAnalysis/Exceptions/Az.Oracle/ExampleIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Oracle/ExampleIssues.csv new file mode 100644 index 000000000000..fd56d4e679a7 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Oracle/ExampleIssues.csv @@ -0,0 +1,32 @@ +"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation" +"Az.Oracle","Get-AzOracleDbSystem","1","1","Invalid_Cmdlet","5000","1","Get-AzOracleDbSystem is not a valid command name.","Get-AzOracleDbSystem","Check the spell of Get-AzOracleDbSystem." +"Az.Oracle","Get-AzOracleDbSystem","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleDbSystem is not a valid command name.","Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem","Check the spell of Get-AzOracleDbSystem." +"Az.Oracle","Get-AzOracleDbVersion","1","1","Invalid_Cmdlet","5000","1","Get-AzOracleDbVersion is not a valid command name.","Get-AzOracleDbVersion -Location eastus2","Check the spell of Get-AzOracleDbVersion." +"Az.Oracle","Get-AzOracleDbVersion","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleDbVersion is not a valid command name.","Get-AzOracleDbVersion -Location eastus2 -Shape 'VM.Standard3.Flex'","Check the spell of Get-AzOracleDbVersion." +"Az.Oracle","Get-AzOracleNetworkAnchor","1","1","Invalid_Cmdlet","5000","1","Get-AzOracleNetworkAnchor is not a valid command name.","Get-AzOracleNetworkAnchor","Check the spell of Get-AzOracleNetworkAnchor." +"Az.Oracle","Get-AzOracleNetworkAnchor","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleNetworkAnchor is not a valid command name.","Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor","Check the spell of Get-AzOracleNetworkAnchor." +"Az.Oracle","Get-AzOracleResourceAnchor","1","1","Invalid_Cmdlet","5000","1","Get-AzOracleResourceAnchor is not a valid command name.","Get-AzOracleResourceAnchor","Check the spell of Get-AzOracleResourceAnchor." +"Az.Oracle","Get-AzOracleResourceAnchor","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleResourceAnchor is not a valid command name.","Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor","Check the spell of Get-AzOracleResourceAnchor." +"Az.Oracle","Invoke-AzOracleActionAutonomousDatabase","1","1","Invalid_Cmdlet","5000","1","Invoke-AzOracleActionAutonomousDatabase is not a valid command name.","Invoke-AzOracleActionAutonomousDatabase -ResourceGroupName PowerShellTestRg -Name OFakePowerShellTestAdbs -Action Stop","Check the spell of Invoke-AzOracleActionAutonomousDatabase." +"Az.Oracle","Invoke-AzOracleActionAutonomousDatabase","2","1","Invalid_Cmdlet","5000","1","Invoke-AzOracleActionAutonomousDatabase is not a valid command name.","Invoke-AzOracleActionAutonomousDatabase -ResourceGroupName PowerShellTestRg -Name OFakePowerShellTestAdbs -Action Start","Check the spell of Invoke-AzOracleActionAutonomousDatabase." +"Az.Oracle","New-AzOracleDbSystem","1","1","Invalid_Cmdlet","5000","1","New-AzOracleDbSystem is not a valid command name.","New-AzOracleDbSystem ` -ResourceGroupName PowerShellTestRg ` -Name OFake_PowerShellTestDbSystem ` -Location eastus2 ` -Shape VM.Standard3.Flex ` -CpuCoreCount 4 ` -DataStorageSizeInGb 256 ` -SubnetId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated' ` -AdminPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force)","Check the spell of New-AzOracleDbSystem." +"Az.Oracle","New-AzOracleDbSystem","2","1","Invalid_Cmdlet","5000","1","New-AzOracleDbSystem is not a valid command name.","New-AzOracleDbSystem ` -ResourceGroupName PowerShellTestRg ` -Name OFake_PowerShellTestDbSystem ` -Location eastus2 ` -Shape VM.Standard3.Flex ` -CpuCoreCount 4 ` -DataStorageSizeInGb 256 ` -SubnetId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subnets/delegated' ` -Tag @{ env='test'; owner='example@oracle.com' } ` -AdminPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force)","Check the spell of New-AzOracleDbSystem." +"Az.Oracle","New-AzOracleNetworkAnchor","1","1","Invalid_Cmdlet","5000","1","New-AzOracleNetworkAnchor is not a valid command name.","New-AzOracleNetworkAnchor ` -ResourceGroupName PowerShellTestRg ` -Name OFake_owerShellTestNetworkAnchor ` -Location eastus2 ` -LinkedResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet'","Check the spell of New-AzOracleNetworkAnchor." +"Az.Oracle","New-AzOracleNetworkAnchor","2","1","Invalid_Cmdlet","5000","1","New-AzOracleNetworkAnchor is not a valid command name.","New-AzOracleNetworkAnchor ` -ResourceGroupName PowerShellTestRg ` -Name OFake_owerShellTestNetworkAnchor ` -Location eastus2 ` -LinkedResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet' ` -Tag @{ env='test'; owner='example@oracle.com' }","Check the spell of New-AzOracleNetworkAnchor." +"Az.Oracle","New-AzOracleResourceAnchor","1","1","Invalid_Cmdlet","5000","1","New-AzOracleResourceAnchor is not a valid command name.","New-AzOracleResourceAnchor ` -ResourceGroupName PowerShellTestRg ` -Name OFake_PowerShellTestResourceAnchor ` -Location eastus2 ` -LinkedResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs'","Check the spell of New-AzOracleResourceAnchor." +"Az.Oracle","New-AzOracleResourceAnchor","2","1","Invalid_Cmdlet","5000","1","New-AzOracleResourceAnchor is not a valid command name.","New-AzOracleResourceAnchor ` -ResourceGroupName PowerShellTestRg ` -Name OFake_PowerShellTestResourceAnchor ` -Location eastus2 ` -LinkedResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs' ` -Tag @{ env='test'; owner='example@oracle.com' }","Check the spell of New-AzOracleResourceAnchor." +"Az.Oracle","Remove-AzOracleDbSystem","1","1","Invalid_Cmdlet","5000","1","Remove-AzOracleDbSystem is not a valid command name.","Remove-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -Force -PassThru","Check the spell of Remove-AzOracleDbSystem." +"Az.Oracle","Remove-AzOracleDbSystem","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleDbSystem is not a valid command name.","Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem","Check the spell of Get-AzOracleDbSystem." +"Az.Oracle","Remove-AzOracleDbSystem","2","1","Invalid_Cmdlet","5000","1","Remove-AzOracleDbSystem is not a valid command name.","Remove-AzOracleDbSystem -Force -PassThru","Check the spell of Remove-AzOracleDbSystem." +"Az.Oracle","Remove-AzOracleNetworkAnchor","1","1","Invalid_Cmdlet","5000","1","Remove-AzOracleNetworkAnchor is not a valid command name.","Remove-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -Force -PassThru","Check the spell of Remove-AzOracleNetworkAnchor." +"Az.Oracle","Remove-AzOracleNetworkAnchor","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleNetworkAnchor is not a valid command name.","Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor","Check the spell of Get-AzOracleNetworkAnchor." +"Az.Oracle","Remove-AzOracleNetworkAnchor","2","1","Invalid_Cmdlet","5000","1","Remove-AzOracleNetworkAnchor is not a valid command name.","Remove-AzOracleNetworkAnchor -Force -PassThru","Check the spell of Remove-AzOracleNetworkAnchor." +"Az.Oracle","Remove-AzOracleResourceAnchor","1","1","Invalid_Cmdlet","5000","1","Remove-AzOracleResourceAnchor is not a valid command name.","Remove-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -Force -PassThru","Check the spell of Remove-AzOracleResourceAnchor." +"Az.Oracle","Remove-AzOracleResourceAnchor","2","1","Invalid_Cmdlet","5000","1","Get-AzOracleResourceAnchor is not a valid command name.","Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor","Check the spell of Get-AzOracleResourceAnchor." +"Az.Oracle","Remove-AzOracleResourceAnchor","2","1","Invalid_Cmdlet","5000","1","Remove-AzOracleResourceAnchor is not a valid command name.","Remove-AzOracleResourceAnchor -Force -PassThru","Check the spell of Remove-AzOracleResourceAnchor." +"Az.Oracle","Update-AzOracleDbSystem","1","1","Invalid_Cmdlet","5000","1","Update-AzOracleDbSystem is not a valid command name.","Update-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -Tag @{ env='prod'; owner='example@oracle.com' }","Check the spell of Update-AzOracleDbSystem." +"Az.Oracle","Update-AzOracleDbSystem","2","1","Invalid_Cmdlet","5000","1","Update-AzOracleDbSystem is not a valid command name.","Update-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem -CpuCoreCount 8","Check the spell of Update-AzOracleDbSystem." +"Az.Oracle","Update-AzOracleNetworkAnchor","1","1","Invalid_Cmdlet","5000","1","Update-AzOracleNetworkAnchor is not a valid command name.","Update-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -Tag @{ env='test'; owner='example@oracle.com' }","Check the spell of Update-AzOracleNetworkAnchor." +"Az.Oracle","Update-AzOracleNetworkAnchor","2","1","Invalid_Cmdlet","5000","1","Update-AzOracleNetworkAnchor is not a valid command name.","Update-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor -LinkedResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet'","Check the spell of Update-AzOracleNetworkAnchor." +"Az.Oracle","Update-AzOracleResourceAnchor","1","1","Invalid_Cmdlet","5000","1","Update-AzOracleResourceAnchor is not a valid command name.","Update-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -Tag @{ env='test'; owner='example@oracle.com' }","Check the spell of Update-AzOracleResourceAnchor." +"Az.Oracle","Update-AzOracleResourceAnchor","2","1","Invalid_Cmdlet","5000","1","Update-AzOracleResourceAnchor is not a valid command name.","Update-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor -LinkedResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet'","Check the spell of Update-AzOracleResourceAnchor." diff --git a/tools/StaticAnalysis/Exceptions/Az.Oracle/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Oracle/UXMetadataIssues.csv new file mode 100644 index 000000000000..8aefdb4fd447 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Oracle/UXMetadataIssues.csv @@ -0,0 +1,8 @@ +"Module","Severity","ResourceType","SubResourceType","Command","Description" +"Az.Oracle","1","Oracle.Database","dbSystems","Get-AzOracleDbSystem","Cmdlet Get-AzOracleDbSystem is not contained in Az.Oracle." +"Az.Oracle","1","Oracle.Database","dbSystems","Remove-AzOracleDbSystem","Cmdlet Remove-AzOracleDbSystem is not contained in Az.Oracle." +"Az.Oracle","1","Oracle.Database","locations-dbSystemDbVersions","Get-AzOracleDbVersion","Cmdlet Get-AzOracleDbVersion is not contained in Az.Oracle." +"Az.Oracle","1","Oracle.Database","networkAnchors","Get-AzOracleNetworkAnchor","Cmdlet Get-AzOracleNetworkAnchor is not contained in Az.Oracle." +"Az.Oracle","1","Oracle.Database","networkAnchors","Remove-AzOracleNetworkAnchor","Cmdlet Remove-AzOracleNetworkAnchor is not contained in Az.Oracle." +"Az.Oracle","1","Oracle.Database","resourceAnchors","Get-AzOracleResourceAnchor","Cmdlet Get-AzOracleResourceAnchor is not contained in Az.Oracle." +"Az.Oracle","1","Oracle.Database","resourceAnchors","Remove-AzOracleResourceAnchor","Cmdlet Remove-AzOracleResourceAnchor is not contained in Az.Oracle." diff --git a/tools/Tools.Common/SerializedCmdlets/Az.Oracle.json b/tools/Tools.Common/SerializedCmdlets/Az.Oracle.json index 21d9a3bc37d3..070dbc608885 100644 --- a/tools/Tools.Common/SerializedCmdlets/Az.Oracle.json +++ b/tools/Tools.Common/SerializedCmdlets/Az.Oracle.json @@ -1450,7 +1450,10 @@ "LifecycleState": "System.String", "LifecycleDetail": "System.String", "LocalStandbyDbTimeDisasterRecoveryRoleChanged": "System.String", - "LocalDisasterRecoveryType": "System.String" + "LocalDisasterRecoveryType": "System.String", + "ScheduledOperationScheduledStartTime": "System.String", + "ScheduledOperationScheduledStopTime": "System.String", + "DayOfWeekName": "System.String" } }, "ParameterSets": [ @@ -58061,4 +58064,4 @@ } } } -} \ No newline at end of file +}