Skip to content

Commit a604f46

Browse files
authored
Fix hardcode password in one example (#28132)
1 parent 7060933 commit a604f46

File tree

8 files changed

+25
-28
lines changed

8 files changed

+25
-28
lines changed

src/Oracle/Oracle.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Oracle")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.1")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.1")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/Oracle/Oracle.Autorest/docs/Az.Oracle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Oracle
3-
Module Guid: 9eb7cf7c-0f09-484c-a6ab-9c0ae0b365ce
3+
Module Guid: 0cd4db40-5b77-4c36-a93f-881ee209ef62
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.oracle
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Oracle/Oracle.Autorest/docs/New-AzOracleAutonomousDatabase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $vnetId = "/subscriptions/$($subscriptionId)/resourceGroups/$($resourceGroup)/pr
5858
$subnetName = "delegated"
5959
$subnetId = "/subscriptions/$($subscriptionId)/resourceGroups/$($resourceGroup)/providers/Microsoft.Network/virtualNetworks/$($vnetName)/subnets/$($subnetName)"
6060
61-
[SecureString]$adbsAdminPassword = ConvertTo-SecureString -String "PowerShellTestPass123" -AsPlainText -Force
61+
[SecureString]$adbsAdminPassword = ConvertTo-SecureString -String "******" -AsPlainText -Force
6262
6363
$adbsName = "OFakePowerShellTestAdbs"
6464
New-AzOracleAutonomousDatabase -Name $adbsName -ResourceGroupName $resourceGroup -Location "eastus" -DisplayName $adbsName -DbWorkload "OLTP" -ComputeCount 2.0 -ComputeModel "ECPU" -DbVersion "19c" -DataStorageSizeInGb 32 -AdminPassword $adbsAdminPassword -LicenseModel "BringYourOwnLicense" -SubnetId $subnetId -VnetId $vnetId -DataBaseType "Regular" -CharacterSet "AL32UTF8" -NcharacterSet "AL16UTF16"

src/Oracle/Oracle.Autorest/examples/New-AzOracleAutonomousDatabase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $vnetId = "/subscriptions/$($subscriptionId)/resourceGroups/$($resourceGroup)/pr
99
$subnetName = "delegated"
1010
$subnetId = "/subscriptions/$($subscriptionId)/resourceGroups/$($resourceGroup)/providers/Microsoft.Network/virtualNetworks/$($vnetName)/subnets/$($subnetName)"
1111
12-
[SecureString]$adbsAdminPassword = ConvertTo-SecureString -String "PowerShellTestPass123" -AsPlainText -Force
12+
[SecureString]$adbsAdminPassword = ConvertTo-SecureString -String "******" -AsPlainText -Force
1313
1414
$adbsName = "OFakePowerShellTestAdbs"
1515
New-AzOracleAutonomousDatabase -Name $adbsName -ResourceGroupName $resourceGroup -Location "eastus" -DisplayName $adbsName -DbWorkload "OLTP" -ComputeCount 2.0 -ComputeModel "ECPU" -DbVersion "19c" -DataStorageSizeInGb 32 -AdminPassword $adbsAdminPassword -LicenseModel "BringYourOwnLicense" -SubnetId $subnetId -VnetId $vnetId -DataBaseType "Regular" -CharacterSet "AL32UTF8" -NcharacterSet "AL16UTF16"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "712e0b93-771f-46a5-9b7a-7033d0065611"
2+
"generate_Id": "5c30ad29-a0d7-4e8e-a2fe-9f6680e1588d"
33
}

