Skip to content

Commit 616dcc6

Browse files
docs(Oracle): add PowerShell example docs for Resource/Network Anchors, DbSystem, and ADB lifecycle action
1 parent a11ab8a commit 616dcc6

14 files changed

+678
-126
lines changed
Lines changed: 57 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,70 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get a list of the DbSystem resources
22
```powershell
3-
{{ Add code here }}
3+
Get-AzOracleDbSystem
44
```
55

66
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
7+
...
8+
Name : OFake_PowerShellTestDbSystem
9+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem
10+
Type : oracle.database/dbsystems
11+
Location : eastus2
12+
ResourceGroupName : PowerShellTestRg
13+
OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur
14+
n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua
15+
Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample
16+
Shape : VM.Standard3.Flex
17+
CpuCoreCount : 4
18+
DataStorageSizeInGb : 256
19+
SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn
20+
ets/delegated
21+
ProvisioningState : Succeeded
22+
Hostname : psdbs01
23+
Tag : {
24+
}
25+
SystemDataCreatedAt : 05/07/2024 13:40:35
26+
SystemDataCreatedBy : [email protected]
27+
SystemDataCreatedByType : User
28+
SystemDataLastModifiedAt : 06/07/2024 09:19:26
29+
SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7
30+
SystemDataLastModifiedByType : Application
31+
TimeCreated : 05/07/2024 13:44:18
832
```
933

10-
{{ Add description here }}
34+
Get a DbSystem resource by name and resource group name.
35+
For more information, execute `Get-Help Get-AzOracleDbSystem`.
1136

12-
### Example 2: {{ Add title here }}
37+
### Example 2: Get a DbSystem by name and resource group name
1338
```powershell
14-
{{ Add code here }}
39+
Get-AzOracleDbSystem -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestDbSystem
1540
```
1641

1742
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
43+
Name : OFake_PowerShellTestDbSystem
44+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/dbSystems/OFake_PowerShellTestDbSystem
45+
Type : oracle.database/dbsystems
46+
Location : eastus2
47+
ResourceGroupName : PowerShellTestRg
48+
OciUrl : https://cloud.oracle.com/dbaas/dbsystems/ocid1.dbsystem.oc1.iad.aaaaaaaexample?region=us-ashbur
49+
n-1&tenant=orpsandbox3&compartmentId=ocid1.compartment.oc1..aaaaaaaazcet2jt2uowjtgxsae5uositfy2thngqgokwdifyzmyygdpckeua
50+
Ocid : ocid1.dbsystem.oc1.iad.aaaaaaaexample
51+
Shape : VM.Standard3.Flex
52+
CpuCoreCount : 4
53+
DataStorageSizeInGb : 256
54+
SubnetId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet/subn
55+
ets/delegated
56+
ProvisioningState : Succeeded
57+
Hostname : psdbs01
58+
Tag : {
59+
}
60+
SystemDataCreatedAt : 05/07/2024 13:40:35
61+
SystemDataCreatedBy : [email protected]
62+
SystemDataCreatedByType : User
63+
SystemDataLastModifiedAt : 06/07/2024 09:19:26
64+
SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7
65+
SystemDataLastModifiedByType : Application
66+
TimeCreated : 05/07/2024 13:44:18
1967
```
2068

21-
{{ Add description here }}
22-
69+
Gets a specific DbSystem resource by name and resource group name.
70+
For more information, execute `Get-Help Get-AzOracleDbSystem`.
Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: List available Oracle Database versions in a region
22
```powershell
3-
{{ Add code here }}
3+
Get-AzOracleDbVersion -Location eastus2
44
```
55

66
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
7+
...
8+
Version : 19c
9+
VersionFull : 19.22.0.0
10+
IsDefault : True
11+
IsPreview : False
12+
13+
Version : 21c
14+
VersionFull : 21.10.0.0
15+
IsDefault : False
16+
IsPreview : True
817
```
918

10-
{{ Add description here }}
19+
Lists the available Oracle Database versions for **eastus2**. For more information, execute `Get-Help Get-AzOracleDbVersion`.
1120

12-
### Example 2: {{ Add title here }}
21+
### Example 2: List versions for a specific shape
1322
```powershell
14-
{{ Add code here }}
23+
Get-AzOracleDbVersion -Location eastus2 -Shape "VM.Standard3.Flex"
1524
```
1625

1726
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
27+
Version : 19c
28+
VersionFull : 19.22.0.0
29+
IsDefault : True
30+
IsPreview : False
1931
```
2032

21-
{{ Add description here }}
22-
33+
Filters versions by compute shape. For more information, execute `Get-Help Get-AzOracleDbVersion`.
Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,66 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get a list of the Network Anchor resources
22
```powershell
3-
{{ Add code here }}
3+
Get-AzOracleNetworkAnchor
44
```
55

