diff --git a/sdk/azcore/CHANGELOG.md b/sdk/azcore/CHANGELOG.md index 0e0168d42bcf..928028d68d47 100644 --- a/sdk/azcore/CHANGELOG.md +++ b/sdk/azcore/CHANGELOG.md @@ -13,6 +13,8 @@ ### Bugs Fixed +* Fixed an issue that could cause some ARM RPs to not be automatically registered. + ### Other Changes ## 1.8.0-beta.3 (2023-09-07) diff --git a/sdk/azcore/arm/runtime/policy_register_rp.go b/sdk/azcore/arm/runtime/policy_register_rp.go index c3f5eeafe020..7380f023986f 100644 --- a/sdk/azcore/arm/runtime/policy_register_rp.go +++ b/sdk/azcore/arm/runtime/policy_register_rp.go @@ -176,6 +176,7 @@ var unregisteredRPCodes = []string{ "MissingSubscriptionRegistration", "MissingRegistrationForResourceProvider", "Subscription Not Registered", + "SubscriptionNotRegistered", } func isUnregisteredRPCode(errorCode string) bool { diff --git a/sdk/azcore/arm/runtime/policy_register_rp_test.go b/sdk/azcore/arm/runtime/policy_register_rp_test.go index 0edb866bf34e..3ab1a9c617c6 100644 --- a/sdk/azcore/arm/runtime/policy_register_rp_test.go +++ b/sdk/azcore/arm/runtime/policy_register_rp_test.go @@ -414,6 +414,7 @@ func TestRPRegistrationPolicyEnvironmentsInSubExceeded(t *testing.T) { func TestIsUnregisteredRPCode(t *testing.T) { require.True(t, isUnregisteredRPCode("Subscription Not Registered")) + require.True(t, isUnregisteredRPCode("SubscriptionNotRegistered")) require.False(t, isUnregisteredRPCode("Your subscription isn't registered")) }