src/Oracle/Oracle.sln

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun
1919
EndProject
2020
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Oracle", "Oracle\Oracle.csproj", "{95866618-494F-4D82-901E-257FE6E092E0}"
2121
EndProject
22-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Oracle.Autorest", "Oracle.Autorest", "{9868B4F6-6EB8-7B6E-A277-ECD323852643}"
23-
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Oracle", "..\..\generated\Oracle\Oracle.Autorest\Az.Oracle.csproj", "{80F898EC-8413-4D84-BB33-6ABA619B9B83}"
22+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Oracle", "Oracle.Autorest\Az.Oracle.csproj", "{D3A77BC8-0B76-4589-968C-866013DF46A6}"
2523
EndProject
2624
Global
2725
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -117,18 +115,18 @@ Global
117115
{95866618-494F-4D82-901E-257FE6E092E0}.Release|x64.Build.0 = Release|Any CPU
118116
{95866618-494F-4D82-901E-257FE6E092E0}.Release|x86.ActiveCfg = Release|Any CPU
119117
{95866618-494F-4D82-901E-257FE6E092E0}.Release|x86.Build.0 = Release|Any CPU
120-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Debug|Any CPU.Build.0 = Debug|Any CPU
122-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Debug|x64.ActiveCfg = Debug|Any CPU
123-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Debug|x64.Build.0 = Debug|Any CPU
124-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Debug|x86.ActiveCfg = Debug|Any CPU
125-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Debug|x86.Build.0 = Debug|Any CPU
126-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Release|Any CPU.ActiveCfg = Release|Any CPU
127-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Release|Any CPU.Build.0 = Release|Any CPU
128-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Release|x64.ActiveCfg = Release|Any CPU
129-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Release|x64.Build.0 = Release|Any CPU
130-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Release|x86.ActiveCfg = Release|Any CPU
131-
{80F898EC-8413-4D84-BB33-6ABA619B9B83}.Release|x86.Build.0 = Release|Any CPU
118+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
119+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
120+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Debug|x64.ActiveCfg = Debug|Any CPU
121+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Debug|x64.Build.0 = Debug|Any CPU
122+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Debug|x86.ActiveCfg = Debug|Any CPU
123+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Debug|x86.Build.0 = Debug|Any CPU
124+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
125+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Release|Any CPU.Build.0 = Release|Any CPU
126+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Release|x64.ActiveCfg = Release|Any CPU
127+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Release|x64.Build.0 = Release|Any CPU
128+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Release|x86.ActiveCfg = Release|Any CPU
129+
{D3A77BC8-0B76-4589-968C-866013DF46A6}.Release|x86.Build.0 = Release|Any CPU
132130
EndGlobalSection
133131
GlobalSection(SolutionProperties) = preSolution
134132
HideSolutionNode = FALSE
@@ -140,6 +138,5 @@ Global
140138
{E20D3B01-2C66-4D7D-9449-30BEF8137336} = {B93A569C-FC5D-49D9-B85D-6613B54CB5AF}
141139
{468AB99C-6885-42CD-B487-336695EF8C59} = {B93A569C-FC5D-49D9-B85D-6613B54CB5AF}
142140
{B5953A4E-4C9E-4228-97C9-57D065EF5BF6} = {B93A569C-FC5D-49D9-B85D-6613B54CB5AF}
143-
{80F898EC-8413-4D84-BB33-6ABA619B9B83} = {9868B4F6-6EB8-7B6E-A277-ECD323852643}
144141
EndGlobalSection
145142
EndGlobal

src/Oracle/Oracle/Az.Oracle.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/2/2025
6+
# Generated on: 7/4/2025
77
#
88

99
@{
@@ -57,10 +57,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; })
5757
RequiredAssemblies = 'Oracle.Autorest/bin/Az.Oracle.private.dll'
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
60+
ScriptsToProcess = @()
6161

6262
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
63+
TypesToProcess = @()
6464

6565
# Format files (.ps1xml) to be loaded when importing this module
6666
FormatsToProcess = 'Oracle.Autorest/Az.Oracle.format.ps1xml'
@@ -126,7 +126,7 @@ PrivateData = @{
126126
PSData = @{
127127

128128
# Tags applied to this module. These help with module discovery in online galleries.
129-
Tags = 'Azure','ResourceManager','ARM','PSModule','Oracle'
129+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Oracle'
130130

131131
# A URL to the license for this module.
132132
LicenseUri = 'https://aka.ms/azps-license'
@@ -151,7 +151,7 @@ PrivateData = @{
151151

152152
} # End of PSData hashtable
153153

154-
} # End of PrivateData hashtable
154+
} # End of PrivateData hashtable
155155

156156
# HelpInfo URI of this module
157157
# HelpInfoURI = ''

src/Oracle/Oracle/help/New-AzOracleAutonomousDatabase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $vnetId = "/subscriptions/$($subscriptionId)/resourceGroups/$($resourceGroup)/pr
5959
$subnetName = "delegated"
6060
$subnetId = "/subscriptions/$($subscriptionId)/resourceGroups/$($resourceGroup)/providers/Microsoft.Network/virtualNetworks/$($vnetName)/subnets/$($subnetName)"
6161
62-
[SecureString]$adbsAdminPassword = ConvertTo-SecureString -String "PowerShellTestPass123" -AsPlainText -Force
62+
[SecureString]$adbsAdminPassword = ConvertTo-SecureString -String "******" -AsPlainText -Force
6363
6464
$adbsName = "OFakePowerShellTestAdbs"
6565
New-AzOracleAutonomousDatabase -Name $adbsName -ResourceGroupName $resourceGroup -Location "eastus" -DisplayName $adbsName -DbWorkload "OLTP" -ComputeCount 2.0 -ComputeModel "ECPU" -DbVersion "19c" -DataStorageSizeInGb 32 -AdminPassword $adbsAdminPassword -LicenseModel "BringYourOwnLicense" -SubnetId $subnetId -VnetId $vnetId -DataBaseType "Regular" -CharacterSet "AL32UTF8" -NcharacterSet "AL16UTF16"

0 commit comments

Comments
 (0)