66
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
7+
...
8+
Name : OFake_owerShellTestNetworkAnchor
9+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor
10+
Type : oracle.database/networkanchors
11+
Location : eastus2
12+
ResourceGroupName : PowerShellTestRg
13+
OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur
14+
n-1&tenant=orpsandbox3
15+
Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example
16+
LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet
17+
ProvisioningState : Succeeded
18+
Property : {
19+
...
20+
}
21+
SystemDataCreatedAt : 05/07/2024 13:40:35
22+
SystemDataCreatedBy : [email protected]
23+
SystemDataCreatedByType : User
24+
SystemDataLastModifiedAt : 06/07/2024 09:19:26
25+
SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7
26+
SystemDataLastModifiedByType : Application
27+
Tag : {
28+
}
29+
TimeCreated : 05/07/2024 13:44:18
830
```
931

10-
{{ Add description here }}
32+
Get a Network Anchor resource by name and resource group name.
33+
For more information, execute `Get-Help Get-AzOracleNetworkAnchor`.
1134

12-
### Example 2: {{ Add title here }}
35+
### Example 2: Get a Network Anchor by name and resource group name
1336
```powershell
14-
{{ Add code here }}
37+
Get-AzOracleNetworkAnchor -ResourceGroupName PowerShellTestRg -Name OFake_owerShellTestNetworkAnchor
1538
```
1639

1740
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
41+
Name : OFake_owerShellTestNetworkAnchor
42+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/networkAnchors/OFake_owerShellTestNetworkAnchor
43+
Type : oracle.database/networkanchors
44+
Location : eastus2
45+
ResourceGroupName : PowerShellTestRg
46+
OciUrl : https://cloud.oracle.com/network-anchors/ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur
47+
n-1&tenant=orpsandbox3
48+
Ocid : ocid1.networkanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example
49+
LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Microsoft.Network/virtualNetworks/PSTestVnet
50+
ProvisioningState : Succeeded
51+
Property : {
52+
...
53+
}
54+
SystemDataCreatedAt : 05/07/2024 13:40:35
55+
SystemDataCreatedBy : [email protected]
56+
SystemDataCreatedByType : User
57+
SystemDataLastModifiedAt : 06/07/2024 09:19:26
58+
SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7
59+
SystemDataLastModifiedByType : Application
60+
Tag : {
61+
}
62+
TimeCreated : 05/07/2024 13:44:18
1963
```
2064

21-
{{ Add description here }}
22-
65+
Gets a specific Network Anchor resource by name and resource group name.
66+
For more information, execute `Get-Help Get-AzOracleNetworkAnchor`.
Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,66 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get a list of the Resource Anchor resources
22
```powershell
3-
{{ Add code here }}
3+
Get-AzOracleResourceAnchor
44
```
55

66
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
7+
...
8+
Name : OFake_PowerShellTestResourceAnchor
9+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor
10+
Type : oracle.database/resourceanchors
11+
Location : eastus2
12+
ResourceGroupName : PowerShellTestRg
13+
OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur
14+
n-1&tenant=orpsandbox3
15+
Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example
16+
LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs
17+
ProvisioningState : Succeeded
18+
Property : {
19+
...
20+
}
21+
SystemDataCreatedAt : 05/07/2024 13:40:35
22+
SystemDataCreatedBy : [email protected]
23+
SystemDataCreatedByType : User
24+
SystemDataLastModifiedAt : 06/07/2024 09:19:26
25+
SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7
26+
SystemDataLastModifiedByType : Application
27+
Tag : {
28+
}
29+
TimeCreated : 05/07/2024 13:44:18
830
```
931

10-
{{ Add description here }}
32+
Get a Resource Anchor resource by name and resource group name.
33+
For more information, execute `Get-Help Get-AzOracleResourceAnchor`.
1134

12-
### Example 2: {{ Add title here }}
35+
### Example 2: Get a Resource Anchor by name and resource group name
1336
```powershell
14-
{{ Add code here }}
37+
Get-AzOracleResourceAnchor -ResourceGroupName PowerShellTestRg -Name OFake_PowerShellTestResourceAnchor
1538
```
1639

1740
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
41+
Name : OFake_PowerShellTestResourceAnchor
42+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/resourceAnchors/OFake_PowerShellTestResourceAnchor
43+
Type : oracle.database/resourceanchors
44+
Location : eastus2
45+
ResourceGroupName : PowerShellTestRg
46+
OciUrl : https://cloud.oracle.com/resource-anchors/ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example?region=us-ashbur
47+
n-1&tenant=orpsandbox3
48+
Ocid : ocid1.resourceanchor.oc1.iad.anuwcljtnirvylqa7vzcwywunyc2mjnuvm62example
49+
LinkedResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PowerShellTestRg/providers/Oracle.Database/autonomousDatabases/OFakePowerShellTestAdbs
50+
ProvisioningState : Succeeded
51+
Property : {
52+
...
53+
}
54+
SystemDataCreatedAt : 05/07/2024 13:40:35
55+
SystemDataCreatedBy : [email protected]
56+
SystemDataCreatedByType : User
57+
SystemDataLastModifiedAt : 06/07/2024 09:19:26
58+
SystemDataLastModifiedBy : 857ad006-4380-4712-ba4c-22f7c64d84e7
59+
SystemDataLastModifiedByType : Application
60+
Tag : {
61+
}
62+
TimeCreated : 05/07/2024 13:44:18
1963
```
2064

21-
{{ Add description here }}
22-
65+
Gets a specific Resource Anchor resource by name and resource group name.
66+
For more information, execute `Get-Help Get-AzOracleResourceAnchor`.

0 commit comments

Comments
 (0)