Skip to content

Commit 3f92cc6

Browse files
committed
Merge branch 'bugfix_acr_cannot_find' into 'main'
bugFix 'Microsoft.ContainerRegistry/registries' could not be found in subscription See merge request weblogic-cloud/weblogic-kubernetes-operator!4514
2 parents 546fadb + 3f51c35 commit 3f92cc6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ parametersValidate() {
191191
initialize() {
192192

193193
print_step "initializing"
194+
195+
az provider register -n Microsoft.ContainerRegistry
196+
194197
source ./create-domain-on-aks-inputs.sh
195198
source ~/.bashrc
196199

@@ -218,7 +221,7 @@ initialize() {
218221
echo "azureResourceGroupName=${azureResourceGroupName}"
219222
echo "image_build_base_dir=${image_build_base_dir}"
220223
echo "acr_account_name=${acr_account_name}"
221-
224+
222225

223226
}
224227

@@ -818,12 +821,12 @@ cd ${scriptDir}
818821
# Do these steps to create Azure resources and a WebLogic Server domain.
819822
#
820823

821-
# Setup the environment for running this script and perform initial validation checks
822-
initialize
823-
824824
# Validate the host environment meets the prerequisites.
825825
envValidate
826826

827+
# Setup the environment for running this script and perform initial validation checks
828+
initialize
829+
827830
# Validate the parameters
828831
parametersValidate "$@"
829832

0 commit comments

Comments
 (0)