diff --git a/cloud/azure/storage/storagesync/mode/filessync.pm b/cloud/azure/storage/storagesync/mode/filessync.pm index 08186231b..18dbdf72e 100644 --- a/cloud/azure/storage/storagesync/mode/filessync.pm +++ b/cloud/azure/storage/storagesync/mode/filessync.pm @@ -82,7 +82,7 @@ sub check_options { } my $resource = $self->{option_results}->{resource}; my $resource_group = defined($self->{option_results}->{resource_group}) ? $self->{option_results}->{resource_group} : ''; - if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/Microsoft\.Cache\/Redis\/(.*)$/) { + if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/microsoft\.storagesync\/storageSyncServices\/(.*)$/) { $resource_group = $1; $resource = $2; } diff --git a/cloud/azure/storage/storagesync/mode/recalls.pm b/cloud/azure/storage/storagesync/mode/recalls.pm index 8ebab8932..133464e19 100644 --- a/cloud/azure/storage/storagesync/mode/recalls.pm +++ b/cloud/azure/storage/storagesync/mode/recalls.pm @@ -98,7 +98,7 @@ sub check_options { } my $resource = $self->{option_results}->{resource}; my $resource_group = defined($self->{option_results}->{resource_group}) ? $self->{option_results}->{resource_group} : ''; - if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/Microsoft\.Cache\/Redis\/(.*)$/) { + if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/microsoft\.storagesync\/storageSyncServices\/(.*)$/) { $resource_group = $1; $resource = $2; } diff --git a/cloud/azure/storage/storagesync/mode/serverstatus.pm b/cloud/azure/storage/storagesync/mode/serverstatus.pm index 5c4a01eb9..04cbe7c15 100644 --- a/cloud/azure/storage/storagesync/mode/serverstatus.pm +++ b/cloud/azure/storage/storagesync/mode/serverstatus.pm @@ -66,7 +66,7 @@ sub check_options { } my $resource = $self->{option_results}->{resource}; my $resource_group = defined($self->{option_results}->{resource_group}) ? $self->{option_results}->{resource_group} : ''; - if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/Microsoft\.Cache\/Redis\/(.*)$/) { + if ($resource =~ /^\/subscriptions\/.*\/resourceGroups\/(.*)\/providers\/microsoft\.storagesync\/storageSyncServices\/(.*)$/) { $resource_group = $1; $resource = $2; }