File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,15 @@ if %ERRORLEVEL% neq 0 (
8787)
8888echo Resource group created.
8989
90+ rem Register Microsoft.DBforPostgreSQL provider and wait until completion
91+ echo Registering Microsoft.DBforPostgreSQL provider...
92+ cmd /c az provider register --namespace Microsoft.DBforPostgreSQL --wait
93+ if %ERRORLEVEL% neq 0 (
94+ echo Failed to register Microsoft.DBforPostgreSQL provider. Exiting.
95+ exit /b 1
96+ )
97+ echo Microsoft.DBforPostgreSQL provider registration completed.
98+
9099rem Create Azure PostgreSQL server with Microsoft Entra authentication enabled and database
91100echo Creating Azure PostgreSQL server with Microsoft Entra authentication and database...
92101cmd /c az postgres flexible-server create ^
Original file line number Diff line number Diff line change @@ -79,6 +79,15 @@ if [ $? -ne 0 ]; then
7979fi
8080echo " Resource group created."
8181
82+ # Register Microsoft.DBforPostgreSQL provider and wait until completion
83+ echo " Registering Microsoft.DBforPostgreSQL provider..."
84+ az provider register --namespace Microsoft.DBforPostgreSQL --wait
85+ if [ $? -ne 0 ]; then
86+ echo " Failed to register Microsoft.DBforPostgreSQL provider. Exiting."
87+ exit 1
88+ fi
89+ echo " Microsoft.DBforPostgreSQL provider registration completed."
90+
8291# Create Azure PostgreSQL server with Microsoft Entra authentication enabled and database
8392echo " Creating Azure PostgreSQL server with Microsoft Entra authentication and database..."
8493az postgres flexible-server create \
You can’t perform that action at this time.
0 commit comments