def METHOD_NAME(self, resource_group, storage_account_for_create):
    amsname = self.create_random_name(prefix='ams', length=12)
    amsname2 = 'unnombrequenoexiste'
    amsname3 = 'dgoifdgoisdfapodsgmpfdofmdspfoamdsfpodsamfpds%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
    self.kwargs.update({
        'amsname': amsname,
        'storageAccount': storage_account_for_create,
        'location': 'eastus',
        'amsname2': amsname2,
        'amsname3': amsname3
    })
    self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location} --mi-system-assigned --default-action Allow')
    self.cmd('az ams account check-name --location {location} -n {amsname}', checks=[
        self.check('@', 'Already in use by another account. Please try again with a name that is not likely to be in use.')
    ])
    self.cmd('az ams account check-name --location {location} -n {amsname2}', checks=[
        self.check('@', 'Name available.')
    ])
    self.cmd('az ams account check-name --location {location} -n {amsname3}', checks=[
        self.check('@', 'The Media Account account name should be between 3 and 24 characters and may contain only lowercase letters and numbers.')
    ])
    self.cmd('az ams account delete -n {amsname} -g {rg}')